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