{-# 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.AccountAttributeName
-- 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.AccountAttributeName
  ( AccountAttributeName
      ( ..,
        AccountAttributeName_Default_vpc,
        AccountAttributeName_Supported_platforms
      ),
  )
where

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

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

pattern AccountAttributeName_Default_vpc :: AccountAttributeName
pattern $bAccountAttributeName_Default_vpc :: AccountAttributeName
$mAccountAttributeName_Default_vpc :: forall {r}.
AccountAttributeName -> ((# #) -> r) -> ((# #) -> r) -> r
AccountAttributeName_Default_vpc = AccountAttributeName' "default-vpc"

pattern AccountAttributeName_Supported_platforms :: AccountAttributeName
pattern $bAccountAttributeName_Supported_platforms :: AccountAttributeName
$mAccountAttributeName_Supported_platforms :: forall {r}.
AccountAttributeName -> ((# #) -> r) -> ((# #) -> r) -> r
AccountAttributeName_Supported_platforms = AccountAttributeName' "supported-platforms"

{-# COMPLETE
  AccountAttributeName_Default_vpc,
  AccountAttributeName_Supported_platforms,
  AccountAttributeName'
  #-}