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