{-# 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.AppSync.Types.RelationalDatabaseSourceType
-- 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.AppSync.Types.RelationalDatabaseSourceType
  ( RelationalDatabaseSourceType
      ( ..,
        RelationalDatabaseSourceType_RDS_HTTP_ENDPOINT
      ),
  )
where

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

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

pattern RelationalDatabaseSourceType_RDS_HTTP_ENDPOINT :: RelationalDatabaseSourceType
pattern $bRelationalDatabaseSourceType_RDS_HTTP_ENDPOINT :: RelationalDatabaseSourceType
$mRelationalDatabaseSourceType_RDS_HTTP_ENDPOINT :: forall r.
RelationalDatabaseSourceType -> (Void# -> r) -> (Void# -> r) -> r
RelationalDatabaseSourceType_RDS_HTTP_ENDPOINT = RelationalDatabaseSourceType' "RDS_HTTP_ENDPOINT"

{-# COMPLETE
  RelationalDatabaseSourceType_RDS_HTTP_ENDPOINT,
  RelationalDatabaseSourceType'
  #-}