{-# 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.InstanceMetadataTagsState
-- 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.InstanceMetadataTagsState
  ( InstanceMetadataTagsState
      ( ..,
        InstanceMetadataTagsState_Disabled,
        InstanceMetadataTagsState_Enabled
      ),
  )
where

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

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

pattern InstanceMetadataTagsState_Disabled :: InstanceMetadataTagsState
pattern $bInstanceMetadataTagsState_Disabled :: InstanceMetadataTagsState
$mInstanceMetadataTagsState_Disabled :: forall {r}.
InstanceMetadataTagsState -> ((# #) -> r) -> ((# #) -> r) -> r
InstanceMetadataTagsState_Disabled = InstanceMetadataTagsState' "disabled"

pattern InstanceMetadataTagsState_Enabled :: InstanceMetadataTagsState
pattern $bInstanceMetadataTagsState_Enabled :: InstanceMetadataTagsState
$mInstanceMetadataTagsState_Enabled :: forall {r}.
InstanceMetadataTagsState -> ((# #) -> r) -> ((# #) -> r) -> r
InstanceMetadataTagsState_Enabled = InstanceMetadataTagsState' "enabled"

{-# COMPLETE
  InstanceMetadataTagsState_Disabled,
  InstanceMetadataTagsState_Enabled,
  InstanceMetadataTagsState'
  #-}