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

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

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

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

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

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

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