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