@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:42.450Z") @Stability(value=Stable) public interface CommonEcsRunTaskProps extends software.amazon.jsii.JsiiSerializable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ecs.*;
import software.amazon.awscdk.services.stepfunctions.*;
import software.amazon.awscdk.services.stepfunctions.tasks.*;
Cluster cluster;
ContainerDefinition containerDefinition;
TaskDefinition taskDefinition;
CommonEcsRunTaskProps commonEcsRunTaskProps = CommonEcsRunTaskProps.builder()
.cluster(cluster)
.taskDefinition(taskDefinition)
// the properties below are optional
.containerOverrides(List.of(ContainerOverride.builder()
.containerDefinition(containerDefinition)
// the properties below are optional
.command(List.of("command"))
.cpu(123)
.environment(List.of(TaskEnvironmentVariable.builder()
.name("name")
.value("value")
.build()))
.memoryLimit(123)
.memoryReservation(123)
.build()))
.integrationPattern(ServiceIntegrationPattern.FIRE_AND_FORGET)
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CommonEcsRunTaskProps.Builder
A builder for
CommonEcsRunTaskProps |
static class |
CommonEcsRunTaskProps.Jsii$Proxy
An implementation for
CommonEcsRunTaskProps |
| Modifier and Type | Method and Description |
|---|---|
static CommonEcsRunTaskProps.Builder |
builder() |
ICluster |
getCluster()
The topic to run the task on.
|
default List<ContainerOverride> |
getContainerOverrides()
Container setting overrides.
|
default ServiceIntegrationPattern |
getIntegrationPattern()
The service integration pattern indicates different ways to call RunTask in ECS.
|
TaskDefinition |
getTaskDefinition()
Task Definition used for running tasks in the service.
|
@Stability(value=Stable) @NotNull ICluster getCluster()
@Stability(value=Stable) @NotNull TaskDefinition getTaskDefinition()
Note: this must be TaskDefinition, and not ITaskDefinition, as it requires properties that are not known for imported task definitions
@Stability(value=Stable) @Nullable default List<ContainerOverride> getContainerOverrides()
Key is the name of the container to override, value is the values you want to override.
Default: - No overrides
@Stability(value=Stable) @Nullable default ServiceIntegrationPattern getIntegrationPattern()
The valid value for Lambda is FIRE_AND_FORGET, SYNC and WAIT_FOR_TASK_TOKEN.
Default: FIRE_AND_FORGET
@Stability(value=Stable) static CommonEcsRunTaskProps.Builder builder()
CommonEcsRunTaskProps.Builder of CommonEcsRunTaskPropsCopyright © 2022. All rights reserved.