@Stability(value=Experimental) public static final class RunEcsEc2TaskProps.Builder extends Object
RunEcsEc2TaskProps| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
RunEcsEc2TaskProps |
build()
Builds the configured instance.
|
RunEcsEc2TaskProps.Builder |
withCluster(software.amazon.awscdk.services.ecs.ICluster value)
Sets the value of Cluster
|
RunEcsEc2TaskProps.Builder |
withContainerOverrides(List<ContainerOverride> value)
Sets the value of ContainerOverrides
|
RunEcsEc2TaskProps.Builder |
withPlacementConstraints(List<software.amazon.awscdk.services.ecs.PlacementConstraint> value)
Sets the value of PlacementConstraints
|
RunEcsEc2TaskProps.Builder |
withPlacementStrategies(List<software.amazon.awscdk.services.ecs.PlacementStrategy> value)
Sets the value of PlacementStrategies
|
RunEcsEc2TaskProps.Builder |
withSecurityGroup(software.amazon.awscdk.services.ec2.ISecurityGroup value)
Sets the value of SecurityGroup
|
RunEcsEc2TaskProps.Builder |
withSubnets(software.amazon.awscdk.services.ec2.SubnetSelection value)
Sets the value of Subnets
|
RunEcsEc2TaskProps.Builder |
withSynchronous(Boolean value)
Sets the value of Synchronous
|
RunEcsEc2TaskProps.Builder |
withTaskDefinition(software.amazon.awscdk.services.ecs.TaskDefinition value)
Sets the value of TaskDefinition
|
@Stability(value=Experimental) public RunEcsEc2TaskProps.Builder withPlacementConstraints(@Nullable List<software.amazon.awscdk.services.ecs.PlacementConstraint> value)
value - Placement constraints.this@Stability(value=Experimental) public RunEcsEc2TaskProps.Builder withPlacementStrategies(@Nullable List<software.amazon.awscdk.services.ecs.PlacementStrategy> value)
value - Placement strategies.this@Stability(value=Experimental) public RunEcsEc2TaskProps.Builder withSecurityGroup(@Nullable software.amazon.awscdk.services.ec2.ISecurityGroup value)
value - Existing security group to use for the task's ENIs.this@Stability(value=Experimental) public RunEcsEc2TaskProps.Builder withSubnets(@Nullable software.amazon.awscdk.services.ec2.SubnetSelection value)
value - In what subnets to place the task's ENIs.this@Stability(value=Experimental) public RunEcsEc2TaskProps.Builder withCluster(software.amazon.awscdk.services.ecs.ICluster value)
value - The topic to run the task on.this@Stability(value=Experimental) public RunEcsEc2TaskProps.Builder withTaskDefinition(software.amazon.awscdk.services.ecs.TaskDefinition value)
value - Task Definition used for running tasks in the service.this@Stability(value=Experimental) public RunEcsEc2TaskProps.Builder withContainerOverrides(@Nullable List<ContainerOverride> value)
value - Container setting overrides.this@Stability(value=Experimental) public RunEcsEc2TaskProps.Builder withSynchronous(@Nullable Boolean value)
value - Whether to wait for the task to complete and return the response.this@Stability(value=Experimental) public RunEcsEc2TaskProps build()
RunEcsEc2TaskPropsNullPointerException - if any required attribute was not providedCopyright © 2019. All rights reserved.