@Stability(value=Stable) public static final class Ec2TaskDefinitionProps.Builder extends Object
Ec2TaskDefinitionProps
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
Ec2TaskDefinitionProps |
build()
Builds the configured instance.
|
Ec2TaskDefinitionProps.Builder |
executionRole(IRole executionRole)
Sets the value of ExecutionRole
|
Ec2TaskDefinitionProps.Builder |
family(String family)
Sets the value of Family
|
Ec2TaskDefinitionProps.Builder |
networkMode(NetworkMode networkMode)
Sets the value of NetworkMode
|
Ec2TaskDefinitionProps.Builder |
placementConstraints(List<PlacementConstraint> placementConstraints)
Sets the value of PlacementConstraints
|
Ec2TaskDefinitionProps.Builder |
proxyConfiguration(ProxyConfiguration proxyConfiguration)
Sets the value of ProxyConfiguration
|
Ec2TaskDefinitionProps.Builder |
taskRole(IRole taskRole)
Sets the value of TaskRole
|
Ec2TaskDefinitionProps.Builder |
volumes(List<Volume> volumes)
Sets the value of Volumes
|
@Stability(value=Stable) public Ec2TaskDefinitionProps.Builder networkMode(NetworkMode networkMode)
networkMode
- The Docker networking mode to use for the containers in the task.this
@Stability(value=Stable) public Ec2TaskDefinitionProps.Builder placementConstraints(List<PlacementConstraint> placementConstraints)
placementConstraints
- An array of placement constraint objects to use for the task.this
@Stability(value=Stable) public Ec2TaskDefinitionProps.Builder executionRole(IRole executionRole)
executionRole
- The name of the IAM task execution role that grants the ECS agent to call AWS APIs on your behalf.this
@Stability(value=Stable) public Ec2TaskDefinitionProps.Builder family(String family)
family
- The name of a family that this task definition is registered to.this
@Stability(value=Stable) public Ec2TaskDefinitionProps.Builder proxyConfiguration(ProxyConfiguration proxyConfiguration)
proxyConfiguration
- The configuration details for the App Mesh proxy.this
@Stability(value=Stable) public Ec2TaskDefinitionProps.Builder taskRole(IRole taskRole)
taskRole
- The name of the IAM role that grants containers in the task permission to call AWS APIs on your behalf.this
@Stability(value=Stable) public Ec2TaskDefinitionProps.Builder volumes(List<Volume> volumes)
volumes
- The list of volume definitions for the task.this
@Stability(value=Stable) public Ec2TaskDefinitionProps build()
Ec2TaskDefinitionProps
NullPointerException
- if any required attribute was not providedCopyright © 2019. All rights reserved.