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

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
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",
        },
      ],
      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",
  ephemeral_storage: {
    size_in_gi_b: 1, # required
  },
}

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:


11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
# File 'lib/aws-sdk-ecs/types.rb', line 11109

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)

11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
# File 'lib/aws-sdk-ecs/types.rb', line 11109

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.

<note markdown=“1”> 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.

</note>

11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
# File 'lib/aws-sdk-ecs/types.rb', line 11109

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 IAM role override for the task. For more information, see [Amazon ECS task execution IAM role] in the *Amazon Elastic Container Service Developer Guide*.

[1]: docs.aws.amazon.com/AmazonECS/latest/developerguide/task_execution_IAM_role.html

Returns:

  • (String)

11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
# File 'lib/aws-sdk-ecs/types.rb', line 11109

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.


11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
# File 'lib/aws-sdk-ecs/types.rb', line 11109

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)

11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
# File 'lib/aws-sdk-ecs/types.rb', line 11109

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

[1]: docs.aws.amazon.com/AmazonECS/latest/developerguide/task-iam-roles.html

Returns:

  • (String)

11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
# File 'lib/aws-sdk-ecs/types.rb', line 11109

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