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