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