{-# 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.ElastiCache.Types.LogDeliveryConfigurationStatus
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.ElastiCache.Types.LogDeliveryConfigurationStatus
  ( LogDeliveryConfigurationStatus
      ( ..,
        LogDeliveryConfigurationStatus_Active,
        LogDeliveryConfigurationStatus_Disabling,
        LogDeliveryConfigurationStatus_Enabling,
        LogDeliveryConfigurationStatus_Error,
        LogDeliveryConfigurationStatus_Modifying
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude

newtype LogDeliveryConfigurationStatus = LogDeliveryConfigurationStatus'
  { LogDeliveryConfigurationStatus -> Text
fromLogDeliveryConfigurationStatus ::
      Core.Text
  }
  deriving stock
    ( Int -> LogDeliveryConfigurationStatus -> ShowS
[LogDeliveryConfigurationStatus] -> ShowS
LogDeliveryConfigurationStatus -> String
(Int -> LogDeliveryConfigurationStatus -> ShowS)
-> (LogDeliveryConfigurationStatus -> String)
-> ([LogDeliveryConfigurationStatus] -> ShowS)
-> Show LogDeliveryConfigurationStatus
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [LogDeliveryConfigurationStatus] -> ShowS
$cshowList :: [LogDeliveryConfigurationStatus] -> ShowS
show :: LogDeliveryConfigurationStatus -> String
$cshow :: LogDeliveryConfigurationStatus -> String
showsPrec :: Int -> LogDeliveryConfigurationStatus -> ShowS
$cshowsPrec :: Int -> LogDeliveryConfigurationStatus -> ShowS
Prelude.Show,
      ReadPrec [LogDeliveryConfigurationStatus]
ReadPrec LogDeliveryConfigurationStatus
Int -> ReadS LogDeliveryConfigurationStatus
ReadS [LogDeliveryConfigurationStatus]
(Int -> ReadS LogDeliveryConfigurationStatus)
-> ReadS [LogDeliveryConfigurationStatus]
-> ReadPrec LogDeliveryConfigurationStatus
-> ReadPrec [LogDeliveryConfigurationStatus]
-> Read LogDeliveryConfigurationStatus
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [LogDeliveryConfigurationStatus]
$creadListPrec :: ReadPrec [LogDeliveryConfigurationStatus]
readPrec :: ReadPrec LogDeliveryConfigurationStatus
$creadPrec :: ReadPrec LogDeliveryConfigurationStatus
readList :: ReadS [LogDeliveryConfigurationStatus]
$creadList :: ReadS [LogDeliveryConfigurationStatus]
readsPrec :: Int -> ReadS LogDeliveryConfigurationStatus
$creadsPrec :: Int -> ReadS LogDeliveryConfigurationStatus
Prelude.Read,
      LogDeliveryConfigurationStatus
-> LogDeliveryConfigurationStatus -> Bool
(LogDeliveryConfigurationStatus
 -> LogDeliveryConfigurationStatus -> Bool)
-> (LogDeliveryConfigurationStatus
    -> LogDeliveryConfigurationStatus -> Bool)
-> Eq LogDeliveryConfigurationStatus
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: LogDeliveryConfigurationStatus
-> LogDeliveryConfigurationStatus -> Bool
$c/= :: LogDeliveryConfigurationStatus
-> LogDeliveryConfigurationStatus -> Bool
== :: LogDeliveryConfigurationStatus
-> LogDeliveryConfigurationStatus -> Bool
$c== :: LogDeliveryConfigurationStatus
-> LogDeliveryConfigurationStatus -> Bool
Prelude.Eq,
      Eq LogDeliveryConfigurationStatus
Eq LogDeliveryConfigurationStatus
-> (LogDeliveryConfigurationStatus
    -> LogDeliveryConfigurationStatus -> Ordering)
-> (LogDeliveryConfigurationStatus
    -> LogDeliveryConfigurationStatus -> Bool)
-> (LogDeliveryConfigurationStatus
    -> LogDeliveryConfigurationStatus -> Bool)
-> (LogDeliveryConfigurationStatus
    -> LogDeliveryConfigurationStatus -> Bool)
-> (LogDeliveryConfigurationStatus
    -> LogDeliveryConfigurationStatus -> Bool)
-> (LogDeliveryConfigurationStatus
    -> LogDeliveryConfigurationStatus
    -> LogDeliveryConfigurationStatus)
-> (LogDeliveryConfigurationStatus
    -> LogDeliveryConfigurationStatus
    -> LogDeliveryConfigurationStatus)
-> Ord LogDeliveryConfigurationStatus
LogDeliveryConfigurationStatus
-> LogDeliveryConfigurationStatus -> Bool
LogDeliveryConfigurationStatus
-> LogDeliveryConfigurationStatus -> Ordering
LogDeliveryConfigurationStatus
-> LogDeliveryConfigurationStatus -> LogDeliveryConfigurationStatus
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 :: LogDeliveryConfigurationStatus
-> LogDeliveryConfigurationStatus -> LogDeliveryConfigurationStatus
$cmin :: LogDeliveryConfigurationStatus
-> LogDeliveryConfigurationStatus -> LogDeliveryConfigurationStatus
max :: LogDeliveryConfigurationStatus
-> LogDeliveryConfigurationStatus -> LogDeliveryConfigurationStatus
$cmax :: LogDeliveryConfigurationStatus
-> LogDeliveryConfigurationStatus -> LogDeliveryConfigurationStatus
>= :: LogDeliveryConfigurationStatus
-> LogDeliveryConfigurationStatus -> Bool
$c>= :: LogDeliveryConfigurationStatus
-> LogDeliveryConfigurationStatus -> Bool
> :: LogDeliveryConfigurationStatus
-> LogDeliveryConfigurationStatus -> Bool
$c> :: LogDeliveryConfigurationStatus
-> LogDeliveryConfigurationStatus -> Bool
<= :: LogDeliveryConfigurationStatus
-> LogDeliveryConfigurationStatus -> Bool
$c<= :: LogDeliveryConfigurationStatus
-> LogDeliveryConfigurationStatus -> Bool
< :: LogDeliveryConfigurationStatus
-> LogDeliveryConfigurationStatus -> Bool
$c< :: LogDeliveryConfigurationStatus
-> LogDeliveryConfigurationStatus -> Bool
compare :: LogDeliveryConfigurationStatus
-> LogDeliveryConfigurationStatus -> Ordering
$ccompare :: LogDeliveryConfigurationStatus
-> LogDeliveryConfigurationStatus -> Ordering
$cp1Ord :: Eq LogDeliveryConfigurationStatus
Prelude.Ord,
      (forall x.
 LogDeliveryConfigurationStatus
 -> Rep LogDeliveryConfigurationStatus x)
-> (forall x.
    Rep LogDeliveryConfigurationStatus x
    -> LogDeliveryConfigurationStatus)
-> Generic LogDeliveryConfigurationStatus
forall x.
Rep LogDeliveryConfigurationStatus x
-> LogDeliveryConfigurationStatus
forall x.
LogDeliveryConfigurationStatus
-> Rep LogDeliveryConfigurationStatus x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep LogDeliveryConfigurationStatus x
-> LogDeliveryConfigurationStatus
$cfrom :: forall x.
LogDeliveryConfigurationStatus
-> Rep LogDeliveryConfigurationStatus x
Prelude.Generic
    )
  deriving newtype
    ( Int -> LogDeliveryConfigurationStatus -> Int
LogDeliveryConfigurationStatus -> Int
(Int -> LogDeliveryConfigurationStatus -> Int)
-> (LogDeliveryConfigurationStatus -> Int)
-> Hashable LogDeliveryConfigurationStatus
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: LogDeliveryConfigurationStatus -> Int
$chash :: LogDeliveryConfigurationStatus -> Int
hashWithSalt :: Int -> LogDeliveryConfigurationStatus -> Int
$chashWithSalt :: Int -> LogDeliveryConfigurationStatus -> Int
Prelude.Hashable,
      LogDeliveryConfigurationStatus -> ()
(LogDeliveryConfigurationStatus -> ())
-> NFData LogDeliveryConfigurationStatus
forall a. (a -> ()) -> NFData a
rnf :: LogDeliveryConfigurationStatus -> ()
$crnf :: LogDeliveryConfigurationStatus -> ()
Prelude.NFData,
      Text -> Either String LogDeliveryConfigurationStatus
(Text -> Either String LogDeliveryConfigurationStatus)
-> FromText LogDeliveryConfigurationStatus
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String LogDeliveryConfigurationStatus
$cfromText :: Text -> Either String LogDeliveryConfigurationStatus
Core.FromText,
      LogDeliveryConfigurationStatus -> Text
(LogDeliveryConfigurationStatus -> Text)
-> ToText LogDeliveryConfigurationStatus
forall a. (a -> Text) -> ToText a
toText :: LogDeliveryConfigurationStatus -> Text
$ctoText :: LogDeliveryConfigurationStatus -> Text
Core.ToText,
      LogDeliveryConfigurationStatus -> ByteString
(LogDeliveryConfigurationStatus -> ByteString)
-> ToByteString LogDeliveryConfigurationStatus
forall a. (a -> ByteString) -> ToByteString a
toBS :: LogDeliveryConfigurationStatus -> ByteString
$ctoBS :: LogDeliveryConfigurationStatus -> ByteString
Core.ToByteString,
      LogDeliveryConfigurationStatus -> ByteStringBuilder
(LogDeliveryConfigurationStatus -> ByteStringBuilder)
-> ToLog LogDeliveryConfigurationStatus
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: LogDeliveryConfigurationStatus -> ByteStringBuilder
$cbuild :: LogDeliveryConfigurationStatus -> ByteStringBuilder
Core.ToLog,
      HeaderName -> LogDeliveryConfigurationStatus -> [Header]
(HeaderName -> LogDeliveryConfigurationStatus -> [Header])
-> ToHeader LogDeliveryConfigurationStatus
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> LogDeliveryConfigurationStatus -> [Header]
$ctoHeader :: HeaderName -> LogDeliveryConfigurationStatus -> [Header]
Core.ToHeader,
      LogDeliveryConfigurationStatus -> QueryString
(LogDeliveryConfigurationStatus -> QueryString)
-> ToQuery LogDeliveryConfigurationStatus
forall a. (a -> QueryString) -> ToQuery a
toQuery :: LogDeliveryConfigurationStatus -> QueryString
$ctoQuery :: LogDeliveryConfigurationStatus -> QueryString
Core.ToQuery,
      Value -> Parser [LogDeliveryConfigurationStatus]
Value -> Parser LogDeliveryConfigurationStatus
(Value -> Parser LogDeliveryConfigurationStatus)
-> (Value -> Parser [LogDeliveryConfigurationStatus])
-> FromJSON LogDeliveryConfigurationStatus
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [LogDeliveryConfigurationStatus]
$cparseJSONList :: Value -> Parser [LogDeliveryConfigurationStatus]
parseJSON :: Value -> Parser LogDeliveryConfigurationStatus
$cparseJSON :: Value -> Parser LogDeliveryConfigurationStatus
Core.FromJSON,
      FromJSONKeyFunction [LogDeliveryConfigurationStatus]
FromJSONKeyFunction LogDeliveryConfigurationStatus
FromJSONKeyFunction LogDeliveryConfigurationStatus
-> FromJSONKeyFunction [LogDeliveryConfigurationStatus]
-> FromJSONKey LogDeliveryConfigurationStatus
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [LogDeliveryConfigurationStatus]
$cfromJSONKeyList :: FromJSONKeyFunction [LogDeliveryConfigurationStatus]
fromJSONKey :: FromJSONKeyFunction LogDeliveryConfigurationStatus
$cfromJSONKey :: FromJSONKeyFunction LogDeliveryConfigurationStatus
Core.FromJSONKey,
      [LogDeliveryConfigurationStatus] -> Encoding
[LogDeliveryConfigurationStatus] -> Value
LogDeliveryConfigurationStatus -> Encoding
LogDeliveryConfigurationStatus -> Value
(LogDeliveryConfigurationStatus -> Value)
-> (LogDeliveryConfigurationStatus -> Encoding)
-> ([LogDeliveryConfigurationStatus] -> Value)
-> ([LogDeliveryConfigurationStatus] -> Encoding)
-> ToJSON LogDeliveryConfigurationStatus
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [LogDeliveryConfigurationStatus] -> Encoding
$ctoEncodingList :: [LogDeliveryConfigurationStatus] -> Encoding
toJSONList :: [LogDeliveryConfigurationStatus] -> Value
$ctoJSONList :: [LogDeliveryConfigurationStatus] -> Value
toEncoding :: LogDeliveryConfigurationStatus -> Encoding
$ctoEncoding :: LogDeliveryConfigurationStatus -> Encoding
toJSON :: LogDeliveryConfigurationStatus -> Value
$ctoJSON :: LogDeliveryConfigurationStatus -> Value
Core.ToJSON,
      ToJSONKeyFunction [LogDeliveryConfigurationStatus]
ToJSONKeyFunction LogDeliveryConfigurationStatus
ToJSONKeyFunction LogDeliveryConfigurationStatus
-> ToJSONKeyFunction [LogDeliveryConfigurationStatus]
-> ToJSONKey LogDeliveryConfigurationStatus
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [LogDeliveryConfigurationStatus]
$ctoJSONKeyList :: ToJSONKeyFunction [LogDeliveryConfigurationStatus]
toJSONKey :: ToJSONKeyFunction LogDeliveryConfigurationStatus
$ctoJSONKey :: ToJSONKeyFunction LogDeliveryConfigurationStatus
Core.ToJSONKey,
      [Node] -> Either String LogDeliveryConfigurationStatus
([Node] -> Either String LogDeliveryConfigurationStatus)
-> FromXML LogDeliveryConfigurationStatus
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String LogDeliveryConfigurationStatus
$cparseXML :: [Node] -> Either String LogDeliveryConfigurationStatus
Core.FromXML,
      LogDeliveryConfigurationStatus -> XML
(LogDeliveryConfigurationStatus -> XML)
-> ToXML LogDeliveryConfigurationStatus
forall a. (a -> XML) -> ToXML a
toXML :: LogDeliveryConfigurationStatus -> XML
$ctoXML :: LogDeliveryConfigurationStatus -> XML
Core.ToXML
    )

pattern LogDeliveryConfigurationStatus_Active :: LogDeliveryConfigurationStatus
pattern $bLogDeliveryConfigurationStatus_Active :: LogDeliveryConfigurationStatus
$mLogDeliveryConfigurationStatus_Active :: forall r.
LogDeliveryConfigurationStatus -> (Void# -> r) -> (Void# -> r) -> r
LogDeliveryConfigurationStatus_Active = LogDeliveryConfigurationStatus' "active"

pattern LogDeliveryConfigurationStatus_Disabling :: LogDeliveryConfigurationStatus
pattern $bLogDeliveryConfigurationStatus_Disabling :: LogDeliveryConfigurationStatus
$mLogDeliveryConfigurationStatus_Disabling :: forall r.
LogDeliveryConfigurationStatus -> (Void# -> r) -> (Void# -> r) -> r
LogDeliveryConfigurationStatus_Disabling = LogDeliveryConfigurationStatus' "disabling"

pattern LogDeliveryConfigurationStatus_Enabling :: LogDeliveryConfigurationStatus
pattern $bLogDeliveryConfigurationStatus_Enabling :: LogDeliveryConfigurationStatus
$mLogDeliveryConfigurationStatus_Enabling :: forall r.
LogDeliveryConfigurationStatus -> (Void# -> r) -> (Void# -> r) -> r
LogDeliveryConfigurationStatus_Enabling = LogDeliveryConfigurationStatus' "enabling"

pattern LogDeliveryConfigurationStatus_Error :: LogDeliveryConfigurationStatus
pattern $bLogDeliveryConfigurationStatus_Error :: LogDeliveryConfigurationStatus
$mLogDeliveryConfigurationStatus_Error :: forall r.
LogDeliveryConfigurationStatus -> (Void# -> r) -> (Void# -> r) -> r
LogDeliveryConfigurationStatus_Error = LogDeliveryConfigurationStatus' "error"

pattern LogDeliveryConfigurationStatus_Modifying :: LogDeliveryConfigurationStatus
pattern $bLogDeliveryConfigurationStatus_Modifying :: LogDeliveryConfigurationStatus
$mLogDeliveryConfigurationStatus_Modifying :: forall r.
LogDeliveryConfigurationStatus -> (Void# -> r) -> (Void# -> r) -> r
LogDeliveryConfigurationStatus_Modifying = LogDeliveryConfigurationStatus' "modifying"

{-# COMPLETE
  LogDeliveryConfigurationStatus_Active,
  LogDeliveryConfigurationStatus_Disabling,
  LogDeliveryConfigurationStatus_Enabling,
  LogDeliveryConfigurationStatus_Error,
  LogDeliveryConfigurationStatus_Modifying,
  LogDeliveryConfigurationStatus'
  #-}