{-# 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.StackInstanceDetailedStatus
-- 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.StackInstanceDetailedStatus
  ( StackInstanceDetailedStatus
      ( ..,
        StackInstanceDetailedStatus_CANCELLED,
        StackInstanceDetailedStatus_FAILED,
        StackInstanceDetailedStatus_INOPERABLE,
        StackInstanceDetailedStatus_PENDING,
        StackInstanceDetailedStatus_RUNNING,
        StackInstanceDetailedStatus_SUCCEEDED
      ),
  )
where

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

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

pattern StackInstanceDetailedStatus_CANCELLED :: StackInstanceDetailedStatus
pattern $bStackInstanceDetailedStatus_CANCELLED :: StackInstanceDetailedStatus
$mStackInstanceDetailedStatus_CANCELLED :: forall r.
StackInstanceDetailedStatus -> (Void# -> r) -> (Void# -> r) -> r
StackInstanceDetailedStatus_CANCELLED = StackInstanceDetailedStatus' "CANCELLED"

pattern StackInstanceDetailedStatus_FAILED :: StackInstanceDetailedStatus
pattern $bStackInstanceDetailedStatus_FAILED :: StackInstanceDetailedStatus
$mStackInstanceDetailedStatus_FAILED :: forall r.
StackInstanceDetailedStatus -> (Void# -> r) -> (Void# -> r) -> r
StackInstanceDetailedStatus_FAILED = StackInstanceDetailedStatus' "FAILED"

pattern StackInstanceDetailedStatus_INOPERABLE :: StackInstanceDetailedStatus
pattern $bStackInstanceDetailedStatus_INOPERABLE :: StackInstanceDetailedStatus
$mStackInstanceDetailedStatus_INOPERABLE :: forall r.
StackInstanceDetailedStatus -> (Void# -> r) -> (Void# -> r) -> r
StackInstanceDetailedStatus_INOPERABLE = StackInstanceDetailedStatus' "INOPERABLE"

pattern StackInstanceDetailedStatus_PENDING :: StackInstanceDetailedStatus
pattern $bStackInstanceDetailedStatus_PENDING :: StackInstanceDetailedStatus
$mStackInstanceDetailedStatus_PENDING :: forall r.
StackInstanceDetailedStatus -> (Void# -> r) -> (Void# -> r) -> r
StackInstanceDetailedStatus_PENDING = StackInstanceDetailedStatus' "PENDING"

pattern StackInstanceDetailedStatus_RUNNING :: StackInstanceDetailedStatus
pattern $bStackInstanceDetailedStatus_RUNNING :: StackInstanceDetailedStatus
$mStackInstanceDetailedStatus_RUNNING :: forall r.
StackInstanceDetailedStatus -> (Void# -> r) -> (Void# -> r) -> r
StackInstanceDetailedStatus_RUNNING = StackInstanceDetailedStatus' "RUNNING"

pattern StackInstanceDetailedStatus_SUCCEEDED :: StackInstanceDetailedStatus
pattern $bStackInstanceDetailedStatus_SUCCEEDED :: StackInstanceDetailedStatus
$mStackInstanceDetailedStatus_SUCCEEDED :: forall r.
StackInstanceDetailedStatus -> (Void# -> r) -> (Void# -> r) -> r
StackInstanceDetailedStatus_SUCCEEDED = StackInstanceDetailedStatus' "SUCCEEDED"

{-# COMPLETE
  StackInstanceDetailedStatus_CANCELLED,
  StackInstanceDetailedStatus_FAILED,
  StackInstanceDetailedStatus_INOPERABLE,
  StackInstanceDetailedStatus_PENDING,
  StackInstanceDetailedStatus_RUNNING,
  StackInstanceDetailedStatus_SUCCEEDED,
  StackInstanceDetailedStatus'
  #-}