{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.EC2.Types.LaunchTemplateInstanceMetadataOptionsState
( LaunchTemplateInstanceMetadataOptionsState
( ..,
LaunchTemplateInstanceMetadataOptionsState_Applied,
LaunchTemplateInstanceMetadataOptionsState_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 LaunchTemplateInstanceMetadataOptionsState = LaunchTemplateInstanceMetadataOptionsState'
{ LaunchTemplateInstanceMetadataOptionsState -> Text
fromLaunchTemplateInstanceMetadataOptionsState ::
Data.Text
}
deriving stock
( Int -> LaunchTemplateInstanceMetadataOptionsState -> ShowS
[LaunchTemplateInstanceMetadataOptionsState] -> ShowS
LaunchTemplateInstanceMetadataOptionsState -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [LaunchTemplateInstanceMetadataOptionsState] -> ShowS
$cshowList :: [LaunchTemplateInstanceMetadataOptionsState] -> ShowS
show :: LaunchTemplateInstanceMetadataOptionsState -> String
$cshow :: LaunchTemplateInstanceMetadataOptionsState -> String
showsPrec :: Int -> LaunchTemplateInstanceMetadataOptionsState -> ShowS
$cshowsPrec :: Int -> LaunchTemplateInstanceMetadataOptionsState -> ShowS
Prelude.Show,
ReadPrec [LaunchTemplateInstanceMetadataOptionsState]
ReadPrec LaunchTemplateInstanceMetadataOptionsState
Int -> ReadS LaunchTemplateInstanceMetadataOptionsState
ReadS [LaunchTemplateInstanceMetadataOptionsState]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [LaunchTemplateInstanceMetadataOptionsState]
$creadListPrec :: ReadPrec [LaunchTemplateInstanceMetadataOptionsState]
readPrec :: ReadPrec LaunchTemplateInstanceMetadataOptionsState
$creadPrec :: ReadPrec LaunchTemplateInstanceMetadataOptionsState
readList :: ReadS [LaunchTemplateInstanceMetadataOptionsState]
$creadList :: ReadS [LaunchTemplateInstanceMetadataOptionsState]
readsPrec :: Int -> ReadS LaunchTemplateInstanceMetadataOptionsState
$creadsPrec :: Int -> ReadS LaunchTemplateInstanceMetadataOptionsState
Prelude.Read,
LaunchTemplateInstanceMetadataOptionsState
-> LaunchTemplateInstanceMetadataOptionsState -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: LaunchTemplateInstanceMetadataOptionsState
-> LaunchTemplateInstanceMetadataOptionsState -> Bool
$c/= :: LaunchTemplateInstanceMetadataOptionsState
-> LaunchTemplateInstanceMetadataOptionsState -> Bool
== :: LaunchTemplateInstanceMetadataOptionsState
-> LaunchTemplateInstanceMetadataOptionsState -> Bool
$c== :: LaunchTemplateInstanceMetadataOptionsState
-> LaunchTemplateInstanceMetadataOptionsState -> Bool
Prelude.Eq,
Eq LaunchTemplateInstanceMetadataOptionsState
LaunchTemplateInstanceMetadataOptionsState
-> LaunchTemplateInstanceMetadataOptionsState -> Bool
LaunchTemplateInstanceMetadataOptionsState
-> LaunchTemplateInstanceMetadataOptionsState -> Ordering
LaunchTemplateInstanceMetadataOptionsState
-> LaunchTemplateInstanceMetadataOptionsState
-> LaunchTemplateInstanceMetadataOptionsState
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 :: LaunchTemplateInstanceMetadataOptionsState
-> LaunchTemplateInstanceMetadataOptionsState
-> LaunchTemplateInstanceMetadataOptionsState
$cmin :: LaunchTemplateInstanceMetadataOptionsState
-> LaunchTemplateInstanceMetadataOptionsState
-> LaunchTemplateInstanceMetadataOptionsState
max :: LaunchTemplateInstanceMetadataOptionsState
-> LaunchTemplateInstanceMetadataOptionsState
-> LaunchTemplateInstanceMetadataOptionsState
$cmax :: LaunchTemplateInstanceMetadataOptionsState
-> LaunchTemplateInstanceMetadataOptionsState
-> LaunchTemplateInstanceMetadataOptionsState
>= :: LaunchTemplateInstanceMetadataOptionsState
-> LaunchTemplateInstanceMetadataOptionsState -> Bool
$c>= :: LaunchTemplateInstanceMetadataOptionsState
-> LaunchTemplateInstanceMetadataOptionsState -> Bool
> :: LaunchTemplateInstanceMetadataOptionsState
-> LaunchTemplateInstanceMetadataOptionsState -> Bool
$c> :: LaunchTemplateInstanceMetadataOptionsState
-> LaunchTemplateInstanceMetadataOptionsState -> Bool
<= :: LaunchTemplateInstanceMetadataOptionsState
-> LaunchTemplateInstanceMetadataOptionsState -> Bool
$c<= :: LaunchTemplateInstanceMetadataOptionsState
-> LaunchTemplateInstanceMetadataOptionsState -> Bool
< :: LaunchTemplateInstanceMetadataOptionsState
-> LaunchTemplateInstanceMetadataOptionsState -> Bool
$c< :: LaunchTemplateInstanceMetadataOptionsState
-> LaunchTemplateInstanceMetadataOptionsState -> Bool
compare :: LaunchTemplateInstanceMetadataOptionsState
-> LaunchTemplateInstanceMetadataOptionsState -> Ordering
$ccompare :: LaunchTemplateInstanceMetadataOptionsState
-> LaunchTemplateInstanceMetadataOptionsState -> Ordering
Prelude.Ord,
forall x.
Rep LaunchTemplateInstanceMetadataOptionsState x
-> LaunchTemplateInstanceMetadataOptionsState
forall x.
LaunchTemplateInstanceMetadataOptionsState
-> Rep LaunchTemplateInstanceMetadataOptionsState x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep LaunchTemplateInstanceMetadataOptionsState x
-> LaunchTemplateInstanceMetadataOptionsState
$cfrom :: forall x.
LaunchTemplateInstanceMetadataOptionsState
-> Rep LaunchTemplateInstanceMetadataOptionsState x
Prelude.Generic
)
deriving newtype
( Eq LaunchTemplateInstanceMetadataOptionsState
Int -> LaunchTemplateInstanceMetadataOptionsState -> Int
LaunchTemplateInstanceMetadataOptionsState -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: LaunchTemplateInstanceMetadataOptionsState -> Int
$chash :: LaunchTemplateInstanceMetadataOptionsState -> Int
hashWithSalt :: Int -> LaunchTemplateInstanceMetadataOptionsState -> Int
$chashWithSalt :: Int -> LaunchTemplateInstanceMetadataOptionsState -> Int
Prelude.Hashable,
LaunchTemplateInstanceMetadataOptionsState -> ()
forall a. (a -> ()) -> NFData a
rnf :: LaunchTemplateInstanceMetadataOptionsState -> ()
$crnf :: LaunchTemplateInstanceMetadataOptionsState -> ()
Prelude.NFData,
Text -> Either String LaunchTemplateInstanceMetadataOptionsState
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String LaunchTemplateInstanceMetadataOptionsState
$cfromText :: Text -> Either String LaunchTemplateInstanceMetadataOptionsState
Data.FromText,
LaunchTemplateInstanceMetadataOptionsState -> Text
forall a. (a -> Text) -> ToText a
toText :: LaunchTemplateInstanceMetadataOptionsState -> Text
$ctoText :: LaunchTemplateInstanceMetadataOptionsState -> Text
Data.ToText,
LaunchTemplateInstanceMetadataOptionsState -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: LaunchTemplateInstanceMetadataOptionsState -> ByteString
$ctoBS :: LaunchTemplateInstanceMetadataOptionsState -> ByteString
Data.ToByteString,
LaunchTemplateInstanceMetadataOptionsState -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: LaunchTemplateInstanceMetadataOptionsState -> ByteStringBuilder
$cbuild :: LaunchTemplateInstanceMetadataOptionsState -> ByteStringBuilder
Data.ToLog,
HeaderName
-> LaunchTemplateInstanceMetadataOptionsState -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName
-> LaunchTemplateInstanceMetadataOptionsState -> [Header]
$ctoHeader :: HeaderName
-> LaunchTemplateInstanceMetadataOptionsState -> [Header]
Data.ToHeader,
LaunchTemplateInstanceMetadataOptionsState -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: LaunchTemplateInstanceMetadataOptionsState -> QueryString
$ctoQuery :: LaunchTemplateInstanceMetadataOptionsState -> QueryString
Data.ToQuery,
Value -> Parser [LaunchTemplateInstanceMetadataOptionsState]
Value -> Parser LaunchTemplateInstanceMetadataOptionsState
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [LaunchTemplateInstanceMetadataOptionsState]
$cparseJSONList :: Value -> Parser [LaunchTemplateInstanceMetadataOptionsState]
parseJSON :: Value -> Parser LaunchTemplateInstanceMetadataOptionsState
$cparseJSON :: Value -> Parser LaunchTemplateInstanceMetadataOptionsState
Data.FromJSON,
FromJSONKeyFunction [LaunchTemplateInstanceMetadataOptionsState]
FromJSONKeyFunction LaunchTemplateInstanceMetadataOptionsState
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [LaunchTemplateInstanceMetadataOptionsState]
$cfromJSONKeyList :: FromJSONKeyFunction [LaunchTemplateInstanceMetadataOptionsState]
fromJSONKey :: FromJSONKeyFunction LaunchTemplateInstanceMetadataOptionsState
$cfromJSONKey :: FromJSONKeyFunction LaunchTemplateInstanceMetadataOptionsState
Data.FromJSONKey,
[LaunchTemplateInstanceMetadataOptionsState] -> Encoding
[LaunchTemplateInstanceMetadataOptionsState] -> Value
LaunchTemplateInstanceMetadataOptionsState -> Encoding
LaunchTemplateInstanceMetadataOptionsState -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [LaunchTemplateInstanceMetadataOptionsState] -> Encoding
$ctoEncodingList :: [LaunchTemplateInstanceMetadataOptionsState] -> Encoding
toJSONList :: [LaunchTemplateInstanceMetadataOptionsState] -> Value
$ctoJSONList :: [LaunchTemplateInstanceMetadataOptionsState] -> Value
toEncoding :: LaunchTemplateInstanceMetadataOptionsState -> Encoding
$ctoEncoding :: LaunchTemplateInstanceMetadataOptionsState -> Encoding
toJSON :: LaunchTemplateInstanceMetadataOptionsState -> Value
$ctoJSON :: LaunchTemplateInstanceMetadataOptionsState -> Value
Data.ToJSON,
ToJSONKeyFunction [LaunchTemplateInstanceMetadataOptionsState]
ToJSONKeyFunction LaunchTemplateInstanceMetadataOptionsState
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [LaunchTemplateInstanceMetadataOptionsState]
$ctoJSONKeyList :: ToJSONKeyFunction [LaunchTemplateInstanceMetadataOptionsState]
toJSONKey :: ToJSONKeyFunction LaunchTemplateInstanceMetadataOptionsState
$ctoJSONKey :: ToJSONKeyFunction LaunchTemplateInstanceMetadataOptionsState
Data.ToJSONKey,
[Node] -> Either String LaunchTemplateInstanceMetadataOptionsState
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String LaunchTemplateInstanceMetadataOptionsState
$cparseXML :: [Node] -> Either String LaunchTemplateInstanceMetadataOptionsState
Data.FromXML,
LaunchTemplateInstanceMetadataOptionsState -> XML
forall a. (a -> XML) -> ToXML a
toXML :: LaunchTemplateInstanceMetadataOptionsState -> XML
$ctoXML :: LaunchTemplateInstanceMetadataOptionsState -> XML
Data.ToXML
)
pattern LaunchTemplateInstanceMetadataOptionsState_Applied :: LaunchTemplateInstanceMetadataOptionsState
pattern $bLaunchTemplateInstanceMetadataOptionsState_Applied :: LaunchTemplateInstanceMetadataOptionsState
$mLaunchTemplateInstanceMetadataOptionsState_Applied :: forall {r}.
LaunchTemplateInstanceMetadataOptionsState
-> ((# #) -> r) -> ((# #) -> r) -> r
LaunchTemplateInstanceMetadataOptionsState_Applied = LaunchTemplateInstanceMetadataOptionsState' "applied"
pattern LaunchTemplateInstanceMetadataOptionsState_Pending :: LaunchTemplateInstanceMetadataOptionsState
pattern $bLaunchTemplateInstanceMetadataOptionsState_Pending :: LaunchTemplateInstanceMetadataOptionsState
$mLaunchTemplateInstanceMetadataOptionsState_Pending :: forall {r}.
LaunchTemplateInstanceMetadataOptionsState
-> ((# #) -> r) -> ((# #) -> r) -> r
LaunchTemplateInstanceMetadataOptionsState_Pending = LaunchTemplateInstanceMetadataOptionsState' "pending"
{-# COMPLETE
LaunchTemplateInstanceMetadataOptionsState_Applied,
LaunchTemplateInstanceMetadataOptionsState_Pending,
LaunchTemplateInstanceMetadataOptionsState'
#-}