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