{-# 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.StackSetDriftDetectionStatus
-- 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.StackSetDriftDetectionStatus
  ( StackSetDriftDetectionStatus
      ( ..,
        StackSetDriftDetectionStatus_COMPLETED,
        StackSetDriftDetectionStatus_FAILED,
        StackSetDriftDetectionStatus_IN_PROGRESS,
        StackSetDriftDetectionStatus_PARTIAL_SUCCESS,
        StackSetDriftDetectionStatus_STOPPED
      ),
  )
where

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

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

pattern StackSetDriftDetectionStatus_COMPLETED :: StackSetDriftDetectionStatus
pattern $bStackSetDriftDetectionStatus_COMPLETED :: StackSetDriftDetectionStatus
$mStackSetDriftDetectionStatus_COMPLETED :: forall {r}.
StackSetDriftDetectionStatus -> ((# #) -> r) -> ((# #) -> r) -> r
StackSetDriftDetectionStatus_COMPLETED = StackSetDriftDetectionStatus' "COMPLETED"

pattern StackSetDriftDetectionStatus_FAILED :: StackSetDriftDetectionStatus
pattern $bStackSetDriftDetectionStatus_FAILED :: StackSetDriftDetectionStatus
$mStackSetDriftDetectionStatus_FAILED :: forall {r}.
StackSetDriftDetectionStatus -> ((# #) -> r) -> ((# #) -> r) -> r
StackSetDriftDetectionStatus_FAILED = StackSetDriftDetectionStatus' "FAILED"

pattern StackSetDriftDetectionStatus_IN_PROGRESS :: StackSetDriftDetectionStatus
pattern $bStackSetDriftDetectionStatus_IN_PROGRESS :: StackSetDriftDetectionStatus
$mStackSetDriftDetectionStatus_IN_PROGRESS :: forall {r}.
StackSetDriftDetectionStatus -> ((# #) -> r) -> ((# #) -> r) -> r
StackSetDriftDetectionStatus_IN_PROGRESS = StackSetDriftDetectionStatus' "IN_PROGRESS"

pattern StackSetDriftDetectionStatus_PARTIAL_SUCCESS :: StackSetDriftDetectionStatus
pattern $bStackSetDriftDetectionStatus_PARTIAL_SUCCESS :: StackSetDriftDetectionStatus
$mStackSetDriftDetectionStatus_PARTIAL_SUCCESS :: forall {r}.
StackSetDriftDetectionStatus -> ((# #) -> r) -> ((# #) -> r) -> r
StackSetDriftDetectionStatus_PARTIAL_SUCCESS = StackSetDriftDetectionStatus' "PARTIAL_SUCCESS"

pattern StackSetDriftDetectionStatus_STOPPED :: StackSetDriftDetectionStatus
pattern $bStackSetDriftDetectionStatus_STOPPED :: StackSetDriftDetectionStatus
$mStackSetDriftDetectionStatus_STOPPED :: forall {r}.
StackSetDriftDetectionStatus -> ((# #) -> r) -> ((# #) -> r) -> r
StackSetDriftDetectionStatus_STOPPED = StackSetDriftDetectionStatus' "STOPPED"

{-# COMPLETE
  StackSetDriftDetectionStatus_COMPLETED,
  StackSetDriftDetectionStatus_FAILED,
  StackSetDriftDetectionStatus_IN_PROGRESS,
  StackSetDriftDetectionStatus_PARTIAL_SUCCESS,
  StackSetDriftDetectionStatus_STOPPED,
  StackSetDriftDetectionStatus'
  #-}