{-# 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.Discovery.Types.DataSource
-- 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.Discovery.Types.DataSource
  ( DataSource
      ( ..,
        DataSource_AGENT
      ),
  )
where

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

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

pattern DataSource_AGENT :: DataSource
pattern $bDataSource_AGENT :: DataSource
$mDataSource_AGENT :: forall {r}. DataSource -> ((# #) -> r) -> ((# #) -> r) -> r
DataSource_AGENT = DataSource' "AGENT"

{-# COMPLETE
  DataSource_AGENT,
  DataSource'
  #-}