{-# 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.OnFailure
( OnFailure
( ..,
OnFailure_DELETE,
OnFailure_DO_NOTHING,
OnFailure_ROLLBACK
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype OnFailure = OnFailure'
{ OnFailure -> Text
fromOnFailure ::
Core.Text
}
deriving stock
( Int -> OnFailure -> ShowS
[OnFailure] -> ShowS
OnFailure -> String
(Int -> OnFailure -> ShowS)
-> (OnFailure -> String)
-> ([OnFailure] -> ShowS)
-> Show OnFailure
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [OnFailure] -> ShowS
$cshowList :: [OnFailure] -> ShowS
show :: OnFailure -> String
$cshow :: OnFailure -> String
showsPrec :: Int -> OnFailure -> ShowS
$cshowsPrec :: Int -> OnFailure -> ShowS
Prelude.Show,
ReadPrec [OnFailure]
ReadPrec OnFailure
Int -> ReadS OnFailure
ReadS [OnFailure]
(Int -> ReadS OnFailure)
-> ReadS [OnFailure]
-> ReadPrec OnFailure
-> ReadPrec [OnFailure]
-> Read OnFailure
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [OnFailure]
$creadListPrec :: ReadPrec [OnFailure]
readPrec :: ReadPrec OnFailure
$creadPrec :: ReadPrec OnFailure
readList :: ReadS [OnFailure]
$creadList :: ReadS [OnFailure]
readsPrec :: Int -> ReadS OnFailure
$creadsPrec :: Int -> ReadS OnFailure
Prelude.Read,
OnFailure -> OnFailure -> Bool
(OnFailure -> OnFailure -> Bool)
-> (OnFailure -> OnFailure -> Bool) -> Eq OnFailure
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: OnFailure -> OnFailure -> Bool
$c/= :: OnFailure -> OnFailure -> Bool
== :: OnFailure -> OnFailure -> Bool
$c== :: OnFailure -> OnFailure -> Bool
Prelude.Eq,
Eq OnFailure
Eq OnFailure
-> (OnFailure -> OnFailure -> Ordering)
-> (OnFailure -> OnFailure -> Bool)
-> (OnFailure -> OnFailure -> Bool)
-> (OnFailure -> OnFailure -> Bool)
-> (OnFailure -> OnFailure -> Bool)
-> (OnFailure -> OnFailure -> OnFailure)
-> (OnFailure -> OnFailure -> OnFailure)
-> Ord OnFailure
OnFailure -> OnFailure -> Bool
OnFailure -> OnFailure -> Ordering
OnFailure -> OnFailure -> OnFailure
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 :: OnFailure -> OnFailure -> OnFailure
$cmin :: OnFailure -> OnFailure -> OnFailure
max :: OnFailure -> OnFailure -> OnFailure
$cmax :: OnFailure -> OnFailure -> OnFailure
>= :: OnFailure -> OnFailure -> Bool
$c>= :: OnFailure -> OnFailure -> Bool
> :: OnFailure -> OnFailure -> Bool
$c> :: OnFailure -> OnFailure -> Bool
<= :: OnFailure -> OnFailure -> Bool
$c<= :: OnFailure -> OnFailure -> Bool
< :: OnFailure -> OnFailure -> Bool
$c< :: OnFailure -> OnFailure -> Bool
compare :: OnFailure -> OnFailure -> Ordering
$ccompare :: OnFailure -> OnFailure -> Ordering
$cp1Ord :: Eq OnFailure
Prelude.Ord,
(forall x. OnFailure -> Rep OnFailure x)
-> (forall x. Rep OnFailure x -> OnFailure) -> Generic OnFailure
forall x. Rep OnFailure x -> OnFailure
forall x. OnFailure -> Rep OnFailure x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep OnFailure x -> OnFailure
$cfrom :: forall x. OnFailure -> Rep OnFailure x
Prelude.Generic
)
deriving newtype
( Int -> OnFailure -> Int
OnFailure -> Int
(Int -> OnFailure -> Int)
-> (OnFailure -> Int) -> Hashable OnFailure
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: OnFailure -> Int
$chash :: OnFailure -> Int
hashWithSalt :: Int -> OnFailure -> Int
$chashWithSalt :: Int -> OnFailure -> Int
Prelude.Hashable,
OnFailure -> ()
(OnFailure -> ()) -> NFData OnFailure
forall a. (a -> ()) -> NFData a
rnf :: OnFailure -> ()
$crnf :: OnFailure -> ()
Prelude.NFData,
Text -> Either String OnFailure
(Text -> Either String OnFailure) -> FromText OnFailure
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String OnFailure
$cfromText :: Text -> Either String OnFailure
Core.FromText,
OnFailure -> Text
(OnFailure -> Text) -> ToText OnFailure
forall a. (a -> Text) -> ToText a
toText :: OnFailure -> Text
$ctoText :: OnFailure -> Text
Core.ToText,
OnFailure -> ByteString
(OnFailure -> ByteString) -> ToByteString OnFailure
forall a. (a -> ByteString) -> ToByteString a
toBS :: OnFailure -> ByteString
$ctoBS :: OnFailure -> ByteString
Core.ToByteString,
OnFailure -> ByteStringBuilder
(OnFailure -> ByteStringBuilder) -> ToLog OnFailure
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: OnFailure -> ByteStringBuilder
$cbuild :: OnFailure -> ByteStringBuilder
Core.ToLog,
HeaderName -> OnFailure -> [Header]
(HeaderName -> OnFailure -> [Header]) -> ToHeader OnFailure
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> OnFailure -> [Header]
$ctoHeader :: HeaderName -> OnFailure -> [Header]
Core.ToHeader,
OnFailure -> QueryString
(OnFailure -> QueryString) -> ToQuery OnFailure
forall a. (a -> QueryString) -> ToQuery a
toQuery :: OnFailure -> QueryString
$ctoQuery :: OnFailure -> QueryString
Core.ToQuery,
Value -> Parser [OnFailure]
Value -> Parser OnFailure
(Value -> Parser OnFailure)
-> (Value -> Parser [OnFailure]) -> FromJSON OnFailure
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [OnFailure]
$cparseJSONList :: Value -> Parser [OnFailure]
parseJSON :: Value -> Parser OnFailure
$cparseJSON :: Value -> Parser OnFailure
Core.FromJSON,
FromJSONKeyFunction [OnFailure]
FromJSONKeyFunction OnFailure
FromJSONKeyFunction OnFailure
-> FromJSONKeyFunction [OnFailure] -> FromJSONKey OnFailure
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [OnFailure]
$cfromJSONKeyList :: FromJSONKeyFunction [OnFailure]
fromJSONKey :: FromJSONKeyFunction OnFailure
$cfromJSONKey :: FromJSONKeyFunction OnFailure
Core.FromJSONKey,
[OnFailure] -> Encoding
[OnFailure] -> Value
OnFailure -> Encoding
OnFailure -> Value
(OnFailure -> Value)
-> (OnFailure -> Encoding)
-> ([OnFailure] -> Value)
-> ([OnFailure] -> Encoding)
-> ToJSON OnFailure
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [OnFailure] -> Encoding
$ctoEncodingList :: [OnFailure] -> Encoding
toJSONList :: [OnFailure] -> Value
$ctoJSONList :: [OnFailure] -> Value
toEncoding :: OnFailure -> Encoding
$ctoEncoding :: OnFailure -> Encoding
toJSON :: OnFailure -> Value
$ctoJSON :: OnFailure -> Value
Core.ToJSON,
ToJSONKeyFunction [OnFailure]
ToJSONKeyFunction OnFailure
ToJSONKeyFunction OnFailure
-> ToJSONKeyFunction [OnFailure] -> ToJSONKey OnFailure
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [OnFailure]
$ctoJSONKeyList :: ToJSONKeyFunction [OnFailure]
toJSONKey :: ToJSONKeyFunction OnFailure
$ctoJSONKey :: ToJSONKeyFunction OnFailure
Core.ToJSONKey,
[Node] -> Either String OnFailure
([Node] -> Either String OnFailure) -> FromXML OnFailure
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String OnFailure
$cparseXML :: [Node] -> Either String OnFailure
Core.FromXML,
OnFailure -> XML
(OnFailure -> XML) -> ToXML OnFailure
forall a. (a -> XML) -> ToXML a
toXML :: OnFailure -> XML
$ctoXML :: OnFailure -> XML
Core.ToXML
)
pattern OnFailure_DELETE :: OnFailure
pattern $bOnFailure_DELETE :: OnFailure
$mOnFailure_DELETE :: forall r. OnFailure -> (Void# -> r) -> (Void# -> r) -> r
OnFailure_DELETE = OnFailure' "DELETE"
pattern OnFailure_DO_NOTHING :: OnFailure
pattern $bOnFailure_DO_NOTHING :: OnFailure
$mOnFailure_DO_NOTHING :: forall r. OnFailure -> (Void# -> r) -> (Void# -> r) -> r
OnFailure_DO_NOTHING = OnFailure' "DO_NOTHING"
pattern OnFailure_ROLLBACK :: OnFailure
pattern $bOnFailure_ROLLBACK :: OnFailure
$mOnFailure_ROLLBACK :: forall r. OnFailure -> (Void# -> r) -> (Void# -> r) -> r
OnFailure_ROLLBACK = OnFailure' "ROLLBACK"
{-# COMPLETE
OnFailure_DELETE,
OnFailure_DO_NOTHING,
OnFailure_ROLLBACK,
OnFailure'
#-}