@Stability(value=Stable) public static final class TaskDefinitionProps.Builder extends Object
TaskDefinitionProps
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
TaskDefinitionProps |
build()
Builds the configured instance.
|
TaskDefinitionProps.Builder |
compatibility(Compatibility compatibility)
Sets the value of Compatibility
|
TaskDefinitionProps.Builder |
cpu(String cpu)
Sets the value of Cpu
|
TaskDefinitionProps.Builder |
executionRole(IRole executionRole)
Sets the value of ExecutionRole
|
TaskDefinitionProps.Builder |
family(String family)
Sets the value of Family
|
TaskDefinitionProps.Builder |
memoryMiB(String memoryMiB)
Sets the value of MemoryMiB
|
TaskDefinitionProps.Builder |
networkMode(NetworkMode networkMode)
Sets the value of NetworkMode
|
TaskDefinitionProps.Builder |
placementConstraints(List<PlacementConstraint> placementConstraints)
Sets the value of PlacementConstraints
|
TaskDefinitionProps.Builder |
proxyConfiguration(ProxyConfiguration proxyConfiguration)
Sets the value of ProxyConfiguration
|
TaskDefinitionProps.Builder |
taskRole(IRole taskRole)
Sets the value of TaskRole
|
TaskDefinitionProps.Builder |
volumes(List<Volume> volumes)
Sets the value of Volumes
|
@Stability(value=Stable) public TaskDefinitionProps.Builder compatibility(Compatibility compatibility)
compatibility
- The task launch type compatiblity requirement. This parameter is required.this
@Stability(value=Stable) public TaskDefinitionProps.Builder cpu(String cpu)
cpu
- The number of cpu units used by the task.this
@Stability(value=Stable) public TaskDefinitionProps.Builder memoryMiB(String memoryMiB)
memoryMiB
- The amount (in MiB) of memory used by the task.this
@Stability(value=Stable) public TaskDefinitionProps.Builder networkMode(NetworkMode networkMode)
networkMode
- The networking mode to use for the containers in the task.this
@Stability(value=Stable) public TaskDefinitionProps.Builder placementConstraints(List<PlacementConstraint> placementConstraints)
placementConstraints
- The placement constraints to use for tasks in the service.this
@Stability(value=Stable) public TaskDefinitionProps.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 TaskDefinitionProps.Builder family(String family)
family
- The name of a family that this task definition is registered to.this
@Stability(value=Stable) public TaskDefinitionProps.Builder proxyConfiguration(ProxyConfiguration proxyConfiguration)
proxyConfiguration
- The configuration details for the App Mesh proxy.this
@Stability(value=Stable) public TaskDefinitionProps.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 TaskDefinitionProps.Builder volumes(List<Volume> volumes)
volumes
- The list of volume definitions for the task.this
@Stability(value=Stable) public TaskDefinitionProps build()
TaskDefinitionProps
NullPointerException
- if any required attribute was not providedCopyright © 2019. All rights reserved.