{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.ECS.Types.TaskDefinitionPlacementConstraintType
( TaskDefinitionPlacementConstraintType
( ..,
TaskDefinitionPlacementConstraintType_MemberOf
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype TaskDefinitionPlacementConstraintType = TaskDefinitionPlacementConstraintType'
{ TaskDefinitionPlacementConstraintType -> Text
fromTaskDefinitionPlacementConstraintType ::
Core.Text
}
deriving stock
( Int -> TaskDefinitionPlacementConstraintType -> ShowS
[TaskDefinitionPlacementConstraintType] -> ShowS
TaskDefinitionPlacementConstraintType -> String
(Int -> TaskDefinitionPlacementConstraintType -> ShowS)
-> (TaskDefinitionPlacementConstraintType -> String)
-> ([TaskDefinitionPlacementConstraintType] -> ShowS)
-> Show TaskDefinitionPlacementConstraintType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [TaskDefinitionPlacementConstraintType] -> ShowS
$cshowList :: [TaskDefinitionPlacementConstraintType] -> ShowS
show :: TaskDefinitionPlacementConstraintType -> String
$cshow :: TaskDefinitionPlacementConstraintType -> String
showsPrec :: Int -> TaskDefinitionPlacementConstraintType -> ShowS
$cshowsPrec :: Int -> TaskDefinitionPlacementConstraintType -> ShowS
Prelude.Show,
ReadPrec [TaskDefinitionPlacementConstraintType]
ReadPrec TaskDefinitionPlacementConstraintType
Int -> ReadS TaskDefinitionPlacementConstraintType
ReadS [TaskDefinitionPlacementConstraintType]
(Int -> ReadS TaskDefinitionPlacementConstraintType)
-> ReadS [TaskDefinitionPlacementConstraintType]
-> ReadPrec TaskDefinitionPlacementConstraintType
-> ReadPrec [TaskDefinitionPlacementConstraintType]
-> Read TaskDefinitionPlacementConstraintType
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [TaskDefinitionPlacementConstraintType]
$creadListPrec :: ReadPrec [TaskDefinitionPlacementConstraintType]
readPrec :: ReadPrec TaskDefinitionPlacementConstraintType
$creadPrec :: ReadPrec TaskDefinitionPlacementConstraintType
readList :: ReadS [TaskDefinitionPlacementConstraintType]
$creadList :: ReadS [TaskDefinitionPlacementConstraintType]
readsPrec :: Int -> ReadS TaskDefinitionPlacementConstraintType
$creadsPrec :: Int -> ReadS TaskDefinitionPlacementConstraintType
Prelude.Read,
TaskDefinitionPlacementConstraintType
-> TaskDefinitionPlacementConstraintType -> Bool
(TaskDefinitionPlacementConstraintType
-> TaskDefinitionPlacementConstraintType -> Bool)
-> (TaskDefinitionPlacementConstraintType
-> TaskDefinitionPlacementConstraintType -> Bool)
-> Eq TaskDefinitionPlacementConstraintType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: TaskDefinitionPlacementConstraintType
-> TaskDefinitionPlacementConstraintType -> Bool
$c/= :: TaskDefinitionPlacementConstraintType
-> TaskDefinitionPlacementConstraintType -> Bool
== :: TaskDefinitionPlacementConstraintType
-> TaskDefinitionPlacementConstraintType -> Bool
$c== :: TaskDefinitionPlacementConstraintType
-> TaskDefinitionPlacementConstraintType -> Bool
Prelude.Eq,
Eq TaskDefinitionPlacementConstraintType
Eq TaskDefinitionPlacementConstraintType
-> (TaskDefinitionPlacementConstraintType
-> TaskDefinitionPlacementConstraintType -> Ordering)
-> (TaskDefinitionPlacementConstraintType
-> TaskDefinitionPlacementConstraintType -> Bool)
-> (TaskDefinitionPlacementConstraintType
-> TaskDefinitionPlacementConstraintType -> Bool)
-> (TaskDefinitionPlacementConstraintType
-> TaskDefinitionPlacementConstraintType -> Bool)
-> (TaskDefinitionPlacementConstraintType
-> TaskDefinitionPlacementConstraintType -> Bool)
-> (TaskDefinitionPlacementConstraintType
-> TaskDefinitionPlacementConstraintType
-> TaskDefinitionPlacementConstraintType)
-> (TaskDefinitionPlacementConstraintType
-> TaskDefinitionPlacementConstraintType
-> TaskDefinitionPlacementConstraintType)
-> Ord TaskDefinitionPlacementConstraintType
TaskDefinitionPlacementConstraintType
-> TaskDefinitionPlacementConstraintType -> Bool
TaskDefinitionPlacementConstraintType
-> TaskDefinitionPlacementConstraintType -> Ordering
TaskDefinitionPlacementConstraintType
-> TaskDefinitionPlacementConstraintType
-> TaskDefinitionPlacementConstraintType
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 :: TaskDefinitionPlacementConstraintType
-> TaskDefinitionPlacementConstraintType
-> TaskDefinitionPlacementConstraintType
$cmin :: TaskDefinitionPlacementConstraintType
-> TaskDefinitionPlacementConstraintType
-> TaskDefinitionPlacementConstraintType
max :: TaskDefinitionPlacementConstraintType
-> TaskDefinitionPlacementConstraintType
-> TaskDefinitionPlacementConstraintType
$cmax :: TaskDefinitionPlacementConstraintType
-> TaskDefinitionPlacementConstraintType
-> TaskDefinitionPlacementConstraintType
>= :: TaskDefinitionPlacementConstraintType
-> TaskDefinitionPlacementConstraintType -> Bool
$c>= :: TaskDefinitionPlacementConstraintType
-> TaskDefinitionPlacementConstraintType -> Bool
> :: TaskDefinitionPlacementConstraintType
-> TaskDefinitionPlacementConstraintType -> Bool
$c> :: TaskDefinitionPlacementConstraintType
-> TaskDefinitionPlacementConstraintType -> Bool
<= :: TaskDefinitionPlacementConstraintType
-> TaskDefinitionPlacementConstraintType -> Bool
$c<= :: TaskDefinitionPlacementConstraintType
-> TaskDefinitionPlacementConstraintType -> Bool
< :: TaskDefinitionPlacementConstraintType
-> TaskDefinitionPlacementConstraintType -> Bool
$c< :: TaskDefinitionPlacementConstraintType
-> TaskDefinitionPlacementConstraintType -> Bool
compare :: TaskDefinitionPlacementConstraintType
-> TaskDefinitionPlacementConstraintType -> Ordering
$ccompare :: TaskDefinitionPlacementConstraintType
-> TaskDefinitionPlacementConstraintType -> Ordering
$cp1Ord :: Eq TaskDefinitionPlacementConstraintType
Prelude.Ord,
(forall x.
TaskDefinitionPlacementConstraintType
-> Rep TaskDefinitionPlacementConstraintType x)
-> (forall x.
Rep TaskDefinitionPlacementConstraintType x
-> TaskDefinitionPlacementConstraintType)
-> Generic TaskDefinitionPlacementConstraintType
forall x.
Rep TaskDefinitionPlacementConstraintType x
-> TaskDefinitionPlacementConstraintType
forall x.
TaskDefinitionPlacementConstraintType
-> Rep TaskDefinitionPlacementConstraintType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep TaskDefinitionPlacementConstraintType x
-> TaskDefinitionPlacementConstraintType
$cfrom :: forall x.
TaskDefinitionPlacementConstraintType
-> Rep TaskDefinitionPlacementConstraintType x
Prelude.Generic
)
deriving newtype
( Int -> TaskDefinitionPlacementConstraintType -> Int
TaskDefinitionPlacementConstraintType -> Int
(Int -> TaskDefinitionPlacementConstraintType -> Int)
-> (TaskDefinitionPlacementConstraintType -> Int)
-> Hashable TaskDefinitionPlacementConstraintType
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: TaskDefinitionPlacementConstraintType -> Int
$chash :: TaskDefinitionPlacementConstraintType -> Int
hashWithSalt :: Int -> TaskDefinitionPlacementConstraintType -> Int
$chashWithSalt :: Int -> TaskDefinitionPlacementConstraintType -> Int
Prelude.Hashable,
TaskDefinitionPlacementConstraintType -> ()
(TaskDefinitionPlacementConstraintType -> ())
-> NFData TaskDefinitionPlacementConstraintType
forall a. (a -> ()) -> NFData a
rnf :: TaskDefinitionPlacementConstraintType -> ()
$crnf :: TaskDefinitionPlacementConstraintType -> ()
Prelude.NFData,
Text -> Either String TaskDefinitionPlacementConstraintType
(Text -> Either String TaskDefinitionPlacementConstraintType)
-> FromText TaskDefinitionPlacementConstraintType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String TaskDefinitionPlacementConstraintType
$cfromText :: Text -> Either String TaskDefinitionPlacementConstraintType
Core.FromText,
TaskDefinitionPlacementConstraintType -> Text
(TaskDefinitionPlacementConstraintType -> Text)
-> ToText TaskDefinitionPlacementConstraintType
forall a. (a -> Text) -> ToText a
toText :: TaskDefinitionPlacementConstraintType -> Text
$ctoText :: TaskDefinitionPlacementConstraintType -> Text
Core.ToText,
TaskDefinitionPlacementConstraintType -> ByteString
(TaskDefinitionPlacementConstraintType -> ByteString)
-> ToByteString TaskDefinitionPlacementConstraintType
forall a. (a -> ByteString) -> ToByteString a
toBS :: TaskDefinitionPlacementConstraintType -> ByteString
$ctoBS :: TaskDefinitionPlacementConstraintType -> ByteString
Core.ToByteString,
TaskDefinitionPlacementConstraintType -> ByteStringBuilder
(TaskDefinitionPlacementConstraintType -> ByteStringBuilder)
-> ToLog TaskDefinitionPlacementConstraintType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: TaskDefinitionPlacementConstraintType -> ByteStringBuilder
$cbuild :: TaskDefinitionPlacementConstraintType -> ByteStringBuilder
Core.ToLog,
HeaderName -> TaskDefinitionPlacementConstraintType -> [Header]
(HeaderName -> TaskDefinitionPlacementConstraintType -> [Header])
-> ToHeader TaskDefinitionPlacementConstraintType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> TaskDefinitionPlacementConstraintType -> [Header]
$ctoHeader :: HeaderName -> TaskDefinitionPlacementConstraintType -> [Header]
Core.ToHeader,
TaskDefinitionPlacementConstraintType -> QueryString
(TaskDefinitionPlacementConstraintType -> QueryString)
-> ToQuery TaskDefinitionPlacementConstraintType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: TaskDefinitionPlacementConstraintType -> QueryString
$ctoQuery :: TaskDefinitionPlacementConstraintType -> QueryString
Core.ToQuery,
Value -> Parser [TaskDefinitionPlacementConstraintType]
Value -> Parser TaskDefinitionPlacementConstraintType
(Value -> Parser TaskDefinitionPlacementConstraintType)
-> (Value -> Parser [TaskDefinitionPlacementConstraintType])
-> FromJSON TaskDefinitionPlacementConstraintType
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [TaskDefinitionPlacementConstraintType]
$cparseJSONList :: Value -> Parser [TaskDefinitionPlacementConstraintType]
parseJSON :: Value -> Parser TaskDefinitionPlacementConstraintType
$cparseJSON :: Value -> Parser TaskDefinitionPlacementConstraintType
Core.FromJSON,
FromJSONKeyFunction [TaskDefinitionPlacementConstraintType]
FromJSONKeyFunction TaskDefinitionPlacementConstraintType
FromJSONKeyFunction TaskDefinitionPlacementConstraintType
-> FromJSONKeyFunction [TaskDefinitionPlacementConstraintType]
-> FromJSONKey TaskDefinitionPlacementConstraintType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [TaskDefinitionPlacementConstraintType]
$cfromJSONKeyList :: FromJSONKeyFunction [TaskDefinitionPlacementConstraintType]
fromJSONKey :: FromJSONKeyFunction TaskDefinitionPlacementConstraintType
$cfromJSONKey :: FromJSONKeyFunction TaskDefinitionPlacementConstraintType
Core.FromJSONKey,
[TaskDefinitionPlacementConstraintType] -> Encoding
[TaskDefinitionPlacementConstraintType] -> Value
TaskDefinitionPlacementConstraintType -> Encoding
TaskDefinitionPlacementConstraintType -> Value
(TaskDefinitionPlacementConstraintType -> Value)
-> (TaskDefinitionPlacementConstraintType -> Encoding)
-> ([TaskDefinitionPlacementConstraintType] -> Value)
-> ([TaskDefinitionPlacementConstraintType] -> Encoding)
-> ToJSON TaskDefinitionPlacementConstraintType
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [TaskDefinitionPlacementConstraintType] -> Encoding
$ctoEncodingList :: [TaskDefinitionPlacementConstraintType] -> Encoding
toJSONList :: [TaskDefinitionPlacementConstraintType] -> Value
$ctoJSONList :: [TaskDefinitionPlacementConstraintType] -> Value
toEncoding :: TaskDefinitionPlacementConstraintType -> Encoding
$ctoEncoding :: TaskDefinitionPlacementConstraintType -> Encoding
toJSON :: TaskDefinitionPlacementConstraintType -> Value
$ctoJSON :: TaskDefinitionPlacementConstraintType -> Value
Core.ToJSON,
ToJSONKeyFunction [TaskDefinitionPlacementConstraintType]
ToJSONKeyFunction TaskDefinitionPlacementConstraintType
ToJSONKeyFunction TaskDefinitionPlacementConstraintType
-> ToJSONKeyFunction [TaskDefinitionPlacementConstraintType]
-> ToJSONKey TaskDefinitionPlacementConstraintType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [TaskDefinitionPlacementConstraintType]
$ctoJSONKeyList :: ToJSONKeyFunction [TaskDefinitionPlacementConstraintType]
toJSONKey :: ToJSONKeyFunction TaskDefinitionPlacementConstraintType
$ctoJSONKey :: ToJSONKeyFunction TaskDefinitionPlacementConstraintType
Core.ToJSONKey,
[Node] -> Either String TaskDefinitionPlacementConstraintType
([Node] -> Either String TaskDefinitionPlacementConstraintType)
-> FromXML TaskDefinitionPlacementConstraintType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String TaskDefinitionPlacementConstraintType
$cparseXML :: [Node] -> Either String TaskDefinitionPlacementConstraintType
Core.FromXML,
TaskDefinitionPlacementConstraintType -> XML
(TaskDefinitionPlacementConstraintType -> XML)
-> ToXML TaskDefinitionPlacementConstraintType
forall a. (a -> XML) -> ToXML a
toXML :: TaskDefinitionPlacementConstraintType -> XML
$ctoXML :: TaskDefinitionPlacementConstraintType -> XML
Core.ToXML
)
pattern TaskDefinitionPlacementConstraintType_MemberOf :: TaskDefinitionPlacementConstraintType
pattern $bTaskDefinitionPlacementConstraintType_MemberOf :: TaskDefinitionPlacementConstraintType
$mTaskDefinitionPlacementConstraintType_MemberOf :: forall r.
TaskDefinitionPlacementConstraintType
-> (Void# -> r) -> (Void# -> r) -> r
TaskDefinitionPlacementConstraintType_MemberOf = TaskDefinitionPlacementConstraintType' "memberOf"
{-# COMPLETE
TaskDefinitionPlacementConstraintType_MemberOf,
TaskDefinitionPlacementConstraintType'
#-}