@Stability(value=Stable) public static final class RunEcsEc2TaskProps.Builder extends Object implements software.amazon.jsii.Builder<RunEcsEc2TaskProps>
RunEcsEc2TaskProps| Constructor and Description |
|---|
Builder() |
@Stability(value=Stable) public RunEcsEc2TaskProps.Builder placementConstraints(List<? extends PlacementConstraint> placementConstraints)
RunEcsEc2TaskProps.getPlacementConstraints()placementConstraints - Placement constraints.this@Stability(value=Stable) public RunEcsEc2TaskProps.Builder placementStrategies(List<? extends PlacementStrategy> placementStrategies)
RunEcsEc2TaskProps.getPlacementStrategies()placementStrategies - Placement strategies.this@Stability(value=Stable) public RunEcsEc2TaskProps.Builder securityGroup(ISecurityGroup securityGroup)
RunEcsEc2TaskProps.getSecurityGroup()securityGroup - Existing security group to use for the task's ENIs.
(Only applicable in case the TaskDefinition is configured for AwsVpc networking)this@Stability(value=Stable) public RunEcsEc2TaskProps.Builder subnets(SubnetSelection subnets)
RunEcsEc2TaskProps.getSubnets()subnets - In what subnets to place the task's ENIs.
(Only applicable in case the TaskDefinition is configured for AwsVpc networking)this@Stability(value=Stable) public RunEcsEc2TaskProps.Builder cluster(ICluster cluster)
CommonEcsRunTaskProps.getCluster()cluster - The topic to run the task on. This parameter is required.this@Stability(value=Stable) public RunEcsEc2TaskProps.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@Stability(value=Stable) public RunEcsEc2TaskProps.Builder containerOverrides(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@Stability(value=Stable) public RunEcsEc2TaskProps.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@Stability(value=Stable) public RunEcsEc2TaskProps build()
build in interface software.amazon.jsii.Builder<RunEcsEc2TaskProps>RunEcsEc2TaskPropsNullPointerException - if any required attribute was not providedCopyright © 2020. All rights reserved.