{-# 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.ImdsSupportValues
-- 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.ImdsSupportValues
  ( ImdsSupportValues
      ( ..,
        ImdsSupportValues_V2_0
      ),
  )
where

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

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

pattern ImdsSupportValues_V2_0 :: ImdsSupportValues
pattern $bImdsSupportValues_V2_0 :: ImdsSupportValues
$mImdsSupportValues_V2_0 :: forall {r}. ImdsSupportValues -> ((# #) -> r) -> ((# #) -> r) -> r
ImdsSupportValues_V2_0 = ImdsSupportValues' "v2.0"

{-# COMPLETE
  ImdsSupportValues_V2_0,
  ImdsSupportValues'
  #-}