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