{-# 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.InstanceMetadataOptionsState
-- 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.InstanceMetadataOptionsState
  ( InstanceMetadataOptionsState
      ( ..,
        InstanceMetadataOptionsState_Applied,
        InstanceMetadataOptionsState_Pending
      ),
  )
where

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

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

pattern InstanceMetadataOptionsState_Applied :: InstanceMetadataOptionsState
pattern $bInstanceMetadataOptionsState_Applied :: InstanceMetadataOptionsState
$mInstanceMetadataOptionsState_Applied :: forall {r}.
InstanceMetadataOptionsState -> ((# #) -> r) -> ((# #) -> r) -> r
InstanceMetadataOptionsState_Applied = InstanceMetadataOptionsState' "applied"

pattern InstanceMetadataOptionsState_Pending :: InstanceMetadataOptionsState
pattern $bInstanceMetadataOptionsState_Pending :: InstanceMetadataOptionsState
$mInstanceMetadataOptionsState_Pending :: forall {r}.
InstanceMetadataOptionsState -> ((# #) -> r) -> ((# #) -> r) -> r
InstanceMetadataOptionsState_Pending = InstanceMetadataOptionsState' "pending"

{-# COMPLETE
  InstanceMetadataOptionsState_Applied,
  InstanceMetadataOptionsState_Pending,
  InstanceMetadataOptionsState'
  #-}