public static final class CommonEcsRunTaskProps.Builder
extends java.lang.Object
CommonEcsRunTaskProps
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CommonEcsRunTaskProps |
build()
Builds the configured instance.
|
CommonEcsRunTaskProps.Builder |
cluster(ICluster cluster)
Sets the value of
CommonEcsRunTaskProps.getCluster() |
CommonEcsRunTaskProps.Builder |
containerOverrides(java.util.List<? extends ContainerOverride> containerOverrides)
Sets the value of
CommonEcsRunTaskProps.getContainerOverrides() |
CommonEcsRunTaskProps.Builder |
integrationPattern(ServiceIntegrationPattern integrationPattern)
Sets the value of
CommonEcsRunTaskProps.getIntegrationPattern() |
CommonEcsRunTaskProps.Builder |
taskDefinition(TaskDefinition taskDefinition)
Sets the value of
CommonEcsRunTaskProps.getTaskDefinition() |
public CommonEcsRunTaskProps.Builder cluster(ICluster cluster)
CommonEcsRunTaskProps.getCluster()
cluster
- The topic to run the task on. This parameter is required.this
public CommonEcsRunTaskProps.Builder taskDefinition(TaskDefinition taskDefinition)
CommonEcsRunTaskProps.getTaskDefinition()
taskDefinition
- Task Definition used for running tasks in the service. This parameter is required.
Note: this must be TaskDefinition, and not ITaskDefinition,
as it requires properties that are not known for imported task definitionsthis
public CommonEcsRunTaskProps.Builder containerOverrides(java.util.List<? extends ContainerOverride> containerOverrides)
CommonEcsRunTaskProps.getContainerOverrides()
containerOverrides
- Container setting overrides.
Key is the name of the container to override, value is the
values you want to override.this
public CommonEcsRunTaskProps.Builder integrationPattern(ServiceIntegrationPattern integrationPattern)
CommonEcsRunTaskProps.getIntegrationPattern()
integrationPattern
- 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.this
public CommonEcsRunTaskProps build()
CommonEcsRunTaskProps
java.lang.NullPointerException
- if any required attribute was not provided