{-# 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.ResourceCountGroupKey
( ResourceCountGroupKey
( ..,
ResourceCountGroupKey_ACCOUNT_ID,
ResourceCountGroupKey_AWS_REGION,
ResourceCountGroupKey_RESOURCE_TYPE
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype ResourceCountGroupKey = ResourceCountGroupKey'
{ ResourceCountGroupKey -> Text
fromResourceCountGroupKey ::
Core.Text
}
deriving stock
( Int -> ResourceCountGroupKey -> ShowS
[ResourceCountGroupKey] -> ShowS
ResourceCountGroupKey -> String
(Int -> ResourceCountGroupKey -> ShowS)
-> (ResourceCountGroupKey -> String)
-> ([ResourceCountGroupKey] -> ShowS)
-> Show ResourceCountGroupKey
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]
(Int -> ReadS ResourceCountGroupKey)
-> ReadS [ResourceCountGroupKey]
-> ReadPrec ResourceCountGroupKey
-> ReadPrec [ResourceCountGroupKey]
-> Read 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
(ResourceCountGroupKey -> ResourceCountGroupKey -> Bool)
-> (ResourceCountGroupKey -> ResourceCountGroupKey -> Bool)
-> Eq ResourceCountGroupKey
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
Eq ResourceCountGroupKey
-> (ResourceCountGroupKey -> ResourceCountGroupKey -> Ordering)
-> (ResourceCountGroupKey -> ResourceCountGroupKey -> Bool)
-> (ResourceCountGroupKey -> ResourceCountGroupKey -> Bool)
-> (ResourceCountGroupKey -> ResourceCountGroupKey -> Bool)
-> (ResourceCountGroupKey -> ResourceCountGroupKey -> Bool)
-> (ResourceCountGroupKey
-> ResourceCountGroupKey -> ResourceCountGroupKey)
-> (ResourceCountGroupKey
-> ResourceCountGroupKey -> ResourceCountGroupKey)
-> Ord 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
$cp1Ord :: Eq ResourceCountGroupKey
Prelude.Ord,
(forall x. ResourceCountGroupKey -> Rep ResourceCountGroupKey x)
-> (forall x. Rep ResourceCountGroupKey x -> ResourceCountGroupKey)
-> Generic ResourceCountGroupKey
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
( Int -> ResourceCountGroupKey -> Int
ResourceCountGroupKey -> Int
(Int -> ResourceCountGroupKey -> Int)
-> (ResourceCountGroupKey -> Int) -> Hashable ResourceCountGroupKey
forall 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 -> ()
(ResourceCountGroupKey -> ()) -> NFData ResourceCountGroupKey
forall a. (a -> ()) -> NFData a
rnf :: ResourceCountGroupKey -> ()
$crnf :: ResourceCountGroupKey -> ()
Prelude.NFData,
Text -> Either String ResourceCountGroupKey
(Text -> Either String ResourceCountGroupKey)
-> FromText ResourceCountGroupKey
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ResourceCountGroupKey
$cfromText :: Text -> Either String ResourceCountGroupKey
Core.FromText,
ResourceCountGroupKey -> Text
(ResourceCountGroupKey -> Text) -> ToText ResourceCountGroupKey
forall a. (a -> Text) -> ToText a
toText :: ResourceCountGroupKey -> Text
$ctoText :: ResourceCountGroupKey -> Text
Core.ToText,
ResourceCountGroupKey -> ByteString
(ResourceCountGroupKey -> ByteString)
-> ToByteString ResourceCountGroupKey
forall a. (a -> ByteString) -> ToByteString a
toBS :: ResourceCountGroupKey -> ByteString
$ctoBS :: ResourceCountGroupKey -> ByteString
Core.ToByteString,
ResourceCountGroupKey -> ByteStringBuilder
(ResourceCountGroupKey -> ByteStringBuilder)
-> ToLog ResourceCountGroupKey
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ResourceCountGroupKey -> ByteStringBuilder
$cbuild :: ResourceCountGroupKey -> ByteStringBuilder
Core.ToLog,
HeaderName -> ResourceCountGroupKey -> [Header]
(HeaderName -> ResourceCountGroupKey -> [Header])
-> ToHeader ResourceCountGroupKey
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ResourceCountGroupKey -> [Header]
$ctoHeader :: HeaderName -> ResourceCountGroupKey -> [Header]
Core.ToHeader,
ResourceCountGroupKey -> QueryString
(ResourceCountGroupKey -> QueryString)
-> ToQuery ResourceCountGroupKey
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ResourceCountGroupKey -> QueryString
$ctoQuery :: ResourceCountGroupKey -> QueryString
Core.ToQuery,
Value -> Parser [ResourceCountGroupKey]
Value -> Parser ResourceCountGroupKey
(Value -> Parser ResourceCountGroupKey)
-> (Value -> Parser [ResourceCountGroupKey])
-> FromJSON 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
Core.FromJSON,
FromJSONKeyFunction [ResourceCountGroupKey]
FromJSONKeyFunction ResourceCountGroupKey
FromJSONKeyFunction ResourceCountGroupKey
-> FromJSONKeyFunction [ResourceCountGroupKey]
-> FromJSONKey ResourceCountGroupKey
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ResourceCountGroupKey]
$cfromJSONKeyList :: FromJSONKeyFunction [ResourceCountGroupKey]
fromJSONKey :: FromJSONKeyFunction ResourceCountGroupKey
$cfromJSONKey :: FromJSONKeyFunction ResourceCountGroupKey
Core.FromJSONKey,
[ResourceCountGroupKey] -> Encoding
[ResourceCountGroupKey] -> Value
ResourceCountGroupKey -> Encoding
ResourceCountGroupKey -> Value
(ResourceCountGroupKey -> Value)
-> (ResourceCountGroupKey -> Encoding)
-> ([ResourceCountGroupKey] -> Value)
-> ([ResourceCountGroupKey] -> Encoding)
-> ToJSON ResourceCountGroupKey
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
Core.ToJSON,
ToJSONKeyFunction [ResourceCountGroupKey]
ToJSONKeyFunction ResourceCountGroupKey
ToJSONKeyFunction ResourceCountGroupKey
-> ToJSONKeyFunction [ResourceCountGroupKey]
-> ToJSONKey ResourceCountGroupKey
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ResourceCountGroupKey]
$ctoJSONKeyList :: ToJSONKeyFunction [ResourceCountGroupKey]
toJSONKey :: ToJSONKeyFunction ResourceCountGroupKey
$ctoJSONKey :: ToJSONKeyFunction ResourceCountGroupKey
Core.ToJSONKey,
[Node] -> Either String ResourceCountGroupKey
([Node] -> Either String ResourceCountGroupKey)
-> FromXML ResourceCountGroupKey
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ResourceCountGroupKey
$cparseXML :: [Node] -> Either String ResourceCountGroupKey
Core.FromXML,
ResourceCountGroupKey -> XML
(ResourceCountGroupKey -> XML) -> ToXML ResourceCountGroupKey
forall a. (a -> XML) -> ToXML a
toXML :: ResourceCountGroupKey -> XML
$ctoXML :: ResourceCountGroupKey -> XML
Core.ToXML
)
pattern ResourceCountGroupKey_ACCOUNT_ID :: ResourceCountGroupKey
pattern $bResourceCountGroupKey_ACCOUNT_ID :: ResourceCountGroupKey
$mResourceCountGroupKey_ACCOUNT_ID :: forall r.
ResourceCountGroupKey -> (Void# -> r) -> (Void# -> r) -> r
ResourceCountGroupKey_ACCOUNT_ID = ResourceCountGroupKey' "ACCOUNT_ID"
pattern ResourceCountGroupKey_AWS_REGION :: ResourceCountGroupKey
pattern $bResourceCountGroupKey_AWS_REGION :: ResourceCountGroupKey
$mResourceCountGroupKey_AWS_REGION :: forall r.
ResourceCountGroupKey -> (Void# -> r) -> (Void# -> r) -> r
ResourceCountGroupKey_AWS_REGION = ResourceCountGroupKey' "AWS_REGION"
pattern ResourceCountGroupKey_RESOURCE_TYPE :: ResourceCountGroupKey
pattern $bResourceCountGroupKey_RESOURCE_TYPE :: ResourceCountGroupKey
$mResourceCountGroupKey_RESOURCE_TYPE :: forall r.
ResourceCountGroupKey -> (Void# -> r) -> (Void# -> r) -> r
ResourceCountGroupKey_RESOURCE_TYPE = ResourceCountGroupKey' "RESOURCE_TYPE"
{-# COMPLETE
ResourceCountGroupKey_ACCOUNT_ID,
ResourceCountGroupKey_AWS_REGION,
ResourceCountGroupKey_RESOURCE_TYPE,
ResourceCountGroupKey'
#-}