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