AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::ECS::Types::TaskOverride

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing TaskOverride as input to an Aws::Client method, you can use a vanilla Hash:

{
  container_overrides: [
    {
      name: "String",
      command: ["String"],
      environment: [
        {
          name: "String",
          value: "String",
        },
      ],
      environment_files: [
        {
          value: "String", # required
          type: "s3", # required, accepts s3
        },
      ],
      cpu: 1,
      memory: 1,
      memory_reservation: 1,
      resource_requirements: [
        {
          value: "String", # required
          type: "GPU", # required, accepts GPU, InferenceAccelerator
        },
      ],
    },
  ],
  cpu: "String",
  inference_accelerator_overrides: [
    {
      device_name: "String",
      device_type: "String",
    },
  ],
  execution_role_arn: "String",
  memory: "String",
  task_role_arn: "String",
}

The overrides associated with a task.

Returned by:

Instance Attribute Summary collapse

Instance Attribute Details

#container_overridesArray<Types::ContainerOverride>

One or more container overrides sent to a task.

Returns:

#cpuString

The cpu override for the task.

Returns:

  • (String)

    The cpu override for the task.

#execution_role_arnString

The Amazon Resource Name (ARN) of the task execution role that the Amazon ECS container agent and the Docker daemon can assume.

Returns:

  • (String)

    The Amazon Resource Name (ARN) of the task execution role that the Amazon ECS container agent and the Docker daemon can assume.

#inference_accelerator_overridesArray<Types::InferenceAcceleratorOverride>

The Elastic Inference accelerator override for the task.

Returns:

#memoryString

The memory override for the task.

Returns:

  • (String)

    The memory override for the task.

#task_role_arnString

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.

Returns:

  • (String)

    The Amazon Resource Name (ARN) of the IAM role that containers in this task can assume.