{-# 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.TaskDefinitionFamilyStatus
-- 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.TaskDefinitionFamilyStatus
  ( TaskDefinitionFamilyStatus
      ( ..,
        TaskDefinitionFamilyStatus_ACTIVE,
        TaskDefinitionFamilyStatus_ALL,
        TaskDefinitionFamilyStatus_INACTIVE
      ),
  )
where

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

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

pattern TaskDefinitionFamilyStatus_ACTIVE :: TaskDefinitionFamilyStatus
pattern $bTaskDefinitionFamilyStatus_ACTIVE :: TaskDefinitionFamilyStatus
$mTaskDefinitionFamilyStatus_ACTIVE :: forall r.
TaskDefinitionFamilyStatus -> (Void# -> r) -> (Void# -> r) -> r
TaskDefinitionFamilyStatus_ACTIVE = TaskDefinitionFamilyStatus' "ACTIVE"

pattern TaskDefinitionFamilyStatus_ALL :: TaskDefinitionFamilyStatus
pattern $bTaskDefinitionFamilyStatus_ALL :: TaskDefinitionFamilyStatus
$mTaskDefinitionFamilyStatus_ALL :: forall r.
TaskDefinitionFamilyStatus -> (Void# -> r) -> (Void# -> r) -> r
TaskDefinitionFamilyStatus_ALL = TaskDefinitionFamilyStatus' "ALL"

pattern TaskDefinitionFamilyStatus_INACTIVE :: TaskDefinitionFamilyStatus
pattern $bTaskDefinitionFamilyStatus_INACTIVE :: TaskDefinitionFamilyStatus
$mTaskDefinitionFamilyStatus_INACTIVE :: forall r.
TaskDefinitionFamilyStatus -> (Void# -> r) -> (Void# -> r) -> r
TaskDefinitionFamilyStatus_INACTIVE = TaskDefinitionFamilyStatus' "INACTIVE"

{-# COMPLETE
  TaskDefinitionFamilyStatus_ACTIVE,
  TaskDefinitionFamilyStatus_ALL,
  TaskDefinitionFamilyStatus_INACTIVE,
  TaskDefinitionFamilyStatus'
  #-}