{-# 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.ChangeAction
-- 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.ChangeAction
  ( ChangeAction
      ( ..,
        ChangeAction_Add,
        ChangeAction_Dynamic,
        ChangeAction_Import,
        ChangeAction_Modify,
        ChangeAction_Remove
      ),
  )
where

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

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

pattern ChangeAction_Add :: ChangeAction
pattern $bChangeAction_Add :: ChangeAction
$mChangeAction_Add :: forall {r}. ChangeAction -> ((# #) -> r) -> ((# #) -> r) -> r
ChangeAction_Add = ChangeAction' "Add"

pattern ChangeAction_Dynamic :: ChangeAction
pattern $bChangeAction_Dynamic :: ChangeAction
$mChangeAction_Dynamic :: forall {r}. ChangeAction -> ((# #) -> r) -> ((# #) -> r) -> r
ChangeAction_Dynamic = ChangeAction' "Dynamic"

pattern ChangeAction_Import :: ChangeAction
pattern $bChangeAction_Import :: ChangeAction
$mChangeAction_Import :: forall {r}. ChangeAction -> ((# #) -> r) -> ((# #) -> r) -> r
ChangeAction_Import = ChangeAction' "Import"

pattern ChangeAction_Modify :: ChangeAction
pattern $bChangeAction_Modify :: ChangeAction
$mChangeAction_Modify :: forall {r}. ChangeAction -> ((# #) -> r) -> ((# #) -> r) -> r
ChangeAction_Modify = ChangeAction' "Modify"

pattern ChangeAction_Remove :: ChangeAction
pattern $bChangeAction_Remove :: ChangeAction
$mChangeAction_Remove :: forall {r}. ChangeAction -> ((# #) -> r) -> ((# #) -> r) -> r
ChangeAction_Remove = ChangeAction' "Remove"

{-# COMPLETE
  ChangeAction_Add,
  ChangeAction_Dynamic,
  ChangeAction_Import,
  ChangeAction_Modify,
  ChangeAction_Remove,
  ChangeAction'
  #-}