{-# 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.ChangeSource
-- 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.ChangeSource
  ( ChangeSource
      ( ..,
        ChangeSource_Automatic,
        ChangeSource_DirectModification,
        ChangeSource_ParameterReference,
        ChangeSource_ResourceAttribute,
        ChangeSource_ResourceReference
      ),
  )
where

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

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

pattern ChangeSource_Automatic :: ChangeSource
pattern $bChangeSource_Automatic :: ChangeSource
$mChangeSource_Automatic :: forall {r}. ChangeSource -> ((# #) -> r) -> ((# #) -> r) -> r
ChangeSource_Automatic = ChangeSource' "Automatic"

pattern ChangeSource_DirectModification :: ChangeSource
pattern $bChangeSource_DirectModification :: ChangeSource
$mChangeSource_DirectModification :: forall {r}. ChangeSource -> ((# #) -> r) -> ((# #) -> r) -> r
ChangeSource_DirectModification = ChangeSource' "DirectModification"

pattern ChangeSource_ParameterReference :: ChangeSource
pattern $bChangeSource_ParameterReference :: ChangeSource
$mChangeSource_ParameterReference :: forall {r}. ChangeSource -> ((# #) -> r) -> ((# #) -> r) -> r
ChangeSource_ParameterReference = ChangeSource' "ParameterReference"

pattern ChangeSource_ResourceAttribute :: ChangeSource
pattern $bChangeSource_ResourceAttribute :: ChangeSource
$mChangeSource_ResourceAttribute :: forall {r}. ChangeSource -> ((# #) -> r) -> ((# #) -> r) -> r
ChangeSource_ResourceAttribute = ChangeSource' "ResourceAttribute"

pattern ChangeSource_ResourceReference :: ChangeSource
pattern $bChangeSource_ResourceReference :: ChangeSource
$mChangeSource_ResourceReference :: forall {r}. ChangeSource -> ((# #) -> r) -> ((# #) -> r) -> r
ChangeSource_ResourceReference = ChangeSource' "ResourceReference"

{-# COMPLETE
  ChangeSource_Automatic,
  ChangeSource_DirectModification,
  ChangeSource_ParameterReference,
  ChangeSource_ResourceAttribute,
  ChangeSource_ResourceReference,
  ChangeSource'
  #-}