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