{-# 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-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- 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.Prelude as Prelude

newtype InstanceMetadataEndpointState = InstanceMetadataEndpointState'
  { InstanceMetadataEndpointState -> Text
fromInstanceMetadataEndpointState ::
      Core.Text
  }
  deriving stock
    ( Int -> InstanceMetadataEndpointState -> ShowS
[InstanceMetadataEndpointState] -> ShowS
InstanceMetadataEndpointState -> String
(Int -> InstanceMetadataEndpointState -> ShowS)
-> (InstanceMetadataEndpointState -> String)
-> ([InstanceMetadataEndpointState] -> ShowS)
-> Show InstanceMetadataEndpointState
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]
(Int -> ReadS InstanceMetadataEndpointState)
-> ReadS [InstanceMetadataEndpointState]
-> ReadPrec InstanceMetadataEndpointState
-> ReadPrec [InstanceMetadataEndpointState]
-> Read 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
(InstanceMetadataEndpointState
 -> InstanceMetadataEndpointState -> Bool)
-> (InstanceMetadataEndpointState
    -> InstanceMetadataEndpointState -> Bool)
-> Eq InstanceMetadataEndpointState
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
Eq InstanceMetadataEndpointState
-> (InstanceMetadataEndpointState
    -> InstanceMetadataEndpointState -> Ordering)
-> (InstanceMetadataEndpointState
    -> InstanceMetadataEndpointState -> Bool)
-> (InstanceMetadataEndpointState
    -> InstanceMetadataEndpointState -> Bool)
-> (InstanceMetadataEndpointState
    -> InstanceMetadataEndpointState -> Bool)
-> (InstanceMetadataEndpointState
    -> InstanceMetadataEndpointState -> Bool)
-> (InstanceMetadataEndpointState
    -> InstanceMetadataEndpointState -> InstanceMetadataEndpointState)
-> (InstanceMetadataEndpointState
    -> InstanceMetadataEndpointState -> InstanceMetadataEndpointState)
-> Ord 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
$cp1Ord :: Eq InstanceMetadataEndpointState
Prelude.Ord,
      (forall x.
 InstanceMetadataEndpointState
 -> Rep InstanceMetadataEndpointState x)
-> (forall x.
    Rep InstanceMetadataEndpointState x
    -> InstanceMetadataEndpointState)
-> Generic InstanceMetadataEndpointState
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
    ( Int -> InstanceMetadataEndpointState -> Int
InstanceMetadataEndpointState -> Int
(Int -> InstanceMetadataEndpointState -> Int)
-> (InstanceMetadataEndpointState -> Int)
-> Hashable InstanceMetadataEndpointState
forall 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 -> ()
(InstanceMetadataEndpointState -> ())
-> NFData InstanceMetadataEndpointState
forall a. (a -> ()) -> NFData a
rnf :: InstanceMetadataEndpointState -> ()
$crnf :: InstanceMetadataEndpointState -> ()
Prelude.NFData,
      Text -> Either String InstanceMetadataEndpointState
(Text -> Either String InstanceMetadataEndpointState)
-> FromText InstanceMetadataEndpointState
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String InstanceMetadataEndpointState
$cfromText :: Text -> Either String InstanceMetadataEndpointState
Core.FromText,
      InstanceMetadataEndpointState -> Text
(InstanceMetadataEndpointState -> Text)
-> ToText InstanceMetadataEndpointState
forall a. (a -> Text) -> ToText a
toText :: InstanceMetadataEndpointState -> Text
$ctoText :: InstanceMetadataEndpointState -> Text
Core.ToText,
      InstanceMetadataEndpointState -> ByteString
(InstanceMetadataEndpointState -> ByteString)
-> ToByteString InstanceMetadataEndpointState
forall a. (a -> ByteString) -> ToByteString a
toBS :: InstanceMetadataEndpointState -> ByteString
$ctoBS :: InstanceMetadataEndpointState -> ByteString
Core.ToByteString,
      InstanceMetadataEndpointState -> ByteStringBuilder
(InstanceMetadataEndpointState -> ByteStringBuilder)
-> ToLog InstanceMetadataEndpointState
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: InstanceMetadataEndpointState -> ByteStringBuilder
$cbuild :: InstanceMetadataEndpointState -> ByteStringBuilder
Core.ToLog,
      HeaderName -> InstanceMetadataEndpointState -> [Header]
(HeaderName -> InstanceMetadataEndpointState -> [Header])
-> ToHeader InstanceMetadataEndpointState
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> InstanceMetadataEndpointState -> [Header]
$ctoHeader :: HeaderName -> InstanceMetadataEndpointState -> [Header]
Core.ToHeader,
      InstanceMetadataEndpointState -> QueryString
(InstanceMetadataEndpointState -> QueryString)
-> ToQuery InstanceMetadataEndpointState
forall a. (a -> QueryString) -> ToQuery a
toQuery :: InstanceMetadataEndpointState -> QueryString
$ctoQuery :: InstanceMetadataEndpointState -> QueryString
Core.ToQuery,
      Value -> Parser [InstanceMetadataEndpointState]
Value -> Parser InstanceMetadataEndpointState
(Value -> Parser InstanceMetadataEndpointState)
-> (Value -> Parser [InstanceMetadataEndpointState])
-> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [InstanceMetadataEndpointState]
FromJSONKeyFunction InstanceMetadataEndpointState
FromJSONKeyFunction InstanceMetadataEndpointState
-> FromJSONKeyFunction [InstanceMetadataEndpointState]
-> FromJSONKey InstanceMetadataEndpointState
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [InstanceMetadataEndpointState]
$cfromJSONKeyList :: FromJSONKeyFunction [InstanceMetadataEndpointState]
fromJSONKey :: FromJSONKeyFunction InstanceMetadataEndpointState
$cfromJSONKey :: FromJSONKeyFunction InstanceMetadataEndpointState
Core.FromJSONKey,
      [InstanceMetadataEndpointState] -> Encoding
[InstanceMetadataEndpointState] -> Value
InstanceMetadataEndpointState -> Encoding
InstanceMetadataEndpointState -> Value
(InstanceMetadataEndpointState -> Value)
-> (InstanceMetadataEndpointState -> Encoding)
-> ([InstanceMetadataEndpointState] -> Value)
-> ([InstanceMetadataEndpointState] -> Encoding)
-> ToJSON InstanceMetadataEndpointState
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
Core.ToJSON,
      ToJSONKeyFunction [InstanceMetadataEndpointState]
ToJSONKeyFunction InstanceMetadataEndpointState
ToJSONKeyFunction InstanceMetadataEndpointState
-> ToJSONKeyFunction [InstanceMetadataEndpointState]
-> ToJSONKey InstanceMetadataEndpointState
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [InstanceMetadataEndpointState]
$ctoJSONKeyList :: ToJSONKeyFunction [InstanceMetadataEndpointState]
toJSONKey :: ToJSONKeyFunction InstanceMetadataEndpointState
$ctoJSONKey :: ToJSONKeyFunction InstanceMetadataEndpointState
Core.ToJSONKey,
      [Node] -> Either String InstanceMetadataEndpointState
([Node] -> Either String InstanceMetadataEndpointState)
-> FromXML InstanceMetadataEndpointState
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String InstanceMetadataEndpointState
$cparseXML :: [Node] -> Either String InstanceMetadataEndpointState
Core.FromXML,
      InstanceMetadataEndpointState -> XML
(InstanceMetadataEndpointState -> XML)
-> ToXML InstanceMetadataEndpointState
forall a. (a -> XML) -> ToXML a
toXML :: InstanceMetadataEndpointState -> XML
$ctoXML :: InstanceMetadataEndpointState -> XML
Core.ToXML
    )

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

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

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