{-# 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.StackDriftDetectionStatus
-- 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.StackDriftDetectionStatus
  ( StackDriftDetectionStatus
      ( ..,
        StackDriftDetectionStatus_DETECTION_COMPLETE,
        StackDriftDetectionStatus_DETECTION_FAILED,
        StackDriftDetectionStatus_DETECTION_IN_PROGRESS
      ),
  )
where

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

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

pattern StackDriftDetectionStatus_DETECTION_COMPLETE :: StackDriftDetectionStatus
pattern $bStackDriftDetectionStatus_DETECTION_COMPLETE :: StackDriftDetectionStatus
$mStackDriftDetectionStatus_DETECTION_COMPLETE :: forall {r}.
StackDriftDetectionStatus -> ((# #) -> r) -> ((# #) -> r) -> r
StackDriftDetectionStatus_DETECTION_COMPLETE = StackDriftDetectionStatus' "DETECTION_COMPLETE"

pattern StackDriftDetectionStatus_DETECTION_FAILED :: StackDriftDetectionStatus
pattern $bStackDriftDetectionStatus_DETECTION_FAILED :: StackDriftDetectionStatus
$mStackDriftDetectionStatus_DETECTION_FAILED :: forall {r}.
StackDriftDetectionStatus -> ((# #) -> r) -> ((# #) -> r) -> r
StackDriftDetectionStatus_DETECTION_FAILED = StackDriftDetectionStatus' "DETECTION_FAILED"

pattern StackDriftDetectionStatus_DETECTION_IN_PROGRESS :: StackDriftDetectionStatus
pattern $bStackDriftDetectionStatus_DETECTION_IN_PROGRESS :: StackDriftDetectionStatus
$mStackDriftDetectionStatus_DETECTION_IN_PROGRESS :: forall {r}.
StackDriftDetectionStatus -> ((# #) -> r) -> ((# #) -> r) -> r
StackDriftDetectionStatus_DETECTION_IN_PROGRESS = StackDriftDetectionStatus' "DETECTION_IN_PROGRESS"

{-# COMPLETE
  StackDriftDetectionStatus_DETECTION_COMPLETE,
  StackDriftDetectionStatus_DETECTION_FAILED,
  StackDriftDetectionStatus_DETECTION_IN_PROGRESS,
  StackDriftDetectionStatus'
  #-}