{-# 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.InstanceAttributeName
-- 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.InstanceAttributeName
  ( InstanceAttributeName
      ( ..,
        InstanceAttributeName_BlockDeviceMapping,
        InstanceAttributeName_DisableApiStop,
        InstanceAttributeName_DisableApiTermination,
        InstanceAttributeName_EbsOptimized,
        InstanceAttributeName_EnaSupport,
        InstanceAttributeName_EnclaveOptions,
        InstanceAttributeName_GroupSet,
        InstanceAttributeName_InstanceInitiatedShutdownBehavior,
        InstanceAttributeName_InstanceType,
        InstanceAttributeName_Kernel,
        InstanceAttributeName_ProductCodes,
        InstanceAttributeName_Ramdisk,
        InstanceAttributeName_RootDeviceName,
        InstanceAttributeName_SourceDestCheck,
        InstanceAttributeName_SriovNetSupport,
        InstanceAttributeName_UserData
      ),
  )
where

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

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

pattern InstanceAttributeName_BlockDeviceMapping :: InstanceAttributeName
pattern $bInstanceAttributeName_BlockDeviceMapping :: InstanceAttributeName
$mInstanceAttributeName_BlockDeviceMapping :: forall {r}.
InstanceAttributeName -> ((# #) -> r) -> ((# #) -> r) -> r
InstanceAttributeName_BlockDeviceMapping = InstanceAttributeName' "blockDeviceMapping"

pattern InstanceAttributeName_DisableApiStop :: InstanceAttributeName
pattern $bInstanceAttributeName_DisableApiStop :: InstanceAttributeName
$mInstanceAttributeName_DisableApiStop :: forall {r}.
InstanceAttributeName -> ((# #) -> r) -> ((# #) -> r) -> r
InstanceAttributeName_DisableApiStop = InstanceAttributeName' "disableApiStop"

pattern InstanceAttributeName_DisableApiTermination :: InstanceAttributeName
pattern $bInstanceAttributeName_DisableApiTermination :: InstanceAttributeName
$mInstanceAttributeName_DisableApiTermination :: forall {r}.
InstanceAttributeName -> ((# #) -> r) -> ((# #) -> r) -> r
InstanceAttributeName_DisableApiTermination = InstanceAttributeName' "disableApiTermination"

pattern InstanceAttributeName_EbsOptimized :: InstanceAttributeName
pattern $bInstanceAttributeName_EbsOptimized :: InstanceAttributeName
$mInstanceAttributeName_EbsOptimized :: forall {r}.
InstanceAttributeName -> ((# #) -> r) -> ((# #) -> r) -> r
InstanceAttributeName_EbsOptimized = InstanceAttributeName' "ebsOptimized"

pattern InstanceAttributeName_EnaSupport :: InstanceAttributeName
pattern $bInstanceAttributeName_EnaSupport :: InstanceAttributeName
$mInstanceAttributeName_EnaSupport :: forall {r}.
InstanceAttributeName -> ((# #) -> r) -> ((# #) -> r) -> r
InstanceAttributeName_EnaSupport = InstanceAttributeName' "enaSupport"

pattern InstanceAttributeName_EnclaveOptions :: InstanceAttributeName
pattern $bInstanceAttributeName_EnclaveOptions :: InstanceAttributeName
$mInstanceAttributeName_EnclaveOptions :: forall {r}.
InstanceAttributeName -> ((# #) -> r) -> ((# #) -> r) -> r
InstanceAttributeName_EnclaveOptions = InstanceAttributeName' "enclaveOptions"

pattern InstanceAttributeName_GroupSet :: InstanceAttributeName
pattern $bInstanceAttributeName_GroupSet :: InstanceAttributeName
$mInstanceAttributeName_GroupSet :: forall {r}.
InstanceAttributeName -> ((# #) -> r) -> ((# #) -> r) -> r
InstanceAttributeName_GroupSet = InstanceAttributeName' "groupSet"

pattern InstanceAttributeName_InstanceInitiatedShutdownBehavior :: InstanceAttributeName
pattern $bInstanceAttributeName_InstanceInitiatedShutdownBehavior :: InstanceAttributeName
$mInstanceAttributeName_InstanceInitiatedShutdownBehavior :: forall {r}.
InstanceAttributeName -> ((# #) -> r) -> ((# #) -> r) -> r
InstanceAttributeName_InstanceInitiatedShutdownBehavior = InstanceAttributeName' "instanceInitiatedShutdownBehavior"

pattern InstanceAttributeName_InstanceType :: InstanceAttributeName
pattern $bInstanceAttributeName_InstanceType :: InstanceAttributeName
$mInstanceAttributeName_InstanceType :: forall {r}.
InstanceAttributeName -> ((# #) -> r) -> ((# #) -> r) -> r
InstanceAttributeName_InstanceType = InstanceAttributeName' "instanceType"

pattern InstanceAttributeName_Kernel :: InstanceAttributeName
pattern $bInstanceAttributeName_Kernel :: InstanceAttributeName
$mInstanceAttributeName_Kernel :: forall {r}.
InstanceAttributeName -> ((# #) -> r) -> ((# #) -> r) -> r
InstanceAttributeName_Kernel = InstanceAttributeName' "kernel"

pattern InstanceAttributeName_ProductCodes :: InstanceAttributeName
pattern $bInstanceAttributeName_ProductCodes :: InstanceAttributeName
$mInstanceAttributeName_ProductCodes :: forall {r}.
InstanceAttributeName -> ((# #) -> r) -> ((# #) -> r) -> r
InstanceAttributeName_ProductCodes = InstanceAttributeName' "productCodes"

pattern InstanceAttributeName_Ramdisk :: InstanceAttributeName
pattern $bInstanceAttributeName_Ramdisk :: InstanceAttributeName
$mInstanceAttributeName_Ramdisk :: forall {r}.
InstanceAttributeName -> ((# #) -> r) -> ((# #) -> r) -> r
InstanceAttributeName_Ramdisk = InstanceAttributeName' "ramdisk"

pattern InstanceAttributeName_RootDeviceName :: InstanceAttributeName
pattern $bInstanceAttributeName_RootDeviceName :: InstanceAttributeName
$mInstanceAttributeName_RootDeviceName :: forall {r}.
InstanceAttributeName -> ((# #) -> r) -> ((# #) -> r) -> r
InstanceAttributeName_RootDeviceName = InstanceAttributeName' "rootDeviceName"

pattern InstanceAttributeName_SourceDestCheck :: InstanceAttributeName
pattern $bInstanceAttributeName_SourceDestCheck :: InstanceAttributeName
$mInstanceAttributeName_SourceDestCheck :: forall {r}.
InstanceAttributeName -> ((# #) -> r) -> ((# #) -> r) -> r
InstanceAttributeName_SourceDestCheck = InstanceAttributeName' "sourceDestCheck"

pattern InstanceAttributeName_SriovNetSupport :: InstanceAttributeName
pattern $bInstanceAttributeName_SriovNetSupport :: InstanceAttributeName
$mInstanceAttributeName_SriovNetSupport :: forall {r}.
InstanceAttributeName -> ((# #) -> r) -> ((# #) -> r) -> r
InstanceAttributeName_SriovNetSupport = InstanceAttributeName' "sriovNetSupport"

pattern InstanceAttributeName_UserData :: InstanceAttributeName
pattern $bInstanceAttributeName_UserData :: InstanceAttributeName
$mInstanceAttributeName_UserData :: forall {r}.
InstanceAttributeName -> ((# #) -> r) -> ((# #) -> r) -> r
InstanceAttributeName_UserData = InstanceAttributeName' "userData"

{-# COMPLETE
  InstanceAttributeName_BlockDeviceMapping,
  InstanceAttributeName_DisableApiStop,
  InstanceAttributeName_DisableApiTermination,
  InstanceAttributeName_EbsOptimized,
  InstanceAttributeName_EnaSupport,
  InstanceAttributeName_EnclaveOptions,
  InstanceAttributeName_GroupSet,
  InstanceAttributeName_InstanceInitiatedShutdownBehavior,
  InstanceAttributeName_InstanceType,
  InstanceAttributeName_Kernel,
  InstanceAttributeName_ProductCodes,
  InstanceAttributeName_Ramdisk,
  InstanceAttributeName_RootDeviceName,
  InstanceAttributeName_SourceDestCheck,
  InstanceAttributeName_SriovNetSupport,
  InstanceAttributeName_UserData,
  InstanceAttributeName'
  #-}