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

pattern LaunchTemplateInstanceMetadataEndpointState_Disabled :: LaunchTemplateInstanceMetadataEndpointState
pattern $bLaunchTemplateInstanceMetadataEndpointState_Disabled :: LaunchTemplateInstanceMetadataEndpointState
$mLaunchTemplateInstanceMetadataEndpointState_Disabled :: forall {r}.
LaunchTemplateInstanceMetadataEndpointState
-> ((# #) -> r) -> ((# #) -> r) -> r
LaunchTemplateInstanceMetadataEndpointState_Disabled = LaunchTemplateInstanceMetadataEndpointState' "disabled"

pattern LaunchTemplateInstanceMetadataEndpointState_Enabled :: LaunchTemplateInstanceMetadataEndpointState
pattern $bLaunchTemplateInstanceMetadataEndpointState_Enabled :: LaunchTemplateInstanceMetadataEndpointState
$mLaunchTemplateInstanceMetadataEndpointState_Enabled :: forall {r}.
LaunchTemplateInstanceMetadataEndpointState
-> ((# #) -> r) -> ((# #) -> r) -> r
LaunchTemplateInstanceMetadataEndpointState_Enabled = LaunchTemplateInstanceMetadataEndpointState' "enabled"

{-# COMPLETE
  LaunchTemplateInstanceMetadataEndpointState_Disabled,
  LaunchTemplateInstanceMetadataEndpointState_Enabled,
  LaunchTemplateInstanceMetadataEndpointState'
  #-}