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