{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.EC2.Types.TransitGatewayAssociationState
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.EC2.Types.TransitGatewayAssociationState
  ( TransitGatewayAssociationState
      ( ..,
        TransitGatewayAssociationState_Associated,
        TransitGatewayAssociationState_Associating,
        TransitGatewayAssociationState_Disassociated,
        TransitGatewayAssociationState_Disassociating
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import Amazonka.EC2.Internal
import qualified Amazonka.Prelude as Prelude

newtype TransitGatewayAssociationState = TransitGatewayAssociationState'
  { TransitGatewayAssociationState -> Text
fromTransitGatewayAssociationState ::
      Data.Text
  }
  deriving stock
    ( Int -> TransitGatewayAssociationState -> ShowS
[TransitGatewayAssociationState] -> ShowS
TransitGatewayAssociationState -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [TransitGatewayAssociationState] -> ShowS
$cshowList :: [TransitGatewayAssociationState] -> ShowS
show :: TransitGatewayAssociationState -> String
$cshow :: TransitGatewayAssociationState -> String
showsPrec :: Int -> TransitGatewayAssociationState -> ShowS
$cshowsPrec :: Int -> TransitGatewayAssociationState -> ShowS
Prelude.Show,
      ReadPrec [TransitGatewayAssociationState]
ReadPrec TransitGatewayAssociationState
Int -> ReadS TransitGatewayAssociationState
ReadS [TransitGatewayAssociationState]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [TransitGatewayAssociationState]
$creadListPrec :: ReadPrec [TransitGatewayAssociationState]
readPrec :: ReadPrec TransitGatewayAssociationState
$creadPrec :: ReadPrec TransitGatewayAssociationState
readList :: ReadS [TransitGatewayAssociationState]
$creadList :: ReadS [TransitGatewayAssociationState]
readsPrec :: Int -> ReadS TransitGatewayAssociationState
$creadsPrec :: Int -> ReadS TransitGatewayAssociationState
Prelude.Read,
      TransitGatewayAssociationState
-> TransitGatewayAssociationState -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: TransitGatewayAssociationState
-> TransitGatewayAssociationState -> Bool
$c/= :: TransitGatewayAssociationState
-> TransitGatewayAssociationState -> Bool
== :: TransitGatewayAssociationState
-> TransitGatewayAssociationState -> Bool
$c== :: TransitGatewayAssociationState
-> TransitGatewayAssociationState -> Bool
Prelude.Eq,
      Eq TransitGatewayAssociationState
TransitGatewayAssociationState
-> TransitGatewayAssociationState -> Bool
TransitGatewayAssociationState
-> TransitGatewayAssociationState -> Ordering
TransitGatewayAssociationState
-> TransitGatewayAssociationState -> TransitGatewayAssociationState
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 :: TransitGatewayAssociationState
-> TransitGatewayAssociationState -> TransitGatewayAssociationState
$cmin :: TransitGatewayAssociationState
-> TransitGatewayAssociationState -> TransitGatewayAssociationState
max :: TransitGatewayAssociationState
-> TransitGatewayAssociationState -> TransitGatewayAssociationState
$cmax :: TransitGatewayAssociationState
-> TransitGatewayAssociationState -> TransitGatewayAssociationState
>= :: TransitGatewayAssociationState
-> TransitGatewayAssociationState -> Bool
$c>= :: TransitGatewayAssociationState
-> TransitGatewayAssociationState -> Bool
> :: TransitGatewayAssociationState
-> TransitGatewayAssociationState -> Bool
$c> :: TransitGatewayAssociationState
-> TransitGatewayAssociationState -> Bool
<= :: TransitGatewayAssociationState
-> TransitGatewayAssociationState -> Bool
$c<= :: TransitGatewayAssociationState
-> TransitGatewayAssociationState -> Bool
< :: TransitGatewayAssociationState
-> TransitGatewayAssociationState -> Bool
$c< :: TransitGatewayAssociationState
-> TransitGatewayAssociationState -> Bool
compare :: TransitGatewayAssociationState
-> TransitGatewayAssociationState -> Ordering
$ccompare :: TransitGatewayAssociationState
-> TransitGatewayAssociationState -> Ordering
Prelude.Ord,
      forall x.
Rep TransitGatewayAssociationState x
-> TransitGatewayAssociationState
forall x.
TransitGatewayAssociationState
-> Rep TransitGatewayAssociationState x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep TransitGatewayAssociationState x
-> TransitGatewayAssociationState
$cfrom :: forall x.
TransitGatewayAssociationState
-> Rep TransitGatewayAssociationState x
Prelude.Generic
    )
  deriving newtype
    ( Eq TransitGatewayAssociationState
Int -> TransitGatewayAssociationState -> Int
TransitGatewayAssociationState -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: TransitGatewayAssociationState -> Int
$chash :: TransitGatewayAssociationState -> Int
hashWithSalt :: Int -> TransitGatewayAssociationState -> Int
$chashWithSalt :: Int -> TransitGatewayAssociationState -> Int
Prelude.Hashable,
      TransitGatewayAssociationState -> ()
forall a. (a -> ()) -> NFData a
rnf :: TransitGatewayAssociationState -> ()
$crnf :: TransitGatewayAssociationState -> ()
Prelude.NFData,
      Text -> Either String TransitGatewayAssociationState
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String TransitGatewayAssociationState
$cfromText :: Text -> Either String TransitGatewayAssociationState
Data.FromText,
      TransitGatewayAssociationState -> Text
forall a. (a -> Text) -> ToText a
toText :: TransitGatewayAssociationState -> Text
$ctoText :: TransitGatewayAssociationState -> Text
Data.ToText,
      TransitGatewayAssociationState -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: TransitGatewayAssociationState -> ByteString
$ctoBS :: TransitGatewayAssociationState -> ByteString
Data.ToByteString,
      TransitGatewayAssociationState -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: TransitGatewayAssociationState -> ByteStringBuilder
$cbuild :: TransitGatewayAssociationState -> ByteStringBuilder
Data.ToLog,
      HeaderName -> TransitGatewayAssociationState -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> TransitGatewayAssociationState -> [Header]
$ctoHeader :: HeaderName -> TransitGatewayAssociationState -> [Header]
Data.ToHeader,
      TransitGatewayAssociationState -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: TransitGatewayAssociationState -> QueryString
$ctoQuery :: TransitGatewayAssociationState -> QueryString
Data.ToQuery,
      Value -> Parser [TransitGatewayAssociationState]
Value -> Parser TransitGatewayAssociationState
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [TransitGatewayAssociationState]
$cparseJSONList :: Value -> Parser [TransitGatewayAssociationState]
parseJSON :: Value -> Parser TransitGatewayAssociationState
$cparseJSON :: Value -> Parser TransitGatewayAssociationState
Data.FromJSON,
      FromJSONKeyFunction [TransitGatewayAssociationState]
FromJSONKeyFunction TransitGatewayAssociationState
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [TransitGatewayAssociationState]
$cfromJSONKeyList :: FromJSONKeyFunction [TransitGatewayAssociationState]
fromJSONKey :: FromJSONKeyFunction TransitGatewayAssociationState
$cfromJSONKey :: FromJSONKeyFunction TransitGatewayAssociationState
Data.FromJSONKey,
      [TransitGatewayAssociationState] -> Encoding
[TransitGatewayAssociationState] -> Value
TransitGatewayAssociationState -> Encoding
TransitGatewayAssociationState -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [TransitGatewayAssociationState] -> Encoding
$ctoEncodingList :: [TransitGatewayAssociationState] -> Encoding
toJSONList :: [TransitGatewayAssociationState] -> Value
$ctoJSONList :: [TransitGatewayAssociationState] -> Value
toEncoding :: TransitGatewayAssociationState -> Encoding
$ctoEncoding :: TransitGatewayAssociationState -> Encoding
toJSON :: TransitGatewayAssociationState -> Value
$ctoJSON :: TransitGatewayAssociationState -> Value
Data.ToJSON,
      ToJSONKeyFunction [TransitGatewayAssociationState]
ToJSONKeyFunction TransitGatewayAssociationState
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [TransitGatewayAssociationState]
$ctoJSONKeyList :: ToJSONKeyFunction [TransitGatewayAssociationState]
toJSONKey :: ToJSONKeyFunction TransitGatewayAssociationState
$ctoJSONKey :: ToJSONKeyFunction TransitGatewayAssociationState
Data.ToJSONKey,
      [Node] -> Either String TransitGatewayAssociationState
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String TransitGatewayAssociationState
$cparseXML :: [Node] -> Either String TransitGatewayAssociationState
Data.FromXML,
      TransitGatewayAssociationState -> XML
forall a. (a -> XML) -> ToXML a
toXML :: TransitGatewayAssociationState -> XML
$ctoXML :: TransitGatewayAssociationState -> XML
Data.ToXML
    )

pattern TransitGatewayAssociationState_Associated :: TransitGatewayAssociationState
pattern $bTransitGatewayAssociationState_Associated :: TransitGatewayAssociationState
$mTransitGatewayAssociationState_Associated :: forall {r}.
TransitGatewayAssociationState -> ((# #) -> r) -> ((# #) -> r) -> r
TransitGatewayAssociationState_Associated = TransitGatewayAssociationState' "associated"

pattern TransitGatewayAssociationState_Associating :: TransitGatewayAssociationState
pattern $bTransitGatewayAssociationState_Associating :: TransitGatewayAssociationState
$mTransitGatewayAssociationState_Associating :: forall {r}.
TransitGatewayAssociationState -> ((# #) -> r) -> ((# #) -> r) -> r
TransitGatewayAssociationState_Associating = TransitGatewayAssociationState' "associating"

pattern TransitGatewayAssociationState_Disassociated :: TransitGatewayAssociationState
pattern $bTransitGatewayAssociationState_Disassociated :: TransitGatewayAssociationState
$mTransitGatewayAssociationState_Disassociated :: forall {r}.
TransitGatewayAssociationState -> ((# #) -> r) -> ((# #) -> r) -> r
TransitGatewayAssociationState_Disassociated = TransitGatewayAssociationState' "disassociated"

pattern TransitGatewayAssociationState_Disassociating :: TransitGatewayAssociationState
pattern $bTransitGatewayAssociationState_Disassociating :: TransitGatewayAssociationState
$mTransitGatewayAssociationState_Disassociating :: forall {r}.
TransitGatewayAssociationState -> ((# #) -> r) -> ((# #) -> r) -> r
TransitGatewayAssociationState_Disassociating = TransitGatewayAssociationState' "disassociating"

{-# COMPLETE
  TransitGatewayAssociationState_Associated,
  TransitGatewayAssociationState_Associating,
  TransitGatewayAssociationState_Disassociated,
  TransitGatewayAssociationState_Disassociating,
  TransitGatewayAssociationState'
  #-}