{-# 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.ChangeType
-- 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.ChangeType
  ( ChangeType
      ( ..,
        ChangeType_Resource
      ),
  )
where

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

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

pattern ChangeType_Resource :: ChangeType
pattern $bChangeType_Resource :: ChangeType
$mChangeType_Resource :: forall {r}. ChangeType -> ((# #) -> r) -> ((# #) -> r) -> r
ChangeType_Resource = ChangeType' "Resource"

{-# COMPLETE
  ChangeType_Resource,
  ChangeType'
  #-}