@Stability(value=Experimental) public static final class CommonTaskDefinitionProps.Builder extends Object implements software.amazon.jsii.Builder<CommonTaskDefinitionProps>
CommonTaskDefinitionProps
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CommonTaskDefinitionProps |
build()
Builds the configured instance.
|
CommonTaskDefinitionProps.Builder |
executionRole(IRole executionRole)
Sets the value of
CommonTaskDefinitionProps.getExecutionRole() |
CommonTaskDefinitionProps.Builder |
family(String family)
Sets the value of
CommonTaskDefinitionProps.getFamily() |
CommonTaskDefinitionProps.Builder |
proxyConfiguration(ProxyConfiguration proxyConfiguration)
Sets the value of
CommonTaskDefinitionProps.getProxyConfiguration() |
CommonTaskDefinitionProps.Builder |
taskRole(IRole taskRole)
Sets the value of
CommonTaskDefinitionProps.getTaskRole() |
CommonTaskDefinitionProps.Builder |
volumes(List<? extends Volume> volumes)
Sets the value of
CommonTaskDefinitionProps.getVolumes() |
@Stability(value=Experimental) public CommonTaskDefinitionProps.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 CommonTaskDefinitionProps.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 CommonTaskDefinitionProps.Builder proxyConfiguration(ProxyConfiguration proxyConfiguration)
CommonTaskDefinitionProps.getProxyConfiguration()
proxyConfiguration
- The configuration details for the App Mesh proxy.this
@Stability(value=Experimental) public CommonTaskDefinitionProps.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 CommonTaskDefinitionProps.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 CommonTaskDefinitionProps build()
build
in interface software.amazon.jsii.Builder<CommonTaskDefinitionProps>
CommonTaskDefinitionProps
NullPointerException
- if any required attribute was not providedCopyright © 2021. All rights reserved.