Interface ContainerTaskConfiguration.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ContainerTaskConfiguration.Builder,,ContainerTaskConfiguration> SdkBuilder<ContainerTaskConfiguration.Builder,,ContainerTaskConfiguration> SdkPojo
- Enclosing class:
ContainerTaskConfiguration
-
Method Summary
Modifier and TypeMethodDescriptionThe command to execute in the container.command(Collection<String> command) The command to execute in the container.The Amazon ECR image URI for the task container.environmentVariables(Map<String, String> environmentVariables) Environment variables passed to the container at runtime.ephemeralStorageConfiguration(Consumer<EphemeralStorageConfiguration.Builder> ephemeralStorageConfiguration) Ephemeral storage configuration for the container task.ephemeralStorageConfiguration(EphemeralStorageConfiguration ephemeralStorageConfiguration) Ephemeral storage configuration for the container task.mounts(Collection<Mount> mounts) Mounts attached to the container filesystem.mounts(Consumer<Mount.Builder>... mounts) Mounts attached to the container filesystem.Mounts attached to the container filesystem.processingType(String processingType) The processing type for compute resources.processingType(ProcessingType processingType) The processing type for compute resources.processingUnit(String processingUnit) The processing unit allocation that determines the vCPU, memory, and GPU resources.processingUnit(ProcessingUnit processingUnit) The processing unit allocation that determines the vCPU, memory, and GPU resources.taskExecutionRole(String taskExecutionRole) The ARN of the IAM role that grants the containerized workload permissions to access AWS resources.timeoutSeconds(Long timeoutSeconds) The timeout in seconds for task execution.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
-
ecrUri
The Amazon ECR image URI for the task container.
- Parameters:
ecrUri- The Amazon ECR image URI for the task container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
taskExecutionRole
The ARN of the IAM role that grants the containerized workload permissions to access AWS resources.
- Parameters:
taskExecutionRole- The ARN of the IAM role that grants the containerized workload permissions to access AWS resources.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
processingType
The processing type for compute resources.
- Parameters:
processingType- The processing type for compute resources.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
processingType
The processing type for compute resources.
- Parameters:
processingType- The processing type for compute resources.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
processingUnit
The processing unit allocation that determines the vCPU, memory, and GPU resources.
- Parameters:
processingUnit- The processing unit allocation that determines the vCPU, memory, and GPU resources.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
processingUnit
The processing unit allocation that determines the vCPU, memory, and GPU resources.
- Parameters:
processingUnit- The processing unit allocation that determines the vCPU, memory, and GPU resources.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
ephemeralStorageConfiguration
ContainerTaskConfiguration.Builder ephemeralStorageConfiguration(EphemeralStorageConfiguration ephemeralStorageConfiguration) Ephemeral storage configuration for the container task.
- Parameters:
ephemeralStorageConfiguration- Ephemeral storage configuration for the container task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ephemeralStorageConfiguration
default ContainerTaskConfiguration.Builder ephemeralStorageConfiguration(Consumer<EphemeralStorageConfiguration.Builder> ephemeralStorageConfiguration) Ephemeral storage configuration for the container task.
This is a convenience method that creates an instance of theEphemeralStorageConfiguration.Builderavoiding the need to create one manually viaEphemeralStorageConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toephemeralStorageConfiguration(EphemeralStorageConfiguration).- Parameters:
ephemeralStorageConfiguration- a consumer that will call methods onEphemeralStorageConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
command
The command to execute in the container.
- Parameters:
command- The command to execute in the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
command
The command to execute in the container.
- Parameters:
command- The command to execute in the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
timeoutSeconds
The timeout in seconds for task execution. Default: 3600 (1 hour).
- Parameters:
timeoutSeconds- The timeout in seconds for task execution. Default: 3600 (1 hour).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
environmentVariables
Environment variables passed to the container at runtime.
- Parameters:
environmentVariables- Environment variables passed to the container at runtime.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
mounts
Mounts attached to the container filesystem. Each mount exposes an external data source as a local directory inside the container. The service assigns each mount a container path based on the mount name. The container reads files through that path as if the data were on the local filesystem.
- Parameters:
mounts- Mounts attached to the container filesystem. Each mount exposes an external data source as a local directory inside the container. The service assigns each mount a container path based on the mount name. The container reads files through that path as if the data were on the local filesystem.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
mounts
Mounts attached to the container filesystem. Each mount exposes an external data source as a local directory inside the container. The service assigns each mount a container path based on the mount name. The container reads files through that path as if the data were on the local filesystem.
- Parameters:
mounts- Mounts attached to the container filesystem. Each mount exposes an external data source as a local directory inside the container. The service assigns each mount a container path based on the mount name. The container reads files through that path as if the data were on the local filesystem.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
mounts
Mounts attached to the container filesystem. Each mount exposes an external data source as a local directory inside the container. The service assigns each mount a container path based on the mount name. The container reads files through that path as if the data were on the local filesystem.
This is a convenience method that creates an instance of theMount.Builderavoiding the need to create one manually viaMount.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tomounts(List<Mount>).- Parameters:
mounts- a consumer that will call methods onMount.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-