{-# 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.Prelude as Prelude
newtype ConfigurationSyncStatus = ConfigurationSyncStatus'
{ ConfigurationSyncStatus -> Text
fromConfigurationSyncStatus ::
Core.Text
}
deriving stock
( Int -> ConfigurationSyncStatus -> ShowS
[ConfigurationSyncStatus] -> ShowS
ConfigurationSyncStatus -> String
(Int -> ConfigurationSyncStatus -> ShowS)
-> (ConfigurationSyncStatus -> String)
-> ([ConfigurationSyncStatus] -> ShowS)
-> Show ConfigurationSyncStatus
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]
(Int -> ReadS ConfigurationSyncStatus)
-> ReadS [ConfigurationSyncStatus]
-> ReadPrec ConfigurationSyncStatus
-> ReadPrec [ConfigurationSyncStatus]
-> Read 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
(ConfigurationSyncStatus -> ConfigurationSyncStatus -> Bool)
-> (ConfigurationSyncStatus -> ConfigurationSyncStatus -> Bool)
-> Eq ConfigurationSyncStatus
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
Eq ConfigurationSyncStatus
-> (ConfigurationSyncStatus -> ConfigurationSyncStatus -> Ordering)
-> (ConfigurationSyncStatus -> ConfigurationSyncStatus -> Bool)
-> (ConfigurationSyncStatus -> ConfigurationSyncStatus -> Bool)
-> (ConfigurationSyncStatus -> ConfigurationSyncStatus -> Bool)
-> (ConfigurationSyncStatus -> ConfigurationSyncStatus -> Bool)
-> (ConfigurationSyncStatus
-> ConfigurationSyncStatus -> ConfigurationSyncStatus)
-> (ConfigurationSyncStatus
-> ConfigurationSyncStatus -> ConfigurationSyncStatus)
-> Ord 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
$cp1Ord :: Eq ConfigurationSyncStatus
Prelude.Ord,
(forall x.
ConfigurationSyncStatus -> Rep ConfigurationSyncStatus x)
-> (forall x.
Rep ConfigurationSyncStatus x -> ConfigurationSyncStatus)
-> Generic ConfigurationSyncStatus
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
( Int -> ConfigurationSyncStatus -> Int
ConfigurationSyncStatus -> Int
(Int -> ConfigurationSyncStatus -> Int)
-> (ConfigurationSyncStatus -> Int)
-> Hashable ConfigurationSyncStatus
forall 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 -> ()
(ConfigurationSyncStatus -> ()) -> NFData ConfigurationSyncStatus
forall a. (a -> ()) -> NFData a
rnf :: ConfigurationSyncStatus -> ()
$crnf :: ConfigurationSyncStatus -> ()
Prelude.NFData,
Text -> Either String ConfigurationSyncStatus
(Text -> Either String ConfigurationSyncStatus)
-> FromText ConfigurationSyncStatus
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ConfigurationSyncStatus
$cfromText :: Text -> Either String ConfigurationSyncStatus
Core.FromText,
ConfigurationSyncStatus -> Text
(ConfigurationSyncStatus -> Text) -> ToText ConfigurationSyncStatus
forall a. (a -> Text) -> ToText a
toText :: ConfigurationSyncStatus -> Text
$ctoText :: ConfigurationSyncStatus -> Text
Core.ToText,
ConfigurationSyncStatus -> ByteString
(ConfigurationSyncStatus -> ByteString)
-> ToByteString ConfigurationSyncStatus
forall a. (a -> ByteString) -> ToByteString a
toBS :: ConfigurationSyncStatus -> ByteString
$ctoBS :: ConfigurationSyncStatus -> ByteString
Core.ToByteString,
ConfigurationSyncStatus -> ByteStringBuilder
(ConfigurationSyncStatus -> ByteStringBuilder)
-> ToLog ConfigurationSyncStatus
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ConfigurationSyncStatus -> ByteStringBuilder
$cbuild :: ConfigurationSyncStatus -> ByteStringBuilder
Core.ToLog,
HeaderName -> ConfigurationSyncStatus -> [Header]
(HeaderName -> ConfigurationSyncStatus -> [Header])
-> ToHeader ConfigurationSyncStatus
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ConfigurationSyncStatus -> [Header]
$ctoHeader :: HeaderName -> ConfigurationSyncStatus -> [Header]
Core.ToHeader,
ConfigurationSyncStatus -> QueryString
(ConfigurationSyncStatus -> QueryString)
-> ToQuery ConfigurationSyncStatus
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ConfigurationSyncStatus -> QueryString
$ctoQuery :: ConfigurationSyncStatus -> QueryString
Core.ToQuery,
Value -> Parser [ConfigurationSyncStatus]
Value -> Parser ConfigurationSyncStatus
(Value -> Parser ConfigurationSyncStatus)
-> (Value -> Parser [ConfigurationSyncStatus])
-> FromJSON 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
Core.FromJSON,
FromJSONKeyFunction [ConfigurationSyncStatus]
FromJSONKeyFunction ConfigurationSyncStatus
FromJSONKeyFunction ConfigurationSyncStatus
-> FromJSONKeyFunction [ConfigurationSyncStatus]
-> FromJSONKey ConfigurationSyncStatus
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ConfigurationSyncStatus]
$cfromJSONKeyList :: FromJSONKeyFunction [ConfigurationSyncStatus]
fromJSONKey :: FromJSONKeyFunction ConfigurationSyncStatus
$cfromJSONKey :: FromJSONKeyFunction ConfigurationSyncStatus
Core.FromJSONKey,
[ConfigurationSyncStatus] -> Encoding
[ConfigurationSyncStatus] -> Value
ConfigurationSyncStatus -> Encoding
ConfigurationSyncStatus -> Value
(ConfigurationSyncStatus -> Value)
-> (ConfigurationSyncStatus -> Encoding)
-> ([ConfigurationSyncStatus] -> Value)
-> ([ConfigurationSyncStatus] -> Encoding)
-> ToJSON ConfigurationSyncStatus
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
Core.ToJSON,
ToJSONKeyFunction [ConfigurationSyncStatus]
ToJSONKeyFunction ConfigurationSyncStatus
ToJSONKeyFunction ConfigurationSyncStatus
-> ToJSONKeyFunction [ConfigurationSyncStatus]
-> ToJSONKey ConfigurationSyncStatus
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ConfigurationSyncStatus]
$ctoJSONKeyList :: ToJSONKeyFunction [ConfigurationSyncStatus]
toJSONKey :: ToJSONKeyFunction ConfigurationSyncStatus
$ctoJSONKey :: ToJSONKeyFunction ConfigurationSyncStatus
Core.ToJSONKey,
[Node] -> Either String ConfigurationSyncStatus
([Node] -> Either String ConfigurationSyncStatus)
-> FromXML ConfigurationSyncStatus
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ConfigurationSyncStatus
$cparseXML :: [Node] -> Either String ConfigurationSyncStatus
Core.FromXML,
ConfigurationSyncStatus -> XML
(ConfigurationSyncStatus -> XML) -> ToXML ConfigurationSyncStatus
forall a. (a -> XML) -> ToXML a
toXML :: ConfigurationSyncStatus -> XML
$ctoXML :: ConfigurationSyncStatus -> XML
Core.ToXML
)
pattern ConfigurationSyncStatus_InSync :: ConfigurationSyncStatus
pattern $bConfigurationSyncStatus_InSync :: ConfigurationSyncStatus
$mConfigurationSyncStatus_InSync :: forall r.
ConfigurationSyncStatus -> (Void# -> r) -> (Void# -> r) -> r
ConfigurationSyncStatus_InSync = ConfigurationSyncStatus' "InSync"
pattern ConfigurationSyncStatus_OutOfSync :: ConfigurationSyncStatus
pattern $bConfigurationSyncStatus_OutOfSync :: ConfigurationSyncStatus
$mConfigurationSyncStatus_OutOfSync :: forall r.
ConfigurationSyncStatus -> (Void# -> r) -> (Void# -> r) -> r
ConfigurationSyncStatus_OutOfSync = ConfigurationSyncStatus' "OutOfSync"
{-# COMPLETE
ConfigurationSyncStatus_InSync,
ConfigurationSyncStatus_OutOfSync,
ConfigurationSyncStatus'
#-}