Interface CommonEcsRunTaskProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
EcsRunTaskBaseProps,RunEcsEc2TaskProps,RunEcsFargateTaskProps
- All Known Implementing Classes:
CommonEcsRunTaskProps.Jsii$Proxy,EcsRunTaskBaseProps.Jsii$Proxy,RunEcsEc2TaskProps.Jsii$Proxy,RunEcsFargateTaskProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:47.904Z")
@Stability(Stable)
public interface CommonEcsRunTaskProps
extends software.amazon.jsii.JsiiSerializable
Basic properties for ECS Tasks.
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();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCommonEcsRunTaskPropsstatic final classAn implementation forCommonEcsRunTaskProps -
Method Summary
Modifier and TypeMethodDescriptionbuilder()The topic to run the task on.default List<ContainerOverride>Container setting overrides.default ServiceIntegrationPatternThe service integration pattern indicates different ways to call RunTask in ECS.Task Definition used for running tasks in the service.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getCluster
The topic to run the task on. -
getTaskDefinition
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
-
getContainerOverrides
Container setting overrides.Key is the name of the container to override, value is the values you want to override.
Default: - No overrides
-
getIntegrationPattern
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
-
builder
- Returns:
- a
CommonEcsRunTaskProps.BuilderofCommonEcsRunTaskProps
-