{-# 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.StackInstanceStatus
-- 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.StackInstanceStatus
  ( StackInstanceStatus
      ( ..,
        StackInstanceStatus_CURRENT,
        StackInstanceStatus_INOPERABLE,
        StackInstanceStatus_OUTDATED
      ),
  )
where

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

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

pattern StackInstanceStatus_CURRENT :: StackInstanceStatus
pattern $bStackInstanceStatus_CURRENT :: StackInstanceStatus
$mStackInstanceStatus_CURRENT :: forall r. StackInstanceStatus -> (Void# -> r) -> (Void# -> r) -> r
StackInstanceStatus_CURRENT = StackInstanceStatus' "CURRENT"

pattern StackInstanceStatus_INOPERABLE :: StackInstanceStatus
pattern $bStackInstanceStatus_INOPERABLE :: StackInstanceStatus
$mStackInstanceStatus_INOPERABLE :: forall r. StackInstanceStatus -> (Void# -> r) -> (Void# -> r) -> r
StackInstanceStatus_INOPERABLE = StackInstanceStatus' "INOPERABLE"

pattern StackInstanceStatus_OUTDATED :: StackInstanceStatus
pattern $bStackInstanceStatus_OUTDATED :: StackInstanceStatus
$mStackInstanceStatus_OUTDATED :: forall r. StackInstanceStatus -> (Void# -> r) -> (Void# -> r) -> r
StackInstanceStatus_OUTDATED = StackInstanceStatus' "OUTDATED"

{-# COMPLETE
  StackInstanceStatus_CURRENT,
  StackInstanceStatus_INOPERABLE,
  StackInstanceStatus_OUTDATED,
  StackInstanceStatus'
  #-}