{-# 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-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- 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.Data as Data
import qualified Amazonka.Prelude as Prelude

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

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

{-# COMPLETE
  EventSource_Aws_config,
  EventSource'
  #-}