{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.AppStream.Types.UsageReportExecutionErrorCode
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
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.Data as Data
import qualified Amazonka.Prelude as Prelude

newtype UsageReportExecutionErrorCode = UsageReportExecutionErrorCode'
  { UsageReportExecutionErrorCode -> Text
fromUsageReportExecutionErrorCode ::
      Data.Text
  }
  deriving stock
    ( Int -> UsageReportExecutionErrorCode -> ShowS
[UsageReportExecutionErrorCode] -> ShowS
UsageReportExecutionErrorCode -> String
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]
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
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
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
Prelude.Ord,
      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
    ( Eq UsageReportExecutionErrorCode
Int -> UsageReportExecutionErrorCode -> Int
UsageReportExecutionErrorCode -> Int
forall a. Eq 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 -> ()
forall a. (a -> ()) -> NFData a
rnf :: UsageReportExecutionErrorCode -> ()
$crnf :: UsageReportExecutionErrorCode -> ()
Prelude.NFData,
      Text -> Either String UsageReportExecutionErrorCode
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String UsageReportExecutionErrorCode
$cfromText :: Text -> Either String UsageReportExecutionErrorCode
Data.FromText,
      UsageReportExecutionErrorCode -> Text
forall a. (a -> Text) -> ToText a
toText :: UsageReportExecutionErrorCode -> Text
$ctoText :: UsageReportExecutionErrorCode -> Text
Data.ToText,
      UsageReportExecutionErrorCode -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: UsageReportExecutionErrorCode -> ByteString
$ctoBS :: UsageReportExecutionErrorCode -> ByteString
Data.ToByteString,
      UsageReportExecutionErrorCode -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: UsageReportExecutionErrorCode -> ByteStringBuilder
$cbuild :: UsageReportExecutionErrorCode -> ByteStringBuilder
Data.ToLog,
      HeaderName -> UsageReportExecutionErrorCode -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> UsageReportExecutionErrorCode -> [Header]
$ctoHeader :: HeaderName -> UsageReportExecutionErrorCode -> [Header]
Data.ToHeader,
      UsageReportExecutionErrorCode -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: UsageReportExecutionErrorCode -> QueryString
$ctoQuery :: UsageReportExecutionErrorCode -> QueryString
Data.ToQuery,
      Value -> Parser [UsageReportExecutionErrorCode]
Value -> Parser 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
Data.FromJSON,
      FromJSONKeyFunction [UsageReportExecutionErrorCode]
FromJSONKeyFunction UsageReportExecutionErrorCode
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [UsageReportExecutionErrorCode]
$cfromJSONKeyList :: FromJSONKeyFunction [UsageReportExecutionErrorCode]
fromJSONKey :: FromJSONKeyFunction UsageReportExecutionErrorCode
$cfromJSONKey :: FromJSONKeyFunction UsageReportExecutionErrorCode
Data.FromJSONKey,
      [UsageReportExecutionErrorCode] -> Encoding
[UsageReportExecutionErrorCode] -> Value
UsageReportExecutionErrorCode -> Encoding
UsageReportExecutionErrorCode -> Value
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
Data.ToJSON,
      ToJSONKeyFunction [UsageReportExecutionErrorCode]
ToJSONKeyFunction UsageReportExecutionErrorCode
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [UsageReportExecutionErrorCode]
$ctoJSONKeyList :: ToJSONKeyFunction [UsageReportExecutionErrorCode]
toJSONKey :: ToJSONKeyFunction UsageReportExecutionErrorCode
$ctoJSONKey :: ToJSONKeyFunction UsageReportExecutionErrorCode
Data.ToJSONKey,
      [Node] -> Either String UsageReportExecutionErrorCode
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String UsageReportExecutionErrorCode
$cparseXML :: [Node] -> Either String UsageReportExecutionErrorCode
Data.FromXML,
      UsageReportExecutionErrorCode -> XML
forall a. (a -> XML) -> ToXML a
toXML :: UsageReportExecutionErrorCode -> XML
$ctoXML :: UsageReportExecutionErrorCode -> XML
Data.ToXML
    )

pattern UsageReportExecutionErrorCode_ACCESS_DENIED :: UsageReportExecutionErrorCode
pattern $bUsageReportExecutionErrorCode_ACCESS_DENIED :: UsageReportExecutionErrorCode
$mUsageReportExecutionErrorCode_ACCESS_DENIED :: forall {r}.
UsageReportExecutionErrorCode -> ((# #) -> r) -> ((# #) -> 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 -> ((# #) -> r) -> ((# #) -> 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 -> ((# #) -> r) -> ((# #) -> r) -> r
UsageReportExecutionErrorCode_RESOURCE_NOT_FOUND = UsageReportExecutionErrorCode' "RESOURCE_NOT_FOUND"

{-# COMPLETE
  UsageReportExecutionErrorCode_ACCESS_DENIED,
  UsageReportExecutionErrorCode_INTERNAL_SERVICE_ERROR,
  UsageReportExecutionErrorCode_RESOURCE_NOT_FOUND,
  UsageReportExecutionErrorCode'
  #-}