LaunchTargetBindOptions

class aws_cdk.aws_stepfunctions_tasks.LaunchTargetBindOptions(*, task_definition, cluster=None)

Bases: object

Options for binding a launch target to an ECS run job task.

Parameters
  • task_definition (ITaskDefinition) – Task definition to run Docker containers in Amazon ECS.

  • cluster (Optional[ICluster]) – A regional grouping of one or more container instances on which you can run tasks and services. Default: - No cluster

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_tasks as stepfunctions_tasks

# cluster: ecs.Cluster
# task_definition: ecs.TaskDefinition

launch_target_bind_options = stepfunctions_tasks.LaunchTargetBindOptions(
    task_definition=task_definition,

    # the properties below are optional
    cluster=cluster
)

Attributes

cluster

A regional grouping of one or more container instances on which you can run tasks and services.

Default
  • No cluster

Return type

Optional[ICluster]

task_definition

Task definition to run Docker containers in Amazon ECS.

Return type

ITaskDefinition