{-# 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.ChangeSetStatus
-- 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.ChangeSetStatus
  ( ChangeSetStatus
      ( ..,
        ChangeSetStatus_CREATE_COMPLETE,
        ChangeSetStatus_CREATE_IN_PROGRESS,
        ChangeSetStatus_CREATE_PENDING,
        ChangeSetStatus_DELETE_COMPLETE,
        ChangeSetStatus_DELETE_FAILED,
        ChangeSetStatus_DELETE_IN_PROGRESS,
        ChangeSetStatus_DELETE_PENDING,
        ChangeSetStatus_FAILED
      ),
  )
where

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

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

pattern ChangeSetStatus_CREATE_COMPLETE :: ChangeSetStatus
pattern $bChangeSetStatus_CREATE_COMPLETE :: ChangeSetStatus
$mChangeSetStatus_CREATE_COMPLETE :: forall r. ChangeSetStatus -> (Void# -> r) -> (Void# -> r) -> r
ChangeSetStatus_CREATE_COMPLETE = ChangeSetStatus' "CREATE_COMPLETE"

pattern ChangeSetStatus_CREATE_IN_PROGRESS :: ChangeSetStatus
pattern $bChangeSetStatus_CREATE_IN_PROGRESS :: ChangeSetStatus
$mChangeSetStatus_CREATE_IN_PROGRESS :: forall r. ChangeSetStatus -> (Void# -> r) -> (Void# -> r) -> r
ChangeSetStatus_CREATE_IN_PROGRESS = ChangeSetStatus' "CREATE_IN_PROGRESS"

pattern ChangeSetStatus_CREATE_PENDING :: ChangeSetStatus
pattern $bChangeSetStatus_CREATE_PENDING :: ChangeSetStatus
$mChangeSetStatus_CREATE_PENDING :: forall r. ChangeSetStatus -> (Void# -> r) -> (Void# -> r) -> r
ChangeSetStatus_CREATE_PENDING = ChangeSetStatus' "CREATE_PENDING"

pattern ChangeSetStatus_DELETE_COMPLETE :: ChangeSetStatus
pattern $bChangeSetStatus_DELETE_COMPLETE :: ChangeSetStatus
$mChangeSetStatus_DELETE_COMPLETE :: forall r. ChangeSetStatus -> (Void# -> r) -> (Void# -> r) -> r
ChangeSetStatus_DELETE_COMPLETE = ChangeSetStatus' "DELETE_COMPLETE"

pattern ChangeSetStatus_DELETE_FAILED :: ChangeSetStatus
pattern $bChangeSetStatus_DELETE_FAILED :: ChangeSetStatus
$mChangeSetStatus_DELETE_FAILED :: forall r. ChangeSetStatus -> (Void# -> r) -> (Void# -> r) -> r
ChangeSetStatus_DELETE_FAILED = ChangeSetStatus' "DELETE_FAILED"

pattern ChangeSetStatus_DELETE_IN_PROGRESS :: ChangeSetStatus
pattern $bChangeSetStatus_DELETE_IN_PROGRESS :: ChangeSetStatus
$mChangeSetStatus_DELETE_IN_PROGRESS :: forall r. ChangeSetStatus -> (Void# -> r) -> (Void# -> r) -> r
ChangeSetStatus_DELETE_IN_PROGRESS = ChangeSetStatus' "DELETE_IN_PROGRESS"

pattern ChangeSetStatus_DELETE_PENDING :: ChangeSetStatus
pattern $bChangeSetStatus_DELETE_PENDING :: ChangeSetStatus
$mChangeSetStatus_DELETE_PENDING :: forall r. ChangeSetStatus -> (Void# -> r) -> (Void# -> r) -> r
ChangeSetStatus_DELETE_PENDING = ChangeSetStatus' "DELETE_PENDING"

pattern ChangeSetStatus_FAILED :: ChangeSetStatus
pattern $bChangeSetStatus_FAILED :: ChangeSetStatus
$mChangeSetStatus_FAILED :: forall r. ChangeSetStatus -> (Void# -> r) -> (Void# -> r) -> r
ChangeSetStatus_FAILED = ChangeSetStatus' "FAILED"

{-# COMPLETE
  ChangeSetStatus_CREATE_COMPLETE,
  ChangeSetStatus_CREATE_IN_PROGRESS,
  ChangeSetStatus_CREATE_PENDING,
  ChangeSetStatus_DELETE_COMPLETE,
  ChangeSetStatus_DELETE_FAILED,
  ChangeSetStatus_DELETE_IN_PROGRESS,
  ChangeSetStatus_DELETE_PENDING,
  ChangeSetStatus_FAILED,
  ChangeSetStatus'
  #-}