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