{-# 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.ECS.Types.DeploymentRolloutState
-- 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.ECS.Types.DeploymentRolloutState
  ( DeploymentRolloutState
      ( ..,
        DeploymentRolloutState_COMPLETED,
        DeploymentRolloutState_FAILED,
        DeploymentRolloutState_IN_PROGRESS
      ),
  )
where

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

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

pattern DeploymentRolloutState_COMPLETED :: DeploymentRolloutState
pattern $bDeploymentRolloutState_COMPLETED :: DeploymentRolloutState
$mDeploymentRolloutState_COMPLETED :: forall r.
DeploymentRolloutState -> (Void# -> r) -> (Void# -> r) -> r
DeploymentRolloutState_COMPLETED = DeploymentRolloutState' "COMPLETED"

pattern DeploymentRolloutState_FAILED :: DeploymentRolloutState
pattern $bDeploymentRolloutState_FAILED :: DeploymentRolloutState
$mDeploymentRolloutState_FAILED :: forall r.
DeploymentRolloutState -> (Void# -> r) -> (Void# -> r) -> r
DeploymentRolloutState_FAILED = DeploymentRolloutState' "FAILED"

pattern DeploymentRolloutState_IN_PROGRESS :: DeploymentRolloutState
pattern $bDeploymentRolloutState_IN_PROGRESS :: DeploymentRolloutState
$mDeploymentRolloutState_IN_PROGRESS :: forall r.
DeploymentRolloutState -> (Void# -> r) -> (Void# -> r) -> r
DeploymentRolloutState_IN_PROGRESS = DeploymentRolloutState' "IN_PROGRESS"

{-# COMPLETE
  DeploymentRolloutState_COMPLETED,
  DeploymentRolloutState_FAILED,
  DeploymentRolloutState_IN_PROGRESS,
  DeploymentRolloutState'
  #-}