{-# 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.VpcAttributeName
-- 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.VpcAttributeName
  ( VpcAttributeName
      ( ..,
        VpcAttributeName_EnableDnsHostnames,
        VpcAttributeName_EnableDnsSupport,
        VpcAttributeName_EnableNetworkAddressUsageMetrics
      ),
  )
where

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

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

pattern VpcAttributeName_EnableDnsHostnames :: VpcAttributeName
pattern $bVpcAttributeName_EnableDnsHostnames :: VpcAttributeName
$mVpcAttributeName_EnableDnsHostnames :: forall {r}. VpcAttributeName -> ((# #) -> r) -> ((# #) -> r) -> r
VpcAttributeName_EnableDnsHostnames = VpcAttributeName' "enableDnsHostnames"

pattern VpcAttributeName_EnableDnsSupport :: VpcAttributeName
pattern $bVpcAttributeName_EnableDnsSupport :: VpcAttributeName
$mVpcAttributeName_EnableDnsSupport :: forall {r}. VpcAttributeName -> ((# #) -> r) -> ((# #) -> r) -> r
VpcAttributeName_EnableDnsSupport = VpcAttributeName' "enableDnsSupport"

pattern VpcAttributeName_EnableNetworkAddressUsageMetrics :: VpcAttributeName
pattern $bVpcAttributeName_EnableNetworkAddressUsageMetrics :: VpcAttributeName
$mVpcAttributeName_EnableNetworkAddressUsageMetrics :: forall {r}. VpcAttributeName -> ((# #) -> r) -> ((# #) -> r) -> r
VpcAttributeName_EnableNetworkAddressUsageMetrics = VpcAttributeName' "enableNetworkAddressUsageMetrics"

{-# COMPLETE
  VpcAttributeName_EnableDnsHostnames,
  VpcAttributeName_EnableDnsSupport,
  VpcAttributeName_EnableNetworkAddressUsageMetrics,
  VpcAttributeName'
  #-}