{-# 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.QuickSight.Types.DashboardErrorType
-- 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.QuickSight.Types.DashboardErrorType
  ( DashboardErrorType
      ( ..,
        DashboardErrorType_ACCESS_DENIED,
        DashboardErrorType_COLUMN_GEOGRAPHIC_ROLE_MISMATCH,
        DashboardErrorType_COLUMN_REPLACEMENT_MISSING,
        DashboardErrorType_COLUMN_TYPE_MISMATCH,
        DashboardErrorType_DATA_SET_NOT_FOUND,
        DashboardErrorType_INTERNAL_FAILURE,
        DashboardErrorType_PARAMETER_NOT_FOUND,
        DashboardErrorType_PARAMETER_TYPE_INVALID,
        DashboardErrorType_PARAMETER_VALUE_INCOMPATIBLE,
        DashboardErrorType_SOURCE_NOT_FOUND
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude

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

pattern DashboardErrorType_ACCESS_DENIED :: DashboardErrorType
pattern $bDashboardErrorType_ACCESS_DENIED :: DashboardErrorType
$mDashboardErrorType_ACCESS_DENIED :: forall {r}. DashboardErrorType -> ((# #) -> r) -> ((# #) -> r) -> r
DashboardErrorType_ACCESS_DENIED = DashboardErrorType' "ACCESS_DENIED"

pattern DashboardErrorType_COLUMN_GEOGRAPHIC_ROLE_MISMATCH :: DashboardErrorType
pattern $bDashboardErrorType_COLUMN_GEOGRAPHIC_ROLE_MISMATCH :: DashboardErrorType
$mDashboardErrorType_COLUMN_GEOGRAPHIC_ROLE_MISMATCH :: forall {r}. DashboardErrorType -> ((# #) -> r) -> ((# #) -> r) -> r
DashboardErrorType_COLUMN_GEOGRAPHIC_ROLE_MISMATCH = DashboardErrorType' "COLUMN_GEOGRAPHIC_ROLE_MISMATCH"

pattern DashboardErrorType_COLUMN_REPLACEMENT_MISSING :: DashboardErrorType
pattern $bDashboardErrorType_COLUMN_REPLACEMENT_MISSING :: DashboardErrorType
$mDashboardErrorType_COLUMN_REPLACEMENT_MISSING :: forall {r}. DashboardErrorType -> ((# #) -> r) -> ((# #) -> r) -> r
DashboardErrorType_COLUMN_REPLACEMENT_MISSING = DashboardErrorType' "COLUMN_REPLACEMENT_MISSING"

pattern DashboardErrorType_COLUMN_TYPE_MISMATCH :: DashboardErrorType
pattern $bDashboardErrorType_COLUMN_TYPE_MISMATCH :: DashboardErrorType
$mDashboardErrorType_COLUMN_TYPE_MISMATCH :: forall {r}. DashboardErrorType -> ((# #) -> r) -> ((# #) -> r) -> r
DashboardErrorType_COLUMN_TYPE_MISMATCH = DashboardErrorType' "COLUMN_TYPE_MISMATCH"

pattern DashboardErrorType_DATA_SET_NOT_FOUND :: DashboardErrorType
pattern $bDashboardErrorType_DATA_SET_NOT_FOUND :: DashboardErrorType
$mDashboardErrorType_DATA_SET_NOT_FOUND :: forall {r}. DashboardErrorType -> ((# #) -> r) -> ((# #) -> r) -> r
DashboardErrorType_DATA_SET_NOT_FOUND = DashboardErrorType' "DATA_SET_NOT_FOUND"

pattern DashboardErrorType_INTERNAL_FAILURE :: DashboardErrorType
pattern $bDashboardErrorType_INTERNAL_FAILURE :: DashboardErrorType
$mDashboardErrorType_INTERNAL_FAILURE :: forall {r}. DashboardErrorType -> ((# #) -> r) -> ((# #) -> r) -> r
DashboardErrorType_INTERNAL_FAILURE = DashboardErrorType' "INTERNAL_FAILURE"

pattern DashboardErrorType_PARAMETER_NOT_FOUND :: DashboardErrorType
pattern $bDashboardErrorType_PARAMETER_NOT_FOUND :: DashboardErrorType
$mDashboardErrorType_PARAMETER_NOT_FOUND :: forall {r}. DashboardErrorType -> ((# #) -> r) -> ((# #) -> r) -> r
DashboardErrorType_PARAMETER_NOT_FOUND = DashboardErrorType' "PARAMETER_NOT_FOUND"

pattern DashboardErrorType_PARAMETER_TYPE_INVALID :: DashboardErrorType
pattern $bDashboardErrorType_PARAMETER_TYPE_INVALID :: DashboardErrorType
$mDashboardErrorType_PARAMETER_TYPE_INVALID :: forall {r}. DashboardErrorType -> ((# #) -> r) -> ((# #) -> r) -> r
DashboardErrorType_PARAMETER_TYPE_INVALID = DashboardErrorType' "PARAMETER_TYPE_INVALID"

pattern DashboardErrorType_PARAMETER_VALUE_INCOMPATIBLE :: DashboardErrorType
pattern $bDashboardErrorType_PARAMETER_VALUE_INCOMPATIBLE :: DashboardErrorType
$mDashboardErrorType_PARAMETER_VALUE_INCOMPATIBLE :: forall {r}. DashboardErrorType -> ((# #) -> r) -> ((# #) -> r) -> r
DashboardErrorType_PARAMETER_VALUE_INCOMPATIBLE = DashboardErrorType' "PARAMETER_VALUE_INCOMPATIBLE"

pattern DashboardErrorType_SOURCE_NOT_FOUND :: DashboardErrorType
pattern $bDashboardErrorType_SOURCE_NOT_FOUND :: DashboardErrorType
$mDashboardErrorType_SOURCE_NOT_FOUND :: forall {r}. DashboardErrorType -> ((# #) -> r) -> ((# #) -> r) -> r
DashboardErrorType_SOURCE_NOT_FOUND = DashboardErrorType' "SOURCE_NOT_FOUND"

{-# COMPLETE
  DashboardErrorType_ACCESS_DENIED,
  DashboardErrorType_COLUMN_GEOGRAPHIC_ROLE_MISMATCH,
  DashboardErrorType_COLUMN_REPLACEMENT_MISSING,
  DashboardErrorType_COLUMN_TYPE_MISMATCH,
  DashboardErrorType_DATA_SET_NOT_FOUND,
  DashboardErrorType_INTERNAL_FAILURE,
  DashboardErrorType_PARAMETER_NOT_FOUND,
  DashboardErrorType_PARAMETER_TYPE_INVALID,
  DashboardErrorType_PARAMETER_VALUE_INCOMPATIBLE,
  DashboardErrorType_SOURCE_NOT_FOUND,
  DashboardErrorType'
  #-}