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