{-# 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.ContainerServiceStateDetailCode
-- 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.ContainerServiceStateDetailCode
  ( ContainerServiceStateDetailCode
      ( ..,
        ContainerServiceStateDetailCode_ACTIVATING_DEPLOYMENT,
        ContainerServiceStateDetailCode_CERTIFICATE_LIMIT_EXCEEDED,
        ContainerServiceStateDetailCode_CREATING_DEPLOYMENT,
        ContainerServiceStateDetailCode_CREATING_NETWORK_INFRASTRUCTURE,
        ContainerServiceStateDetailCode_CREATING_SYSTEM_RESOURCES,
        ContainerServiceStateDetailCode_EVALUATING_HEALTH_CHECK,
        ContainerServiceStateDetailCode_PROVISIONING_CERTIFICATE,
        ContainerServiceStateDetailCode_PROVISIONING_SERVICE,
        ContainerServiceStateDetailCode_UNKNOWN_ERROR
      ),
  )
where

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

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

pattern ContainerServiceStateDetailCode_ACTIVATING_DEPLOYMENT :: ContainerServiceStateDetailCode
pattern $bContainerServiceStateDetailCode_ACTIVATING_DEPLOYMENT :: ContainerServiceStateDetailCode
$mContainerServiceStateDetailCode_ACTIVATING_DEPLOYMENT :: forall r.
ContainerServiceStateDetailCode
-> (Void# -> r) -> (Void# -> r) -> r
ContainerServiceStateDetailCode_ACTIVATING_DEPLOYMENT = ContainerServiceStateDetailCode' "ACTIVATING_DEPLOYMENT"

pattern ContainerServiceStateDetailCode_CERTIFICATE_LIMIT_EXCEEDED :: ContainerServiceStateDetailCode
pattern $bContainerServiceStateDetailCode_CERTIFICATE_LIMIT_EXCEEDED :: ContainerServiceStateDetailCode
$mContainerServiceStateDetailCode_CERTIFICATE_LIMIT_EXCEEDED :: forall r.
ContainerServiceStateDetailCode
-> (Void# -> r) -> (Void# -> r) -> r
ContainerServiceStateDetailCode_CERTIFICATE_LIMIT_EXCEEDED = ContainerServiceStateDetailCode' "CERTIFICATE_LIMIT_EXCEEDED"

pattern ContainerServiceStateDetailCode_CREATING_DEPLOYMENT :: ContainerServiceStateDetailCode
pattern $bContainerServiceStateDetailCode_CREATING_DEPLOYMENT :: ContainerServiceStateDetailCode
$mContainerServiceStateDetailCode_CREATING_DEPLOYMENT :: forall r.
ContainerServiceStateDetailCode
-> (Void# -> r) -> (Void# -> r) -> r
ContainerServiceStateDetailCode_CREATING_DEPLOYMENT = ContainerServiceStateDetailCode' "CREATING_DEPLOYMENT"

pattern ContainerServiceStateDetailCode_CREATING_NETWORK_INFRASTRUCTURE :: ContainerServiceStateDetailCode
pattern $bContainerServiceStateDetailCode_CREATING_NETWORK_INFRASTRUCTURE :: ContainerServiceStateDetailCode
$mContainerServiceStateDetailCode_CREATING_NETWORK_INFRASTRUCTURE :: forall r.
ContainerServiceStateDetailCode
-> (Void# -> r) -> (Void# -> r) -> r
ContainerServiceStateDetailCode_CREATING_NETWORK_INFRASTRUCTURE = ContainerServiceStateDetailCode' "CREATING_NETWORK_INFRASTRUCTURE"

pattern ContainerServiceStateDetailCode_CREATING_SYSTEM_RESOURCES :: ContainerServiceStateDetailCode
pattern $bContainerServiceStateDetailCode_CREATING_SYSTEM_RESOURCES :: ContainerServiceStateDetailCode
$mContainerServiceStateDetailCode_CREATING_SYSTEM_RESOURCES :: forall r.
ContainerServiceStateDetailCode
-> (Void# -> r) -> (Void# -> r) -> r
ContainerServiceStateDetailCode_CREATING_SYSTEM_RESOURCES = ContainerServiceStateDetailCode' "CREATING_SYSTEM_RESOURCES"

pattern ContainerServiceStateDetailCode_EVALUATING_HEALTH_CHECK :: ContainerServiceStateDetailCode
pattern $bContainerServiceStateDetailCode_EVALUATING_HEALTH_CHECK :: ContainerServiceStateDetailCode
$mContainerServiceStateDetailCode_EVALUATING_HEALTH_CHECK :: forall r.
ContainerServiceStateDetailCode
-> (Void# -> r) -> (Void# -> r) -> r
ContainerServiceStateDetailCode_EVALUATING_HEALTH_CHECK = ContainerServiceStateDetailCode' "EVALUATING_HEALTH_CHECK"

pattern ContainerServiceStateDetailCode_PROVISIONING_CERTIFICATE :: ContainerServiceStateDetailCode
pattern $bContainerServiceStateDetailCode_PROVISIONING_CERTIFICATE :: ContainerServiceStateDetailCode
$mContainerServiceStateDetailCode_PROVISIONING_CERTIFICATE :: forall r.
ContainerServiceStateDetailCode
-> (Void# -> r) -> (Void# -> r) -> r
ContainerServiceStateDetailCode_PROVISIONING_CERTIFICATE = ContainerServiceStateDetailCode' "PROVISIONING_CERTIFICATE"

pattern ContainerServiceStateDetailCode_PROVISIONING_SERVICE :: ContainerServiceStateDetailCode
pattern $bContainerServiceStateDetailCode_PROVISIONING_SERVICE :: ContainerServiceStateDetailCode
$mContainerServiceStateDetailCode_PROVISIONING_SERVICE :: forall r.
ContainerServiceStateDetailCode
-> (Void# -> r) -> (Void# -> r) -> r
ContainerServiceStateDetailCode_PROVISIONING_SERVICE = ContainerServiceStateDetailCode' "PROVISIONING_SERVICE"

pattern ContainerServiceStateDetailCode_UNKNOWN_ERROR :: ContainerServiceStateDetailCode
pattern $bContainerServiceStateDetailCode_UNKNOWN_ERROR :: ContainerServiceStateDetailCode
$mContainerServiceStateDetailCode_UNKNOWN_ERROR :: forall r.
ContainerServiceStateDetailCode
-> (Void# -> r) -> (Void# -> r) -> r
ContainerServiceStateDetailCode_UNKNOWN_ERROR = ContainerServiceStateDetailCode' "UNKNOWN_ERROR"

{-# COMPLETE
  ContainerServiceStateDetailCode_ACTIVATING_DEPLOYMENT,
  ContainerServiceStateDetailCode_CERTIFICATE_LIMIT_EXCEEDED,
  ContainerServiceStateDetailCode_CREATING_DEPLOYMENT,
  ContainerServiceStateDetailCode_CREATING_NETWORK_INFRASTRUCTURE,
  ContainerServiceStateDetailCode_CREATING_SYSTEM_RESOURCES,
  ContainerServiceStateDetailCode_EVALUATING_HEALTH_CHECK,
  ContainerServiceStateDetailCode_PROVISIONING_CERTIFICATE,
  ContainerServiceStateDetailCode_PROVISIONING_SERVICE,
  ContainerServiceStateDetailCode_UNKNOWN_ERROR,
  ContainerServiceStateDetailCode'
  #-}