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