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