lib/aws-sdk-ecs/client.rb in aws-sdk-ecs-1.28.0 vs lib/aws-sdk-ecs/client.rb in aws-sdk-ecs-1.29.0
- old
+ new
@@ -622,14 +622,14 @@
#
# [1]: http://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-using-tags.html
#
# @option params [String] :propagate_tags
# Specifies whether to propagate the tags from the task definition or
- # the service to the tasks. If no value is specified, the tags are not
- # propagated. Tags can only be propagated to the tasks within the
- # service during service creation. To add tags to a task after service
- # creation, use the TagResource API action.
+ # the service to the tasks in the service. If no value is specified, the
+ # tags are not propagated. Tags can only be propagated to the tasks
+ # within the service during service creation. To add tags to a task
+ # after service creation, use the TagResource API action.
#
# @return [Types::CreateServiceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
#
# * {Types::CreateServiceResponse#service #service} => Types::Service
#
@@ -1497,10 +1497,13 @@
# resp.task_definition.container_definitions[0].health_check.retries #=> Integer
# resp.task_definition.container_definitions[0].health_check.start_period #=> Integer
# resp.task_definition.container_definitions[0].system_controls #=> Array
# resp.task_definition.container_definitions[0].system_controls[0].namespace #=> String
# resp.task_definition.container_definitions[0].system_controls[0].value #=> String
+ # resp.task_definition.container_definitions[0].resource_requirements #=> Array
+ # resp.task_definition.container_definitions[0].resource_requirements[0].value #=> String
+ # resp.task_definition.container_definitions[0].resource_requirements[0].type #=> String, one of "GPU"
# resp.task_definition.family #=> String
# resp.task_definition.task_role_arn #=> String
# resp.task_definition.execution_role_arn #=> String
# resp.task_definition.network_mode #=> String, one of "bridge", "host", "awsvpc", "none"
# resp.task_definition.revision #=> Integer
@@ -2182,10 +2185,13 @@
# resp.task_definition.container_definitions[0].health_check.retries #=> Integer
# resp.task_definition.container_definitions[0].health_check.start_period #=> Integer
# resp.task_definition.container_definitions[0].system_controls #=> Array
# resp.task_definition.container_definitions[0].system_controls[0].namespace #=> String
# resp.task_definition.container_definitions[0].system_controls[0].value #=> String
+ # resp.task_definition.container_definitions[0].resource_requirements #=> Array
+ # resp.task_definition.container_definitions[0].resource_requirements[0].value #=> String
+ # resp.task_definition.container_definitions[0].resource_requirements[0].type #=> String, one of "GPU"
# resp.task_definition.family #=> String
# resp.task_definition.task_role_arn #=> String
# resp.task_definition.execution_role_arn #=> String
# resp.task_definition.network_mode #=> String, one of "bridge", "host", "awsvpc", "none"
# resp.task_definition.revision #=> Integer
@@ -2322,10 +2328,13 @@
# resp.tasks[0].overrides.container_overrides[0].environment[0].name #=> String
# resp.tasks[0].overrides.container_overrides[0].environment[0].value #=> String
# resp.tasks[0].overrides.container_overrides[0].cpu #=> Integer
# resp.tasks[0].overrides.container_overrides[0].memory #=> Integer
# resp.tasks[0].overrides.container_overrides[0].memory_reservation #=> Integer
+ # resp.tasks[0].overrides.container_overrides[0].resource_requirements #=> Array
+ # resp.tasks[0].overrides.container_overrides[0].resource_requirements[0].value #=> String
+ # resp.tasks[0].overrides.container_overrides[0].resource_requirements[0].type #=> String, one of "GPU"
# resp.tasks[0].overrides.task_role_arn #=> String
# resp.tasks[0].overrides.execution_role_arn #=> String
# resp.tasks[0].last_status #=> String
# resp.tasks[0].desired_status #=> String
# resp.tasks[0].cpu #=> String
@@ -2345,10 +2354,15 @@
# resp.tasks[0].containers[0].network_interfaces #=> Array
# resp.tasks[0].containers[0].network_interfaces[0].attachment_id #=> String
# resp.tasks[0].containers[0].network_interfaces[0].private_ipv_4_address #=> String
# resp.tasks[0].containers[0].network_interfaces[0].ipv6_address #=> String
# resp.tasks[0].containers[0].health_status #=> String, one of "HEALTHY", "UNHEALTHY", "UNKNOWN"
+ # resp.tasks[0].containers[0].cpu #=> String
+ # resp.tasks[0].containers[0].memory #=> String
+ # resp.tasks[0].containers[0].memory_reservation #=> String
+ # resp.tasks[0].containers[0].gpu_ids #=> Array
+ # resp.tasks[0].containers[0].gpu_ids[0] #=> String
# resp.tasks[0].started_by #=> String
# resp.tasks[0].version #=> Integer
# resp.tasks[0].stopped_reason #=> String
# resp.tasks[0].stop_code #=> String, one of "TaskFailedToStart", "EssentialContainerExited", "UserInitiated"
# resp.tasks[0].connectivity #=> String, one of "CONNECTED", "DISCONNECTED"
@@ -3413,10 +3427,14 @@
#
# @option params [Array<Types::Attribute>] :attributes
# The container instance attributes that this container instance
# supports.
#
+ # @option params [Array<Types::PlatformDevice>] :platform_devices
+ # The devices that are available on the container instance. The only
+ # supported device type is a GPU.
+ #
# @option params [Array<Types::Tag>] :tags
# The metadata that you apply to the container instance to help you
# categorize and organize them. Each tag consists of a key and an
# optional value, both of which you define. Tag keys can have a maximum
# character length of 128 characters, and tag values can have a maximum
@@ -3454,10 +3472,16 @@
# value: "String",
# target_type: "container-instance", # accepts container-instance
# target_id: "String",
# },
# ],
+ # platform_devices: [
+ # {
+ # id: "String", # required
+ # type: "GPU", # required, accepts GPU
+ # },
+ # ],
# tags: [
# {
# key: "TagKey",
# value: "TagValue",
# },
@@ -3959,10 +3983,16 @@
# {
# namespace: "String",
# value: "String",
# },
# ],
+ # resource_requirements: [
+ # {
+ # value: "String", # required
+ # type: "GPU", # required, accepts GPU
+ # },
+ # ],
# },
# ],
# volumes: [
# {
# name: "String",
@@ -4084,10 +4114,13 @@
# resp.task_definition.container_definitions[0].health_check.retries #=> Integer
# resp.task_definition.container_definitions[0].health_check.start_period #=> Integer
# resp.task_definition.container_definitions[0].system_controls #=> Array
# resp.task_definition.container_definitions[0].system_controls[0].namespace #=> String
# resp.task_definition.container_definitions[0].system_controls[0].value #=> String
+ # resp.task_definition.container_definitions[0].resource_requirements #=> Array
+ # resp.task_definition.container_definitions[0].resource_requirements[0].value #=> String
+ # resp.task_definition.container_definitions[0].resource_requirements[0].type #=> String, one of "GPU"
# resp.task_definition.family #=> String
# resp.task_definition.task_role_arn #=> String
# resp.task_definition.execution_role_arn #=> String
# resp.task_definition.network_mode #=> String, one of "bridge", "host", "awsvpc", "none"
# resp.task_definition.revision #=> Integer
@@ -4268,14 +4301,20 @@
#
#
# [1]: http://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-using-tags.html
#
# @option params [String] :propagate_tags
- # Specifies whether to propagate the tags from the task definition or
- # the service to the task. If no value is specified, the tags are not
- # propagated.
+ # Specifies whether to propagate the tags from the task definition to
+ # the task. If no value is specified, the tags are not propagated. Tags
+ # can only be propagated to the task during task creation. To add tags
+ # to a task after task creation, use the TagResource API action.
#
+ # <note markdown="1"> An error will be received if you specify the `SERVICE` option when
+ # running a task.
+ #
+ # </note>
+ #
# @return [Types::RunTaskResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
#
# * {Types::RunTaskResponse#tasks #tasks} => Array<Types::Task>
# * {Types::RunTaskResponse#failures #failures} => Array<Types::Failure>
#
@@ -4334,10 +4373,16 @@
# },
# ],
# cpu: 1,
# memory: 1,
# memory_reservation: 1,
+ # resource_requirements: [
+ # {
+ # value: "String", # required
+ # type: "GPU", # required, accepts GPU
+ # },
+ # ],
# },
# ],
# task_role_arn: "String",
# execution_role_arn: "String",
# },
@@ -4390,10 +4435,13 @@
# resp.tasks[0].overrides.container_overrides[0].environment[0].name #=> String
# resp.tasks[0].overrides.container_overrides[0].environment[0].value #=> String
# resp.tasks[0].overrides.container_overrides[0].cpu #=> Integer
# resp.tasks[0].overrides.container_overrides[0].memory #=> Integer
# resp.tasks[0].overrides.container_overrides[0].memory_reservation #=> Integer
+ # resp.tasks[0].overrides.container_overrides[0].resource_requirements #=> Array
+ # resp.tasks[0].overrides.container_overrides[0].resource_requirements[0].value #=> String
+ # resp.tasks[0].overrides.container_overrides[0].resource_requirements[0].type #=> String, one of "GPU"
# resp.tasks[0].overrides.task_role_arn #=> String
# resp.tasks[0].overrides.execution_role_arn #=> String
# resp.tasks[0].last_status #=> String
# resp.tasks[0].desired_status #=> String
# resp.tasks[0].cpu #=> String
@@ -4413,10 +4461,15 @@
# resp.tasks[0].containers[0].network_interfaces #=> Array
# resp.tasks[0].containers[0].network_interfaces[0].attachment_id #=> String
# resp.tasks[0].containers[0].network_interfaces[0].private_ipv_4_address #=> String
# resp.tasks[0].containers[0].network_interfaces[0].ipv6_address #=> String
# resp.tasks[0].containers[0].health_status #=> String, one of "HEALTHY", "UNHEALTHY", "UNKNOWN"
+ # resp.tasks[0].containers[0].cpu #=> String
+ # resp.tasks[0].containers[0].memory #=> String
+ # resp.tasks[0].containers[0].memory_reservation #=> String
+ # resp.tasks[0].containers[0].gpu_ids #=> Array
+ # resp.tasks[0].containers[0].gpu_ids[0] #=> String
# resp.tasks[0].started_by #=> String
# resp.tasks[0].version #=> Integer
# resp.tasks[0].stopped_reason #=> String
# resp.tasks[0].stop_code #=> String, one of "TaskFailedToStart", "EssentialContainerExited", "UserInitiated"
# resp.tasks[0].connectivity #=> String, one of "CONNECTED", "DISCONNECTED"
@@ -4561,10 +4614,16 @@
# },
# ],
# cpu: 1,
# memory: 1,
# memory_reservation: 1,
+ # resource_requirements: [
+ # {
+ # value: "String", # required
+ # type: "GPU", # required, accepts GPU
+ # },
+ # ],
# },
# ],
# task_role_arn: "String",
# execution_role_arn: "String",
# },
@@ -4603,10 +4662,13 @@
# resp.tasks[0].overrides.container_overrides[0].environment[0].name #=> String
# resp.tasks[0].overrides.container_overrides[0].environment[0].value #=> String
# resp.tasks[0].overrides.container_overrides[0].cpu #=> Integer
# resp.tasks[0].overrides.container_overrides[0].memory #=> Integer
# resp.tasks[0].overrides.container_overrides[0].memory_reservation #=> Integer
+ # resp.tasks[0].overrides.container_overrides[0].resource_requirements #=> Array
+ # resp.tasks[0].overrides.container_overrides[0].resource_requirements[0].value #=> String
+ # resp.tasks[0].overrides.container_overrides[0].resource_requirements[0].type #=> String, one of "GPU"
# resp.tasks[0].overrides.task_role_arn #=> String
# resp.tasks[0].overrides.execution_role_arn #=> String
# resp.tasks[0].last_status #=> String
# resp.tasks[0].desired_status #=> String
# resp.tasks[0].cpu #=> String
@@ -4626,10 +4688,15 @@
# resp.tasks[0].containers[0].network_interfaces #=> Array
# resp.tasks[0].containers[0].network_interfaces[0].attachment_id #=> String
# resp.tasks[0].containers[0].network_interfaces[0].private_ipv_4_address #=> String
# resp.tasks[0].containers[0].network_interfaces[0].ipv6_address #=> String
# resp.tasks[0].containers[0].health_status #=> String, one of "HEALTHY", "UNHEALTHY", "UNKNOWN"
+ # resp.tasks[0].containers[0].cpu #=> String
+ # resp.tasks[0].containers[0].memory #=> String
+ # resp.tasks[0].containers[0].memory_reservation #=> String
+ # resp.tasks[0].containers[0].gpu_ids #=> Array
+ # resp.tasks[0].containers[0].gpu_ids[0] #=> String
# resp.tasks[0].started_by #=> String
# resp.tasks[0].version #=> Integer
# resp.tasks[0].stopped_reason #=> String
# resp.tasks[0].stop_code #=> String, one of "TaskFailedToStart", "EssentialContainerExited", "UserInitiated"
# resp.tasks[0].connectivity #=> String, one of "CONNECTED", "DISCONNECTED"
@@ -4730,10 +4797,13 @@
# resp.task.overrides.container_overrides[0].environment[0].name #=> String
# resp.task.overrides.container_overrides[0].environment[0].value #=> String
# resp.task.overrides.container_overrides[0].cpu #=> Integer
# resp.task.overrides.container_overrides[0].memory #=> Integer
# resp.task.overrides.container_overrides[0].memory_reservation #=> Integer
+ # resp.task.overrides.container_overrides[0].resource_requirements #=> Array
+ # resp.task.overrides.container_overrides[0].resource_requirements[0].value #=> String
+ # resp.task.overrides.container_overrides[0].resource_requirements[0].type #=> String, one of "GPU"
# resp.task.overrides.task_role_arn #=> String
# resp.task.overrides.execution_role_arn #=> String
# resp.task.last_status #=> String
# resp.task.desired_status #=> String
# resp.task.cpu #=> String
@@ -4753,10 +4823,15 @@
# resp.task.containers[0].network_interfaces #=> Array
# resp.task.containers[0].network_interfaces[0].attachment_id #=> String
# resp.task.containers[0].network_interfaces[0].private_ipv_4_address #=> String
# resp.task.containers[0].network_interfaces[0].ipv6_address #=> String
# resp.task.containers[0].health_status #=> String, one of "HEALTHY", "UNHEALTHY", "UNKNOWN"
+ # resp.task.containers[0].cpu #=> String
+ # resp.task.containers[0].memory #=> String
+ # resp.task.containers[0].memory_reservation #=> String
+ # resp.task.containers[0].gpu_ids #=> Array
+ # resp.task.containers[0].gpu_ids[0] #=> String
# resp.task.started_by #=> String
# resp.task.version #=> Integer
# resp.task.stopped_reason #=> String
# resp.task.stop_code #=> String, one of "TaskFailedToStart", "EssentialContainerExited", "UserInitiated"
# resp.task.connectivity #=> String, one of "CONNECTED", "DISCONNECTED"
@@ -5619,10 +5694,10 @@
operation: config.api.operation(operation_name),
client: self,
params: params,
config: config)
context[:gem_name] = 'aws-sdk-ecs'
- context[:gem_version] = '1.28.0'
+ context[:gem_version] = '1.29.0'
Seahorse::Client::Request.new(handlers, context)
end
# Polls an API operation until a resource enters a desired state.
#