{-# 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.IoTThingsGraph.Types.SystemInstanceDeploymentStatus
-- 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.IoTThingsGraph.Types.SystemInstanceDeploymentStatus
  ( SystemInstanceDeploymentStatus
      ( ..,
        SystemInstanceDeploymentStatus_BOOTSTRAP,
        SystemInstanceDeploymentStatus_DELETED_IN_TARGET,
        SystemInstanceDeploymentStatus_DEPLOYED_IN_TARGET,
        SystemInstanceDeploymentStatus_DEPLOY_IN_PROGRESS,
        SystemInstanceDeploymentStatus_FAILED,
        SystemInstanceDeploymentStatus_NOT_DEPLOYED,
        SystemInstanceDeploymentStatus_PENDING_DELETE,
        SystemInstanceDeploymentStatus_UNDEPLOY_IN_PROGRESS
      ),
  )
where

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

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

pattern SystemInstanceDeploymentStatus_BOOTSTRAP :: SystemInstanceDeploymentStatus
pattern $bSystemInstanceDeploymentStatus_BOOTSTRAP :: SystemInstanceDeploymentStatus
$mSystemInstanceDeploymentStatus_BOOTSTRAP :: forall r.
SystemInstanceDeploymentStatus -> (Void# -> r) -> (Void# -> r) -> r
SystemInstanceDeploymentStatus_BOOTSTRAP = SystemInstanceDeploymentStatus' "BOOTSTRAP"

pattern SystemInstanceDeploymentStatus_DELETED_IN_TARGET :: SystemInstanceDeploymentStatus
pattern $bSystemInstanceDeploymentStatus_DELETED_IN_TARGET :: SystemInstanceDeploymentStatus
$mSystemInstanceDeploymentStatus_DELETED_IN_TARGET :: forall r.
SystemInstanceDeploymentStatus -> (Void# -> r) -> (Void# -> r) -> r
SystemInstanceDeploymentStatus_DELETED_IN_TARGET = SystemInstanceDeploymentStatus' "DELETED_IN_TARGET"

pattern SystemInstanceDeploymentStatus_DEPLOYED_IN_TARGET :: SystemInstanceDeploymentStatus
pattern $bSystemInstanceDeploymentStatus_DEPLOYED_IN_TARGET :: SystemInstanceDeploymentStatus
$mSystemInstanceDeploymentStatus_DEPLOYED_IN_TARGET :: forall r.
SystemInstanceDeploymentStatus -> (Void# -> r) -> (Void# -> r) -> r
SystemInstanceDeploymentStatus_DEPLOYED_IN_TARGET = SystemInstanceDeploymentStatus' "DEPLOYED_IN_TARGET"

pattern SystemInstanceDeploymentStatus_DEPLOY_IN_PROGRESS :: SystemInstanceDeploymentStatus
pattern $bSystemInstanceDeploymentStatus_DEPLOY_IN_PROGRESS :: SystemInstanceDeploymentStatus
$mSystemInstanceDeploymentStatus_DEPLOY_IN_PROGRESS :: forall r.
SystemInstanceDeploymentStatus -> (Void# -> r) -> (Void# -> r) -> r
SystemInstanceDeploymentStatus_DEPLOY_IN_PROGRESS = SystemInstanceDeploymentStatus' "DEPLOY_IN_PROGRESS"

pattern SystemInstanceDeploymentStatus_FAILED :: SystemInstanceDeploymentStatus
pattern $bSystemInstanceDeploymentStatus_FAILED :: SystemInstanceDeploymentStatus
$mSystemInstanceDeploymentStatus_FAILED :: forall r.
SystemInstanceDeploymentStatus -> (Void# -> r) -> (Void# -> r) -> r
SystemInstanceDeploymentStatus_FAILED = SystemInstanceDeploymentStatus' "FAILED"

pattern SystemInstanceDeploymentStatus_NOT_DEPLOYED :: SystemInstanceDeploymentStatus
pattern $bSystemInstanceDeploymentStatus_NOT_DEPLOYED :: SystemInstanceDeploymentStatus
$mSystemInstanceDeploymentStatus_NOT_DEPLOYED :: forall r.
SystemInstanceDeploymentStatus -> (Void# -> r) -> (Void# -> r) -> r
SystemInstanceDeploymentStatus_NOT_DEPLOYED = SystemInstanceDeploymentStatus' "NOT_DEPLOYED"

pattern SystemInstanceDeploymentStatus_PENDING_DELETE :: SystemInstanceDeploymentStatus
pattern $bSystemInstanceDeploymentStatus_PENDING_DELETE :: SystemInstanceDeploymentStatus
$mSystemInstanceDeploymentStatus_PENDING_DELETE :: forall r.
SystemInstanceDeploymentStatus -> (Void# -> r) -> (Void# -> r) -> r
SystemInstanceDeploymentStatus_PENDING_DELETE = SystemInstanceDeploymentStatus' "PENDING_DELETE"

pattern SystemInstanceDeploymentStatus_UNDEPLOY_IN_PROGRESS :: SystemInstanceDeploymentStatus
pattern $bSystemInstanceDeploymentStatus_UNDEPLOY_IN_PROGRESS :: SystemInstanceDeploymentStatus
$mSystemInstanceDeploymentStatus_UNDEPLOY_IN_PROGRESS :: forall r.
SystemInstanceDeploymentStatus -> (Void# -> r) -> (Void# -> r) -> r
SystemInstanceDeploymentStatus_UNDEPLOY_IN_PROGRESS = SystemInstanceDeploymentStatus' "UNDEPLOY_IN_PROGRESS"

{-# COMPLETE
  SystemInstanceDeploymentStatus_BOOTSTRAP,
  SystemInstanceDeploymentStatus_DELETED_IN_TARGET,
  SystemInstanceDeploymentStatus_DEPLOYED_IN_TARGET,
  SystemInstanceDeploymentStatus_DEPLOY_IN_PROGRESS,
  SystemInstanceDeploymentStatus_FAILED,
  SystemInstanceDeploymentStatus_NOT_DEPLOYED,
  SystemInstanceDeploymentStatus_PENDING_DELETE,
  SystemInstanceDeploymentStatus_UNDEPLOY_IN_PROGRESS,
  SystemInstanceDeploymentStatus'
  #-}