module Stratosphere.ECS.TaskDefinition.TaskDefinitionPlacementConstraintProperty (
TaskDefinitionPlacementConstraintProperty(..),
mkTaskDefinitionPlacementConstraintProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data TaskDefinitionPlacementConstraintProperty
=
TaskDefinitionPlacementConstraintProperty {TaskDefinitionPlacementConstraintProperty -> ()
haddock_workaround_ :: (),
TaskDefinitionPlacementConstraintProperty -> Maybe (Value Text)
expression :: (Prelude.Maybe (Value Prelude.Text)),
TaskDefinitionPlacementConstraintProperty -> Value Text
type' :: (Value Prelude.Text)}
deriving stock (TaskDefinitionPlacementConstraintProperty
-> TaskDefinitionPlacementConstraintProperty -> Bool
(TaskDefinitionPlacementConstraintProperty
-> TaskDefinitionPlacementConstraintProperty -> Bool)
-> (TaskDefinitionPlacementConstraintProperty
-> TaskDefinitionPlacementConstraintProperty -> Bool)
-> Eq TaskDefinitionPlacementConstraintProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: TaskDefinitionPlacementConstraintProperty
-> TaskDefinitionPlacementConstraintProperty -> Bool
== :: TaskDefinitionPlacementConstraintProperty
-> TaskDefinitionPlacementConstraintProperty -> Bool
$c/= :: TaskDefinitionPlacementConstraintProperty
-> TaskDefinitionPlacementConstraintProperty -> Bool
/= :: TaskDefinitionPlacementConstraintProperty
-> TaskDefinitionPlacementConstraintProperty -> Bool
Prelude.Eq, Int -> TaskDefinitionPlacementConstraintProperty -> ShowS
[TaskDefinitionPlacementConstraintProperty] -> ShowS
TaskDefinitionPlacementConstraintProperty -> String
(Int -> TaskDefinitionPlacementConstraintProperty -> ShowS)
-> (TaskDefinitionPlacementConstraintProperty -> String)
-> ([TaskDefinitionPlacementConstraintProperty] -> ShowS)
-> Show TaskDefinitionPlacementConstraintProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> TaskDefinitionPlacementConstraintProperty -> ShowS
showsPrec :: Int -> TaskDefinitionPlacementConstraintProperty -> ShowS
$cshow :: TaskDefinitionPlacementConstraintProperty -> String
show :: TaskDefinitionPlacementConstraintProperty -> String
$cshowList :: [TaskDefinitionPlacementConstraintProperty] -> ShowS
showList :: [TaskDefinitionPlacementConstraintProperty] -> ShowS
Prelude.Show)
mkTaskDefinitionPlacementConstraintProperty ::
Value Prelude.Text -> TaskDefinitionPlacementConstraintProperty
mkTaskDefinitionPlacementConstraintProperty :: Value Text -> TaskDefinitionPlacementConstraintProperty
mkTaskDefinitionPlacementConstraintProperty Value Text
type'
= TaskDefinitionPlacementConstraintProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), type' :: Value Text
type' = Value Text
type',
expression :: Maybe (Value Text)
expression = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties TaskDefinitionPlacementConstraintProperty where
toResourceProperties :: TaskDefinitionPlacementConstraintProperty -> ResourceProperties
toResourceProperties TaskDefinitionPlacementConstraintProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: TaskDefinitionPlacementConstraintProperty -> ()
expression :: TaskDefinitionPlacementConstraintProperty -> Maybe (Value Text)
type' :: TaskDefinitionPlacementConstraintProperty -> Value Text
haddock_workaround_ :: ()
expression :: Maybe (Value Text)
type' :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::ECS::TaskDefinition.TaskDefinitionPlacementConstraint",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"Type" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
type']
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Expression" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
expression]))}
instance JSON.ToJSON TaskDefinitionPlacementConstraintProperty where
toJSON :: TaskDefinitionPlacementConstraintProperty -> Value
toJSON TaskDefinitionPlacementConstraintProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: TaskDefinitionPlacementConstraintProperty -> ()
expression :: TaskDefinitionPlacementConstraintProperty -> Maybe (Value Text)
type' :: TaskDefinitionPlacementConstraintProperty -> Value Text
haddock_workaround_ :: ()
expression :: Maybe (Value Text)
type' :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"Type" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
type']
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Expression" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
expression])))
instance Property "Expression" TaskDefinitionPlacementConstraintProperty where
type PropertyType "Expression" TaskDefinitionPlacementConstraintProperty = Value Prelude.Text
set :: PropertyType "Expression" TaskDefinitionPlacementConstraintProperty
-> TaskDefinitionPlacementConstraintProperty
-> TaskDefinitionPlacementConstraintProperty
set PropertyType "Expression" TaskDefinitionPlacementConstraintProperty
newValue TaskDefinitionPlacementConstraintProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: TaskDefinitionPlacementConstraintProperty -> ()
expression :: TaskDefinitionPlacementConstraintProperty -> Maybe (Value Text)
type' :: TaskDefinitionPlacementConstraintProperty -> Value Text
haddock_workaround_ :: ()
expression :: Maybe (Value Text)
type' :: Value Text
..}
= TaskDefinitionPlacementConstraintProperty
{expression :: Maybe (Value Text)
expression = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Expression" TaskDefinitionPlacementConstraintProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
type' :: Value Text
haddock_workaround_ :: ()
type' :: Value Text
..}
instance Property "Type" TaskDefinitionPlacementConstraintProperty where
type PropertyType "Type" TaskDefinitionPlacementConstraintProperty = Value Prelude.Text
set :: PropertyType "Type" TaskDefinitionPlacementConstraintProperty
-> TaskDefinitionPlacementConstraintProperty
-> TaskDefinitionPlacementConstraintProperty
set PropertyType "Type" TaskDefinitionPlacementConstraintProperty
newValue TaskDefinitionPlacementConstraintProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: TaskDefinitionPlacementConstraintProperty -> ()
expression :: TaskDefinitionPlacementConstraintProperty -> Maybe (Value Text)
type' :: TaskDefinitionPlacementConstraintProperty -> Value Text
haddock_workaround_ :: ()
expression :: Maybe (Value Text)
type' :: Value Text
..}
= TaskDefinitionPlacementConstraintProperty {type' :: Value Text
type' = PropertyType "Type" TaskDefinitionPlacementConstraintProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
expression :: Maybe (Value Text)
haddock_workaround_ :: ()
expression :: Maybe (Value Text)
..}