{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.DevOpsGuru.Types.EventDataSource
( EventDataSource
( ..,
EventDataSource_AWS_CLOUD_TRAIL,
EventDataSource_AWS_CODE_DEPLOY
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype EventDataSource = EventDataSource'
{ EventDataSource -> Text
fromEventDataSource ::
Core.Text
}
deriving stock
( Int -> EventDataSource -> ShowS
[EventDataSource] -> ShowS
EventDataSource -> String
(Int -> EventDataSource -> ShowS)
-> (EventDataSource -> String)
-> ([EventDataSource] -> ShowS)
-> Show EventDataSource
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [EventDataSource] -> ShowS
$cshowList :: [EventDataSource] -> ShowS
show :: EventDataSource -> String
$cshow :: EventDataSource -> String
showsPrec :: Int -> EventDataSource -> ShowS
$cshowsPrec :: Int -> EventDataSource -> ShowS
Prelude.Show,
ReadPrec [EventDataSource]
ReadPrec EventDataSource
Int -> ReadS EventDataSource
ReadS [EventDataSource]
(Int -> ReadS EventDataSource)
-> ReadS [EventDataSource]
-> ReadPrec EventDataSource
-> ReadPrec [EventDataSource]
-> Read EventDataSource
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [EventDataSource]
$creadListPrec :: ReadPrec [EventDataSource]
readPrec :: ReadPrec EventDataSource
$creadPrec :: ReadPrec EventDataSource
readList :: ReadS [EventDataSource]
$creadList :: ReadS [EventDataSource]
readsPrec :: Int -> ReadS EventDataSource
$creadsPrec :: Int -> ReadS EventDataSource
Prelude.Read,
EventDataSource -> EventDataSource -> Bool
(EventDataSource -> EventDataSource -> Bool)
-> (EventDataSource -> EventDataSource -> Bool)
-> Eq EventDataSource
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: EventDataSource -> EventDataSource -> Bool
$c/= :: EventDataSource -> EventDataSource -> Bool
== :: EventDataSource -> EventDataSource -> Bool
$c== :: EventDataSource -> EventDataSource -> Bool
Prelude.Eq,
Eq EventDataSource
Eq EventDataSource
-> (EventDataSource -> EventDataSource -> Ordering)
-> (EventDataSource -> EventDataSource -> Bool)
-> (EventDataSource -> EventDataSource -> Bool)
-> (EventDataSource -> EventDataSource -> Bool)
-> (EventDataSource -> EventDataSource -> Bool)
-> (EventDataSource -> EventDataSource -> EventDataSource)
-> (EventDataSource -> EventDataSource -> EventDataSource)
-> Ord EventDataSource
EventDataSource -> EventDataSource -> Bool
EventDataSource -> EventDataSource -> Ordering
EventDataSource -> EventDataSource -> EventDataSource
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 :: EventDataSource -> EventDataSource -> EventDataSource
$cmin :: EventDataSource -> EventDataSource -> EventDataSource
max :: EventDataSource -> EventDataSource -> EventDataSource
$cmax :: EventDataSource -> EventDataSource -> EventDataSource
>= :: EventDataSource -> EventDataSource -> Bool
$c>= :: EventDataSource -> EventDataSource -> Bool
> :: EventDataSource -> EventDataSource -> Bool
$c> :: EventDataSource -> EventDataSource -> Bool
<= :: EventDataSource -> EventDataSource -> Bool
$c<= :: EventDataSource -> EventDataSource -> Bool
< :: EventDataSource -> EventDataSource -> Bool
$c< :: EventDataSource -> EventDataSource -> Bool
compare :: EventDataSource -> EventDataSource -> Ordering
$ccompare :: EventDataSource -> EventDataSource -> Ordering
$cp1Ord :: Eq EventDataSource
Prelude.Ord,
(forall x. EventDataSource -> Rep EventDataSource x)
-> (forall x. Rep EventDataSource x -> EventDataSource)
-> Generic EventDataSource
forall x. Rep EventDataSource x -> EventDataSource
forall x. EventDataSource -> Rep EventDataSource x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep EventDataSource x -> EventDataSource
$cfrom :: forall x. EventDataSource -> Rep EventDataSource x
Prelude.Generic
)
deriving newtype
( Int -> EventDataSource -> Int
EventDataSource -> Int
(Int -> EventDataSource -> Int)
-> (EventDataSource -> Int) -> Hashable EventDataSource
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: EventDataSource -> Int
$chash :: EventDataSource -> Int
hashWithSalt :: Int -> EventDataSource -> Int
$chashWithSalt :: Int -> EventDataSource -> Int
Prelude.Hashable,
EventDataSource -> ()
(EventDataSource -> ()) -> NFData EventDataSource
forall a. (a -> ()) -> NFData a
rnf :: EventDataSource -> ()
$crnf :: EventDataSource -> ()
Prelude.NFData,
Text -> Either String EventDataSource
(Text -> Either String EventDataSource) -> FromText EventDataSource
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String EventDataSource
$cfromText :: Text -> Either String EventDataSource
Core.FromText,
EventDataSource -> Text
(EventDataSource -> Text) -> ToText EventDataSource
forall a. (a -> Text) -> ToText a
toText :: EventDataSource -> Text
$ctoText :: EventDataSource -> Text
Core.ToText,
EventDataSource -> ByteString
(EventDataSource -> ByteString) -> ToByteString EventDataSource
forall a. (a -> ByteString) -> ToByteString a
toBS :: EventDataSource -> ByteString
$ctoBS :: EventDataSource -> ByteString
Core.ToByteString,
EventDataSource -> ByteStringBuilder
(EventDataSource -> ByteStringBuilder) -> ToLog EventDataSource
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: EventDataSource -> ByteStringBuilder
$cbuild :: EventDataSource -> ByteStringBuilder
Core.ToLog,
HeaderName -> EventDataSource -> [Header]
(HeaderName -> EventDataSource -> [Header])
-> ToHeader EventDataSource
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> EventDataSource -> [Header]
$ctoHeader :: HeaderName -> EventDataSource -> [Header]
Core.ToHeader,
EventDataSource -> QueryString
(EventDataSource -> QueryString) -> ToQuery EventDataSource
forall a. (a -> QueryString) -> ToQuery a
toQuery :: EventDataSource -> QueryString
$ctoQuery :: EventDataSource -> QueryString
Core.ToQuery,
Value -> Parser [EventDataSource]
Value -> Parser EventDataSource
(Value -> Parser EventDataSource)
-> (Value -> Parser [EventDataSource]) -> FromJSON EventDataSource
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [EventDataSource]
$cparseJSONList :: Value -> Parser [EventDataSource]
parseJSON :: Value -> Parser EventDataSource
$cparseJSON :: Value -> Parser EventDataSource
Core.FromJSON,
FromJSONKeyFunction [EventDataSource]
FromJSONKeyFunction EventDataSource
FromJSONKeyFunction EventDataSource
-> FromJSONKeyFunction [EventDataSource]
-> FromJSONKey EventDataSource
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [EventDataSource]
$cfromJSONKeyList :: FromJSONKeyFunction [EventDataSource]
fromJSONKey :: FromJSONKeyFunction EventDataSource
$cfromJSONKey :: FromJSONKeyFunction EventDataSource
Core.FromJSONKey,
[EventDataSource] -> Encoding
[EventDataSource] -> Value
EventDataSource -> Encoding
EventDataSource -> Value
(EventDataSource -> Value)
-> (EventDataSource -> Encoding)
-> ([EventDataSource] -> Value)
-> ([EventDataSource] -> Encoding)
-> ToJSON EventDataSource
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [EventDataSource] -> Encoding
$ctoEncodingList :: [EventDataSource] -> Encoding
toJSONList :: [EventDataSource] -> Value
$ctoJSONList :: [EventDataSource] -> Value
toEncoding :: EventDataSource -> Encoding
$ctoEncoding :: EventDataSource -> Encoding
toJSON :: EventDataSource -> Value
$ctoJSON :: EventDataSource -> Value
Core.ToJSON,
ToJSONKeyFunction [EventDataSource]
ToJSONKeyFunction EventDataSource
ToJSONKeyFunction EventDataSource
-> ToJSONKeyFunction [EventDataSource] -> ToJSONKey EventDataSource
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [EventDataSource]
$ctoJSONKeyList :: ToJSONKeyFunction [EventDataSource]
toJSONKey :: ToJSONKeyFunction EventDataSource
$ctoJSONKey :: ToJSONKeyFunction EventDataSource
Core.ToJSONKey,
[Node] -> Either String EventDataSource
([Node] -> Either String EventDataSource)
-> FromXML EventDataSource
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String EventDataSource
$cparseXML :: [Node] -> Either String EventDataSource
Core.FromXML,
EventDataSource -> XML
(EventDataSource -> XML) -> ToXML EventDataSource
forall a. (a -> XML) -> ToXML a
toXML :: EventDataSource -> XML
$ctoXML :: EventDataSource -> XML
Core.ToXML
)
pattern EventDataSource_AWS_CLOUD_TRAIL :: EventDataSource
pattern $bEventDataSource_AWS_CLOUD_TRAIL :: EventDataSource
$mEventDataSource_AWS_CLOUD_TRAIL :: forall r. EventDataSource -> (Void# -> r) -> (Void# -> r) -> r
EventDataSource_AWS_CLOUD_TRAIL = EventDataSource' "AWS_CLOUD_TRAIL"
pattern EventDataSource_AWS_CODE_DEPLOY :: EventDataSource
pattern $bEventDataSource_AWS_CODE_DEPLOY :: EventDataSource
$mEventDataSource_AWS_CODE_DEPLOY :: forall r. EventDataSource -> (Void# -> r) -> (Void# -> r) -> r
EventDataSource_AWS_CODE_DEPLOY = EventDataSource' "AWS_CODE_DEPLOY"
{-# COMPLETE
EventDataSource_AWS_CLOUD_TRAIL,
EventDataSource_AWS_CODE_DEPLOY,
EventDataSource'
#-}