{-# 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.DeploymentWaitType
-- 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.DeploymentWaitType
  ( DeploymentWaitType
      ( ..,
        DeploymentWaitType_READY_WAIT,
        DeploymentWaitType_TERMINATION_WAIT
      ),
  )
where

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

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

pattern DeploymentWaitType_READY_WAIT :: DeploymentWaitType
pattern $bDeploymentWaitType_READY_WAIT :: DeploymentWaitType
$mDeploymentWaitType_READY_WAIT :: forall r. DeploymentWaitType -> (Void# -> r) -> (Void# -> r) -> r
DeploymentWaitType_READY_WAIT = DeploymentWaitType' "READY_WAIT"

pattern DeploymentWaitType_TERMINATION_WAIT :: DeploymentWaitType
pattern $bDeploymentWaitType_TERMINATION_WAIT :: DeploymentWaitType
$mDeploymentWaitType_TERMINATION_WAIT :: forall r. DeploymentWaitType -> (Void# -> r) -> (Void# -> r) -> r
DeploymentWaitType_TERMINATION_WAIT = DeploymentWaitType' "TERMINATION_WAIT"

{-# COMPLETE
  DeploymentWaitType_READY_WAIT,
  DeploymentWaitType_TERMINATION_WAIT,
  DeploymentWaitType'
  #-}