{-# 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.Lightsail.Types.ContainerServiceDeploymentState
-- 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.Lightsail.Types.ContainerServiceDeploymentState
  ( ContainerServiceDeploymentState
      ( ..,
        ContainerServiceDeploymentState_ACTIVATING,
        ContainerServiceDeploymentState_ACTIVE,
        ContainerServiceDeploymentState_FAILED,
        ContainerServiceDeploymentState_INACTIVE
      ),
  )
where

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

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

pattern ContainerServiceDeploymentState_ACTIVATING :: ContainerServiceDeploymentState
pattern $bContainerServiceDeploymentState_ACTIVATING :: ContainerServiceDeploymentState
$mContainerServiceDeploymentState_ACTIVATING :: forall r.
ContainerServiceDeploymentState
-> (Void# -> r) -> (Void# -> r) -> r
ContainerServiceDeploymentState_ACTIVATING = ContainerServiceDeploymentState' "ACTIVATING"

pattern ContainerServiceDeploymentState_ACTIVE :: ContainerServiceDeploymentState
pattern $bContainerServiceDeploymentState_ACTIVE :: ContainerServiceDeploymentState
$mContainerServiceDeploymentState_ACTIVE :: forall r.
ContainerServiceDeploymentState
-> (Void# -> r) -> (Void# -> r) -> r
ContainerServiceDeploymentState_ACTIVE = ContainerServiceDeploymentState' "ACTIVE"

pattern ContainerServiceDeploymentState_FAILED :: ContainerServiceDeploymentState
pattern $bContainerServiceDeploymentState_FAILED :: ContainerServiceDeploymentState
$mContainerServiceDeploymentState_FAILED :: forall r.
ContainerServiceDeploymentState
-> (Void# -> r) -> (Void# -> r) -> r
ContainerServiceDeploymentState_FAILED = ContainerServiceDeploymentState' "FAILED"

pattern ContainerServiceDeploymentState_INACTIVE :: ContainerServiceDeploymentState
pattern $bContainerServiceDeploymentState_INACTIVE :: ContainerServiceDeploymentState
$mContainerServiceDeploymentState_INACTIVE :: forall r.
ContainerServiceDeploymentState
-> (Void# -> r) -> (Void# -> r) -> r
ContainerServiceDeploymentState_INACTIVE = ContainerServiceDeploymentState' "INACTIVE"

{-# COMPLETE
  ContainerServiceDeploymentState_ACTIVATING,
  ContainerServiceDeploymentState_ACTIVE,
  ContainerServiceDeploymentState_FAILED,
  ContainerServiceDeploymentState_INACTIVE,
  ContainerServiceDeploymentState'
  #-}