{-# 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.Config.Types.EventSource
-- 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.Config.Types.EventSource
  ( EventSource
      ( ..,
        EventSource_Aws_config
      ),
  )
where

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

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

pattern EventSource_Aws_config :: EventSource
pattern $bEventSource_Aws_config :: EventSource
$mEventSource_Aws_config :: forall r. EventSource -> (Void# -> r) -> (Void# -> r) -> r
EventSource_Aws_config = EventSource' "aws.config"

{-# COMPLETE
  EventSource_Aws_config,
  EventSource'
  #-}