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

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

newtype StackDriftDetectionStatus = StackDriftDetectionStatus'
  { StackDriftDetectionStatus -> Text
fromStackDriftDetectionStatus ::
      Core.Text
  }
  deriving stock
    ( Int -> StackDriftDetectionStatus -> ShowS
[StackDriftDetectionStatus] -> ShowS
StackDriftDetectionStatus -> String
(Int -> StackDriftDetectionStatus -> ShowS)
-> (StackDriftDetectionStatus -> String)
-> ([StackDriftDetectionStatus] -> ShowS)
-> Show StackDriftDetectionStatus
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]
(Int -> ReadS StackDriftDetectionStatus)
-> ReadS [StackDriftDetectionStatus]
-> ReadPrec StackDriftDetectionStatus
-> ReadPrec [StackDriftDetectionStatus]
-> Read 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
(StackDriftDetectionStatus -> StackDriftDetectionStatus -> Bool)
-> (StackDriftDetectionStatus -> StackDriftDetectionStatus -> Bool)
-> Eq StackDriftDetectionStatus
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
Eq StackDriftDetectionStatus
-> (StackDriftDetectionStatus
    -> StackDriftDetectionStatus -> Ordering)
-> (StackDriftDetectionStatus -> StackDriftDetectionStatus -> Bool)
-> (StackDriftDetectionStatus -> StackDriftDetectionStatus -> Bool)
-> (StackDriftDetectionStatus -> StackDriftDetectionStatus -> Bool)
-> (StackDriftDetectionStatus -> StackDriftDetectionStatus -> Bool)
-> (StackDriftDetectionStatus
    -> StackDriftDetectionStatus -> StackDriftDetectionStatus)
-> (StackDriftDetectionStatus
    -> StackDriftDetectionStatus -> StackDriftDetectionStatus)
-> Ord 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
$cp1Ord :: Eq StackDriftDetectionStatus
Prelude.Ord,
      (forall x.
 StackDriftDetectionStatus -> Rep StackDriftDetectionStatus x)
-> (forall x.
    Rep StackDriftDetectionStatus x -> StackDriftDetectionStatus)
-> Generic StackDriftDetectionStatus
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
    ( Int -> StackDriftDetectionStatus -> Int
StackDriftDetectionStatus -> Int
(Int -> StackDriftDetectionStatus -> Int)
-> (StackDriftDetectionStatus -> Int)
-> Hashable StackDriftDetectionStatus
forall 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 -> ()
(StackDriftDetectionStatus -> ())
-> NFData StackDriftDetectionStatus
forall a. (a -> ()) -> NFData a
rnf :: StackDriftDetectionStatus -> ()
$crnf :: StackDriftDetectionStatus -> ()
Prelude.NFData,
      Text -> Either String StackDriftDetectionStatus
(Text -> Either String StackDriftDetectionStatus)
-> FromText StackDriftDetectionStatus
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String StackDriftDetectionStatus
$cfromText :: Text -> Either String StackDriftDetectionStatus
Core.FromText,
      StackDriftDetectionStatus -> Text
(StackDriftDetectionStatus -> Text)
-> ToText StackDriftDetectionStatus
forall a. (a -> Text) -> ToText a
toText :: StackDriftDetectionStatus -> Text
$ctoText :: StackDriftDetectionStatus -> Text
Core.ToText,
      StackDriftDetectionStatus -> ByteString
(StackDriftDetectionStatus -> ByteString)
-> ToByteString StackDriftDetectionStatus
forall a. (a -> ByteString) -> ToByteString a
toBS :: StackDriftDetectionStatus -> ByteString
$ctoBS :: StackDriftDetectionStatus -> ByteString
Core.ToByteString,
      StackDriftDetectionStatus -> ByteStringBuilder
(StackDriftDetectionStatus -> ByteStringBuilder)
-> ToLog StackDriftDetectionStatus
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: StackDriftDetectionStatus -> ByteStringBuilder
$cbuild :: StackDriftDetectionStatus -> ByteStringBuilder
Core.ToLog,
      HeaderName -> StackDriftDetectionStatus -> [Header]
(HeaderName -> StackDriftDetectionStatus -> [Header])
-> ToHeader StackDriftDetectionStatus
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> StackDriftDetectionStatus -> [Header]
$ctoHeader :: HeaderName -> StackDriftDetectionStatus -> [Header]
Core.ToHeader,
      StackDriftDetectionStatus -> QueryString
(StackDriftDetectionStatus -> QueryString)
-> ToQuery StackDriftDetectionStatus
forall a. (a -> QueryString) -> ToQuery a
toQuery :: StackDriftDetectionStatus -> QueryString
$ctoQuery :: StackDriftDetectionStatus -> QueryString
Core.ToQuery,
      Value -> Parser [StackDriftDetectionStatus]
Value -> Parser StackDriftDetectionStatus
(Value -> Parser StackDriftDetectionStatus)
-> (Value -> Parser [StackDriftDetectionStatus])
-> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [StackDriftDetectionStatus]
FromJSONKeyFunction StackDriftDetectionStatus
FromJSONKeyFunction StackDriftDetectionStatus
-> FromJSONKeyFunction [StackDriftDetectionStatus]
-> FromJSONKey StackDriftDetectionStatus
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [StackDriftDetectionStatus]
$cfromJSONKeyList :: FromJSONKeyFunction [StackDriftDetectionStatus]
fromJSONKey :: FromJSONKeyFunction StackDriftDetectionStatus
$cfromJSONKey :: FromJSONKeyFunction StackDriftDetectionStatus
Core.FromJSONKey,
      [StackDriftDetectionStatus] -> Encoding
[StackDriftDetectionStatus] -> Value
StackDriftDetectionStatus -> Encoding
StackDriftDetectionStatus -> Value
(StackDriftDetectionStatus -> Value)
-> (StackDriftDetectionStatus -> Encoding)
-> ([StackDriftDetectionStatus] -> Value)
-> ([StackDriftDetectionStatus] -> Encoding)
-> ToJSON StackDriftDetectionStatus
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
Core.ToJSON,
      ToJSONKeyFunction [StackDriftDetectionStatus]
ToJSONKeyFunction StackDriftDetectionStatus
ToJSONKeyFunction StackDriftDetectionStatus
-> ToJSONKeyFunction [StackDriftDetectionStatus]
-> ToJSONKey StackDriftDetectionStatus
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [StackDriftDetectionStatus]
$ctoJSONKeyList :: ToJSONKeyFunction [StackDriftDetectionStatus]
toJSONKey :: ToJSONKeyFunction StackDriftDetectionStatus
$ctoJSONKey :: ToJSONKeyFunction StackDriftDetectionStatus
Core.ToJSONKey,
      [Node] -> Either String StackDriftDetectionStatus
([Node] -> Either String StackDriftDetectionStatus)
-> FromXML StackDriftDetectionStatus
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String StackDriftDetectionStatus
$cparseXML :: [Node] -> Either String StackDriftDetectionStatus
Core.FromXML,
      StackDriftDetectionStatus -> XML
(StackDriftDetectionStatus -> XML)
-> ToXML StackDriftDetectionStatus
forall a. (a -> XML) -> ToXML a
toXML :: StackDriftDetectionStatus -> XML
$ctoXML :: StackDriftDetectionStatus -> XML
Core.ToXML
    )

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

pattern StackDriftDetectionStatus_DETECTION_FAILED :: StackDriftDetectionStatus
pattern $bStackDriftDetectionStatus_DETECTION_FAILED :: StackDriftDetectionStatus
$mStackDriftDetectionStatus_DETECTION_FAILED :: forall r.
StackDriftDetectionStatus -> (Void# -> r) -> (Void# -> 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 -> (Void# -> r) -> (Void# -> r) -> r
StackDriftDetectionStatus_DETECTION_IN_PROGRESS = StackDriftDetectionStatus' "DETECTION_IN_PROGRESS"

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