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