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