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

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

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

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

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

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