Interface EcsTaskOverride.Builder

    • Method Detail

      • containerOverrides

        EcsTaskOverride.Builder containerOverrides​(Collection<EcsContainerOverride> 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​(EcsContainerOverride... 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

        EcsTaskOverride.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.
      • ephemeralStorage

        EcsTaskOverride.Builder ephemeralStorage​(EcsEphemeralStorage 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.
      • executionRoleArn

        EcsTaskOverride.Builder executionRoleArn​(String 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.
      • memory

        EcsTaskOverride.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

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