EcsRunTaskBase
- class aws_cdk.aws_stepfunctions_tasks.EcsRunTaskBase(*, parameters=None, cluster, task_definition, container_overrides=None, integration_pattern=None)
Bases:
object
(deprecated) A StepFunctions Task to run a Task on ECS or Fargate.
- Deprecated:
No replacement
- Stability:
deprecated
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. import aws_cdk.aws_ecs as ecs import aws_cdk.aws_stepfunctions as stepfunctions import aws_cdk.aws_stepfunctions_tasks as stepfunctions_tasks # cluster: ecs.Cluster # container_definition: ecs.ContainerDefinition # parameters: Any # task_definition: ecs.TaskDefinition ecs_run_task_base = stepfunctions_tasks.EcsRunTaskBase( cluster=cluster, task_definition=task_definition, # the properties below are optional container_overrides=[stepfunctions_tasks.ContainerOverride( container_definition=container_definition, # the properties below are optional command=["command"], cpu=123, environment=[stepfunctions_tasks.TaskEnvironmentVariable( name="name", value="value" )], memory_limit=123, memory_reservation=123 )], integration_pattern=stepfunctions.ServiceIntegrationPattern.FIRE_AND_FORGET, parameters={ "parameters_key": parameters } )
- Parameters:
parameters (
Optional
[Mapping
[str
,Any
]]) – (deprecated) Additional parameters to pass to the base task. Default: - No additional parameters passedcluster (
ICluster
) – The topic to run the task on.task_definition (
TaskDefinition
) – Task Definition used for running tasks in the service. Note: this must be TaskDefinition, and not ITaskDefinition, as it requires properties that are not known for imported task definitionscontainer_overrides (
Optional
[Sequence
[Union
[ContainerOverride
,Dict
[str
,Any
]]]]) – Container setting overrides. Key is the name of the container to override, value is the values you want to override. Default: - No overridesintegration_pattern (
Optional
[ServiceIntegrationPattern
]) – The service integration pattern indicates different ways to call RunTask in ECS. The valid value for Lambda is FIRE_AND_FORGET, SYNC and WAIT_FOR_TASK_TOKEN. Default: FIRE_AND_FORGET
- Stability:
deprecated
Methods
- bind(task)
(deprecated) Called when the task object is used in a workflow.
- Parameters:
task (
Task
) –- Stability:
deprecated
- Return type:
Attributes
- connections
(deprecated) Manage allowed network traffic for this service.
- Stability:
deprecated