{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.ApplicationInsights.Types.ConfigurationEventResourceType
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.ApplicationInsights.Types.ConfigurationEventResourceType
  ( ConfigurationEventResourceType
      ( ..,
        ConfigurationEventResourceType_CLOUDFORMATION,
        ConfigurationEventResourceType_CLOUDWATCH_ALARM,
        ConfigurationEventResourceType_CLOUDWATCH_LOG,
        ConfigurationEventResourceType_SSM_ASSOCIATION
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude

newtype ConfigurationEventResourceType = ConfigurationEventResourceType'
  { ConfigurationEventResourceType -> Text
fromConfigurationEventResourceType ::
      Core.Text
  }
  deriving stock
    ( Int -> ConfigurationEventResourceType -> ShowS
[ConfigurationEventResourceType] -> ShowS
ConfigurationEventResourceType -> String
(Int -> ConfigurationEventResourceType -> ShowS)
-> (ConfigurationEventResourceType -> String)
-> ([ConfigurationEventResourceType] -> ShowS)
-> Show ConfigurationEventResourceType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ConfigurationEventResourceType] -> ShowS
$cshowList :: [ConfigurationEventResourceType] -> ShowS
show :: ConfigurationEventResourceType -> String
$cshow :: ConfigurationEventResourceType -> String
showsPrec :: Int -> ConfigurationEventResourceType -> ShowS
$cshowsPrec :: Int -> ConfigurationEventResourceType -> ShowS
Prelude.Show,
      ReadPrec [ConfigurationEventResourceType]
ReadPrec ConfigurationEventResourceType
Int -> ReadS ConfigurationEventResourceType
ReadS [ConfigurationEventResourceType]
(Int -> ReadS ConfigurationEventResourceType)
-> ReadS [ConfigurationEventResourceType]
-> ReadPrec ConfigurationEventResourceType
-> ReadPrec [ConfigurationEventResourceType]
-> Read ConfigurationEventResourceType
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ConfigurationEventResourceType]
$creadListPrec :: ReadPrec [ConfigurationEventResourceType]
readPrec :: ReadPrec ConfigurationEventResourceType
$creadPrec :: ReadPrec ConfigurationEventResourceType
readList :: ReadS [ConfigurationEventResourceType]
$creadList :: ReadS [ConfigurationEventResourceType]
readsPrec :: Int -> ReadS ConfigurationEventResourceType
$creadsPrec :: Int -> ReadS ConfigurationEventResourceType
Prelude.Read,
      ConfigurationEventResourceType
-> ConfigurationEventResourceType -> Bool
(ConfigurationEventResourceType
 -> ConfigurationEventResourceType -> Bool)
-> (ConfigurationEventResourceType
    -> ConfigurationEventResourceType -> Bool)
-> Eq ConfigurationEventResourceType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ConfigurationEventResourceType
-> ConfigurationEventResourceType -> Bool
$c/= :: ConfigurationEventResourceType
-> ConfigurationEventResourceType -> Bool
== :: ConfigurationEventResourceType
-> ConfigurationEventResourceType -> Bool
$c== :: ConfigurationEventResourceType
-> ConfigurationEventResourceType -> Bool
Prelude.Eq,
      Eq ConfigurationEventResourceType
Eq ConfigurationEventResourceType
-> (ConfigurationEventResourceType
    -> ConfigurationEventResourceType -> Ordering)
-> (ConfigurationEventResourceType
    -> ConfigurationEventResourceType -> Bool)
-> (ConfigurationEventResourceType
    -> ConfigurationEventResourceType -> Bool)
-> (ConfigurationEventResourceType
    -> ConfigurationEventResourceType -> Bool)
-> (ConfigurationEventResourceType
    -> ConfigurationEventResourceType -> Bool)
-> (ConfigurationEventResourceType
    -> ConfigurationEventResourceType
    -> ConfigurationEventResourceType)
-> (ConfigurationEventResourceType
    -> ConfigurationEventResourceType
    -> ConfigurationEventResourceType)
-> Ord ConfigurationEventResourceType
ConfigurationEventResourceType
-> ConfigurationEventResourceType -> Bool
ConfigurationEventResourceType
-> ConfigurationEventResourceType -> Ordering
ConfigurationEventResourceType
-> ConfigurationEventResourceType -> ConfigurationEventResourceType
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: ConfigurationEventResourceType
-> ConfigurationEventResourceType -> ConfigurationEventResourceType
$cmin :: ConfigurationEventResourceType
-> ConfigurationEventResourceType -> ConfigurationEventResourceType
max :: ConfigurationEventResourceType
-> ConfigurationEventResourceType -> ConfigurationEventResourceType
$cmax :: ConfigurationEventResourceType
-> ConfigurationEventResourceType -> ConfigurationEventResourceType
>= :: ConfigurationEventResourceType
-> ConfigurationEventResourceType -> Bool
$c>= :: ConfigurationEventResourceType
-> ConfigurationEventResourceType -> Bool
> :: ConfigurationEventResourceType
-> ConfigurationEventResourceType -> Bool
$c> :: ConfigurationEventResourceType
-> ConfigurationEventResourceType -> Bool
<= :: ConfigurationEventResourceType
-> ConfigurationEventResourceType -> Bool
$c<= :: ConfigurationEventResourceType
-> ConfigurationEventResourceType -> Bool
< :: ConfigurationEventResourceType
-> ConfigurationEventResourceType -> Bool
$c< :: ConfigurationEventResourceType
-> ConfigurationEventResourceType -> Bool
compare :: ConfigurationEventResourceType
-> ConfigurationEventResourceType -> Ordering
$ccompare :: ConfigurationEventResourceType
-> ConfigurationEventResourceType -> Ordering
$cp1Ord :: Eq ConfigurationEventResourceType
Prelude.Ord,
      (forall x.
 ConfigurationEventResourceType
 -> Rep ConfigurationEventResourceType x)
-> (forall x.
    Rep ConfigurationEventResourceType x
    -> ConfigurationEventResourceType)
-> Generic ConfigurationEventResourceType
forall x.
Rep ConfigurationEventResourceType x
-> ConfigurationEventResourceType
forall x.
ConfigurationEventResourceType
-> Rep ConfigurationEventResourceType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ConfigurationEventResourceType x
-> ConfigurationEventResourceType
$cfrom :: forall x.
ConfigurationEventResourceType
-> Rep ConfigurationEventResourceType x
Prelude.Generic
    )
  deriving newtype
    ( Int -> ConfigurationEventResourceType -> Int
ConfigurationEventResourceType -> Int
(Int -> ConfigurationEventResourceType -> Int)
-> (ConfigurationEventResourceType -> Int)
-> Hashable ConfigurationEventResourceType
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: ConfigurationEventResourceType -> Int
$chash :: ConfigurationEventResourceType -> Int
hashWithSalt :: Int -> ConfigurationEventResourceType -> Int
$chashWithSalt :: Int -> ConfigurationEventResourceType -> Int
Prelude.Hashable,
      ConfigurationEventResourceType -> ()
(ConfigurationEventResourceType -> ())
-> NFData ConfigurationEventResourceType
forall a. (a -> ()) -> NFData a
rnf :: ConfigurationEventResourceType -> ()
$crnf :: ConfigurationEventResourceType -> ()
Prelude.NFData,
      Text -> Either String ConfigurationEventResourceType
(Text -> Either String ConfigurationEventResourceType)
-> FromText ConfigurationEventResourceType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ConfigurationEventResourceType
$cfromText :: Text -> Either String ConfigurationEventResourceType
Core.FromText,
      ConfigurationEventResourceType -> Text
(ConfigurationEventResourceType -> Text)
-> ToText ConfigurationEventResourceType
forall a. (a -> Text) -> ToText a
toText :: ConfigurationEventResourceType -> Text
$ctoText :: ConfigurationEventResourceType -> Text
Core.ToText,
      ConfigurationEventResourceType -> ByteString
(ConfigurationEventResourceType -> ByteString)
-> ToByteString ConfigurationEventResourceType
forall a. (a -> ByteString) -> ToByteString a
toBS :: ConfigurationEventResourceType -> ByteString
$ctoBS :: ConfigurationEventResourceType -> ByteString
Core.ToByteString,
      ConfigurationEventResourceType -> ByteStringBuilder
(ConfigurationEventResourceType -> ByteStringBuilder)
-> ToLog ConfigurationEventResourceType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ConfigurationEventResourceType -> ByteStringBuilder
$cbuild :: ConfigurationEventResourceType -> ByteStringBuilder
Core.ToLog,
      HeaderName -> ConfigurationEventResourceType -> [Header]
(HeaderName -> ConfigurationEventResourceType -> [Header])
-> ToHeader ConfigurationEventResourceType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ConfigurationEventResourceType -> [Header]
$ctoHeader :: HeaderName -> ConfigurationEventResourceType -> [Header]
Core.ToHeader,
      ConfigurationEventResourceType -> QueryString
(ConfigurationEventResourceType -> QueryString)
-> ToQuery ConfigurationEventResourceType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ConfigurationEventResourceType -> QueryString
$ctoQuery :: ConfigurationEventResourceType -> QueryString
Core.ToQuery,
      Value -> Parser [ConfigurationEventResourceType]
Value -> Parser ConfigurationEventResourceType
(Value -> Parser ConfigurationEventResourceType)
-> (Value -> Parser [ConfigurationEventResourceType])
-> FromJSON ConfigurationEventResourceType
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [ConfigurationEventResourceType]
$cparseJSONList :: Value -> Parser [ConfigurationEventResourceType]
parseJSON :: Value -> Parser ConfigurationEventResourceType
$cparseJSON :: Value -> Parser ConfigurationEventResourceType
Core.FromJSON,
      FromJSONKeyFunction [ConfigurationEventResourceType]
FromJSONKeyFunction ConfigurationEventResourceType
FromJSONKeyFunction ConfigurationEventResourceType
-> FromJSONKeyFunction [ConfigurationEventResourceType]
-> FromJSONKey ConfigurationEventResourceType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ConfigurationEventResourceType]
$cfromJSONKeyList :: FromJSONKeyFunction [ConfigurationEventResourceType]
fromJSONKey :: FromJSONKeyFunction ConfigurationEventResourceType
$cfromJSONKey :: FromJSONKeyFunction ConfigurationEventResourceType
Core.FromJSONKey,
      [ConfigurationEventResourceType] -> Encoding
[ConfigurationEventResourceType] -> Value
ConfigurationEventResourceType -> Encoding
ConfigurationEventResourceType -> Value
(ConfigurationEventResourceType -> Value)
-> (ConfigurationEventResourceType -> Encoding)
-> ([ConfigurationEventResourceType] -> Value)
-> ([ConfigurationEventResourceType] -> Encoding)
-> ToJSON ConfigurationEventResourceType
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [ConfigurationEventResourceType] -> Encoding
$ctoEncodingList :: [ConfigurationEventResourceType] -> Encoding
toJSONList :: [ConfigurationEventResourceType] -> Value
$ctoJSONList :: [ConfigurationEventResourceType] -> Value
toEncoding :: ConfigurationEventResourceType -> Encoding
$ctoEncoding :: ConfigurationEventResourceType -> Encoding
toJSON :: ConfigurationEventResourceType -> Value
$ctoJSON :: ConfigurationEventResourceType -> Value
Core.ToJSON,
      ToJSONKeyFunction [ConfigurationEventResourceType]
ToJSONKeyFunction ConfigurationEventResourceType
ToJSONKeyFunction ConfigurationEventResourceType
-> ToJSONKeyFunction [ConfigurationEventResourceType]
-> ToJSONKey ConfigurationEventResourceType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ConfigurationEventResourceType]
$ctoJSONKeyList :: ToJSONKeyFunction [ConfigurationEventResourceType]
toJSONKey :: ToJSONKeyFunction ConfigurationEventResourceType
$ctoJSONKey :: ToJSONKeyFunction ConfigurationEventResourceType
Core.ToJSONKey,
      [Node] -> Either String ConfigurationEventResourceType
([Node] -> Either String ConfigurationEventResourceType)
-> FromXML ConfigurationEventResourceType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ConfigurationEventResourceType
$cparseXML :: [Node] -> Either String ConfigurationEventResourceType
Core.FromXML,
      ConfigurationEventResourceType -> XML
(ConfigurationEventResourceType -> XML)
-> ToXML ConfigurationEventResourceType
forall a. (a -> XML) -> ToXML a
toXML :: ConfigurationEventResourceType -> XML
$ctoXML :: ConfigurationEventResourceType -> XML
Core.ToXML
    )

pattern ConfigurationEventResourceType_CLOUDFORMATION :: ConfigurationEventResourceType
pattern $bConfigurationEventResourceType_CLOUDFORMATION :: ConfigurationEventResourceType
$mConfigurationEventResourceType_CLOUDFORMATION :: forall r.
ConfigurationEventResourceType -> (Void# -> r) -> (Void# -> r) -> r
ConfigurationEventResourceType_CLOUDFORMATION = ConfigurationEventResourceType' "CLOUDFORMATION"

pattern ConfigurationEventResourceType_CLOUDWATCH_ALARM :: ConfigurationEventResourceType
pattern $bConfigurationEventResourceType_CLOUDWATCH_ALARM :: ConfigurationEventResourceType
$mConfigurationEventResourceType_CLOUDWATCH_ALARM :: forall r.
ConfigurationEventResourceType -> (Void# -> r) -> (Void# -> r) -> r
ConfigurationEventResourceType_CLOUDWATCH_ALARM = ConfigurationEventResourceType' "CLOUDWATCH_ALARM"

pattern ConfigurationEventResourceType_CLOUDWATCH_LOG :: ConfigurationEventResourceType
pattern $bConfigurationEventResourceType_CLOUDWATCH_LOG :: ConfigurationEventResourceType
$mConfigurationEventResourceType_CLOUDWATCH_LOG :: forall r.
ConfigurationEventResourceType -> (Void# -> r) -> (Void# -> r) -> r
ConfigurationEventResourceType_CLOUDWATCH_LOG = ConfigurationEventResourceType' "CLOUDWATCH_LOG"

pattern ConfigurationEventResourceType_SSM_ASSOCIATION :: ConfigurationEventResourceType
pattern $bConfigurationEventResourceType_SSM_ASSOCIATION :: ConfigurationEventResourceType
$mConfigurationEventResourceType_SSM_ASSOCIATION :: forall r.
ConfigurationEventResourceType -> (Void# -> r) -> (Void# -> r) -> r
ConfigurationEventResourceType_SSM_ASSOCIATION = ConfigurationEventResourceType' "SSM_ASSOCIATION"

{-# COMPLETE
  ConfigurationEventResourceType_CLOUDFORMATION,
  ConfigurationEventResourceType_CLOUDWATCH_ALARM,
  ConfigurationEventResourceType_CLOUDWATCH_LOG,
  ConfigurationEventResourceType_SSM_ASSOCIATION,
  ConfigurationEventResourceType'
  #-}