{-# 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.StackDriftStatus
-- 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.StackDriftStatus
  ( StackDriftStatus
      ( ..,
        StackDriftStatus_DRIFTED,
        StackDriftStatus_IN_SYNC,
        StackDriftStatus_NOT_CHECKED,
        StackDriftStatus_UNKNOWN
      ),
  )
where

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

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

pattern StackDriftStatus_DRIFTED :: StackDriftStatus
pattern $bStackDriftStatus_DRIFTED :: StackDriftStatus
$mStackDriftStatus_DRIFTED :: forall r. StackDriftStatus -> (Void# -> r) -> (Void# -> r) -> r
StackDriftStatus_DRIFTED = StackDriftStatus' "DRIFTED"

pattern StackDriftStatus_IN_SYNC :: StackDriftStatus
pattern $bStackDriftStatus_IN_SYNC :: StackDriftStatus
$mStackDriftStatus_IN_SYNC :: forall r. StackDriftStatus -> (Void# -> r) -> (Void# -> r) -> r
StackDriftStatus_IN_SYNC = StackDriftStatus' "IN_SYNC"

pattern StackDriftStatus_NOT_CHECKED :: StackDriftStatus
pattern $bStackDriftStatus_NOT_CHECKED :: StackDriftStatus
$mStackDriftStatus_NOT_CHECKED :: forall r. StackDriftStatus -> (Void# -> r) -> (Void# -> r) -> r
StackDriftStatus_NOT_CHECKED = StackDriftStatus' "NOT_CHECKED"

pattern StackDriftStatus_UNKNOWN :: StackDriftStatus
pattern $bStackDriftStatus_UNKNOWN :: StackDriftStatus
$mStackDriftStatus_UNKNOWN :: forall r. StackDriftStatus -> (Void# -> r) -> (Void# -> r) -> r
StackDriftStatus_UNKNOWN = StackDriftStatus' "UNKNOWN"

{-# COMPLETE
  StackDriftStatus_DRIFTED,
  StackDriftStatus_IN_SYNC,
  StackDriftStatus_NOT_CHECKED,
  StackDriftStatus_UNKNOWN,
  StackDriftStatus'
  #-}