@Stability(value=Stable) public static final class ExternalTaskDefinitionProps.Builder extends Object implements software.amazon.jsii.Builder<ExternalTaskDefinitionProps>
ExternalTaskDefinitionProps| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
ExternalTaskDefinitionProps |
build()
Builds the configured instance.
|
ExternalTaskDefinitionProps.Builder |
executionRole(IRole executionRole)
Sets the value of
CommonTaskDefinitionProps.getExecutionRole() |
ExternalTaskDefinitionProps.Builder |
family(String family)
Sets the value of
CommonTaskDefinitionProps.getFamily() |
ExternalTaskDefinitionProps.Builder |
networkMode(NetworkMode networkMode)
Sets the value of
ExternalTaskDefinitionProps.getNetworkMode() |
ExternalTaskDefinitionProps.Builder |
proxyConfiguration(ProxyConfiguration proxyConfiguration)
Sets the value of
CommonTaskDefinitionProps.getProxyConfiguration() |
ExternalTaskDefinitionProps.Builder |
taskRole(IRole taskRole)
Sets the value of
CommonTaskDefinitionProps.getTaskRole() |
ExternalTaskDefinitionProps.Builder |
volumes(List<? extends Volume> volumes)
Sets the value of
CommonTaskDefinitionProps.getVolumes() |
@Stability(value=Stable) public ExternalTaskDefinitionProps.Builder networkMode(NetworkMode networkMode)
ExternalTaskDefinitionProps.getNetworkMode()networkMode - The networking mode to use for the containers in the task.
With ECS Anywhere, supported modes are bridge, host and none.this@Stability(value=Stable) public ExternalTaskDefinitionProps.Builder executionRole(IRole executionRole)
CommonTaskDefinitionProps.getExecutionRole()executionRole - The name of the IAM task execution role that grants the ECS agent permission 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=Stable) public ExternalTaskDefinitionProps.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=Stable) public ExternalTaskDefinitionProps.Builder proxyConfiguration(ProxyConfiguration proxyConfiguration)
CommonTaskDefinitionProps.getProxyConfiguration()proxyConfiguration - The configuration details for the App Mesh proxy.this@Stability(value=Stable) public ExternalTaskDefinitionProps.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=Stable) public ExternalTaskDefinitionProps.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=Stable) public ExternalTaskDefinitionProps build()
build in interface software.amazon.jsii.Builder<ExternalTaskDefinitionProps>ExternalTaskDefinitionPropsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.