{-# 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.TaskDefinitionField
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.ECS.Types.TaskDefinitionField
  ( TaskDefinitionField
      ( ..,
        TaskDefinitionField_TAGS
      ),
  )
where

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

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

pattern TaskDefinitionField_TAGS :: TaskDefinitionField
pattern $bTaskDefinitionField_TAGS :: TaskDefinitionField
$mTaskDefinitionField_TAGS :: forall {r}.
TaskDefinitionField -> ((# #) -> r) -> ((# #) -> r) -> r
TaskDefinitionField_TAGS = TaskDefinitionField' "TAGS"

{-# COMPLETE
  TaskDefinitionField_TAGS,
  TaskDefinitionField'
  #-}