Interface EcsTaskOverride.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<EcsTaskOverride.Builder,,EcsTaskOverride> SdkBuilder<EcsTaskOverride.Builder,,EcsTaskOverride> SdkPojo
- Enclosing class:
EcsTaskOverride
-
Method Summary
Modifier and TypeMethodDescriptioncontainerOverrides(Collection<EcsContainerOverride> containerOverrides) One or more container overrides that are sent to a task.containerOverrides(Consumer<EcsContainerOverride.Builder>... containerOverrides) One or more container overrides that are sent to a task.containerOverrides(EcsContainerOverride... containerOverrides) One or more container overrides that are sent to a task.The cpu override for the task.default EcsTaskOverride.BuilderephemeralStorage(Consumer<EcsEphemeralStorage.Builder> ephemeralStorage) The ephemeral storage setting override for the task.ephemeralStorage(EcsEphemeralStorage ephemeralStorage) The ephemeral storage setting override for the task.executionRoleArn(String executionRoleArn) The Amazon Resource Name (ARN) of the task execution IAM role override for the task.inferenceAcceleratorOverrides(Collection<EcsInferenceAcceleratorOverride> inferenceAcceleratorOverrides) The Elastic Inference accelerator override for the task.inferenceAcceleratorOverrides(Consumer<EcsInferenceAcceleratorOverride.Builder>... inferenceAcceleratorOverrides) The Elastic Inference accelerator override for the task.inferenceAcceleratorOverrides(EcsInferenceAcceleratorOverride... 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 IAM role that containers in this task can assume.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, 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
EcsTaskOverride.Builder containerOverrides(Consumer<EcsContainerOverride.Builder>... containerOverrides) One or more container overrides that are sent to a task.
This is a convenience method that creates an instance of theEcsContainerOverride.Builderavoiding the need to create one manually viaEcsContainerOverride.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocontainerOverrides(List<EcsContainerOverride>).- Parameters:
containerOverrides- a consumer that will call methods onEcsContainerOverride.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.
-
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.
- 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.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
ephemeralStorage
default EcsTaskOverride.Builder ephemeralStorage(Consumer<EcsEphemeralStorage.Builder> ephemeralStorage) The ephemeral storage setting override for the task.
This is a convenience method that creates an instance of theThis 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.
EcsEphemeralStorage.Builderavoiding the need to create one manually viaEcsEphemeralStorage.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toephemeralStorage(EcsEphemeralStorage).- Parameters:
ephemeralStorage- a consumer that will call methods onEcsEphemeralStorage.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 IAM 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 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:
- Returns a reference to this object so that method calls can be chained together.
-
inferenceAcceleratorOverrides
EcsTaskOverride.Builder inferenceAcceleratorOverrides(Collection<EcsInferenceAcceleratorOverride> 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
EcsTaskOverride.Builder inferenceAcceleratorOverrides(EcsInferenceAcceleratorOverride... 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
EcsTaskOverride.Builder inferenceAcceleratorOverrides(Consumer<EcsInferenceAcceleratorOverride.Builder>... inferenceAcceleratorOverrides) The Elastic Inference accelerator override for the task.
This is a convenience method that creates an instance of theEcsInferenceAcceleratorOverride.Builderavoiding the need to create one manually viaEcsInferenceAcceleratorOverride.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toinferenceAcceleratorOverrides(List<EcsInferenceAcceleratorOverride>).- Parameters:
inferenceAcceleratorOverrides- a consumer that will call methods onEcsInferenceAcceleratorOverride.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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 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.
- 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:
- Returns a reference to this object so that method calls can be chained together.
-