Interface TaskOverride.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<TaskOverride.Builder,
,TaskOverride> SdkBuilder<TaskOverride.Builder,
,TaskOverride> SdkPojo
- Enclosing class:
TaskOverride
-
Method Summary
Modifier and TypeMethodDescriptioncontainerOverrides
(Collection<ContainerOverride> containerOverrides) One or more container overrides that are sent to a task.containerOverrides
(Consumer<ContainerOverride.Builder>... containerOverrides) One or more container overrides that are sent to a task.containerOverrides
(ContainerOverride... containerOverrides) One or more container overrides that are sent to a task.The CPU override for the task.default TaskOverride.Builder
ephemeralStorage
(Consumer<EphemeralStorage.Builder> ephemeralStorage) The ephemeral storage setting override for the task.ephemeralStorage
(EphemeralStorage ephemeralStorage) The ephemeral storage setting override for the task.executionRoleArn
(String executionRoleArn) The Amazon Resource Name (ARN) of the task execution role override for the task.inferenceAcceleratorOverrides
(Collection<InferenceAcceleratorOverride> inferenceAcceleratorOverrides) The Elastic Inference accelerator override for the task.inferenceAcceleratorOverrides
(Consumer<InferenceAcceleratorOverride.Builder>... inferenceAcceleratorOverrides) The Elastic Inference accelerator override for the task.inferenceAcceleratorOverrides
(InferenceAcceleratorOverride... inferenceAcceleratorOverrides) The Elastic Inference accelerator override for the task.The memory override for the task.taskRoleArn
(String taskRoleArn) The Amazon Resource Name (ARN) of the role that containers in this task can assume.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
containerOverrides
One or more container overrides that are sent to a task.
- Parameters:
containerOverrides
- One or more container overrides that are sent to a task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
containerOverrides
One or more container overrides that are sent to a task.
- Parameters:
containerOverrides
- One or more container overrides that are sent to a task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
containerOverrides
One or more container overrides that are sent to a task.
This is a convenience method that creates an instance of theContainerOverride.Builder
avoiding the need to create one manually viaContainerOverride.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocontainerOverrides(List<ContainerOverride>)
.- Parameters:
containerOverrides
- a consumer that will call methods onContainerOverride.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
cpu
The CPU override for the task.
- Parameters:
cpu
- The CPU override for the task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
inferenceAcceleratorOverrides
TaskOverride.Builder inferenceAcceleratorOverrides(Collection<InferenceAcceleratorOverride> inferenceAcceleratorOverrides) The Elastic Inference accelerator override for the task.
- Parameters:
inferenceAcceleratorOverrides
- The Elastic Inference accelerator override for the task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
inferenceAcceleratorOverrides
TaskOverride.Builder inferenceAcceleratorOverrides(InferenceAcceleratorOverride... inferenceAcceleratorOverrides) The Elastic Inference accelerator override for the task.
- Parameters:
inferenceAcceleratorOverrides
- The Elastic Inference accelerator override for the task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
inferenceAcceleratorOverrides
TaskOverride.Builder inferenceAcceleratorOverrides(Consumer<InferenceAcceleratorOverride.Builder>... inferenceAcceleratorOverrides) The Elastic Inference accelerator override for the task.
This is a convenience method that creates an instance of theInferenceAcceleratorOverride.Builder
avoiding the need to create one manually viaInferenceAcceleratorOverride.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toinferenceAcceleratorOverrides(List<InferenceAcceleratorOverride>)
.- Parameters:
inferenceAcceleratorOverrides
- a consumer that will call methods onInferenceAcceleratorOverride.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
executionRoleArn
The Amazon Resource Name (ARN) of the task execution role override for the task. For more information, see Amazon ECS task execution IAM role in the Amazon Elastic Container Service Developer Guide.
- Parameters:
executionRoleArn
- The Amazon Resource Name (ARN) of the task execution role override for the task. For more information, see Amazon ECS task execution IAM role in the Amazon Elastic Container Service Developer Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
memory
The memory override for the task.
- Parameters:
memory
- The memory override for the task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
taskRoleArn
The Amazon Resource Name (ARN) of the 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.
- Parameters:
taskRoleArn
- The Amazon Resource Name (ARN) of the 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:
- Returns a reference to this object so that method calls can be chained together.
-
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.0
or later. -
Windows platform version
1.0.0
or later.
- 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.0
or later. -
Windows platform version
1.0.0
or later.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
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.0
or later. -
Windows platform version
1.0.0
or later.
EphemeralStorage.Builder
avoiding the need to create one manually viaEphemeralStorage.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toephemeralStorage(EphemeralStorage)
.- Parameters:
ephemeralStorage
- a consumer that will call methods onEphemeralStorage.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-