{-# 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.ImageAttributeName
-- 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.ImageAttributeName
  ( ImageAttributeName
      ( ..,
        ImageAttributeName_BlockDeviceMapping,
        ImageAttributeName_BootMode,
        ImageAttributeName_Description,
        ImageAttributeName_ImdsSupport,
        ImageAttributeName_Kernel,
        ImageAttributeName_LastLaunchedTime,
        ImageAttributeName_LaunchPermission,
        ImageAttributeName_ProductCodes,
        ImageAttributeName_Ramdisk,
        ImageAttributeName_SriovNetSupport,
        ImageAttributeName_TpmSupport,
        ImageAttributeName_UefiData
      ),
  )
where

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

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

pattern ImageAttributeName_BlockDeviceMapping :: ImageAttributeName
pattern $bImageAttributeName_BlockDeviceMapping :: ImageAttributeName
$mImageAttributeName_BlockDeviceMapping :: forall {r}. ImageAttributeName -> ((# #) -> r) -> ((# #) -> r) -> r
ImageAttributeName_BlockDeviceMapping = ImageAttributeName' "blockDeviceMapping"

pattern ImageAttributeName_BootMode :: ImageAttributeName
pattern $bImageAttributeName_BootMode :: ImageAttributeName
$mImageAttributeName_BootMode :: forall {r}. ImageAttributeName -> ((# #) -> r) -> ((# #) -> r) -> r
ImageAttributeName_BootMode = ImageAttributeName' "bootMode"

pattern ImageAttributeName_Description :: ImageAttributeName
pattern $bImageAttributeName_Description :: ImageAttributeName
$mImageAttributeName_Description :: forall {r}. ImageAttributeName -> ((# #) -> r) -> ((# #) -> r) -> r
ImageAttributeName_Description = ImageAttributeName' "description"

pattern ImageAttributeName_ImdsSupport :: ImageAttributeName
pattern $bImageAttributeName_ImdsSupport :: ImageAttributeName
$mImageAttributeName_ImdsSupport :: forall {r}. ImageAttributeName -> ((# #) -> r) -> ((# #) -> r) -> r
ImageAttributeName_ImdsSupport = ImageAttributeName' "imdsSupport"

pattern ImageAttributeName_Kernel :: ImageAttributeName
pattern $bImageAttributeName_Kernel :: ImageAttributeName
$mImageAttributeName_Kernel :: forall {r}. ImageAttributeName -> ((# #) -> r) -> ((# #) -> r) -> r
ImageAttributeName_Kernel = ImageAttributeName' "kernel"

pattern ImageAttributeName_LastLaunchedTime :: ImageAttributeName
pattern $bImageAttributeName_LastLaunchedTime :: ImageAttributeName
$mImageAttributeName_LastLaunchedTime :: forall {r}. ImageAttributeName -> ((# #) -> r) -> ((# #) -> r) -> r
ImageAttributeName_LastLaunchedTime = ImageAttributeName' "lastLaunchedTime"

pattern ImageAttributeName_LaunchPermission :: ImageAttributeName
pattern $bImageAttributeName_LaunchPermission :: ImageAttributeName
$mImageAttributeName_LaunchPermission :: forall {r}. ImageAttributeName -> ((# #) -> r) -> ((# #) -> r) -> r
ImageAttributeName_LaunchPermission = ImageAttributeName' "launchPermission"

pattern ImageAttributeName_ProductCodes :: ImageAttributeName
pattern $bImageAttributeName_ProductCodes :: ImageAttributeName
$mImageAttributeName_ProductCodes :: forall {r}. ImageAttributeName -> ((# #) -> r) -> ((# #) -> r) -> r
ImageAttributeName_ProductCodes = ImageAttributeName' "productCodes"

pattern ImageAttributeName_Ramdisk :: ImageAttributeName
pattern $bImageAttributeName_Ramdisk :: ImageAttributeName
$mImageAttributeName_Ramdisk :: forall {r}. ImageAttributeName -> ((# #) -> r) -> ((# #) -> r) -> r
ImageAttributeName_Ramdisk = ImageAttributeName' "ramdisk"

pattern ImageAttributeName_SriovNetSupport :: ImageAttributeName
pattern $bImageAttributeName_SriovNetSupport :: ImageAttributeName
$mImageAttributeName_SriovNetSupport :: forall {r}. ImageAttributeName -> ((# #) -> r) -> ((# #) -> r) -> r
ImageAttributeName_SriovNetSupport = ImageAttributeName' "sriovNetSupport"

pattern ImageAttributeName_TpmSupport :: ImageAttributeName
pattern $bImageAttributeName_TpmSupport :: ImageAttributeName
$mImageAttributeName_TpmSupport :: forall {r}. ImageAttributeName -> ((# #) -> r) -> ((# #) -> r) -> r
ImageAttributeName_TpmSupport = ImageAttributeName' "tpmSupport"

pattern ImageAttributeName_UefiData :: ImageAttributeName
pattern $bImageAttributeName_UefiData :: ImageAttributeName
$mImageAttributeName_UefiData :: forall {r}. ImageAttributeName -> ((# #) -> r) -> ((# #) -> r) -> r
ImageAttributeName_UefiData = ImageAttributeName' "uefiData"

{-# COMPLETE
  ImageAttributeName_BlockDeviceMapping,
  ImageAttributeName_BootMode,
  ImageAttributeName_Description,
  ImageAttributeName_ImdsSupport,
  ImageAttributeName_Kernel,
  ImageAttributeName_LastLaunchedTime,
  ImageAttributeName_LaunchPermission,
  ImageAttributeName_ProductCodes,
  ImageAttributeName_Ramdisk,
  ImageAttributeName_SriovNetSupport,
  ImageAttributeName_TpmSupport,
  ImageAttributeName_UefiData,
  ImageAttributeName'
  #-}