{-# 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.ConfigRuleComplianceSummaryGroupKey
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.Config.Types.ConfigRuleComplianceSummaryGroupKey
  ( ConfigRuleComplianceSummaryGroupKey
      ( ..,
        ConfigRuleComplianceSummaryGroupKey_ACCOUNT_ID,
        ConfigRuleComplianceSummaryGroupKey_AWS_REGION
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude

newtype ConfigRuleComplianceSummaryGroupKey = ConfigRuleComplianceSummaryGroupKey'
  { ConfigRuleComplianceSummaryGroupKey -> Text
fromConfigRuleComplianceSummaryGroupKey ::
      Core.Text
  }
  deriving stock
    ( Int -> ConfigRuleComplianceSummaryGroupKey -> ShowS
[ConfigRuleComplianceSummaryGroupKey] -> ShowS
ConfigRuleComplianceSummaryGroupKey -> String
(Int -> ConfigRuleComplianceSummaryGroupKey -> ShowS)
-> (ConfigRuleComplianceSummaryGroupKey -> String)
-> ([ConfigRuleComplianceSummaryGroupKey] -> ShowS)
-> Show ConfigRuleComplianceSummaryGroupKey
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ConfigRuleComplianceSummaryGroupKey] -> ShowS
$cshowList :: [ConfigRuleComplianceSummaryGroupKey] -> ShowS
show :: ConfigRuleComplianceSummaryGroupKey -> String
$cshow :: ConfigRuleComplianceSummaryGroupKey -> String
showsPrec :: Int -> ConfigRuleComplianceSummaryGroupKey -> ShowS
$cshowsPrec :: Int -> ConfigRuleComplianceSummaryGroupKey -> ShowS
Prelude.Show,
      ReadPrec [ConfigRuleComplianceSummaryGroupKey]
ReadPrec ConfigRuleComplianceSummaryGroupKey
Int -> ReadS ConfigRuleComplianceSummaryGroupKey
ReadS [ConfigRuleComplianceSummaryGroupKey]
(Int -> ReadS ConfigRuleComplianceSummaryGroupKey)
-> ReadS [ConfigRuleComplianceSummaryGroupKey]
-> ReadPrec ConfigRuleComplianceSummaryGroupKey
-> ReadPrec [ConfigRuleComplianceSummaryGroupKey]
-> Read ConfigRuleComplianceSummaryGroupKey
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ConfigRuleComplianceSummaryGroupKey]
$creadListPrec :: ReadPrec [ConfigRuleComplianceSummaryGroupKey]
readPrec :: ReadPrec ConfigRuleComplianceSummaryGroupKey
$creadPrec :: ReadPrec ConfigRuleComplianceSummaryGroupKey
readList :: ReadS [ConfigRuleComplianceSummaryGroupKey]
$creadList :: ReadS [ConfigRuleComplianceSummaryGroupKey]
readsPrec :: Int -> ReadS ConfigRuleComplianceSummaryGroupKey
$creadsPrec :: Int -> ReadS ConfigRuleComplianceSummaryGroupKey
Prelude.Read,
      ConfigRuleComplianceSummaryGroupKey
-> ConfigRuleComplianceSummaryGroupKey -> Bool
(ConfigRuleComplianceSummaryGroupKey
 -> ConfigRuleComplianceSummaryGroupKey -> Bool)
-> (ConfigRuleComplianceSummaryGroupKey
    -> ConfigRuleComplianceSummaryGroupKey -> Bool)
-> Eq ConfigRuleComplianceSummaryGroupKey
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ConfigRuleComplianceSummaryGroupKey
-> ConfigRuleComplianceSummaryGroupKey -> Bool
$c/= :: ConfigRuleComplianceSummaryGroupKey
-> ConfigRuleComplianceSummaryGroupKey -> Bool
== :: ConfigRuleComplianceSummaryGroupKey
-> ConfigRuleComplianceSummaryGroupKey -> Bool
$c== :: ConfigRuleComplianceSummaryGroupKey
-> ConfigRuleComplianceSummaryGroupKey -> Bool
Prelude.Eq,
      Eq ConfigRuleComplianceSummaryGroupKey
Eq ConfigRuleComplianceSummaryGroupKey
-> (ConfigRuleComplianceSummaryGroupKey
    -> ConfigRuleComplianceSummaryGroupKey -> Ordering)
-> (ConfigRuleComplianceSummaryGroupKey
    -> ConfigRuleComplianceSummaryGroupKey -> Bool)
-> (ConfigRuleComplianceSummaryGroupKey
    -> ConfigRuleComplianceSummaryGroupKey -> Bool)
-> (ConfigRuleComplianceSummaryGroupKey
    -> ConfigRuleComplianceSummaryGroupKey -> Bool)
-> (ConfigRuleComplianceSummaryGroupKey
    -> ConfigRuleComplianceSummaryGroupKey -> Bool)
-> (ConfigRuleComplianceSummaryGroupKey
    -> ConfigRuleComplianceSummaryGroupKey
    -> ConfigRuleComplianceSummaryGroupKey)
-> (ConfigRuleComplianceSummaryGroupKey
    -> ConfigRuleComplianceSummaryGroupKey
    -> ConfigRuleComplianceSummaryGroupKey)
-> Ord ConfigRuleComplianceSummaryGroupKey
ConfigRuleComplianceSummaryGroupKey
-> ConfigRuleComplianceSummaryGroupKey -> Bool
ConfigRuleComplianceSummaryGroupKey
-> ConfigRuleComplianceSummaryGroupKey -> Ordering
ConfigRuleComplianceSummaryGroupKey
-> ConfigRuleComplianceSummaryGroupKey
-> ConfigRuleComplianceSummaryGroupKey
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 :: ConfigRuleComplianceSummaryGroupKey
-> ConfigRuleComplianceSummaryGroupKey
-> ConfigRuleComplianceSummaryGroupKey
$cmin :: ConfigRuleComplianceSummaryGroupKey
-> ConfigRuleComplianceSummaryGroupKey
-> ConfigRuleComplianceSummaryGroupKey
max :: ConfigRuleComplianceSummaryGroupKey
-> ConfigRuleComplianceSummaryGroupKey
-> ConfigRuleComplianceSummaryGroupKey
$cmax :: ConfigRuleComplianceSummaryGroupKey
-> ConfigRuleComplianceSummaryGroupKey
-> ConfigRuleComplianceSummaryGroupKey
>= :: ConfigRuleComplianceSummaryGroupKey
-> ConfigRuleComplianceSummaryGroupKey -> Bool
$c>= :: ConfigRuleComplianceSummaryGroupKey
-> ConfigRuleComplianceSummaryGroupKey -> Bool
> :: ConfigRuleComplianceSummaryGroupKey
-> ConfigRuleComplianceSummaryGroupKey -> Bool
$c> :: ConfigRuleComplianceSummaryGroupKey
-> ConfigRuleComplianceSummaryGroupKey -> Bool
<= :: ConfigRuleComplianceSummaryGroupKey
-> ConfigRuleComplianceSummaryGroupKey -> Bool
$c<= :: ConfigRuleComplianceSummaryGroupKey
-> ConfigRuleComplianceSummaryGroupKey -> Bool
< :: ConfigRuleComplianceSummaryGroupKey
-> ConfigRuleComplianceSummaryGroupKey -> Bool
$c< :: ConfigRuleComplianceSummaryGroupKey
-> ConfigRuleComplianceSummaryGroupKey -> Bool
compare :: ConfigRuleComplianceSummaryGroupKey
-> ConfigRuleComplianceSummaryGroupKey -> Ordering
$ccompare :: ConfigRuleComplianceSummaryGroupKey
-> ConfigRuleComplianceSummaryGroupKey -> Ordering
$cp1Ord :: Eq ConfigRuleComplianceSummaryGroupKey
Prelude.Ord,
      (forall x.
 ConfigRuleComplianceSummaryGroupKey
 -> Rep ConfigRuleComplianceSummaryGroupKey x)
-> (forall x.
    Rep ConfigRuleComplianceSummaryGroupKey x
    -> ConfigRuleComplianceSummaryGroupKey)
-> Generic ConfigRuleComplianceSummaryGroupKey
forall x.
Rep ConfigRuleComplianceSummaryGroupKey x
-> ConfigRuleComplianceSummaryGroupKey
forall x.
ConfigRuleComplianceSummaryGroupKey
-> Rep ConfigRuleComplianceSummaryGroupKey x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ConfigRuleComplianceSummaryGroupKey x
-> ConfigRuleComplianceSummaryGroupKey
$cfrom :: forall x.
ConfigRuleComplianceSummaryGroupKey
-> Rep ConfigRuleComplianceSummaryGroupKey x
Prelude.Generic
    )
  deriving newtype
    ( Int -> ConfigRuleComplianceSummaryGroupKey -> Int
ConfigRuleComplianceSummaryGroupKey -> Int
(Int -> ConfigRuleComplianceSummaryGroupKey -> Int)
-> (ConfigRuleComplianceSummaryGroupKey -> Int)
-> Hashable ConfigRuleComplianceSummaryGroupKey
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: ConfigRuleComplianceSummaryGroupKey -> Int
$chash :: ConfigRuleComplianceSummaryGroupKey -> Int
hashWithSalt :: Int -> ConfigRuleComplianceSummaryGroupKey -> Int
$chashWithSalt :: Int -> ConfigRuleComplianceSummaryGroupKey -> Int
Prelude.Hashable,
      ConfigRuleComplianceSummaryGroupKey -> ()
(ConfigRuleComplianceSummaryGroupKey -> ())
-> NFData ConfigRuleComplianceSummaryGroupKey
forall a. (a -> ()) -> NFData a
rnf :: ConfigRuleComplianceSummaryGroupKey -> ()
$crnf :: ConfigRuleComplianceSummaryGroupKey -> ()
Prelude.NFData,
      Text -> Either String ConfigRuleComplianceSummaryGroupKey
(Text -> Either String ConfigRuleComplianceSummaryGroupKey)
-> FromText ConfigRuleComplianceSummaryGroupKey
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ConfigRuleComplianceSummaryGroupKey
$cfromText :: Text -> Either String ConfigRuleComplianceSummaryGroupKey
Core.FromText,
      ConfigRuleComplianceSummaryGroupKey -> Text
(ConfigRuleComplianceSummaryGroupKey -> Text)
-> ToText ConfigRuleComplianceSummaryGroupKey
forall a. (a -> Text) -> ToText a
toText :: ConfigRuleComplianceSummaryGroupKey -> Text
$ctoText :: ConfigRuleComplianceSummaryGroupKey -> Text
Core.ToText,
      ConfigRuleComplianceSummaryGroupKey -> ByteString
(ConfigRuleComplianceSummaryGroupKey -> ByteString)
-> ToByteString ConfigRuleComplianceSummaryGroupKey
forall a. (a -> ByteString) -> ToByteString a
toBS :: ConfigRuleComplianceSummaryGroupKey -> ByteString
$ctoBS :: ConfigRuleComplianceSummaryGroupKey -> ByteString
Core.ToByteString,
      ConfigRuleComplianceSummaryGroupKey -> ByteStringBuilder
(ConfigRuleComplianceSummaryGroupKey -> ByteStringBuilder)
-> ToLog ConfigRuleComplianceSummaryGroupKey
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ConfigRuleComplianceSummaryGroupKey -> ByteStringBuilder
$cbuild :: ConfigRuleComplianceSummaryGroupKey -> ByteStringBuilder
Core.ToLog,
      HeaderName -> ConfigRuleComplianceSummaryGroupKey -> [Header]
(HeaderName -> ConfigRuleComplianceSummaryGroupKey -> [Header])
-> ToHeader ConfigRuleComplianceSummaryGroupKey
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ConfigRuleComplianceSummaryGroupKey -> [Header]
$ctoHeader :: HeaderName -> ConfigRuleComplianceSummaryGroupKey -> [Header]
Core.ToHeader,
      ConfigRuleComplianceSummaryGroupKey -> QueryString
(ConfigRuleComplianceSummaryGroupKey -> QueryString)
-> ToQuery ConfigRuleComplianceSummaryGroupKey
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ConfigRuleComplianceSummaryGroupKey -> QueryString
$ctoQuery :: ConfigRuleComplianceSummaryGroupKey -> QueryString
Core.ToQuery,
      Value -> Parser [ConfigRuleComplianceSummaryGroupKey]
Value -> Parser ConfigRuleComplianceSummaryGroupKey
(Value -> Parser ConfigRuleComplianceSummaryGroupKey)
-> (Value -> Parser [ConfigRuleComplianceSummaryGroupKey])
-> FromJSON ConfigRuleComplianceSummaryGroupKey
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [ConfigRuleComplianceSummaryGroupKey]
$cparseJSONList :: Value -> Parser [ConfigRuleComplianceSummaryGroupKey]
parseJSON :: Value -> Parser ConfigRuleComplianceSummaryGroupKey
$cparseJSON :: Value -> Parser ConfigRuleComplianceSummaryGroupKey
Core.FromJSON,
      FromJSONKeyFunction [ConfigRuleComplianceSummaryGroupKey]
FromJSONKeyFunction ConfigRuleComplianceSummaryGroupKey
FromJSONKeyFunction ConfigRuleComplianceSummaryGroupKey
-> FromJSONKeyFunction [ConfigRuleComplianceSummaryGroupKey]
-> FromJSONKey ConfigRuleComplianceSummaryGroupKey
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ConfigRuleComplianceSummaryGroupKey]
$cfromJSONKeyList :: FromJSONKeyFunction [ConfigRuleComplianceSummaryGroupKey]
fromJSONKey :: FromJSONKeyFunction ConfigRuleComplianceSummaryGroupKey
$cfromJSONKey :: FromJSONKeyFunction ConfigRuleComplianceSummaryGroupKey
Core.FromJSONKey,
      [ConfigRuleComplianceSummaryGroupKey] -> Encoding
[ConfigRuleComplianceSummaryGroupKey] -> Value
ConfigRuleComplianceSummaryGroupKey -> Encoding
ConfigRuleComplianceSummaryGroupKey -> Value
(ConfigRuleComplianceSummaryGroupKey -> Value)
-> (ConfigRuleComplianceSummaryGroupKey -> Encoding)
-> ([ConfigRuleComplianceSummaryGroupKey] -> Value)
-> ([ConfigRuleComplianceSummaryGroupKey] -> Encoding)
-> ToJSON ConfigRuleComplianceSummaryGroupKey
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [ConfigRuleComplianceSummaryGroupKey] -> Encoding
$ctoEncodingList :: [ConfigRuleComplianceSummaryGroupKey] -> Encoding
toJSONList :: [ConfigRuleComplianceSummaryGroupKey] -> Value
$ctoJSONList :: [ConfigRuleComplianceSummaryGroupKey] -> Value
toEncoding :: ConfigRuleComplianceSummaryGroupKey -> Encoding
$ctoEncoding :: ConfigRuleComplianceSummaryGroupKey -> Encoding
toJSON :: ConfigRuleComplianceSummaryGroupKey -> Value
$ctoJSON :: ConfigRuleComplianceSummaryGroupKey -> Value
Core.ToJSON,
      ToJSONKeyFunction [ConfigRuleComplianceSummaryGroupKey]
ToJSONKeyFunction ConfigRuleComplianceSummaryGroupKey
ToJSONKeyFunction ConfigRuleComplianceSummaryGroupKey
-> ToJSONKeyFunction [ConfigRuleComplianceSummaryGroupKey]
-> ToJSONKey ConfigRuleComplianceSummaryGroupKey
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ConfigRuleComplianceSummaryGroupKey]
$ctoJSONKeyList :: ToJSONKeyFunction [ConfigRuleComplianceSummaryGroupKey]
toJSONKey :: ToJSONKeyFunction ConfigRuleComplianceSummaryGroupKey
$ctoJSONKey :: ToJSONKeyFunction ConfigRuleComplianceSummaryGroupKey
Core.ToJSONKey,
      [Node] -> Either String ConfigRuleComplianceSummaryGroupKey
([Node] -> Either String ConfigRuleComplianceSummaryGroupKey)
-> FromXML ConfigRuleComplianceSummaryGroupKey
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ConfigRuleComplianceSummaryGroupKey
$cparseXML :: [Node] -> Either String ConfigRuleComplianceSummaryGroupKey
Core.FromXML,
      ConfigRuleComplianceSummaryGroupKey -> XML
(ConfigRuleComplianceSummaryGroupKey -> XML)
-> ToXML ConfigRuleComplianceSummaryGroupKey
forall a. (a -> XML) -> ToXML a
toXML :: ConfigRuleComplianceSummaryGroupKey -> XML
$ctoXML :: ConfigRuleComplianceSummaryGroupKey -> XML
Core.ToXML
    )

pattern ConfigRuleComplianceSummaryGroupKey_ACCOUNT_ID :: ConfigRuleComplianceSummaryGroupKey
pattern $bConfigRuleComplianceSummaryGroupKey_ACCOUNT_ID :: ConfigRuleComplianceSummaryGroupKey
$mConfigRuleComplianceSummaryGroupKey_ACCOUNT_ID :: forall r.
ConfigRuleComplianceSummaryGroupKey
-> (Void# -> r) -> (Void# -> r) -> r
ConfigRuleComplianceSummaryGroupKey_ACCOUNT_ID = ConfigRuleComplianceSummaryGroupKey' "ACCOUNT_ID"

pattern ConfigRuleComplianceSummaryGroupKey_AWS_REGION :: ConfigRuleComplianceSummaryGroupKey
pattern $bConfigRuleComplianceSummaryGroupKey_AWS_REGION :: ConfigRuleComplianceSummaryGroupKey
$mConfigRuleComplianceSummaryGroupKey_AWS_REGION :: forall r.
ConfigRuleComplianceSummaryGroupKey
-> (Void# -> r) -> (Void# -> r) -> r
ConfigRuleComplianceSummaryGroupKey_AWS_REGION = ConfigRuleComplianceSummaryGroupKey' "AWS_REGION"

{-# COMPLETE
  ConfigRuleComplianceSummaryGroupKey_ACCOUNT_ID,
  ConfigRuleComplianceSummaryGroupKey_AWS_REGION,
  ConfigRuleComplianceSummaryGroupKey'
  #-}