{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.Config.Types.ConfigRuleState
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
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.Data as Data
import qualified Amazonka.Prelude as Prelude

newtype ConfigRuleState = ConfigRuleState'
  { ConfigRuleState -> Text
fromConfigRuleState ::
      Data.Text
  }
  deriving stock
    ( Int -> ConfigRuleState -> ShowS
[ConfigRuleState] -> ShowS
ConfigRuleState -> String
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]
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
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
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
Prelude.Ord,
      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
    ( Eq ConfigRuleState
Int -> ConfigRuleState -> Int
ConfigRuleState -> Int
forall a. Eq 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 -> ()
forall a. (a -> ()) -> NFData a
rnf :: ConfigRuleState -> ()
$crnf :: ConfigRuleState -> ()
Prelude.NFData,
      Text -> Either String ConfigRuleState
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ConfigRuleState
$cfromText :: Text -> Either String ConfigRuleState
Data.FromText,
      ConfigRuleState -> Text
forall a. (a -> Text) -> ToText a
toText :: ConfigRuleState -> Text
$ctoText :: ConfigRuleState -> Text
Data.ToText,
      ConfigRuleState -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: ConfigRuleState -> ByteString
$ctoBS :: ConfigRuleState -> ByteString
Data.ToByteString,
      ConfigRuleState -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ConfigRuleState -> ByteStringBuilder
$cbuild :: ConfigRuleState -> ByteStringBuilder
Data.ToLog,
      HeaderName -> ConfigRuleState -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ConfigRuleState -> [Header]
$ctoHeader :: HeaderName -> ConfigRuleState -> [Header]
Data.ToHeader,
      ConfigRuleState -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ConfigRuleState -> QueryString
$ctoQuery :: ConfigRuleState -> QueryString
Data.ToQuery,
      Value -> Parser [ConfigRuleState]
Value -> Parser 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
Data.FromJSON,
      FromJSONKeyFunction [ConfigRuleState]
FromJSONKeyFunction ConfigRuleState
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ConfigRuleState]
$cfromJSONKeyList :: FromJSONKeyFunction [ConfigRuleState]
fromJSONKey :: FromJSONKeyFunction ConfigRuleState
$cfromJSONKey :: FromJSONKeyFunction ConfigRuleState
Data.FromJSONKey,
      [ConfigRuleState] -> Encoding
[ConfigRuleState] -> Value
ConfigRuleState -> Encoding
ConfigRuleState -> Value
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
Data.ToJSON,
      ToJSONKeyFunction [ConfigRuleState]
ToJSONKeyFunction ConfigRuleState
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ConfigRuleState]
$ctoJSONKeyList :: ToJSONKeyFunction [ConfigRuleState]
toJSONKey :: ToJSONKeyFunction ConfigRuleState
$ctoJSONKey :: ToJSONKeyFunction ConfigRuleState
Data.ToJSONKey,
      [Node] -> Either String ConfigRuleState
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ConfigRuleState
$cparseXML :: [Node] -> Either String ConfigRuleState
Data.FromXML,
      ConfigRuleState -> XML
forall a. (a -> XML) -> ToXML a
toXML :: ConfigRuleState -> XML
$ctoXML :: ConfigRuleState -> XML
Data.ToXML
    )

pattern ConfigRuleState_ACTIVE :: ConfigRuleState
pattern $bConfigRuleState_ACTIVE :: ConfigRuleState
$mConfigRuleState_ACTIVE :: forall {r}. ConfigRuleState -> ((# #) -> r) -> ((# #) -> r) -> r
ConfigRuleState_ACTIVE = ConfigRuleState' "ACTIVE"

pattern ConfigRuleState_DELETING :: ConfigRuleState
pattern $bConfigRuleState_DELETING :: ConfigRuleState
$mConfigRuleState_DELETING :: forall {r}. ConfigRuleState -> ((# #) -> r) -> ((# #) -> r) -> r
ConfigRuleState_DELETING = ConfigRuleState' "DELETING"

pattern ConfigRuleState_DELETING_RESULTS :: ConfigRuleState
pattern $bConfigRuleState_DELETING_RESULTS :: ConfigRuleState
$mConfigRuleState_DELETING_RESULTS :: forall {r}. ConfigRuleState -> ((# #) -> r) -> ((# #) -> r) -> r
ConfigRuleState_DELETING_RESULTS = ConfigRuleState' "DELETING_RESULTS"

pattern ConfigRuleState_EVALUATING :: ConfigRuleState
pattern $bConfigRuleState_EVALUATING :: ConfigRuleState
$mConfigRuleState_EVALUATING :: forall {r}. ConfigRuleState -> ((# #) -> r) -> ((# #) -> r) -> r
ConfigRuleState_EVALUATING = ConfigRuleState' "EVALUATING"

{-# COMPLETE
  ConfigRuleState_ACTIVE,
  ConfigRuleState_DELETING,
  ConfigRuleState_DELETING_RESULTS,
  ConfigRuleState_EVALUATING,
  ConfigRuleState'
  #-}