@Stability(value=Experimental) public static final class Ec2TaskDefinitionProps.Builder extends Object implements software.amazon.jsii.Builder<Ec2TaskDefinitionProps>
Ec2TaskDefinitionProps
Constructor and Description |
---|
Builder() |
@Stability(value=Experimental) public Ec2TaskDefinitionProps.Builder inferenceAccelerators(List<? extends InferenceAccelerator> inferenceAccelerators)
Ec2TaskDefinitionProps.getInferenceAccelerators()
inferenceAccelerators
- The inference accelerators to use for the containers in the task.
Not supported in Fargate.this
@Stability(value=Experimental) public Ec2TaskDefinitionProps.Builder ipcMode(IpcMode ipcMode)
Ec2TaskDefinitionProps.getIpcMode()
ipcMode
- The IPC resource namespace to use for the containers in the task.
Not supported in Fargate and Windows containers.this
@Stability(value=Experimental) public Ec2TaskDefinitionProps.Builder networkMode(NetworkMode networkMode)
Ec2TaskDefinitionProps.getNetworkMode()
networkMode
- The Docker networking mode to use for the containers in the task.
The valid values are none, bridge, awsvpc, and host.this
@Stability(value=Experimental) public Ec2TaskDefinitionProps.Builder pidMode(PidMode pidMode)
Ec2TaskDefinitionProps.getPidMode()
pidMode
- The process namespace to use for the containers in the task.
Not supported in Fargate and Windows containers.this
@Stability(value=Experimental) public Ec2TaskDefinitionProps.Builder placementConstraints(List<? extends PlacementConstraint> placementConstraints)
Ec2TaskDefinitionProps.getPlacementConstraints()
placementConstraints
- An array of placement constraint objects to use for the task.
You can
specify a maximum of 10 constraints per task (this limit includes
constraints in the task definition and those specified at run time).this
@Stability(value=Experimental) public Ec2TaskDefinitionProps.Builder executionRole(IRole executionRole)
CommonTaskDefinitionProps.getExecutionRole()
executionRole
- The name of the IAM task execution role that grants the ECS agent to call AWS APIs on your behalf.
The role will be used to retrieve container images from ECR and create CloudWatch log groups.this
@Stability(value=Experimental) public Ec2TaskDefinitionProps.Builder family(String family)
CommonTaskDefinitionProps.getFamily()
family
- The name of a family that this task definition is registered to.
A family groups multiple versions of a task definition.this
@Stability(value=Experimental) public Ec2TaskDefinitionProps.Builder proxyConfiguration(ProxyConfiguration proxyConfiguration)
CommonTaskDefinitionProps.getProxyConfiguration()
proxyConfiguration
- The configuration details for the App Mesh proxy.this
@Stability(value=Experimental) public Ec2TaskDefinitionProps.Builder taskRole(IRole taskRole)
CommonTaskDefinitionProps.getTaskRole()
taskRole
- The name of the IAM role that grants containers in the task permission to call AWS APIs on your behalf.this
@Stability(value=Experimental) public Ec2TaskDefinitionProps.Builder volumes(List<? extends Volume> volumes)
CommonTaskDefinitionProps.getVolumes()
volumes
- The list of volume definitions for the task.
For more information, see
Task Definition Parameter Volumes.this
@Stability(value=Experimental) public Ec2TaskDefinitionProps build()
build
in interface software.amazon.jsii.Builder<Ec2TaskDefinitionProps>
Ec2TaskDefinitionProps
NullPointerException
- if any required attribute was not providedCopyright © 2021. All rights reserved.