{-# 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.DirectConnect.Types.DirectConnectGatewayAttachmentType
-- 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.DirectConnect.Types.DirectConnectGatewayAttachmentType
  ( DirectConnectGatewayAttachmentType
      ( ..,
        DirectConnectGatewayAttachmentType_PrivateVirtualInterface,
        DirectConnectGatewayAttachmentType_TransitVirtualInterface
      ),
  )
where

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

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

pattern DirectConnectGatewayAttachmentType_PrivateVirtualInterface :: DirectConnectGatewayAttachmentType
pattern $bDirectConnectGatewayAttachmentType_PrivateVirtualInterface :: DirectConnectGatewayAttachmentType
$mDirectConnectGatewayAttachmentType_PrivateVirtualInterface :: forall {r}.
DirectConnectGatewayAttachmentType
-> ((# #) -> r) -> ((# #) -> r) -> r
DirectConnectGatewayAttachmentType_PrivateVirtualInterface = DirectConnectGatewayAttachmentType' "PrivateVirtualInterface"

pattern DirectConnectGatewayAttachmentType_TransitVirtualInterface :: DirectConnectGatewayAttachmentType
pattern $bDirectConnectGatewayAttachmentType_TransitVirtualInterface :: DirectConnectGatewayAttachmentType
$mDirectConnectGatewayAttachmentType_TransitVirtualInterface :: forall {r}.
DirectConnectGatewayAttachmentType
-> ((# #) -> r) -> ((# #) -> r) -> r
DirectConnectGatewayAttachmentType_TransitVirtualInterface = DirectConnectGatewayAttachmentType' "TransitVirtualInterface"

{-# COMPLETE
  DirectConnectGatewayAttachmentType_PrivateVirtualInterface,
  DirectConnectGatewayAttachmentType_TransitVirtualInterface,
  DirectConnectGatewayAttachmentType'
  #-}