{-# 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.TaskDefinitionStatus
-- 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.TaskDefinitionStatus
  ( TaskDefinitionStatus
      ( ..,
        TaskDefinitionStatus_ACTIVE,
        TaskDefinitionStatus_INACTIVE
      ),
  )
where

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

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

pattern TaskDefinitionStatus_ACTIVE :: TaskDefinitionStatus
pattern $bTaskDefinitionStatus_ACTIVE :: TaskDefinitionStatus
$mTaskDefinitionStatus_ACTIVE :: forall r. TaskDefinitionStatus -> (Void# -> r) -> (Void# -> r) -> r
TaskDefinitionStatus_ACTIVE = TaskDefinitionStatus' "ACTIVE"

pattern TaskDefinitionStatus_INACTIVE :: TaskDefinitionStatus
pattern $bTaskDefinitionStatus_INACTIVE :: TaskDefinitionStatus
$mTaskDefinitionStatus_INACTIVE :: forall r. TaskDefinitionStatus -> (Void# -> r) -> (Void# -> r) -> r
TaskDefinitionStatus_INACTIVE = TaskDefinitionStatus' "INACTIVE"

{-# COMPLETE
  TaskDefinitionStatus_ACTIVE,
  TaskDefinitionStatus_INACTIVE,
  TaskDefinitionStatus'
  #-}