Class ExternalTaskDefinitionProps.Builder
java.lang.Object
software.amazon.awscdk.services.ecs.ExternalTaskDefinitionProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ExternalTaskDefinitionProps>
- Enclosing interface:
- ExternalTaskDefinitionProps
@Stability(Stable)
public static final class ExternalTaskDefinitionProps.Builder
extends Object
implements software.amazon.jsii.Builder<ExternalTaskDefinitionProps>
A builder for
ExternalTaskDefinitionProps
-
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 ExternalTaskDefinitionProps.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
@Stability(Stable) public ExternalTaskDefinitionProps.Builder volumes(List<? extends Volume> 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<ExternalTaskDefinitionProps>
- Returns:
- a new instance of
ExternalTaskDefinitionProps
- Throws:
NullPointerException
- if any required attribute was not provided
-