EcsRunTaskBase

class aws_cdk.aws_stepfunctions_tasks.EcsRunTaskBase(*, parameters=None, cluster, task_definition, container_overrides=None, integration_pattern=None)

Bases: object

A StepFunctions Task to run a Task on ECS or Fargate.

stability :stability: experimental

__init__(*, parameters=None, cluster, task_definition, container_overrides=None, integration_pattern=None)
Parameters
  • props

  • parameters (Optional[Mapping[str, Any]]) – Additional parameters to pass to the base task.

  • cluster (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 definitions

  • container_overrides (Optional[List[ContainerOverride]]) – Container setting overrides. Key is the name of the container to override, value is the values you want to override.

  • integration_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 :stability: experimental

Return type

None

Methods

bind(task)

Called when the task object is used in a workflow.

Parameters

task (Task) –

stability :stability: experimental

Return type

StepFunctionsTaskConfig

Attributes

connections

Manage allowed network traffic for this service.

stability :stability: experimental

Return type

Connections