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