{-# 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.ResourceStatus
( ResourceStatus
( ..,
ResourceStatus_CREATE_COMPLETE,
ResourceStatus_CREATE_FAILED,
ResourceStatus_CREATE_IN_PROGRESS,
ResourceStatus_DELETE_COMPLETE,
ResourceStatus_DELETE_FAILED,
ResourceStatus_DELETE_IN_PROGRESS,
ResourceStatus_DELETE_SKIPPED,
ResourceStatus_IMPORT_COMPLETE,
ResourceStatus_IMPORT_FAILED,
ResourceStatus_IMPORT_IN_PROGRESS,
ResourceStatus_IMPORT_ROLLBACK_COMPLETE,
ResourceStatus_IMPORT_ROLLBACK_FAILED,
ResourceStatus_IMPORT_ROLLBACK_IN_PROGRESS,
ResourceStatus_ROLLBACK_COMPLETE,
ResourceStatus_ROLLBACK_FAILED,
ResourceStatus_ROLLBACK_IN_PROGRESS,
ResourceStatus_UPDATE_COMPLETE,
ResourceStatus_UPDATE_FAILED,
ResourceStatus_UPDATE_IN_PROGRESS,
ResourceStatus_UPDATE_ROLLBACK_COMPLETE,
ResourceStatus_UPDATE_ROLLBACK_FAILED,
ResourceStatus_UPDATE_ROLLBACK_IN_PROGRESS
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype ResourceStatus = ResourceStatus'
{ ResourceStatus -> Text
fromResourceStatus ::
Core.Text
}
deriving stock
( Int -> ResourceStatus -> ShowS
[ResourceStatus] -> ShowS
ResourceStatus -> String
(Int -> ResourceStatus -> ShowS)
-> (ResourceStatus -> String)
-> ([ResourceStatus] -> ShowS)
-> Show ResourceStatus
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ResourceStatus] -> ShowS
$cshowList :: [ResourceStatus] -> ShowS
show :: ResourceStatus -> String
$cshow :: ResourceStatus -> String
showsPrec :: Int -> ResourceStatus -> ShowS
$cshowsPrec :: Int -> ResourceStatus -> ShowS
Prelude.Show,
ReadPrec [ResourceStatus]
ReadPrec ResourceStatus
Int -> ReadS ResourceStatus
ReadS [ResourceStatus]
(Int -> ReadS ResourceStatus)
-> ReadS [ResourceStatus]
-> ReadPrec ResourceStatus
-> ReadPrec [ResourceStatus]
-> Read ResourceStatus
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ResourceStatus]
$creadListPrec :: ReadPrec [ResourceStatus]
readPrec :: ReadPrec ResourceStatus
$creadPrec :: ReadPrec ResourceStatus
readList :: ReadS [ResourceStatus]
$creadList :: ReadS [ResourceStatus]
readsPrec :: Int -> ReadS ResourceStatus
$creadsPrec :: Int -> ReadS ResourceStatus
Prelude.Read,
ResourceStatus -> ResourceStatus -> Bool
(ResourceStatus -> ResourceStatus -> Bool)
-> (ResourceStatus -> ResourceStatus -> Bool) -> Eq ResourceStatus
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ResourceStatus -> ResourceStatus -> Bool
$c/= :: ResourceStatus -> ResourceStatus -> Bool
== :: ResourceStatus -> ResourceStatus -> Bool
$c== :: ResourceStatus -> ResourceStatus -> Bool
Prelude.Eq,
Eq ResourceStatus
Eq ResourceStatus
-> (ResourceStatus -> ResourceStatus -> Ordering)
-> (ResourceStatus -> ResourceStatus -> Bool)
-> (ResourceStatus -> ResourceStatus -> Bool)
-> (ResourceStatus -> ResourceStatus -> Bool)
-> (ResourceStatus -> ResourceStatus -> Bool)
-> (ResourceStatus -> ResourceStatus -> ResourceStatus)
-> (ResourceStatus -> ResourceStatus -> ResourceStatus)
-> Ord ResourceStatus
ResourceStatus -> ResourceStatus -> Bool
ResourceStatus -> ResourceStatus -> Ordering
ResourceStatus -> ResourceStatus -> ResourceStatus
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 :: ResourceStatus -> ResourceStatus -> ResourceStatus
$cmin :: ResourceStatus -> ResourceStatus -> ResourceStatus
max :: ResourceStatus -> ResourceStatus -> ResourceStatus
$cmax :: ResourceStatus -> ResourceStatus -> ResourceStatus
>= :: ResourceStatus -> ResourceStatus -> Bool
$c>= :: ResourceStatus -> ResourceStatus -> Bool
> :: ResourceStatus -> ResourceStatus -> Bool
$c> :: ResourceStatus -> ResourceStatus -> Bool
<= :: ResourceStatus -> ResourceStatus -> Bool
$c<= :: ResourceStatus -> ResourceStatus -> Bool
< :: ResourceStatus -> ResourceStatus -> Bool
$c< :: ResourceStatus -> ResourceStatus -> Bool
compare :: ResourceStatus -> ResourceStatus -> Ordering
$ccompare :: ResourceStatus -> ResourceStatus -> Ordering
$cp1Ord :: Eq ResourceStatus
Prelude.Ord,
(forall x. ResourceStatus -> Rep ResourceStatus x)
-> (forall x. Rep ResourceStatus x -> ResourceStatus)
-> Generic ResourceStatus
forall x. Rep ResourceStatus x -> ResourceStatus
forall x. ResourceStatus -> Rep ResourceStatus x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ResourceStatus x -> ResourceStatus
$cfrom :: forall x. ResourceStatus -> Rep ResourceStatus x
Prelude.Generic
)
deriving newtype
( Int -> ResourceStatus -> Int
ResourceStatus -> Int
(Int -> ResourceStatus -> Int)
-> (ResourceStatus -> Int) -> Hashable ResourceStatus
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: ResourceStatus -> Int
$chash :: ResourceStatus -> Int
hashWithSalt :: Int -> ResourceStatus -> Int
$chashWithSalt :: Int -> ResourceStatus -> Int
Prelude.Hashable,
ResourceStatus -> ()
(ResourceStatus -> ()) -> NFData ResourceStatus
forall a. (a -> ()) -> NFData a
rnf :: ResourceStatus -> ()
$crnf :: ResourceStatus -> ()
Prelude.NFData,
Text -> Either String ResourceStatus
(Text -> Either String ResourceStatus) -> FromText ResourceStatus
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ResourceStatus
$cfromText :: Text -> Either String ResourceStatus
Core.FromText,
ResourceStatus -> Text
(ResourceStatus -> Text) -> ToText ResourceStatus
forall a. (a -> Text) -> ToText a
toText :: ResourceStatus -> Text
$ctoText :: ResourceStatus -> Text
Core.ToText,
ResourceStatus -> ByteString
(ResourceStatus -> ByteString) -> ToByteString ResourceStatus
forall a. (a -> ByteString) -> ToByteString a
toBS :: ResourceStatus -> ByteString
$ctoBS :: ResourceStatus -> ByteString
Core.ToByteString,
ResourceStatus -> ByteStringBuilder
(ResourceStatus -> ByteStringBuilder) -> ToLog ResourceStatus
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ResourceStatus -> ByteStringBuilder
$cbuild :: ResourceStatus -> ByteStringBuilder
Core.ToLog,
HeaderName -> ResourceStatus -> [Header]
(HeaderName -> ResourceStatus -> [Header])
-> ToHeader ResourceStatus
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ResourceStatus -> [Header]
$ctoHeader :: HeaderName -> ResourceStatus -> [Header]
Core.ToHeader,
ResourceStatus -> QueryString
(ResourceStatus -> QueryString) -> ToQuery ResourceStatus
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ResourceStatus -> QueryString
$ctoQuery :: ResourceStatus -> QueryString
Core.ToQuery,
Value -> Parser [ResourceStatus]
Value -> Parser ResourceStatus
(Value -> Parser ResourceStatus)
-> (Value -> Parser [ResourceStatus]) -> FromJSON ResourceStatus
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [ResourceStatus]
$cparseJSONList :: Value -> Parser [ResourceStatus]
parseJSON :: Value -> Parser ResourceStatus
$cparseJSON :: Value -> Parser ResourceStatus
Core.FromJSON,
FromJSONKeyFunction [ResourceStatus]
FromJSONKeyFunction ResourceStatus
FromJSONKeyFunction ResourceStatus
-> FromJSONKeyFunction [ResourceStatus]
-> FromJSONKey ResourceStatus
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ResourceStatus]
$cfromJSONKeyList :: FromJSONKeyFunction [ResourceStatus]
fromJSONKey :: FromJSONKeyFunction ResourceStatus
$cfromJSONKey :: FromJSONKeyFunction ResourceStatus
Core.FromJSONKey,
[ResourceStatus] -> Encoding
[ResourceStatus] -> Value
ResourceStatus -> Encoding
ResourceStatus -> Value
(ResourceStatus -> Value)
-> (ResourceStatus -> Encoding)
-> ([ResourceStatus] -> Value)
-> ([ResourceStatus] -> Encoding)
-> ToJSON ResourceStatus
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [ResourceStatus] -> Encoding
$ctoEncodingList :: [ResourceStatus] -> Encoding
toJSONList :: [ResourceStatus] -> Value
$ctoJSONList :: [ResourceStatus] -> Value
toEncoding :: ResourceStatus -> Encoding
$ctoEncoding :: ResourceStatus -> Encoding
toJSON :: ResourceStatus -> Value
$ctoJSON :: ResourceStatus -> Value
Core.ToJSON,
ToJSONKeyFunction [ResourceStatus]
ToJSONKeyFunction ResourceStatus
ToJSONKeyFunction ResourceStatus
-> ToJSONKeyFunction [ResourceStatus] -> ToJSONKey ResourceStatus
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ResourceStatus]
$ctoJSONKeyList :: ToJSONKeyFunction [ResourceStatus]
toJSONKey :: ToJSONKeyFunction ResourceStatus
$ctoJSONKey :: ToJSONKeyFunction ResourceStatus
Core.ToJSONKey,
[Node] -> Either String ResourceStatus
([Node] -> Either String ResourceStatus) -> FromXML ResourceStatus
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ResourceStatus
$cparseXML :: [Node] -> Either String ResourceStatus
Core.FromXML,
ResourceStatus -> XML
(ResourceStatus -> XML) -> ToXML ResourceStatus
forall a. (a -> XML) -> ToXML a
toXML :: ResourceStatus -> XML
$ctoXML :: ResourceStatus -> XML
Core.ToXML
)
pattern ResourceStatus_CREATE_COMPLETE :: ResourceStatus
pattern $bResourceStatus_CREATE_COMPLETE :: ResourceStatus
$mResourceStatus_CREATE_COMPLETE :: forall r. ResourceStatus -> (Void# -> r) -> (Void# -> r) -> r
ResourceStatus_CREATE_COMPLETE = ResourceStatus' "CREATE_COMPLETE"
pattern ResourceStatus_CREATE_FAILED :: ResourceStatus
pattern $bResourceStatus_CREATE_FAILED :: ResourceStatus
$mResourceStatus_CREATE_FAILED :: forall r. ResourceStatus -> (Void# -> r) -> (Void# -> r) -> r
ResourceStatus_CREATE_FAILED = ResourceStatus' "CREATE_FAILED"
pattern ResourceStatus_CREATE_IN_PROGRESS :: ResourceStatus
pattern $bResourceStatus_CREATE_IN_PROGRESS :: ResourceStatus
$mResourceStatus_CREATE_IN_PROGRESS :: forall r. ResourceStatus -> (Void# -> r) -> (Void# -> r) -> r
ResourceStatus_CREATE_IN_PROGRESS = ResourceStatus' "CREATE_IN_PROGRESS"
pattern ResourceStatus_DELETE_COMPLETE :: ResourceStatus
pattern $bResourceStatus_DELETE_COMPLETE :: ResourceStatus
$mResourceStatus_DELETE_COMPLETE :: forall r. ResourceStatus -> (Void# -> r) -> (Void# -> r) -> r
ResourceStatus_DELETE_COMPLETE = ResourceStatus' "DELETE_COMPLETE"
pattern ResourceStatus_DELETE_FAILED :: ResourceStatus
pattern $bResourceStatus_DELETE_FAILED :: ResourceStatus
$mResourceStatus_DELETE_FAILED :: forall r. ResourceStatus -> (Void# -> r) -> (Void# -> r) -> r
ResourceStatus_DELETE_FAILED = ResourceStatus' "DELETE_FAILED"
pattern ResourceStatus_DELETE_IN_PROGRESS :: ResourceStatus
pattern $bResourceStatus_DELETE_IN_PROGRESS :: ResourceStatus
$mResourceStatus_DELETE_IN_PROGRESS :: forall r. ResourceStatus -> (Void# -> r) -> (Void# -> r) -> r
ResourceStatus_DELETE_IN_PROGRESS = ResourceStatus' "DELETE_IN_PROGRESS"
pattern ResourceStatus_DELETE_SKIPPED :: ResourceStatus
pattern $bResourceStatus_DELETE_SKIPPED :: ResourceStatus
$mResourceStatus_DELETE_SKIPPED :: forall r. ResourceStatus -> (Void# -> r) -> (Void# -> r) -> r
ResourceStatus_DELETE_SKIPPED = ResourceStatus' "DELETE_SKIPPED"
pattern ResourceStatus_IMPORT_COMPLETE :: ResourceStatus
pattern $bResourceStatus_IMPORT_COMPLETE :: ResourceStatus
$mResourceStatus_IMPORT_COMPLETE :: forall r. ResourceStatus -> (Void# -> r) -> (Void# -> r) -> r
ResourceStatus_IMPORT_COMPLETE = ResourceStatus' "IMPORT_COMPLETE"
pattern ResourceStatus_IMPORT_FAILED :: ResourceStatus
pattern $bResourceStatus_IMPORT_FAILED :: ResourceStatus
$mResourceStatus_IMPORT_FAILED :: forall r. ResourceStatus -> (Void# -> r) -> (Void# -> r) -> r
ResourceStatus_IMPORT_FAILED = ResourceStatus' "IMPORT_FAILED"
pattern ResourceStatus_IMPORT_IN_PROGRESS :: ResourceStatus
pattern $bResourceStatus_IMPORT_IN_PROGRESS :: ResourceStatus
$mResourceStatus_IMPORT_IN_PROGRESS :: forall r. ResourceStatus -> (Void# -> r) -> (Void# -> r) -> r
ResourceStatus_IMPORT_IN_PROGRESS = ResourceStatus' "IMPORT_IN_PROGRESS"
pattern ResourceStatus_IMPORT_ROLLBACK_COMPLETE :: ResourceStatus
pattern $bResourceStatus_IMPORT_ROLLBACK_COMPLETE :: ResourceStatus
$mResourceStatus_IMPORT_ROLLBACK_COMPLETE :: forall r. ResourceStatus -> (Void# -> r) -> (Void# -> r) -> r
ResourceStatus_IMPORT_ROLLBACK_COMPLETE = ResourceStatus' "IMPORT_ROLLBACK_COMPLETE"
pattern ResourceStatus_IMPORT_ROLLBACK_FAILED :: ResourceStatus
pattern $bResourceStatus_IMPORT_ROLLBACK_FAILED :: ResourceStatus
$mResourceStatus_IMPORT_ROLLBACK_FAILED :: forall r. ResourceStatus -> (Void# -> r) -> (Void# -> r) -> r
ResourceStatus_IMPORT_ROLLBACK_FAILED = ResourceStatus' "IMPORT_ROLLBACK_FAILED"
pattern ResourceStatus_IMPORT_ROLLBACK_IN_PROGRESS :: ResourceStatus
pattern $bResourceStatus_IMPORT_ROLLBACK_IN_PROGRESS :: ResourceStatus
$mResourceStatus_IMPORT_ROLLBACK_IN_PROGRESS :: forall r. ResourceStatus -> (Void# -> r) -> (Void# -> r) -> r
ResourceStatus_IMPORT_ROLLBACK_IN_PROGRESS = ResourceStatus' "IMPORT_ROLLBACK_IN_PROGRESS"
pattern ResourceStatus_ROLLBACK_COMPLETE :: ResourceStatus
pattern $bResourceStatus_ROLLBACK_COMPLETE :: ResourceStatus
$mResourceStatus_ROLLBACK_COMPLETE :: forall r. ResourceStatus -> (Void# -> r) -> (Void# -> r) -> r
ResourceStatus_ROLLBACK_COMPLETE = ResourceStatus' "ROLLBACK_COMPLETE"
pattern ResourceStatus_ROLLBACK_FAILED :: ResourceStatus
pattern $bResourceStatus_ROLLBACK_FAILED :: ResourceStatus
$mResourceStatus_ROLLBACK_FAILED :: forall r. ResourceStatus -> (Void# -> r) -> (Void# -> r) -> r
ResourceStatus_ROLLBACK_FAILED = ResourceStatus' "ROLLBACK_FAILED"
pattern ResourceStatus_ROLLBACK_IN_PROGRESS :: ResourceStatus
pattern $bResourceStatus_ROLLBACK_IN_PROGRESS :: ResourceStatus
$mResourceStatus_ROLLBACK_IN_PROGRESS :: forall r. ResourceStatus -> (Void# -> r) -> (Void# -> r) -> r
ResourceStatus_ROLLBACK_IN_PROGRESS = ResourceStatus' "ROLLBACK_IN_PROGRESS"
pattern ResourceStatus_UPDATE_COMPLETE :: ResourceStatus
pattern $bResourceStatus_UPDATE_COMPLETE :: ResourceStatus
$mResourceStatus_UPDATE_COMPLETE :: forall r. ResourceStatus -> (Void# -> r) -> (Void# -> r) -> r
ResourceStatus_UPDATE_COMPLETE = ResourceStatus' "UPDATE_COMPLETE"
pattern ResourceStatus_UPDATE_FAILED :: ResourceStatus
pattern $bResourceStatus_UPDATE_FAILED :: ResourceStatus
$mResourceStatus_UPDATE_FAILED :: forall r. ResourceStatus -> (Void# -> r) -> (Void# -> r) -> r
ResourceStatus_UPDATE_FAILED = ResourceStatus' "UPDATE_FAILED"
pattern ResourceStatus_UPDATE_IN_PROGRESS :: ResourceStatus
pattern $bResourceStatus_UPDATE_IN_PROGRESS :: ResourceStatus
$mResourceStatus_UPDATE_IN_PROGRESS :: forall r. ResourceStatus -> (Void# -> r) -> (Void# -> r) -> r
ResourceStatus_UPDATE_IN_PROGRESS = ResourceStatus' "UPDATE_IN_PROGRESS"
pattern ResourceStatus_UPDATE_ROLLBACK_COMPLETE :: ResourceStatus
pattern $bResourceStatus_UPDATE_ROLLBACK_COMPLETE :: ResourceStatus
$mResourceStatus_UPDATE_ROLLBACK_COMPLETE :: forall r. ResourceStatus -> (Void# -> r) -> (Void# -> r) -> r
ResourceStatus_UPDATE_ROLLBACK_COMPLETE = ResourceStatus' "UPDATE_ROLLBACK_COMPLETE"
pattern ResourceStatus_UPDATE_ROLLBACK_FAILED :: ResourceStatus
pattern $bResourceStatus_UPDATE_ROLLBACK_FAILED :: ResourceStatus
$mResourceStatus_UPDATE_ROLLBACK_FAILED :: forall r. ResourceStatus -> (Void# -> r) -> (Void# -> r) -> r
ResourceStatus_UPDATE_ROLLBACK_FAILED = ResourceStatus' "UPDATE_ROLLBACK_FAILED"
pattern ResourceStatus_UPDATE_ROLLBACK_IN_PROGRESS :: ResourceStatus
pattern $bResourceStatus_UPDATE_ROLLBACK_IN_PROGRESS :: ResourceStatus
$mResourceStatus_UPDATE_ROLLBACK_IN_PROGRESS :: forall r. ResourceStatus -> (Void# -> r) -> (Void# -> r) -> r
ResourceStatus_UPDATE_ROLLBACK_IN_PROGRESS = ResourceStatus' "UPDATE_ROLLBACK_IN_PROGRESS"
{-# COMPLETE
ResourceStatus_CREATE_COMPLETE,
ResourceStatus_CREATE_FAILED,
ResourceStatus_CREATE_IN_PROGRESS,
ResourceStatus_DELETE_COMPLETE,
ResourceStatus_DELETE_FAILED,
ResourceStatus_DELETE_IN_PROGRESS,
ResourceStatus_DELETE_SKIPPED,
ResourceStatus_IMPORT_COMPLETE,
ResourceStatus_IMPORT_FAILED,
ResourceStatus_IMPORT_IN_PROGRESS,
ResourceStatus_IMPORT_ROLLBACK_COMPLETE,
ResourceStatus_IMPORT_ROLLBACK_FAILED,
ResourceStatus_IMPORT_ROLLBACK_IN_PROGRESS,
ResourceStatus_ROLLBACK_COMPLETE,
ResourceStatus_ROLLBACK_FAILED,
ResourceStatus_ROLLBACK_IN_PROGRESS,
ResourceStatus_UPDATE_COMPLETE,
ResourceStatus_UPDATE_FAILED,
ResourceStatus_UPDATE_IN_PROGRESS,
ResourceStatus_UPDATE_ROLLBACK_COMPLETE,
ResourceStatus_UPDATE_ROLLBACK_FAILED,
ResourceStatus_UPDATE_ROLLBACK_IN_PROGRESS,
ResourceStatus'
#-}