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