@Stability(value=Stable) public static final class ExternalTaskDefinition.Builder extends Object implements software.amazon.jsii.Builder<ExternalTaskDefinition>
ExternalTaskDefinition.| Modifier and Type | Method and Description |
|---|---|
ExternalTaskDefinition |
build() |
static ExternalTaskDefinition.Builder |
create(software.constructs.Construct scope,
String id) |
ExternalTaskDefinition.Builder |
executionRole(IRole executionRole)
The name of the IAM task execution role that grants the ECS agent permission to call AWS APIs on your behalf.
|
ExternalTaskDefinition.Builder |
family(String family)
The name of a family that this task definition is registered to.
|
ExternalTaskDefinition.Builder |
networkMode(NetworkMode networkMode)
The networking mode to use for the containers in the task.
|
ExternalTaskDefinition.Builder |
proxyConfiguration(ProxyConfiguration proxyConfiguration)
The configuration details for the App Mesh proxy.
|
ExternalTaskDefinition.Builder |
taskRole(IRole taskRole)
The name of the IAM role that grants containers in the task permission to call AWS APIs on your behalf.
|
ExternalTaskDefinition.Builder |
volumes(List<? extends Volume> volumes)
The list of volume definitions for the task.
|
@Stability(value=Stable) public static ExternalTaskDefinition.Builder create(software.constructs.Construct scope, String id)
scope - This parameter is required.id - This parameter is required.ExternalTaskDefinition.Builder.@Stability(value=Stable) public ExternalTaskDefinition.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 permission to call AWS APIs on your behalf. This parameter is required.this@Stability(value=Stable) public ExternalTaskDefinition.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=Stable) public ExternalTaskDefinition.Builder proxyConfiguration(ProxyConfiguration proxyConfiguration)
Default: - No proxy configuration.
proxyConfiguration - The configuration details for the App Mesh proxy. This parameter is required.this@Stability(value=Stable) public ExternalTaskDefinition.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=Stable) public ExternalTaskDefinition.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=Stable) public ExternalTaskDefinition.Builder networkMode(NetworkMode networkMode)
With ECS Anywhere, supported modes are bridge, host and none.
Default: NetworkMode.BRIDGE
networkMode - The networking mode to use for the containers in the task. This parameter is required.this@Stability(value=Stable) public ExternalTaskDefinition build()
build in interface software.amazon.jsii.Builder<ExternalTaskDefinition>Copyright © 2022. All rights reserved.