{-# 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.ResourceCountGroupKey
-- 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.ResourceCountGroupKey
  ( ResourceCountGroupKey
      ( ..,
        ResourceCountGroupKey_ACCOUNT_ID,
        ResourceCountGroupKey_AWS_REGION,
        ResourceCountGroupKey_RESOURCE_TYPE
      ),
  )
where

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

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

pattern ResourceCountGroupKey_ACCOUNT_ID :: ResourceCountGroupKey
pattern $bResourceCountGroupKey_ACCOUNT_ID :: ResourceCountGroupKey
$mResourceCountGroupKey_ACCOUNT_ID :: forall {r}.
ResourceCountGroupKey -> ((# #) -> r) -> ((# #) -> r) -> r
ResourceCountGroupKey_ACCOUNT_ID = ResourceCountGroupKey' "ACCOUNT_ID"

pattern ResourceCountGroupKey_AWS_REGION :: ResourceCountGroupKey
pattern $bResourceCountGroupKey_AWS_REGION :: ResourceCountGroupKey
$mResourceCountGroupKey_AWS_REGION :: forall {r}.
ResourceCountGroupKey -> ((# #) -> r) -> ((# #) -> r) -> r
ResourceCountGroupKey_AWS_REGION = ResourceCountGroupKey' "AWS_REGION"

pattern ResourceCountGroupKey_RESOURCE_TYPE :: ResourceCountGroupKey
pattern $bResourceCountGroupKey_RESOURCE_TYPE :: ResourceCountGroupKey
$mResourceCountGroupKey_RESOURCE_TYPE :: forall {r}.
ResourceCountGroupKey -> ((# #) -> r) -> ((# #) -> r) -> r
ResourceCountGroupKey_RESOURCE_TYPE = ResourceCountGroupKey' "RESOURCE_TYPE"

{-# COMPLETE
  ResourceCountGroupKey_ACCOUNT_ID,
  ResourceCountGroupKey_AWS_REGION,
  ResourceCountGroupKey_RESOURCE_TYPE,
  ResourceCountGroupKey'
  #-}