{-# 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.GreengrassV2.Types.EffectiveDeploymentExecutionStatus
-- 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.GreengrassV2.Types.EffectiveDeploymentExecutionStatus
  ( EffectiveDeploymentExecutionStatus
      ( ..,
        EffectiveDeploymentExecutionStatus_CANCELED,
        EffectiveDeploymentExecutionStatus_COMPLETED,
        EffectiveDeploymentExecutionStatus_FAILED,
        EffectiveDeploymentExecutionStatus_IN_PROGRESS,
        EffectiveDeploymentExecutionStatus_QUEUED,
        EffectiveDeploymentExecutionStatus_REJECTED,
        EffectiveDeploymentExecutionStatus_TIMED_OUT
      ),
  )
where

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

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

pattern EffectiveDeploymentExecutionStatus_CANCELED :: EffectiveDeploymentExecutionStatus
pattern $bEffectiveDeploymentExecutionStatus_CANCELED :: EffectiveDeploymentExecutionStatus
$mEffectiveDeploymentExecutionStatus_CANCELED :: forall r.
EffectiveDeploymentExecutionStatus
-> (Void# -> r) -> (Void# -> r) -> r
EffectiveDeploymentExecutionStatus_CANCELED = EffectiveDeploymentExecutionStatus' "CANCELED"

pattern EffectiveDeploymentExecutionStatus_COMPLETED :: EffectiveDeploymentExecutionStatus
pattern $bEffectiveDeploymentExecutionStatus_COMPLETED :: EffectiveDeploymentExecutionStatus
$mEffectiveDeploymentExecutionStatus_COMPLETED :: forall r.
EffectiveDeploymentExecutionStatus
-> (Void# -> r) -> (Void# -> r) -> r
EffectiveDeploymentExecutionStatus_COMPLETED = EffectiveDeploymentExecutionStatus' "COMPLETED"

pattern EffectiveDeploymentExecutionStatus_FAILED :: EffectiveDeploymentExecutionStatus
pattern $bEffectiveDeploymentExecutionStatus_FAILED :: EffectiveDeploymentExecutionStatus
$mEffectiveDeploymentExecutionStatus_FAILED :: forall r.
EffectiveDeploymentExecutionStatus
-> (Void# -> r) -> (Void# -> r) -> r
EffectiveDeploymentExecutionStatus_FAILED = EffectiveDeploymentExecutionStatus' "FAILED"

pattern EffectiveDeploymentExecutionStatus_IN_PROGRESS :: EffectiveDeploymentExecutionStatus
pattern $bEffectiveDeploymentExecutionStatus_IN_PROGRESS :: EffectiveDeploymentExecutionStatus
$mEffectiveDeploymentExecutionStatus_IN_PROGRESS :: forall r.
EffectiveDeploymentExecutionStatus
-> (Void# -> r) -> (Void# -> r) -> r
EffectiveDeploymentExecutionStatus_IN_PROGRESS = EffectiveDeploymentExecutionStatus' "IN_PROGRESS"

pattern EffectiveDeploymentExecutionStatus_QUEUED :: EffectiveDeploymentExecutionStatus
pattern $bEffectiveDeploymentExecutionStatus_QUEUED :: EffectiveDeploymentExecutionStatus
$mEffectiveDeploymentExecutionStatus_QUEUED :: forall r.
EffectiveDeploymentExecutionStatus
-> (Void# -> r) -> (Void# -> r) -> r
EffectiveDeploymentExecutionStatus_QUEUED = EffectiveDeploymentExecutionStatus' "QUEUED"

pattern EffectiveDeploymentExecutionStatus_REJECTED :: EffectiveDeploymentExecutionStatus
pattern $bEffectiveDeploymentExecutionStatus_REJECTED :: EffectiveDeploymentExecutionStatus
$mEffectiveDeploymentExecutionStatus_REJECTED :: forall r.
EffectiveDeploymentExecutionStatus
-> (Void# -> r) -> (Void# -> r) -> r
EffectiveDeploymentExecutionStatus_REJECTED = EffectiveDeploymentExecutionStatus' "REJECTED"

pattern EffectiveDeploymentExecutionStatus_TIMED_OUT :: EffectiveDeploymentExecutionStatus
pattern $bEffectiveDeploymentExecutionStatus_TIMED_OUT :: EffectiveDeploymentExecutionStatus
$mEffectiveDeploymentExecutionStatus_TIMED_OUT :: forall r.
EffectiveDeploymentExecutionStatus
-> (Void# -> r) -> (Void# -> r) -> r
EffectiveDeploymentExecutionStatus_TIMED_OUT = EffectiveDeploymentExecutionStatus' "TIMED_OUT"

{-# COMPLETE
  EffectiveDeploymentExecutionStatus_CANCELED,
  EffectiveDeploymentExecutionStatus_COMPLETED,
  EffectiveDeploymentExecutionStatus_FAILED,
  EffectiveDeploymentExecutionStatus_IN_PROGRESS,
  EffectiveDeploymentExecutionStatus_QUEUED,
  EffectiveDeploymentExecutionStatus_REJECTED,
  EffectiveDeploymentExecutionStatus_TIMED_OUT,
  EffectiveDeploymentExecutionStatus'
  #-}