{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.AppConfig.Types.TriggeredBy
( TriggeredBy
( ..,
TriggeredBy_APPCONFIG,
TriggeredBy_CLOUDWATCH_ALARM,
TriggeredBy_INTERNAL_ERROR,
TriggeredBy_USER
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype TriggeredBy = TriggeredBy'
{ TriggeredBy -> Text
fromTriggeredBy ::
Core.Text
}
deriving stock
( Int -> TriggeredBy -> ShowS
[TriggeredBy] -> ShowS
TriggeredBy -> String
(Int -> TriggeredBy -> ShowS)
-> (TriggeredBy -> String)
-> ([TriggeredBy] -> ShowS)
-> Show TriggeredBy
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [TriggeredBy] -> ShowS
$cshowList :: [TriggeredBy] -> ShowS
show :: TriggeredBy -> String
$cshow :: TriggeredBy -> String
showsPrec :: Int -> TriggeredBy -> ShowS
$cshowsPrec :: Int -> TriggeredBy -> ShowS
Prelude.Show,
ReadPrec [TriggeredBy]
ReadPrec TriggeredBy
Int -> ReadS TriggeredBy
ReadS [TriggeredBy]
(Int -> ReadS TriggeredBy)
-> ReadS [TriggeredBy]
-> ReadPrec TriggeredBy
-> ReadPrec [TriggeredBy]
-> Read TriggeredBy
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [TriggeredBy]
$creadListPrec :: ReadPrec [TriggeredBy]
readPrec :: ReadPrec TriggeredBy
$creadPrec :: ReadPrec TriggeredBy
readList :: ReadS [TriggeredBy]
$creadList :: ReadS [TriggeredBy]
readsPrec :: Int -> ReadS TriggeredBy
$creadsPrec :: Int -> ReadS TriggeredBy
Prelude.Read,
TriggeredBy -> TriggeredBy -> Bool
(TriggeredBy -> TriggeredBy -> Bool)
-> (TriggeredBy -> TriggeredBy -> Bool) -> Eq TriggeredBy
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: TriggeredBy -> TriggeredBy -> Bool
$c/= :: TriggeredBy -> TriggeredBy -> Bool
== :: TriggeredBy -> TriggeredBy -> Bool
$c== :: TriggeredBy -> TriggeredBy -> Bool
Prelude.Eq,
Eq TriggeredBy
Eq TriggeredBy
-> (TriggeredBy -> TriggeredBy -> Ordering)
-> (TriggeredBy -> TriggeredBy -> Bool)
-> (TriggeredBy -> TriggeredBy -> Bool)
-> (TriggeredBy -> TriggeredBy -> Bool)
-> (TriggeredBy -> TriggeredBy -> Bool)
-> (TriggeredBy -> TriggeredBy -> TriggeredBy)
-> (TriggeredBy -> TriggeredBy -> TriggeredBy)
-> Ord TriggeredBy
TriggeredBy -> TriggeredBy -> Bool
TriggeredBy -> TriggeredBy -> Ordering
TriggeredBy -> TriggeredBy -> TriggeredBy
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 :: TriggeredBy -> TriggeredBy -> TriggeredBy
$cmin :: TriggeredBy -> TriggeredBy -> TriggeredBy
max :: TriggeredBy -> TriggeredBy -> TriggeredBy
$cmax :: TriggeredBy -> TriggeredBy -> TriggeredBy
>= :: TriggeredBy -> TriggeredBy -> Bool
$c>= :: TriggeredBy -> TriggeredBy -> Bool
> :: TriggeredBy -> TriggeredBy -> Bool
$c> :: TriggeredBy -> TriggeredBy -> Bool
<= :: TriggeredBy -> TriggeredBy -> Bool
$c<= :: TriggeredBy -> TriggeredBy -> Bool
< :: TriggeredBy -> TriggeredBy -> Bool
$c< :: TriggeredBy -> TriggeredBy -> Bool
compare :: TriggeredBy -> TriggeredBy -> Ordering
$ccompare :: TriggeredBy -> TriggeredBy -> Ordering
$cp1Ord :: Eq TriggeredBy
Prelude.Ord,
(forall x. TriggeredBy -> Rep TriggeredBy x)
-> (forall x. Rep TriggeredBy x -> TriggeredBy)
-> Generic TriggeredBy
forall x. Rep TriggeredBy x -> TriggeredBy
forall x. TriggeredBy -> Rep TriggeredBy x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep TriggeredBy x -> TriggeredBy
$cfrom :: forall x. TriggeredBy -> Rep TriggeredBy x
Prelude.Generic
)
deriving newtype
( Int -> TriggeredBy -> Int
TriggeredBy -> Int
(Int -> TriggeredBy -> Int)
-> (TriggeredBy -> Int) -> Hashable TriggeredBy
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: TriggeredBy -> Int
$chash :: TriggeredBy -> Int
hashWithSalt :: Int -> TriggeredBy -> Int
$chashWithSalt :: Int -> TriggeredBy -> Int
Prelude.Hashable,
TriggeredBy -> ()
(TriggeredBy -> ()) -> NFData TriggeredBy
forall a. (a -> ()) -> NFData a
rnf :: TriggeredBy -> ()
$crnf :: TriggeredBy -> ()
Prelude.NFData,
Text -> Either String TriggeredBy
(Text -> Either String TriggeredBy) -> FromText TriggeredBy
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String TriggeredBy
$cfromText :: Text -> Either String TriggeredBy
Core.FromText,
TriggeredBy -> Text
(TriggeredBy -> Text) -> ToText TriggeredBy
forall a. (a -> Text) -> ToText a
toText :: TriggeredBy -> Text
$ctoText :: TriggeredBy -> Text
Core.ToText,
TriggeredBy -> ByteString
(TriggeredBy -> ByteString) -> ToByteString TriggeredBy
forall a. (a -> ByteString) -> ToByteString a
toBS :: TriggeredBy -> ByteString
$ctoBS :: TriggeredBy -> ByteString
Core.ToByteString,
TriggeredBy -> ByteStringBuilder
(TriggeredBy -> ByteStringBuilder) -> ToLog TriggeredBy
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: TriggeredBy -> ByteStringBuilder
$cbuild :: TriggeredBy -> ByteStringBuilder
Core.ToLog,
HeaderName -> TriggeredBy -> [Header]
(HeaderName -> TriggeredBy -> [Header]) -> ToHeader TriggeredBy
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> TriggeredBy -> [Header]
$ctoHeader :: HeaderName -> TriggeredBy -> [Header]
Core.ToHeader,
TriggeredBy -> QueryString
(TriggeredBy -> QueryString) -> ToQuery TriggeredBy
forall a. (a -> QueryString) -> ToQuery a
toQuery :: TriggeredBy -> QueryString
$ctoQuery :: TriggeredBy -> QueryString
Core.ToQuery,
Value -> Parser [TriggeredBy]
Value -> Parser TriggeredBy
(Value -> Parser TriggeredBy)
-> (Value -> Parser [TriggeredBy]) -> FromJSON TriggeredBy
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [TriggeredBy]
$cparseJSONList :: Value -> Parser [TriggeredBy]
parseJSON :: Value -> Parser TriggeredBy
$cparseJSON :: Value -> Parser TriggeredBy
Core.FromJSON,
FromJSONKeyFunction [TriggeredBy]
FromJSONKeyFunction TriggeredBy
FromJSONKeyFunction TriggeredBy
-> FromJSONKeyFunction [TriggeredBy] -> FromJSONKey TriggeredBy
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [TriggeredBy]
$cfromJSONKeyList :: FromJSONKeyFunction [TriggeredBy]
fromJSONKey :: FromJSONKeyFunction TriggeredBy
$cfromJSONKey :: FromJSONKeyFunction TriggeredBy
Core.FromJSONKey,
[TriggeredBy] -> Encoding
[TriggeredBy] -> Value
TriggeredBy -> Encoding
TriggeredBy -> Value
(TriggeredBy -> Value)
-> (TriggeredBy -> Encoding)
-> ([TriggeredBy] -> Value)
-> ([TriggeredBy] -> Encoding)
-> ToJSON TriggeredBy
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [TriggeredBy] -> Encoding
$ctoEncodingList :: [TriggeredBy] -> Encoding
toJSONList :: [TriggeredBy] -> Value
$ctoJSONList :: [TriggeredBy] -> Value
toEncoding :: TriggeredBy -> Encoding
$ctoEncoding :: TriggeredBy -> Encoding
toJSON :: TriggeredBy -> Value
$ctoJSON :: TriggeredBy -> Value
Core.ToJSON,
ToJSONKeyFunction [TriggeredBy]
ToJSONKeyFunction TriggeredBy
ToJSONKeyFunction TriggeredBy
-> ToJSONKeyFunction [TriggeredBy] -> ToJSONKey TriggeredBy
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [TriggeredBy]
$ctoJSONKeyList :: ToJSONKeyFunction [TriggeredBy]
toJSONKey :: ToJSONKeyFunction TriggeredBy
$ctoJSONKey :: ToJSONKeyFunction TriggeredBy
Core.ToJSONKey,
[Node] -> Either String TriggeredBy
([Node] -> Either String TriggeredBy) -> FromXML TriggeredBy
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String TriggeredBy
$cparseXML :: [Node] -> Either String TriggeredBy
Core.FromXML,
TriggeredBy -> XML
(TriggeredBy -> XML) -> ToXML TriggeredBy
forall a. (a -> XML) -> ToXML a
toXML :: TriggeredBy -> XML
$ctoXML :: TriggeredBy -> XML
Core.ToXML
)
pattern TriggeredBy_APPCONFIG :: TriggeredBy
pattern $bTriggeredBy_APPCONFIG :: TriggeredBy
$mTriggeredBy_APPCONFIG :: forall r. TriggeredBy -> (Void# -> r) -> (Void# -> r) -> r
TriggeredBy_APPCONFIG = TriggeredBy' "APPCONFIG"
pattern TriggeredBy_CLOUDWATCH_ALARM :: TriggeredBy
pattern $bTriggeredBy_CLOUDWATCH_ALARM :: TriggeredBy
$mTriggeredBy_CLOUDWATCH_ALARM :: forall r. TriggeredBy -> (Void# -> r) -> (Void# -> r) -> r
TriggeredBy_CLOUDWATCH_ALARM = TriggeredBy' "CLOUDWATCH_ALARM"
pattern TriggeredBy_INTERNAL_ERROR :: TriggeredBy
pattern $bTriggeredBy_INTERNAL_ERROR :: TriggeredBy
$mTriggeredBy_INTERNAL_ERROR :: forall r. TriggeredBy -> (Void# -> r) -> (Void# -> r) -> r
TriggeredBy_INTERNAL_ERROR = TriggeredBy' "INTERNAL_ERROR"
pattern TriggeredBy_USER :: TriggeredBy
pattern $bTriggeredBy_USER :: TriggeredBy
$mTriggeredBy_USER :: forall r. TriggeredBy -> (Void# -> r) -> (Void# -> r) -> r
TriggeredBy_USER = TriggeredBy' "USER"
{-# COMPLETE
TriggeredBy_APPCONFIG,
TriggeredBy_CLOUDWATCH_ALARM,
TriggeredBy_INTERNAL_ERROR,
TriggeredBy_USER,
TriggeredBy'
#-}