Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

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

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb

Overview

The overrides that are associated with a task.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#container_overridesArray<Types::ContainerOverride>

One or more container overrides that are sent to a task.

Returns:


12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 12713

class TaskOverride < Struct.new(
  :container_overrides,
  :cpu,
  :inference_accelerator_overrides,
  :execution_role_arn,
  :memory,
  :task_role_arn,
  :ephemeral_storage)
  SENSITIVE = []
  include Aws::Structure
end

#cpuString

The CPU override for the task.

Returns:

  • (String)

12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 12713

class TaskOverride < Struct.new(
  :container_overrides,
  :cpu,
  :inference_accelerator_overrides,
  :execution_role_arn,
  :memory,
  :task_role_arn,
  :ephemeral_storage)
  SENSITIVE = []
  include Aws::Structure
end

#ephemeral_storageTypes::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.


12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 12713

class TaskOverride < Struct.new(
  :container_overrides,
  :cpu,
  :inference_accelerator_overrides,
  :execution_role_arn,
  :memory,
  :task_role_arn,
  :ephemeral_storage)
  SENSITIVE = []
  include Aws::Structure
end

#execution_role_arnString

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:

  • (String)

12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 12713

class TaskOverride < Struct.new(
  :container_overrides,
  :cpu,
  :inference_accelerator_overrides,
  :execution_role_arn,
  :memory,
  :task_role_arn,
  :ephemeral_storage)
  SENSITIVE = []
  include Aws::Structure
end

#inference_accelerator_overridesArray<Types::InferenceAcceleratorOverride>

The Elastic Inference accelerator override for the task.


12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 12713

class TaskOverride < Struct.new(
  :container_overrides,
  :cpu,
  :inference_accelerator_overrides,
  :execution_role_arn,
  :memory,
  :task_role_arn,
  :ephemeral_storage)
  SENSITIVE = []
  include Aws::Structure
end

#memoryString

The memory override for the task.

Returns:

  • (String)

12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 12713

class TaskOverride < Struct.new(
  :container_overrides,
  :cpu,
  :inference_accelerator_overrides,
  :execution_role_arn,
  :memory,
  :task_role_arn,
  :ephemeral_storage)
  SENSITIVE = []
  include Aws::Structure
end

#task_role_arnString

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:

  • (String)

12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 12713

class TaskOverride < Struct.new(
  :container_overrides,
  :cpu,
  :inference_accelerator_overrides,
  :execution_role_arn,
  :memory,
  :task_role_arn,
  :ephemeral_storage)
  SENSITIVE = []
  include Aws::Structure
end