Class CommonTaskDefinitionProps.Builder
java.lang.Object
software.amazon.awscdk.services.ecs.CommonTaskDefinitionProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CommonTaskDefinitionProps>
- Enclosing interface:
- CommonTaskDefinitionProps
@Stability(Stable)
public static final class CommonTaskDefinitionProps.Builder
extends Object
implements software.amazon.jsii.Builder<CommonTaskDefinitionProps>
A builder for
CommonTaskDefinitionProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.executionRole
(IRole executionRole) Sets the value ofCommonTaskDefinitionProps.getExecutionRole()
Sets the value ofCommonTaskDefinitionProps.getFamily()
proxyConfiguration
(ProxyConfiguration proxyConfiguration) Sets the value ofCommonTaskDefinitionProps.getProxyConfiguration()
Sets the value ofCommonTaskDefinitionProps.getTaskRole()
Sets the value ofCommonTaskDefinitionProps.getVolumes()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
executionRole
Sets the value ofCommonTaskDefinitionProps.getExecutionRole()
- Parameters:
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.- Returns:
this
-
family
Sets the value ofCommonTaskDefinitionProps.getFamily()
- Parameters:
family
- The name of a family that this task definition is registered to. A family groups multiple versions of a task definition.- Returns:
this
-
proxyConfiguration
@Stability(Stable) public CommonTaskDefinitionProps.Builder proxyConfiguration(ProxyConfiguration proxyConfiguration) Sets the value ofCommonTaskDefinitionProps.getProxyConfiguration()
- Parameters:
proxyConfiguration
- The configuration details for the App Mesh proxy.- Returns:
this
-
taskRole
Sets the value ofCommonTaskDefinitionProps.getTaskRole()
- Parameters:
taskRole
- The name of the IAM role that grants containers in the task permission to call AWS APIs on your behalf.- Returns:
this
-
volumes
Sets the value ofCommonTaskDefinitionProps.getVolumes()
- Parameters:
volumes
- The list of volume definitions for the task. For more information, see Task Definition Parameter Volumes.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CommonTaskDefinitionProps>
- Returns:
- a new instance of
CommonTaskDefinitionProps
- Throws:
NullPointerException
- if any required attribute was not provided
-