Interface EcsTaskDetails.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<EcsTaskDetails.Builder,
,EcsTaskDetails> SdkBuilder<EcsTaskDetails.Builder,
,EcsTaskDetails> SdkPojo
- Enclosing class:
EcsTaskDetails
-
Method Summary
Modifier and TypeMethodDescriptioncontainerInstanceArn
(String containerInstanceArn) The Amazon Resource Name (ARN) of the container instance that hosts the task.containers
(Collection<TaskContainerDetails> containers) A list of containers that are included in thetaskProperties
list.containers
(Consumer<TaskContainerDetails.Builder>... containers) A list of containers that are included in thetaskProperties
list.containers
(TaskContainerDetails... containers) A list of containers that are included in thetaskProperties
list.enableExecuteCommand
(Boolean enableExecuteCommand) Determines whether execute command functionality is turned on for this task.default EcsTaskDetails.Builder
ephemeralStorage
(Consumer<EphemeralStorage.Builder> ephemeralStorage) The amount of ephemeral storage allocated for the task.ephemeralStorage
(EphemeralStorage ephemeralStorage) The amount of ephemeral storage allocated for the task.executionRoleArn
(String executionRoleArn) The Amazon Resource Name (ARN) of the execution role that Batch can assume.The IPC resource namespace to use for the containers in the task.default EcsTaskDetails.Builder
networkConfiguration
(Consumer<NetworkConfiguration.Builder> networkConfiguration) The network configuration for jobs that are running on Fargate resources.networkConfiguration
(NetworkConfiguration networkConfiguration) The network configuration for jobs that are running on Fargate resources.The process namespace to use for the containers in the task.platformVersion
(String platformVersion) The Fargate platform version where the jobs are running.default EcsTaskDetails.Builder
runtimePlatform
(Consumer<RuntimePlatform.Builder> runtimePlatform) An object that represents the compute environment architecture for Batch jobs on Fargate.runtimePlatform
(RuntimePlatform runtimePlatform) An object that represents the compute environment architecture for Batch jobs on Fargate.The ARN of the Amazon ECS task.taskRoleArn
(String taskRoleArn) The Amazon Resource Name (ARN) of the IAM role that the container can assume for Amazon Web Services permissions.volumes
(Collection<Volume> volumes) A list of data volumes used in a job.volumes
(Consumer<Volume.Builder>... volumes) A list of data volumes used in a job.A list of data volumes used in a job.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, sdkFieldNameToField, sdkFields
-
Method Details
-
containers
A list of containers that are included in the
taskProperties
list.- Parameters:
containers
- A list of containers that are included in thetaskProperties
list.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
containers
A list of containers that are included in the
taskProperties
list.- Parameters:
containers
- A list of containers that are included in thetaskProperties
list.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
containers
A list of containers that are included in the
This is a convenience method that creates an instance of thetaskProperties
list.TaskContainerDetails.Builder
avoiding the need to create one manually viaTaskContainerDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocontainers(List<TaskContainerDetails>)
.- Parameters:
containers
- a consumer that will call methods onTaskContainerDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
containerInstanceArn
The Amazon Resource Name (ARN) of the container instance that hosts the task.
- Parameters:
containerInstanceArn
- The Amazon Resource Name (ARN) of the container instance that hosts the task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
taskArn
The ARN of the Amazon ECS task.
- Parameters:
taskArn
- The ARN of the Amazon ECS task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ephemeralStorage
The amount of ephemeral storage allocated for the task.
- Parameters:
ephemeralStorage
- The amount of ephemeral storage allocated for the task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ephemeralStorage
default EcsTaskDetails.Builder ephemeralStorage(Consumer<EphemeralStorage.Builder> ephemeralStorage) The amount of ephemeral storage allocated for the task.
This is a convenience method that creates an instance of theEphemeralStorage.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:
-
executionRoleArn
The Amazon Resource Name (ARN) of the execution role that Batch can assume. For more information, see Batch execution IAM role in the Batch User Guide.
- Parameters:
executionRoleArn
- The Amazon Resource Name (ARN) of the execution role that Batch can assume. For more information, see Batch execution IAM role in the Batch User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
platformVersion
The Fargate platform version where the jobs are running.
- Parameters:
platformVersion
- The Fargate platform version where the jobs are running.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipcMode
The IPC resource namespace to use for the containers in the task.
- Parameters:
ipcMode
- The IPC resource namespace to use for the containers in 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 the container can assume for Amazon Web Services permissions. For more information, see IAM roles for tasks in the Amazon Elastic Container Service Developer Guide.
This is object is comparable to ContainerProperties:jobRoleArn.
- Parameters:
taskRoleArn
- The Amazon Resource Name (ARN) of the IAM role that the container can assume for Amazon Web Services permissions. For more information, see IAM roles for tasks in the Amazon Elastic Container Service Developer Guide.This is object is comparable to ContainerProperties:jobRoleArn.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
pidMode
The process namespace to use for the containers in the task.
- Parameters:
pidMode
- The process namespace to use for the containers in the task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
networkConfiguration
The network configuration for jobs that are running on Fargate resources. Jobs that are running on Amazon EC2 resources must not specify this parameter.
- Parameters:
networkConfiguration
- The network configuration for jobs that are running on Fargate resources. Jobs that are running on Amazon EC2 resources must not specify this parameter.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
networkConfiguration
default EcsTaskDetails.Builder networkConfiguration(Consumer<NetworkConfiguration.Builder> networkConfiguration) The network configuration for jobs that are running on Fargate resources. Jobs that are running on Amazon EC2 resources must not specify this parameter.
This is a convenience method that creates an instance of theNetworkConfiguration.Builder
avoiding the need to create one manually viaNetworkConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tonetworkConfiguration(NetworkConfiguration)
.- Parameters:
networkConfiguration
- a consumer that will call methods onNetworkConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
runtimePlatform
An object that represents the compute environment architecture for Batch jobs on Fargate.
- Parameters:
runtimePlatform
- An object that represents the compute environment architecture for Batch jobs on Fargate.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
runtimePlatform
An object that represents the compute environment architecture for Batch jobs on Fargate.
This is a convenience method that creates an instance of theRuntimePlatform.Builder
avoiding the need to create one manually viaRuntimePlatform.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toruntimePlatform(RuntimePlatform)
.- Parameters:
runtimePlatform
- a consumer that will call methods onRuntimePlatform.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
volumes
A list of data volumes used in a job.
- Parameters:
volumes
- A list of data volumes used in a job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
volumes
A list of data volumes used in a job.
- Parameters:
volumes
- A list of data volumes used in a job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
volumes
A list of data volumes used in a job.
This is a convenience method that creates an instance of theVolume.Builder
avoiding the need to create one manually viaVolume.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tovolumes(List<Volume>)
.- Parameters:
volumes
- a consumer that will call methods onVolume.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
enableExecuteCommand
Determines whether execute command functionality is turned on for this task. If
true
, execute command functionality is turned on all the containers in the task.- Parameters:
enableExecuteCommand
- Determines whether execute command functionality is turned on for this task. Iftrue
, execute command functionality is turned on all the containers in the task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-