{-# 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.Firehose.Types.DeliveryStreamStatus
-- 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.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.Data as Data
import qualified Amazonka.Prelude as Prelude

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

pattern DeliveryStreamStatus_ACTIVE :: DeliveryStreamStatus
pattern $bDeliveryStreamStatus_ACTIVE :: DeliveryStreamStatus
$mDeliveryStreamStatus_ACTIVE :: forall {r}.
DeliveryStreamStatus -> ((# #) -> r) -> ((# #) -> r) -> r
DeliveryStreamStatus_ACTIVE = DeliveryStreamStatus' "ACTIVE"

pattern DeliveryStreamStatus_CREATING :: DeliveryStreamStatus
pattern $bDeliveryStreamStatus_CREATING :: DeliveryStreamStatus
$mDeliveryStreamStatus_CREATING :: forall {r}.
DeliveryStreamStatus -> ((# #) -> r) -> ((# #) -> r) -> r
DeliveryStreamStatus_CREATING = DeliveryStreamStatus' "CREATING"

pattern DeliveryStreamStatus_CREATING_FAILED :: DeliveryStreamStatus
pattern $bDeliveryStreamStatus_CREATING_FAILED :: DeliveryStreamStatus
$mDeliveryStreamStatus_CREATING_FAILED :: forall {r}.
DeliveryStreamStatus -> ((# #) -> r) -> ((# #) -> r) -> r
DeliveryStreamStatus_CREATING_FAILED = DeliveryStreamStatus' "CREATING_FAILED"

pattern DeliveryStreamStatus_DELETING :: DeliveryStreamStatus
pattern $bDeliveryStreamStatus_DELETING :: DeliveryStreamStatus
$mDeliveryStreamStatus_DELETING :: forall {r}.
DeliveryStreamStatus -> ((# #) -> r) -> ((# #) -> r) -> r
DeliveryStreamStatus_DELETING = DeliveryStreamStatus' "DELETING"

pattern DeliveryStreamStatus_DELETING_FAILED :: DeliveryStreamStatus
pattern $bDeliveryStreamStatus_DELETING_FAILED :: DeliveryStreamStatus
$mDeliveryStreamStatus_DELETING_FAILED :: forall {r}.
DeliveryStreamStatus -> ((# #) -> r) -> ((# #) -> r) -> r
DeliveryStreamStatus_DELETING_FAILED = DeliveryStreamStatus' "DELETING_FAILED"

{-# COMPLETE
  DeliveryStreamStatus_ACTIVE,
  DeliveryStreamStatus_CREATING,
  DeliveryStreamStatus_CREATING_FAILED,
  DeliveryStreamStatus_DELETING,
  DeliveryStreamStatus_DELETING_FAILED,
  DeliveryStreamStatus'
  #-}