{-# 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.CodeDeploy.Types.TargetStatus
-- 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.CodeDeploy.Types.TargetStatus
  ( TargetStatus
      ( ..,
        TargetStatus_Failed,
        TargetStatus_InProgress,
        TargetStatus_Pending,
        TargetStatus_Ready,
        TargetStatus_Skipped,
        TargetStatus_Succeeded,
        TargetStatus_Unknown
      ),
  )
where

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

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

pattern TargetStatus_Failed :: TargetStatus
pattern $bTargetStatus_Failed :: TargetStatus
$mTargetStatus_Failed :: forall r. TargetStatus -> (Void# -> r) -> (Void# -> r) -> r
TargetStatus_Failed = TargetStatus' "Failed"

pattern TargetStatus_InProgress :: TargetStatus
pattern $bTargetStatus_InProgress :: TargetStatus
$mTargetStatus_InProgress :: forall r. TargetStatus -> (Void# -> r) -> (Void# -> r) -> r
TargetStatus_InProgress = TargetStatus' "InProgress"

pattern TargetStatus_Pending :: TargetStatus
pattern $bTargetStatus_Pending :: TargetStatus
$mTargetStatus_Pending :: forall r. TargetStatus -> (Void# -> r) -> (Void# -> r) -> r
TargetStatus_Pending = TargetStatus' "Pending"

pattern TargetStatus_Ready :: TargetStatus
pattern $bTargetStatus_Ready :: TargetStatus
$mTargetStatus_Ready :: forall r. TargetStatus -> (Void# -> r) -> (Void# -> r) -> r
TargetStatus_Ready = TargetStatus' "Ready"

pattern TargetStatus_Skipped :: TargetStatus
pattern $bTargetStatus_Skipped :: TargetStatus
$mTargetStatus_Skipped :: forall r. TargetStatus -> (Void# -> r) -> (Void# -> r) -> r
TargetStatus_Skipped = TargetStatus' "Skipped"

pattern TargetStatus_Succeeded :: TargetStatus
pattern $bTargetStatus_Succeeded :: TargetStatus
$mTargetStatus_Succeeded :: forall r. TargetStatus -> (Void# -> r) -> (Void# -> r) -> r
TargetStatus_Succeeded = TargetStatus' "Succeeded"

pattern TargetStatus_Unknown :: TargetStatus
pattern $bTargetStatus_Unknown :: TargetStatus
$mTargetStatus_Unknown :: forall r. TargetStatus -> (Void# -> r) -> (Void# -> r) -> r
TargetStatus_Unknown = TargetStatus' "Unknown"

{-# COMPLETE
  TargetStatus_Failed,
  TargetStatus_InProgress,
  TargetStatus_Pending,
  TargetStatus_Ready,
  TargetStatus_Skipped,
  TargetStatus_Succeeded,
  TargetStatus_Unknown,
  TargetStatus'
  #-}