@Stability(value=Experimental) public static final class Ec2TaskDefinition.Builder extends Object implements software.amazon.jsii.Builder<Ec2TaskDefinition>
Ec2TaskDefinition.| Modifier and Type | Method and Description |
|---|---|
Ec2TaskDefinition |
build() |
static Ec2TaskDefinition.Builder |
create(software.constructs.Construct scope,
String id) |
Ec2TaskDefinition.Builder |
executionRole(IRole executionRole)
(experimental) The name of the IAM task execution role that grants the ECS agent to call AWS APIs on your behalf.
|
Ec2TaskDefinition.Builder |
family(String family)
(experimental) The name of a family that this task definition is registered to.
|
Ec2TaskDefinition.Builder |
inferenceAccelerators(List<? extends InferenceAccelerator> inferenceAccelerators)
(experimental) The inference accelerators to use for the containers in the task.
|
Ec2TaskDefinition.Builder |
ipcMode(IpcMode ipcMode)
(experimental) The IPC resource namespace to use for the containers in the task.
|
Ec2TaskDefinition.Builder |
networkMode(NetworkMode networkMode)
(experimental) The Docker networking mode to use for the containers in the task.
|
Ec2TaskDefinition.Builder |
pidMode(PidMode pidMode)
(experimental) The process namespace to use for the containers in the task.
|
Ec2TaskDefinition.Builder |
placementConstraints(List<? extends PlacementConstraint> placementConstraints)
(experimental) An array of placement constraint objects to use for the task.
|
Ec2TaskDefinition.Builder |
proxyConfiguration(ProxyConfiguration proxyConfiguration)
(experimental) The configuration details for the App Mesh proxy.
|
Ec2TaskDefinition.Builder |
taskRole(IRole taskRole)
(experimental) The name of the IAM role that grants containers in the task permission to call AWS APIs on your behalf.
|
Ec2TaskDefinition.Builder |
volumes(List<? extends Volume> volumes)
(experimental) The list of volume definitions for the task.
|
@Stability(value=Experimental) public static Ec2TaskDefinition.Builder create(software.constructs.Construct scope, String id)
scope - This parameter is required.id - This parameter is required.Ec2TaskDefinition.Builder.@Stability(value=Experimental) public Ec2TaskDefinition.Builder executionRole(IRole executionRole)
The role will be used to retrieve container images from ECR and create CloudWatch log groups.
Default: - An execution role will be automatically created if you use ECR images in your task definition.
executionRole - The name of the IAM task execution role that grants the ECS agent to call AWS APIs on your behalf. This parameter is required.this@Stability(value=Experimental) public Ec2TaskDefinition.Builder family(String family)
A family groups multiple versions of a task definition.
Default: - Automatically generated name.
family - The name of a family that this task definition is registered to. This parameter is required.this@Stability(value=Experimental) public Ec2TaskDefinition.Builder proxyConfiguration(ProxyConfiguration proxyConfiguration)
Default: - No proxy configuration.
proxyConfiguration - The configuration details for the App Mesh proxy. This parameter is required.this@Stability(value=Experimental) public Ec2TaskDefinition.Builder taskRole(IRole taskRole)
Default: - A task role is automatically created for you.
taskRole - The name of the IAM role that grants containers in the task permission to call AWS APIs on your behalf. This parameter is required.this@Stability(value=Experimental) public Ec2TaskDefinition.Builder volumes(List<? extends Volume> volumes)
For more information, see Task Definition Parameter Volumes.
Default: - No volumes are passed to the Docker daemon on a container instance.
volumes - The list of volume definitions for the task. This parameter is required.this@Stability(value=Experimental) public Ec2TaskDefinition.Builder inferenceAccelerators(List<? extends InferenceAccelerator> inferenceAccelerators)
Not supported in Fargate.
Default: - No inference accelerators.
inferenceAccelerators - The inference accelerators to use for the containers in the task. This parameter is required.this@Stability(value=Experimental) public Ec2TaskDefinition.Builder ipcMode(IpcMode ipcMode)
Not supported in Fargate and Windows containers.
Default: - IpcMode used by the task is not specified
ipcMode - The IPC resource namespace to use for the containers in the task. This parameter is required.this@Stability(value=Experimental) public Ec2TaskDefinition.Builder networkMode(NetworkMode networkMode)
The valid values are none, bridge, awsvpc, and host.
Default: - NetworkMode.Bridge for EC2 tasks, AwsVpc for Fargate tasks.
networkMode - The Docker networking mode to use for the containers in the task. This parameter is required.this@Stability(value=Experimental) public Ec2TaskDefinition.Builder pidMode(PidMode pidMode)
Not supported in Fargate and Windows containers.
Default: - PidMode used by the task is not specified
pidMode - The process namespace to use for the containers in the task. This parameter is required.this@Stability(value=Experimental) public Ec2TaskDefinition.Builder placementConstraints(List<? extends PlacementConstraint> placementConstraints)
You can specify a maximum of 10 constraints per task (this limit includes constraints in the task definition and those specified at run time).
Default: - No placement constraints.
placementConstraints - An array of placement constraint objects to use for the task. This parameter is required.this@Stability(value=Experimental) public Ec2TaskDefinition build()
build in interface software.amazon.jsii.Builder<Ec2TaskDefinition>Copyright © 2021. All rights reserved.