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