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

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

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

Overview

Note:

When making an API call, you may pass TaskOverride data as a hash:

{
  container_overrides: [
    {
      name: "String",
      command: ["String"],
      environment: [
        {
          name: "String",
          value: "String",
        },
      ],
      cpu: 1,
      memory: 1,
      memory_reservation: 1,
    },
  ],
  task_role_arn: "String",
}

The overrides associated with a task.

Instance Attribute Summary collapse

Instance Attribute Details

#container_overridesArray<Types::ContainerOverride>

One or more container overrides sent to a task.

Returns:



3954
3955
3956
3957
3958
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 3954

class TaskOverride < Struct.new(
  :container_overrides,
  :task_role_arn)
  include Aws::Structure
end

#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)


3954
3955
3956
3957
3958
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 3954

class TaskOverride < Struct.new(
  :container_overrides,
  :task_role_arn)
  include Aws::Structure
end