{-# 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.DeploymentReadyAction
-- 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.DeploymentReadyAction
  ( DeploymentReadyAction
      ( ..,
        DeploymentReadyAction_CONTINUE_DEPLOYMENT,
        DeploymentReadyAction_STOP_DEPLOYMENT
      ),
  )
where

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

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

pattern DeploymentReadyAction_CONTINUE_DEPLOYMENT :: DeploymentReadyAction
pattern $bDeploymentReadyAction_CONTINUE_DEPLOYMENT :: DeploymentReadyAction
$mDeploymentReadyAction_CONTINUE_DEPLOYMENT :: forall r.
DeploymentReadyAction -> (Void# -> r) -> (Void# -> r) -> r
DeploymentReadyAction_CONTINUE_DEPLOYMENT = DeploymentReadyAction' "CONTINUE_DEPLOYMENT"

pattern DeploymentReadyAction_STOP_DEPLOYMENT :: DeploymentReadyAction
pattern $bDeploymentReadyAction_STOP_DEPLOYMENT :: DeploymentReadyAction
$mDeploymentReadyAction_STOP_DEPLOYMENT :: forall r.
DeploymentReadyAction -> (Void# -> r) -> (Void# -> r) -> r
DeploymentReadyAction_STOP_DEPLOYMENT = DeploymentReadyAction' "STOP_DEPLOYMENT"

{-# COMPLETE
  DeploymentReadyAction_CONTINUE_DEPLOYMENT,
  DeploymentReadyAction_STOP_DEPLOYMENT,
  DeploymentReadyAction'
  #-}