{-# 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.TransitGatewayAttachmentResourceType
-- 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.TransitGatewayAttachmentResourceType
  ( TransitGatewayAttachmentResourceType
      ( ..,
        TransitGatewayAttachmentResourceType_Connect,
        TransitGatewayAttachmentResourceType_Direct_connect_gateway,
        TransitGatewayAttachmentResourceType_Peering,
        TransitGatewayAttachmentResourceType_Tgw_peering,
        TransitGatewayAttachmentResourceType_Vpc,
        TransitGatewayAttachmentResourceType_Vpn
      ),
  )
where

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

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

pattern TransitGatewayAttachmentResourceType_Connect :: TransitGatewayAttachmentResourceType
pattern $bTransitGatewayAttachmentResourceType_Connect :: TransitGatewayAttachmentResourceType
$mTransitGatewayAttachmentResourceType_Connect :: forall {r}.
TransitGatewayAttachmentResourceType
-> ((# #) -> r) -> ((# #) -> r) -> r
TransitGatewayAttachmentResourceType_Connect = TransitGatewayAttachmentResourceType' "connect"

pattern TransitGatewayAttachmentResourceType_Direct_connect_gateway :: TransitGatewayAttachmentResourceType
pattern $bTransitGatewayAttachmentResourceType_Direct_connect_gateway :: TransitGatewayAttachmentResourceType
$mTransitGatewayAttachmentResourceType_Direct_connect_gateway :: forall {r}.
TransitGatewayAttachmentResourceType
-> ((# #) -> r) -> ((# #) -> r) -> r
TransitGatewayAttachmentResourceType_Direct_connect_gateway = TransitGatewayAttachmentResourceType' "direct-connect-gateway"

pattern TransitGatewayAttachmentResourceType_Peering :: TransitGatewayAttachmentResourceType
pattern $bTransitGatewayAttachmentResourceType_Peering :: TransitGatewayAttachmentResourceType
$mTransitGatewayAttachmentResourceType_Peering :: forall {r}.
TransitGatewayAttachmentResourceType
-> ((# #) -> r) -> ((# #) -> r) -> r
TransitGatewayAttachmentResourceType_Peering = TransitGatewayAttachmentResourceType' "peering"

pattern TransitGatewayAttachmentResourceType_Tgw_peering :: TransitGatewayAttachmentResourceType
pattern $bTransitGatewayAttachmentResourceType_Tgw_peering :: TransitGatewayAttachmentResourceType
$mTransitGatewayAttachmentResourceType_Tgw_peering :: forall {r}.
TransitGatewayAttachmentResourceType
-> ((# #) -> r) -> ((# #) -> r) -> r
TransitGatewayAttachmentResourceType_Tgw_peering = TransitGatewayAttachmentResourceType' "tgw-peering"

pattern TransitGatewayAttachmentResourceType_Vpc :: TransitGatewayAttachmentResourceType
pattern $bTransitGatewayAttachmentResourceType_Vpc :: TransitGatewayAttachmentResourceType
$mTransitGatewayAttachmentResourceType_Vpc :: forall {r}.
TransitGatewayAttachmentResourceType
-> ((# #) -> r) -> ((# #) -> r) -> r
TransitGatewayAttachmentResourceType_Vpc = TransitGatewayAttachmentResourceType' "vpc"

pattern TransitGatewayAttachmentResourceType_Vpn :: TransitGatewayAttachmentResourceType
pattern $bTransitGatewayAttachmentResourceType_Vpn :: TransitGatewayAttachmentResourceType
$mTransitGatewayAttachmentResourceType_Vpn :: forall {r}.
TransitGatewayAttachmentResourceType
-> ((# #) -> r) -> ((# #) -> r) -> r
TransitGatewayAttachmentResourceType_Vpn = TransitGatewayAttachmentResourceType' "vpn"

{-# COMPLETE
  TransitGatewayAttachmentResourceType_Connect,
  TransitGatewayAttachmentResourceType_Direct_connect_gateway,
  TransitGatewayAttachmentResourceType_Peering,
  TransitGatewayAttachmentResourceType_Tgw_peering,
  TransitGatewayAttachmentResourceType_Vpc,
  TransitGatewayAttachmentResourceType_Vpn,
  TransitGatewayAttachmentResourceType'
  #-}