{-# 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-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- 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.Prelude as Prelude

newtype DirectConnectGatewayAttachmentType = DirectConnectGatewayAttachmentType'
  { DirectConnectGatewayAttachmentType -> Text
fromDirectConnectGatewayAttachmentType ::
      Core.Text
  }
  deriving stock
    ( Int -> DirectConnectGatewayAttachmentType -> ShowS
[DirectConnectGatewayAttachmentType] -> ShowS
DirectConnectGatewayAttachmentType -> String
(Int -> DirectConnectGatewayAttachmentType -> ShowS)
-> (DirectConnectGatewayAttachmentType -> String)
-> ([DirectConnectGatewayAttachmentType] -> ShowS)
-> Show DirectConnectGatewayAttachmentType
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]
(Int -> ReadS DirectConnectGatewayAttachmentType)
-> ReadS [DirectConnectGatewayAttachmentType]
-> ReadPrec DirectConnectGatewayAttachmentType
-> ReadPrec [DirectConnectGatewayAttachmentType]
-> Read 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
(DirectConnectGatewayAttachmentType
 -> DirectConnectGatewayAttachmentType -> Bool)
-> (DirectConnectGatewayAttachmentType
    -> DirectConnectGatewayAttachmentType -> Bool)
-> Eq DirectConnectGatewayAttachmentType
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
Eq DirectConnectGatewayAttachmentType
-> (DirectConnectGatewayAttachmentType
    -> DirectConnectGatewayAttachmentType -> Ordering)
-> (DirectConnectGatewayAttachmentType
    -> DirectConnectGatewayAttachmentType -> Bool)
-> (DirectConnectGatewayAttachmentType
    -> DirectConnectGatewayAttachmentType -> Bool)
-> (DirectConnectGatewayAttachmentType
    -> DirectConnectGatewayAttachmentType -> Bool)
-> (DirectConnectGatewayAttachmentType
    -> DirectConnectGatewayAttachmentType -> Bool)
-> (DirectConnectGatewayAttachmentType
    -> DirectConnectGatewayAttachmentType
    -> DirectConnectGatewayAttachmentType)
-> (DirectConnectGatewayAttachmentType
    -> DirectConnectGatewayAttachmentType
    -> DirectConnectGatewayAttachmentType)
-> Ord 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
$cp1Ord :: Eq DirectConnectGatewayAttachmentType
Prelude.Ord,
      (forall x.
 DirectConnectGatewayAttachmentType
 -> Rep DirectConnectGatewayAttachmentType x)
-> (forall x.
    Rep DirectConnectGatewayAttachmentType x
    -> DirectConnectGatewayAttachmentType)
-> Generic DirectConnectGatewayAttachmentType
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
    ( Int -> DirectConnectGatewayAttachmentType -> Int
DirectConnectGatewayAttachmentType -> Int
(Int -> DirectConnectGatewayAttachmentType -> Int)
-> (DirectConnectGatewayAttachmentType -> Int)
-> Hashable DirectConnectGatewayAttachmentType
forall 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 -> ()
(DirectConnectGatewayAttachmentType -> ())
-> NFData DirectConnectGatewayAttachmentType
forall a. (a -> ()) -> NFData a
rnf :: DirectConnectGatewayAttachmentType -> ()
$crnf :: DirectConnectGatewayAttachmentType -> ()
Prelude.NFData,
      Text -> Either String DirectConnectGatewayAttachmentType
(Text -> Either String DirectConnectGatewayAttachmentType)
-> FromText DirectConnectGatewayAttachmentType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String DirectConnectGatewayAttachmentType
$cfromText :: Text -> Either String DirectConnectGatewayAttachmentType
Core.FromText,
      DirectConnectGatewayAttachmentType -> Text
(DirectConnectGatewayAttachmentType -> Text)
-> ToText DirectConnectGatewayAttachmentType
forall a. (a -> Text) -> ToText a
toText :: DirectConnectGatewayAttachmentType -> Text
$ctoText :: DirectConnectGatewayAttachmentType -> Text
Core.ToText,
      DirectConnectGatewayAttachmentType -> ByteString
(DirectConnectGatewayAttachmentType -> ByteString)
-> ToByteString DirectConnectGatewayAttachmentType
forall a. (a -> ByteString) -> ToByteString a
toBS :: DirectConnectGatewayAttachmentType -> ByteString
$ctoBS :: DirectConnectGatewayAttachmentType -> ByteString
Core.ToByteString,
      DirectConnectGatewayAttachmentType -> ByteStringBuilder
(DirectConnectGatewayAttachmentType -> ByteStringBuilder)
-> ToLog DirectConnectGatewayAttachmentType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: DirectConnectGatewayAttachmentType -> ByteStringBuilder
$cbuild :: DirectConnectGatewayAttachmentType -> ByteStringBuilder
Core.ToLog,
      HeaderName -> DirectConnectGatewayAttachmentType -> [Header]
(HeaderName -> DirectConnectGatewayAttachmentType -> [Header])
-> ToHeader DirectConnectGatewayAttachmentType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> DirectConnectGatewayAttachmentType -> [Header]
$ctoHeader :: HeaderName -> DirectConnectGatewayAttachmentType -> [Header]
Core.ToHeader,
      DirectConnectGatewayAttachmentType -> QueryString
(DirectConnectGatewayAttachmentType -> QueryString)
-> ToQuery DirectConnectGatewayAttachmentType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: DirectConnectGatewayAttachmentType -> QueryString
$ctoQuery :: DirectConnectGatewayAttachmentType -> QueryString
Core.ToQuery,
      Value -> Parser [DirectConnectGatewayAttachmentType]
Value -> Parser DirectConnectGatewayAttachmentType
(Value -> Parser DirectConnectGatewayAttachmentType)
-> (Value -> Parser [DirectConnectGatewayAttachmentType])
-> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [DirectConnectGatewayAttachmentType]
FromJSONKeyFunction DirectConnectGatewayAttachmentType
FromJSONKeyFunction DirectConnectGatewayAttachmentType
-> FromJSONKeyFunction [DirectConnectGatewayAttachmentType]
-> FromJSONKey DirectConnectGatewayAttachmentType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [DirectConnectGatewayAttachmentType]
$cfromJSONKeyList :: FromJSONKeyFunction [DirectConnectGatewayAttachmentType]
fromJSONKey :: FromJSONKeyFunction DirectConnectGatewayAttachmentType
$cfromJSONKey :: FromJSONKeyFunction DirectConnectGatewayAttachmentType
Core.FromJSONKey,
      [DirectConnectGatewayAttachmentType] -> Encoding
[DirectConnectGatewayAttachmentType] -> Value
DirectConnectGatewayAttachmentType -> Encoding
DirectConnectGatewayAttachmentType -> Value
(DirectConnectGatewayAttachmentType -> Value)
-> (DirectConnectGatewayAttachmentType -> Encoding)
-> ([DirectConnectGatewayAttachmentType] -> Value)
-> ([DirectConnectGatewayAttachmentType] -> Encoding)
-> ToJSON DirectConnectGatewayAttachmentType
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
Core.ToJSON,
      ToJSONKeyFunction [DirectConnectGatewayAttachmentType]
ToJSONKeyFunction DirectConnectGatewayAttachmentType
ToJSONKeyFunction DirectConnectGatewayAttachmentType
-> ToJSONKeyFunction [DirectConnectGatewayAttachmentType]
-> ToJSONKey DirectConnectGatewayAttachmentType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [DirectConnectGatewayAttachmentType]
$ctoJSONKeyList :: ToJSONKeyFunction [DirectConnectGatewayAttachmentType]
toJSONKey :: ToJSONKeyFunction DirectConnectGatewayAttachmentType
$ctoJSONKey :: ToJSONKeyFunction DirectConnectGatewayAttachmentType
Core.ToJSONKey,
      [Node] -> Either String DirectConnectGatewayAttachmentType
([Node] -> Either String DirectConnectGatewayAttachmentType)
-> FromXML DirectConnectGatewayAttachmentType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String DirectConnectGatewayAttachmentType
$cparseXML :: [Node] -> Either String DirectConnectGatewayAttachmentType
Core.FromXML,
      DirectConnectGatewayAttachmentType -> XML
(DirectConnectGatewayAttachmentType -> XML)
-> ToXML DirectConnectGatewayAttachmentType
forall a. (a -> XML) -> ToXML a
toXML :: DirectConnectGatewayAttachmentType -> XML
$ctoXML :: DirectConnectGatewayAttachmentType -> XML
Core.ToXML
    )

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

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

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