{-# 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.TransitGatewayState
( TransitGatewayState
( ..,
TransitGatewayState_Available,
TransitGatewayState_Deleted,
TransitGatewayState_Deleting,
TransitGatewayState_Modifying,
TransitGatewayState_Pending
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import Amazonka.EC2.Internal
import qualified Amazonka.Prelude as Prelude
newtype TransitGatewayState = TransitGatewayState'
{ TransitGatewayState -> Text
fromTransitGatewayState ::
Data.Text
}
deriving stock
( Int -> TransitGatewayState -> ShowS
[TransitGatewayState] -> ShowS
TransitGatewayState -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [TransitGatewayState] -> ShowS
$cshowList :: [TransitGatewayState] -> ShowS
show :: TransitGatewayState -> String
$cshow :: TransitGatewayState -> String
showsPrec :: Int -> TransitGatewayState -> ShowS
$cshowsPrec :: Int -> TransitGatewayState -> ShowS
Prelude.Show,
ReadPrec [TransitGatewayState]
ReadPrec TransitGatewayState
Int -> ReadS TransitGatewayState
ReadS [TransitGatewayState]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [TransitGatewayState]
$creadListPrec :: ReadPrec [TransitGatewayState]
readPrec :: ReadPrec TransitGatewayState
$creadPrec :: ReadPrec TransitGatewayState
readList :: ReadS [TransitGatewayState]
$creadList :: ReadS [TransitGatewayState]
readsPrec :: Int -> ReadS TransitGatewayState
$creadsPrec :: Int -> ReadS TransitGatewayState
Prelude.Read,
TransitGatewayState -> TransitGatewayState -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: TransitGatewayState -> TransitGatewayState -> Bool
$c/= :: TransitGatewayState -> TransitGatewayState -> Bool
== :: TransitGatewayState -> TransitGatewayState -> Bool
$c== :: TransitGatewayState -> TransitGatewayState -> Bool
Prelude.Eq,
Eq TransitGatewayState
TransitGatewayState -> TransitGatewayState -> Bool
TransitGatewayState -> TransitGatewayState -> Ordering
TransitGatewayState -> TransitGatewayState -> TransitGatewayState
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 :: TransitGatewayState -> TransitGatewayState -> TransitGatewayState
$cmin :: TransitGatewayState -> TransitGatewayState -> TransitGatewayState
max :: TransitGatewayState -> TransitGatewayState -> TransitGatewayState
$cmax :: TransitGatewayState -> TransitGatewayState -> TransitGatewayState
>= :: TransitGatewayState -> TransitGatewayState -> Bool
$c>= :: TransitGatewayState -> TransitGatewayState -> Bool
> :: TransitGatewayState -> TransitGatewayState -> Bool
$c> :: TransitGatewayState -> TransitGatewayState -> Bool
<= :: TransitGatewayState -> TransitGatewayState -> Bool
$c<= :: TransitGatewayState -> TransitGatewayState -> Bool
< :: TransitGatewayState -> TransitGatewayState -> Bool
$c< :: TransitGatewayState -> TransitGatewayState -> Bool
compare :: TransitGatewayState -> TransitGatewayState -> Ordering
$ccompare :: TransitGatewayState -> TransitGatewayState -> Ordering
Prelude.Ord,
forall x. Rep TransitGatewayState x -> TransitGatewayState
forall x. TransitGatewayState -> Rep TransitGatewayState x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep TransitGatewayState x -> TransitGatewayState
$cfrom :: forall x. TransitGatewayState -> Rep TransitGatewayState x
Prelude.Generic
)
deriving newtype
( Eq TransitGatewayState
Int -> TransitGatewayState -> Int
TransitGatewayState -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: TransitGatewayState -> Int
$chash :: TransitGatewayState -> Int
hashWithSalt :: Int -> TransitGatewayState -> Int
$chashWithSalt :: Int -> TransitGatewayState -> Int
Prelude.Hashable,
TransitGatewayState -> ()
forall a. (a -> ()) -> NFData a
rnf :: TransitGatewayState -> ()
$crnf :: TransitGatewayState -> ()
Prelude.NFData,
Text -> Either String TransitGatewayState
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String TransitGatewayState
$cfromText :: Text -> Either String TransitGatewayState
Data.FromText,
TransitGatewayState -> Text
forall a. (a -> Text) -> ToText a
toText :: TransitGatewayState -> Text
$ctoText :: TransitGatewayState -> Text
Data.ToText,
TransitGatewayState -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: TransitGatewayState -> ByteString
$ctoBS :: TransitGatewayState -> ByteString
Data.ToByteString,
TransitGatewayState -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: TransitGatewayState -> ByteStringBuilder
$cbuild :: TransitGatewayState -> ByteStringBuilder
Data.ToLog,
HeaderName -> TransitGatewayState -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> TransitGatewayState -> [Header]
$ctoHeader :: HeaderName -> TransitGatewayState -> [Header]
Data.ToHeader,
TransitGatewayState -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: TransitGatewayState -> QueryString
$ctoQuery :: TransitGatewayState -> QueryString
Data.ToQuery,
Value -> Parser [TransitGatewayState]
Value -> Parser TransitGatewayState
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [TransitGatewayState]
$cparseJSONList :: Value -> Parser [TransitGatewayState]
parseJSON :: Value -> Parser TransitGatewayState
$cparseJSON :: Value -> Parser TransitGatewayState
Data.FromJSON,
FromJSONKeyFunction [TransitGatewayState]
FromJSONKeyFunction TransitGatewayState
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [TransitGatewayState]
$cfromJSONKeyList :: FromJSONKeyFunction [TransitGatewayState]
fromJSONKey :: FromJSONKeyFunction TransitGatewayState
$cfromJSONKey :: FromJSONKeyFunction TransitGatewayState
Data.FromJSONKey,
[TransitGatewayState] -> Encoding
[TransitGatewayState] -> Value
TransitGatewayState -> Encoding
TransitGatewayState -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [TransitGatewayState] -> Encoding
$ctoEncodingList :: [TransitGatewayState] -> Encoding
toJSONList :: [TransitGatewayState] -> Value
$ctoJSONList :: [TransitGatewayState] -> Value
toEncoding :: TransitGatewayState -> Encoding
$ctoEncoding :: TransitGatewayState -> Encoding
toJSON :: TransitGatewayState -> Value
$ctoJSON :: TransitGatewayState -> Value
Data.ToJSON,
ToJSONKeyFunction [TransitGatewayState]
ToJSONKeyFunction TransitGatewayState
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [TransitGatewayState]
$ctoJSONKeyList :: ToJSONKeyFunction [TransitGatewayState]
toJSONKey :: ToJSONKeyFunction TransitGatewayState
$ctoJSONKey :: ToJSONKeyFunction TransitGatewayState
Data.ToJSONKey,
[Node] -> Either String TransitGatewayState
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String TransitGatewayState
$cparseXML :: [Node] -> Either String TransitGatewayState
Data.FromXML,
TransitGatewayState -> XML
forall a. (a -> XML) -> ToXML a
toXML :: TransitGatewayState -> XML
$ctoXML :: TransitGatewayState -> XML
Data.ToXML
)
pattern TransitGatewayState_Available :: TransitGatewayState
pattern $bTransitGatewayState_Available :: TransitGatewayState
$mTransitGatewayState_Available :: forall {r}.
TransitGatewayState -> ((# #) -> r) -> ((# #) -> r) -> r
TransitGatewayState_Available = TransitGatewayState' "available"
pattern TransitGatewayState_Deleted :: TransitGatewayState
pattern $bTransitGatewayState_Deleted :: TransitGatewayState
$mTransitGatewayState_Deleted :: forall {r}.
TransitGatewayState -> ((# #) -> r) -> ((# #) -> r) -> r
TransitGatewayState_Deleted = TransitGatewayState' "deleted"
pattern TransitGatewayState_Deleting :: TransitGatewayState
pattern $bTransitGatewayState_Deleting :: TransitGatewayState
$mTransitGatewayState_Deleting :: forall {r}.
TransitGatewayState -> ((# #) -> r) -> ((# #) -> r) -> r
TransitGatewayState_Deleting = TransitGatewayState' "deleting"
pattern TransitGatewayState_Modifying :: TransitGatewayState
pattern $bTransitGatewayState_Modifying :: TransitGatewayState
$mTransitGatewayState_Modifying :: forall {r}.
TransitGatewayState -> ((# #) -> r) -> ((# #) -> r) -> r
TransitGatewayState_Modifying = TransitGatewayState' "modifying"
pattern TransitGatewayState_Pending :: TransitGatewayState
pattern $bTransitGatewayState_Pending :: TransitGatewayState
$mTransitGatewayState_Pending :: forall {r}.
TransitGatewayState -> ((# #) -> r) -> ((# #) -> r) -> r
TransitGatewayState_Pending = TransitGatewayState' "pending"
{-# COMPLETE
TransitGatewayState_Available,
TransitGatewayState_Deleted,
TransitGatewayState_Deleting,
TransitGatewayState_Modifying,
TransitGatewayState_Pending,
TransitGatewayState'
#-}