{-# 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.AutoScaling.Types.InstanceMetadataEndpointState
-- 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.AutoScaling.Types.InstanceMetadataEndpointState
  ( InstanceMetadataEndpointState
      ( ..,
        InstanceMetadataEndpointState_Disabled,
        InstanceMetadataEndpointState_Enabled
      ),
  )
where

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

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

pattern InstanceMetadataEndpointState_Disabled :: InstanceMetadataEndpointState
pattern $bInstanceMetadataEndpointState_Disabled :: InstanceMetadataEndpointState
$mInstanceMetadataEndpointState_Disabled :: forall {r}.
InstanceMetadataEndpointState -> ((# #) -> r) -> ((# #) -> r) -> r
InstanceMetadataEndpointState_Disabled = InstanceMetadataEndpointState' "disabled"

pattern InstanceMetadataEndpointState_Enabled :: InstanceMetadataEndpointState
pattern $bInstanceMetadataEndpointState_Enabled :: InstanceMetadataEndpointState
$mInstanceMetadataEndpointState_Enabled :: forall {r}.
InstanceMetadataEndpointState -> ((# #) -> r) -> ((# #) -> r) -> r
InstanceMetadataEndpointState_Enabled = InstanceMetadataEndpointState' "enabled"

{-# COMPLETE
  InstanceMetadataEndpointState_Disabled,
  InstanceMetadataEndpointState_Enabled,
  InstanceMetadataEndpointState'
  #-}