{-# 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.CloudFormation.Types.DeprecatedStatus
-- 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.CloudFormation.Types.DeprecatedStatus
  ( DeprecatedStatus
      ( ..,
        DeprecatedStatus_DEPRECATED,
        DeprecatedStatus_LIVE
      ),
  )
where

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

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

pattern DeprecatedStatus_DEPRECATED :: DeprecatedStatus
pattern $bDeprecatedStatus_DEPRECATED :: DeprecatedStatus
$mDeprecatedStatus_DEPRECATED :: forall {r}. DeprecatedStatus -> ((# #) -> r) -> ((# #) -> r) -> r
DeprecatedStatus_DEPRECATED = DeprecatedStatus' "DEPRECATED"

pattern DeprecatedStatus_LIVE :: DeprecatedStatus
pattern $bDeprecatedStatus_LIVE :: DeprecatedStatus
$mDeprecatedStatus_LIVE :: forall {r}. DeprecatedStatus -> ((# #) -> r) -> ((# #) -> r) -> r
DeprecatedStatus_LIVE = DeprecatedStatus' "LIVE"

{-# COMPLETE
  DeprecatedStatus_DEPRECATED,
  DeprecatedStatus_LIVE,
  DeprecatedStatus'
  #-}