Interface ContainerTaskConfiguration.Builder

  • 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

      ContainerTaskConfiguration.Builder taskExecutionRole(String 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

      ContainerTaskConfiguration.Builder processingType(String 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

      ContainerTaskConfiguration.Builder processingType(ProcessingType 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

      ContainerTaskConfiguration.Builder processingUnit(String 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

      ContainerTaskConfiguration.Builder processingUnit(ProcessingUnit 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 the EphemeralStorageConfiguration.Builder avoiding the need to create one manually via EphemeralStorageConfiguration.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to ephemeralStorageConfiguration(EphemeralStorageConfiguration).

      Parameters:
      ephemeralStorageConfiguration - a consumer that will call methods on EphemeralStorageConfiguration.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

      ContainerTaskConfiguration.Builder timeoutSeconds(Long 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

      ContainerTaskConfiguration.Builder environmentVariables(Map<String,String> 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 the Mount.Builder avoiding the need to create one manually via Mount.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to mounts(List<Mount>).

      Parameters:
      mounts - a consumer that will call methods on Mount.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: