{-# 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.RequiresRecreation
-- 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.RequiresRecreation
  ( RequiresRecreation
      ( ..,
        RequiresRecreation_Always,
        RequiresRecreation_Conditionally,
        RequiresRecreation_Never
      ),
  )
where

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

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

pattern RequiresRecreation_Always :: RequiresRecreation
pattern $bRequiresRecreation_Always :: RequiresRecreation
$mRequiresRecreation_Always :: forall {r}. RequiresRecreation -> ((# #) -> r) -> ((# #) -> r) -> r
RequiresRecreation_Always = RequiresRecreation' "Always"

pattern RequiresRecreation_Conditionally :: RequiresRecreation
pattern $bRequiresRecreation_Conditionally :: RequiresRecreation
$mRequiresRecreation_Conditionally :: forall {r}. RequiresRecreation -> ((# #) -> r) -> ((# #) -> r) -> r
RequiresRecreation_Conditionally = RequiresRecreation' "Conditionally"

pattern RequiresRecreation_Never :: RequiresRecreation
pattern $bRequiresRecreation_Never :: RequiresRecreation
$mRequiresRecreation_Never :: forall {r}. RequiresRecreation -> ((# #) -> r) -> ((# #) -> r) -> r
RequiresRecreation_Never = RequiresRecreation' "Never"

{-# COMPLETE
  RequiresRecreation_Always,
  RequiresRecreation_Conditionally,
  RequiresRecreation_Never,
  RequiresRecreation'
  #-}