{-# 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.StackSetStatus
-- 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.StackSetStatus
  ( StackSetStatus
      ( ..,
        StackSetStatus_ACTIVE,
        StackSetStatus_DELETED
      ),
  )
where

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

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

pattern StackSetStatus_ACTIVE :: StackSetStatus
pattern $bStackSetStatus_ACTIVE :: StackSetStatus
$mStackSetStatus_ACTIVE :: forall r. StackSetStatus -> (Void# -> r) -> (Void# -> r) -> r
StackSetStatus_ACTIVE = StackSetStatus' "ACTIVE"

pattern StackSetStatus_DELETED :: StackSetStatus
pattern $bStackSetStatus_DELETED :: StackSetStatus
$mStackSetStatus_DELETED :: forall r. StackSetStatus -> (Void# -> r) -> (Void# -> r) -> r
StackSetStatus_DELETED = StackSetStatus' "DELETED"

{-# COMPLETE
  StackSetStatus_ACTIVE,
  StackSetStatus_DELETED,
  StackSetStatus'
  #-}