{-# 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.CapacityProviderStatus
-- 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.CapacityProviderStatus
  ( CapacityProviderStatus
      ( ..,
        CapacityProviderStatus_ACTIVE,
        CapacityProviderStatus_INACTIVE
      ),
  )
where

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

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

pattern CapacityProviderStatus_ACTIVE :: CapacityProviderStatus
pattern $bCapacityProviderStatus_ACTIVE :: CapacityProviderStatus
$mCapacityProviderStatus_ACTIVE :: forall r.
CapacityProviderStatus -> (Void# -> r) -> (Void# -> r) -> r
CapacityProviderStatus_ACTIVE = CapacityProviderStatus' "ACTIVE"

pattern CapacityProviderStatus_INACTIVE :: CapacityProviderStatus
pattern $bCapacityProviderStatus_INACTIVE :: CapacityProviderStatus
$mCapacityProviderStatus_INACTIVE :: forall r.
CapacityProviderStatus -> (Void# -> r) -> (Void# -> r) -> r
CapacityProviderStatus_INACTIVE = CapacityProviderStatus' "INACTIVE"

{-# COMPLETE
  CapacityProviderStatus_ACTIVE,
  CapacityProviderStatus_INACTIVE,
  CapacityProviderStatus'
  #-}