{-# 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.TemplateStage
-- 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.TemplateStage
  ( TemplateStage
      ( ..,
        TemplateStage_Original,
        TemplateStage_Processed
      ),
  )
where

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

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

pattern TemplateStage_Original :: TemplateStage
pattern $bTemplateStage_Original :: TemplateStage
$mTemplateStage_Original :: forall {r}. TemplateStage -> ((# #) -> r) -> ((# #) -> r) -> r
TemplateStage_Original = TemplateStage' "Original"

pattern TemplateStage_Processed :: TemplateStage
pattern $bTemplateStage_Processed :: TemplateStage
$mTemplateStage_Processed :: forall {r}. TemplateStage -> ((# #) -> r) -> ((# #) -> r) -> r
TemplateStage_Processed = TemplateStage' "Processed"

{-# COMPLETE
  TemplateStage_Original,
  TemplateStage_Processed,
  TemplateStage'
  #-}