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

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

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

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

{-# COMPLETE
  DataSource_AGENT,
  DataSource'
  #-}