{-# 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.DataSourceType
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.QuickSight.Types.DataSourceType
  ( DataSourceType
      ( ..,
        DataSourceType_ADOBE_ANALYTICS,
        DataSourceType_AMAZON_ELASTICSEARCH,
        DataSourceType_AMAZON_OPENSEARCH,
        DataSourceType_ATHENA,
        DataSourceType_AURORA,
        DataSourceType_AURORA_POSTGRESQL,
        DataSourceType_AWS_IOT_ANALYTICS,
        DataSourceType_GITHUB,
        DataSourceType_JIRA,
        DataSourceType_MARIADB,
        DataSourceType_MYSQL,
        DataSourceType_ORACLE,
        DataSourceType_POSTGRESQL,
        DataSourceType_PRESTO,
        DataSourceType_REDSHIFT,
        DataSourceType_S3,
        DataSourceType_SALESFORCE,
        DataSourceType_SERVICENOW,
        DataSourceType_SNOWFLAKE,
        DataSourceType_SPARK,
        DataSourceType_SQLSERVER,
        DataSourceType_TERADATA,
        DataSourceType_TIMESTREAM,
        DataSourceType_TWITTER
      ),
  )
where

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

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

pattern DataSourceType_ADOBE_ANALYTICS :: DataSourceType
pattern $bDataSourceType_ADOBE_ANALYTICS :: DataSourceType
$mDataSourceType_ADOBE_ANALYTICS :: forall r. DataSourceType -> (Void# -> r) -> (Void# -> r) -> r
DataSourceType_ADOBE_ANALYTICS = DataSourceType' "ADOBE_ANALYTICS"

pattern DataSourceType_AMAZON_ELASTICSEARCH :: DataSourceType
pattern $bDataSourceType_AMAZON_ELASTICSEARCH :: DataSourceType
$mDataSourceType_AMAZON_ELASTICSEARCH :: forall r. DataSourceType -> (Void# -> r) -> (Void# -> r) -> r
DataSourceType_AMAZON_ELASTICSEARCH = DataSourceType' "AMAZON_ELASTICSEARCH"

pattern DataSourceType_AMAZON_OPENSEARCH :: DataSourceType
pattern $bDataSourceType_AMAZON_OPENSEARCH :: DataSourceType
$mDataSourceType_AMAZON_OPENSEARCH :: forall r. DataSourceType -> (Void# -> r) -> (Void# -> r) -> r
DataSourceType_AMAZON_OPENSEARCH = DataSourceType' "AMAZON_OPENSEARCH"

pattern DataSourceType_ATHENA :: DataSourceType
pattern $bDataSourceType_ATHENA :: DataSourceType
$mDataSourceType_ATHENA :: forall r. DataSourceType -> (Void# -> r) -> (Void# -> r) -> r
DataSourceType_ATHENA = DataSourceType' "ATHENA"

pattern DataSourceType_AURORA :: DataSourceType
pattern $bDataSourceType_AURORA :: DataSourceType
$mDataSourceType_AURORA :: forall r. DataSourceType -> (Void# -> r) -> (Void# -> r) -> r
DataSourceType_AURORA = DataSourceType' "AURORA"

pattern DataSourceType_AURORA_POSTGRESQL :: DataSourceType
pattern $bDataSourceType_AURORA_POSTGRESQL :: DataSourceType
$mDataSourceType_AURORA_POSTGRESQL :: forall r. DataSourceType -> (Void# -> r) -> (Void# -> r) -> r
DataSourceType_AURORA_POSTGRESQL = DataSourceType' "AURORA_POSTGRESQL"

pattern DataSourceType_AWS_IOT_ANALYTICS :: DataSourceType
pattern $bDataSourceType_AWS_IOT_ANALYTICS :: DataSourceType
$mDataSourceType_AWS_IOT_ANALYTICS :: forall r. DataSourceType -> (Void# -> r) -> (Void# -> r) -> r
DataSourceType_AWS_IOT_ANALYTICS = DataSourceType' "AWS_IOT_ANALYTICS"

pattern DataSourceType_GITHUB :: DataSourceType
pattern $bDataSourceType_GITHUB :: DataSourceType
$mDataSourceType_GITHUB :: forall r. DataSourceType -> (Void# -> r) -> (Void# -> r) -> r
DataSourceType_GITHUB = DataSourceType' "GITHUB"

pattern DataSourceType_JIRA :: DataSourceType
pattern $bDataSourceType_JIRA :: DataSourceType
$mDataSourceType_JIRA :: forall r. DataSourceType -> (Void# -> r) -> (Void# -> r) -> r
DataSourceType_JIRA = DataSourceType' "JIRA"

pattern DataSourceType_MARIADB :: DataSourceType
pattern $bDataSourceType_MARIADB :: DataSourceType
$mDataSourceType_MARIADB :: forall r. DataSourceType -> (Void# -> r) -> (Void# -> r) -> r
DataSourceType_MARIADB = DataSourceType' "MARIADB"

pattern DataSourceType_MYSQL :: DataSourceType
pattern $bDataSourceType_MYSQL :: DataSourceType
$mDataSourceType_MYSQL :: forall r. DataSourceType -> (Void# -> r) -> (Void# -> r) -> r
DataSourceType_MYSQL = DataSourceType' "MYSQL"

pattern DataSourceType_ORACLE :: DataSourceType
pattern $bDataSourceType_ORACLE :: DataSourceType
$mDataSourceType_ORACLE :: forall r. DataSourceType -> (Void# -> r) -> (Void# -> r) -> r
DataSourceType_ORACLE = DataSourceType' "ORACLE"

pattern DataSourceType_POSTGRESQL :: DataSourceType
pattern $bDataSourceType_POSTGRESQL :: DataSourceType
$mDataSourceType_POSTGRESQL :: forall r. DataSourceType -> (Void# -> r) -> (Void# -> r) -> r
DataSourceType_POSTGRESQL = DataSourceType' "POSTGRESQL"

pattern DataSourceType_PRESTO :: DataSourceType
pattern $bDataSourceType_PRESTO :: DataSourceType
$mDataSourceType_PRESTO :: forall r. DataSourceType -> (Void# -> r) -> (Void# -> r) -> r
DataSourceType_PRESTO = DataSourceType' "PRESTO"

pattern DataSourceType_REDSHIFT :: DataSourceType
pattern $bDataSourceType_REDSHIFT :: DataSourceType
$mDataSourceType_REDSHIFT :: forall r. DataSourceType -> (Void# -> r) -> (Void# -> r) -> r
DataSourceType_REDSHIFT = DataSourceType' "REDSHIFT"

pattern DataSourceType_S3 :: DataSourceType
pattern $bDataSourceType_S3 :: DataSourceType
$mDataSourceType_S3 :: forall r. DataSourceType -> (Void# -> r) -> (Void# -> r) -> r
DataSourceType_S3 = DataSourceType' "S3"

pattern DataSourceType_SALESFORCE :: DataSourceType
pattern $bDataSourceType_SALESFORCE :: DataSourceType
$mDataSourceType_SALESFORCE :: forall r. DataSourceType -> (Void# -> r) -> (Void# -> r) -> r
DataSourceType_SALESFORCE = DataSourceType' "SALESFORCE"

pattern DataSourceType_SERVICENOW :: DataSourceType
pattern $bDataSourceType_SERVICENOW :: DataSourceType
$mDataSourceType_SERVICENOW :: forall r. DataSourceType -> (Void# -> r) -> (Void# -> r) -> r
DataSourceType_SERVICENOW = DataSourceType' "SERVICENOW"

pattern DataSourceType_SNOWFLAKE :: DataSourceType
pattern $bDataSourceType_SNOWFLAKE :: DataSourceType
$mDataSourceType_SNOWFLAKE :: forall r. DataSourceType -> (Void# -> r) -> (Void# -> r) -> r
DataSourceType_SNOWFLAKE = DataSourceType' "SNOWFLAKE"

pattern DataSourceType_SPARK :: DataSourceType
pattern $bDataSourceType_SPARK :: DataSourceType
$mDataSourceType_SPARK :: forall r. DataSourceType -> (Void# -> r) -> (Void# -> r) -> r
DataSourceType_SPARK = DataSourceType' "SPARK"

pattern DataSourceType_SQLSERVER :: DataSourceType
pattern $bDataSourceType_SQLSERVER :: DataSourceType
$mDataSourceType_SQLSERVER :: forall r. DataSourceType -> (Void# -> r) -> (Void# -> r) -> r
DataSourceType_SQLSERVER = DataSourceType' "SQLSERVER"

pattern DataSourceType_TERADATA :: DataSourceType
pattern $bDataSourceType_TERADATA :: DataSourceType
$mDataSourceType_TERADATA :: forall r. DataSourceType -> (Void# -> r) -> (Void# -> r) -> r
DataSourceType_TERADATA = DataSourceType' "TERADATA"

pattern DataSourceType_TIMESTREAM :: DataSourceType
pattern $bDataSourceType_TIMESTREAM :: DataSourceType
$mDataSourceType_TIMESTREAM :: forall r. DataSourceType -> (Void# -> r) -> (Void# -> r) -> r
DataSourceType_TIMESTREAM = DataSourceType' "TIMESTREAM"

pattern DataSourceType_TWITTER :: DataSourceType
pattern $bDataSourceType_TWITTER :: DataSourceType
$mDataSourceType_TWITTER :: forall r. DataSourceType -> (Void# -> r) -> (Void# -> r) -> r
DataSourceType_TWITTER = DataSourceType' "TWITTER"

{-# COMPLETE
  DataSourceType_ADOBE_ANALYTICS,
  DataSourceType_AMAZON_ELASTICSEARCH,
  DataSourceType_AMAZON_OPENSEARCH,
  DataSourceType_ATHENA,
  DataSourceType_AURORA,
  DataSourceType_AURORA_POSTGRESQL,
  DataSourceType_AWS_IOT_ANALYTICS,
  DataSourceType_GITHUB,
  DataSourceType_JIRA,
  DataSourceType_MARIADB,
  DataSourceType_MYSQL,
  DataSourceType_ORACLE,
  DataSourceType_POSTGRESQL,
  DataSourceType_PRESTO,
  DataSourceType_REDSHIFT,
  DataSourceType_S3,
  DataSourceType_SALESFORCE,
  DataSourceType_SERVICENOW,
  DataSourceType_SNOWFLAKE,
  DataSourceType_SPARK,
  DataSourceType_SQLSERVER,
  DataSourceType_TERADATA,
  DataSourceType_TIMESTREAM,
  DataSourceType_TWITTER,
  DataSourceType'
  #-}