{-# 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.ChangeSetType
-- 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.ChangeSetType
  ( ChangeSetType
      ( ..,
        ChangeSetType_CREATE,
        ChangeSetType_IMPORT,
        ChangeSetType_UPDATE
      ),
  )
where

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

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

pattern ChangeSetType_CREATE :: ChangeSetType
pattern $bChangeSetType_CREATE :: ChangeSetType
$mChangeSetType_CREATE :: forall {r}. ChangeSetType -> ((# #) -> r) -> ((# #) -> r) -> r
ChangeSetType_CREATE = ChangeSetType' "CREATE"

pattern ChangeSetType_IMPORT :: ChangeSetType
pattern $bChangeSetType_IMPORT :: ChangeSetType
$mChangeSetType_IMPORT :: forall {r}. ChangeSetType -> ((# #) -> r) -> ((# #) -> r) -> r
ChangeSetType_IMPORT = ChangeSetType' "IMPORT"

pattern ChangeSetType_UPDATE :: ChangeSetType
pattern $bChangeSetType_UPDATE :: ChangeSetType
$mChangeSetType_UPDATE :: forall {r}. ChangeSetType -> ((# #) -> r) -> ((# #) -> r) -> r
ChangeSetType_UPDATE = ChangeSetType' "UPDATE"

{-# COMPLETE
  ChangeSetType_CREATE,
  ChangeSetType_IMPORT,
  ChangeSetType_UPDATE,
  ChangeSetType'
  #-}