Class CfnPipePropsMixin.EcsTaskOverrideProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.pipes.CfnPipePropsMixin.EcsTaskOverrideProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPipePropsMixin.EcsTaskOverrideProperty>
- Enclosing interface:
CfnPipePropsMixin.EcsTaskOverrideProperty
@Stability(Stable)
public static final class CfnPipePropsMixin.EcsTaskOverrideProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPipePropsMixin.EcsTaskOverrideProperty>
A builder for
CfnPipePropsMixin.EcsTaskOverrideProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.containerOverrides(List<? extends Object> containerOverrides) Sets the value ofCfnPipePropsMixin.EcsTaskOverrideProperty.getContainerOverrides()containerOverrides(IResolvable containerOverrides) Sets the value ofCfnPipePropsMixin.EcsTaskOverrideProperty.getContainerOverrides()Sets the value ofCfnPipePropsMixin.EcsTaskOverrideProperty.getCpu()ephemeralStorage(CfnPipePropsMixin.EcsEphemeralStorageProperty ephemeralStorage) Sets the value ofCfnPipePropsMixin.EcsTaskOverrideProperty.getEphemeralStorage()ephemeralStorage(IResolvable ephemeralStorage) Sets the value ofCfnPipePropsMixin.EcsTaskOverrideProperty.getEphemeralStorage()executionRoleArn(String executionRoleArn) Sets the value ofCfnPipePropsMixin.EcsTaskOverrideProperty.getExecutionRoleArn()inferenceAcceleratorOverrides(List<? extends Object> inferenceAcceleratorOverrides) inferenceAcceleratorOverrides(IResolvable inferenceAcceleratorOverrides) Sets the value ofCfnPipePropsMixin.EcsTaskOverrideProperty.getMemory()taskRoleArn(String taskRoleArn) Sets the value ofCfnPipePropsMixin.EcsTaskOverrideProperty.getTaskRoleArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
containerOverrides
@Stability(Stable) public CfnPipePropsMixin.EcsTaskOverrideProperty.Builder containerOverrides(IResolvable containerOverrides) Sets the value ofCfnPipePropsMixin.EcsTaskOverrideProperty.getContainerOverrides()- Parameters:
containerOverrides- One or more container overrides that are sent to a task.- Returns:
this
-
containerOverrides
@Stability(Stable) public CfnPipePropsMixin.EcsTaskOverrideProperty.Builder containerOverrides(List<? extends Object> containerOverrides) Sets the value ofCfnPipePropsMixin.EcsTaskOverrideProperty.getContainerOverrides()- Parameters:
containerOverrides- One or more container overrides that are sent to a task.- Returns:
this
-
cpu
Sets the value ofCfnPipePropsMixin.EcsTaskOverrideProperty.getCpu()- Parameters:
cpu- The cpu override for the task.- Returns:
this
-
ephemeralStorage
@Stability(Stable) public CfnPipePropsMixin.EcsTaskOverrideProperty.Builder ephemeralStorage(IResolvable ephemeralStorage) Sets the value ofCfnPipePropsMixin.EcsTaskOverrideProperty.getEphemeralStorage()- Parameters:
ephemeralStorage- The ephemeral storage setting override for the task.This parameter is only supported for tasks hosted on Fargate that use the following platform versions:
- Linux platform version
1.4.0or later. - Windows platform version
1.0.0or later.
- Linux platform version
- Returns:
this
-
ephemeralStorage
@Stability(Stable) public CfnPipePropsMixin.EcsTaskOverrideProperty.Builder ephemeralStorage(CfnPipePropsMixin.EcsEphemeralStorageProperty ephemeralStorage) Sets the value ofCfnPipePropsMixin.EcsTaskOverrideProperty.getEphemeralStorage()- Parameters:
ephemeralStorage- The ephemeral storage setting override for the task.This parameter is only supported for tasks hosted on Fargate that use the following platform versions:
- Linux platform version
1.4.0or later. - Windows platform version
1.0.0or later.
- Linux platform version
- Returns:
this
-
executionRoleArn
@Stability(Stable) public CfnPipePropsMixin.EcsTaskOverrideProperty.Builder executionRoleArn(String executionRoleArn) Sets the value ofCfnPipePropsMixin.EcsTaskOverrideProperty.getExecutionRoleArn()- Parameters:
executionRoleArn- The Amazon Resource Name (ARN) of the task execution IAM role override for the task. For more information, see Amazon ECS task execution IAM role in the Amazon Elastic Container Service Developer Guide .- Returns:
this
-
inferenceAcceleratorOverrides
@Stability(Stable) public CfnPipePropsMixin.EcsTaskOverrideProperty.Builder inferenceAcceleratorOverrides(IResolvable inferenceAcceleratorOverrides) - Parameters:
inferenceAcceleratorOverrides- The Elastic Inference accelerator override for the task.- Returns:
this
-
inferenceAcceleratorOverrides
@Stability(Stable) public CfnPipePropsMixin.EcsTaskOverrideProperty.Builder inferenceAcceleratorOverrides(List<? extends Object> inferenceAcceleratorOverrides) - Parameters:
inferenceAcceleratorOverrides- The Elastic Inference accelerator override for the task.- Returns:
this
-
memory
Sets the value ofCfnPipePropsMixin.EcsTaskOverrideProperty.getMemory()- Parameters:
memory- The memory override for the task.- Returns:
this
-
taskRoleArn
@Stability(Stable) public CfnPipePropsMixin.EcsTaskOverrideProperty.Builder taskRoleArn(String taskRoleArn) Sets the value ofCfnPipePropsMixin.EcsTaskOverrideProperty.getTaskRoleArn()- Parameters:
taskRoleArn- The Amazon Resource Name (ARN) of the IAM role that containers in this task can assume. All containers in this task are granted the permissions that are specified in this role. For more information, see IAM Role for Tasks in the Amazon Elastic Container Service Developer Guide .- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnPipePropsMixin.EcsTaskOverrideProperty>- Returns:
- a new instance of
CfnPipePropsMixin.EcsTaskOverrideProperty - Throws:
NullPointerException- if any required attribute was not provided
-