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