Interface TaskOverride.Builder

    • Method Detail

      • containerOverrides

        TaskOverride.Builder containerOverrides​(Collection<ContainerOverride> 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

        TaskOverride.Builder containerOverrides​(ContainerOverride... 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.
      • cpu

        TaskOverride.Builder cpu​(String 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.
      • executionRoleArn

        TaskOverride.Builder executionRoleArn​(String 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

        TaskOverride.Builder memory​(String 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

        TaskOverride.Builder taskRoleArn​(String 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

        TaskOverride.Builder ephemeralStorage​(EphemeralStorage 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.