aws-sdk-ecs 1.130.0 → 1.132.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-ecs/client.rb +46 -31
- data/lib/aws-sdk-ecs/client_api.rb +9 -0
- data/lib/aws-sdk-ecs/endpoint_provider.rb +1 -1
- data/lib/aws-sdk-ecs/errors.rb +16 -0
- data/lib/aws-sdk-ecs/types.rb +116 -31
- data/lib/aws-sdk-ecs.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f5afd949b55e070bf5f8a67f10a0e327978673863391c39c8fa0f52c4fa4e853
|
4
|
+
data.tar.gz: a757989985ae8d40eecb35acf59a64ec0e1a602bd2cc6efdcf5c5c38029bb42c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 79340759d24324526b48e1566f04b26fb1fd6a10d4c9412fa6df9f4ec7126b78366b5baafabe071fb5c5e7e041661cd7bbc38781b69da16b2a783f28e462a61d
|
7
|
+
data.tar.gz: 057f62d07a55e79d47dadd978cdb4bc3812eb6728c7fd20296c40c5a93d200c199ccce1e1f5719010646aa781a9fc756356282cef8bf4c13a0dfd786b3b8b0ab
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.132.0 (2023-11-13)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Adds a Client Token parameter to the ECS RunTask API. The Client Token parameter allows for idempotent RunTask requests.
|
8
|
+
|
9
|
+
1.131.0 (2023-10-17)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Documentation only updates to address Amazon ECS tickets.
|
13
|
+
|
4
14
|
1.130.0 (2023-09-27)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.132.0
|
data/lib/aws-sdk-ecs/client.rb
CHANGED
@@ -974,8 +974,8 @@ module Aws::ECS
|
|
974
974
|
#
|
975
975
|
# @option params [String] :client_token
|
976
976
|
# An identifier that you provide to ensure the idempotency of the
|
977
|
-
# request. It must be unique and is case sensitive. Up to
|
978
|
-
# characters are allowed.
|
977
|
+
# request. It must be unique and is case sensitive. Up to 36 ASCII
|
978
|
+
# characters in the range of 33-126 (inclusive) are allowed.
|
979
979
|
#
|
980
980
|
# @option params [String] :launch_type
|
981
981
|
# The infrastructure that you run your service on. For more information,
|
@@ -1274,10 +1274,10 @@ module Aws::ECS
|
|
1274
1274
|
# ],
|
1275
1275
|
# pending_count: 0,
|
1276
1276
|
# running_count: 0,
|
1277
|
-
# service_arn: "arn:aws:ecs:us-east-1:012345678910:service/ecs-simple-service",
|
1277
|
+
# service_arn: "arn:aws:ecs:us-east-1:012345678910:service/default/ecs-simple-service",
|
1278
1278
|
# service_name: "ecs-simple-service",
|
1279
1279
|
# status: "ACTIVE",
|
1280
|
-
# task_definition: "arn:aws:ecs:us-east-1:012345678910:task-definition/hello_world:6",
|
1280
|
+
# task_definition: "arn:aws:ecs:us-east-1:012345678910:task-definition/default/hello_world:6",
|
1281
1281
|
# },
|
1282
1282
|
# }
|
1283
1283
|
#
|
@@ -1335,10 +1335,10 @@ module Aws::ECS
|
|
1335
1335
|
# pending_count: 0,
|
1336
1336
|
# role_arn: "arn:aws:iam::012345678910:role/ecsServiceRole",
|
1337
1337
|
# running_count: 0,
|
1338
|
-
# service_arn: "arn:aws:ecs:us-east-1:012345678910:service/ecs-simple-service-elb",
|
1338
|
+
# service_arn: "arn:aws:ecs:us-east-1:012345678910:service/default/ecs-simple-service-elb",
|
1339
1339
|
# service_name: "ecs-simple-service-elb",
|
1340
1340
|
# status: "ACTIVE",
|
1341
|
-
# task_definition: "arn:aws:ecs:us-east-1:012345678910:task-definition/console-sample-app-static:6",
|
1341
|
+
# task_definition: "arn:aws:ecs:us-east-1:012345678910:task-definition/default/console-sample-app-static:6",
|
1342
1342
|
# },
|
1343
1343
|
# }
|
1344
1344
|
#
|
@@ -1704,9 +1704,9 @@ module Aws::ECS
|
|
1704
1704
|
# and keep running in the task set.
|
1705
1705
|
#
|
1706
1706
|
# @option params [String] :client_token
|
1707
|
-
#
|
1708
|
-
# request. It
|
1709
|
-
#
|
1707
|
+
# An identifier that you provide to ensure the idempotency of the
|
1708
|
+
# request. It must be unique and is case sensitive. Up to 36 ASCII
|
1709
|
+
# characters in the range of 33-126 (inclusive) are allowed.
|
1710
1710
|
#
|
1711
1711
|
# @option params [Array<Types::Tag>] :tags
|
1712
1712
|
# The metadata that you apply to the task set to help you categorize and
|
@@ -3286,7 +3286,7 @@ module Aws::ECS
|
|
3286
3286
|
# container_instances: [
|
3287
3287
|
# {
|
3288
3288
|
# agent_connected: true,
|
3289
|
-
# container_instance_arn: "arn:aws:ecs:us-east-1:012345678910:container-instance/f2756532-8f13-4d53-87c9-aed50dc94cd7",
|
3289
|
+
# container_instance_arn: "arn:aws:ecs:us-east-1:012345678910:container-instance/default/f2756532-8f13-4d53-87c9-aed50dc94cd7",
|
3290
3290
|
# ec2_instance_id: "i-807f3249",
|
3291
3291
|
# pending_tasks_count: 0,
|
3292
3292
|
# registered_resources: [
|
@@ -3502,10 +3502,10 @@ module Aws::ECS
|
|
3502
3502
|
# ],
|
3503
3503
|
# pending_count: 0,
|
3504
3504
|
# running_count: 0,
|
3505
|
-
# service_arn: "arn:aws:ecs:us-east-1:012345678910:service/ecs-simple-service",
|
3505
|
+
# service_arn: "arn:aws:ecs:us-east-1:012345678910:service/default/ecs-simple-service",
|
3506
3506
|
# service_name: "ecs-simple-service",
|
3507
3507
|
# status: "ACTIVE",
|
3508
|
-
# task_definition: "arn:aws:ecs:us-east-1:012345678910:task-definition/hello_world:6",
|
3508
|
+
# task_definition: "arn:aws:ecs:us-east-1:012345678910:task-definition/default/hello_world:6",
|
3509
3509
|
# },
|
3510
3510
|
# ],
|
3511
3511
|
# }
|
@@ -4105,7 +4105,7 @@ module Aws::ECS
|
|
4105
4105
|
# tasks: [
|
4106
4106
|
# {
|
4107
4107
|
# cluster_arn: "arn:aws:ecs:<region>:<aws_account_id>:cluster/default",
|
4108
|
-
# container_instance_arn: "arn:aws:ecs:<region>:<aws_account_id>:container-instance/18f9eda5-27d7-4c19-b133-45adc516e8fb",
|
4108
|
+
# container_instance_arn: "arn:aws:ecs:<region>:<aws_account_id>:container-instance/default/18f9eda5-27d7-4c19-b133-45adc516e8fb",
|
4109
4109
|
# containers: [
|
4110
4110
|
# {
|
4111
4111
|
# name: "ecs-demo",
|
@@ -4118,7 +4118,7 @@ module Aws::ECS
|
|
4118
4118
|
# host_port: 80,
|
4119
4119
|
# },
|
4120
4120
|
# ],
|
4121
|
-
# task_arn: "arn:aws:ecs:<region>:<aws_account_id>:task/c5cba4eb-5dad-405e-96db-71ef8eefe6a8",
|
4121
|
+
# task_arn: "arn:aws:ecs:<region>:<aws_account_id>:task/default/c5cba4eb-5dad-405e-96db-71ef8eefe6a8",
|
4122
4122
|
# },
|
4123
4123
|
# ],
|
4124
4124
|
# desired_status: "RUNNING",
|
@@ -4131,7 +4131,7 @@ module Aws::ECS
|
|
4131
4131
|
# ],
|
4132
4132
|
# },
|
4133
4133
|
# started_by: "ecs-svc/9223370608528463088",
|
4134
|
-
# task_arn: "arn:aws:ecs:<region>:<aws_account_id>:task/c5cba4eb-5dad-405e-96db-71ef8eefe6a8",
|
4134
|
+
# task_arn: "arn:aws:ecs:<region>:<aws_account_id>:task/default/c5cba4eb-5dad-405e-96db-71ef8eefe6a8",
|
4135
4135
|
# task_definition_arn: "arn:aws:ecs:<region>:<aws_account_id>:task-definition/amazon-ecs-sample:1",
|
4136
4136
|
# },
|
4137
4137
|
# ],
|
@@ -4428,7 +4428,7 @@ module Aws::ECS
|
|
4428
4428
|
# {
|
4429
4429
|
# expiration_date: Time.parse("2022-11-02T06:56:32.553Z"),
|
4430
4430
|
# protection_enabled: true,
|
4431
|
-
# task_arn: "arn:aws:ecs:us-west-2:012345678910:task/b8b1cf532d0e46ba8d44a40d1de16772",
|
4431
|
+
# task_arn: "arn:aws:ecs:us-west-2:012345678910:task/default/b8b1cf532d0e46ba8d44a40d1de16772",
|
4432
4432
|
# },
|
4433
4433
|
# ],
|
4434
4434
|
# }
|
@@ -4829,8 +4829,8 @@ module Aws::ECS
|
|
4829
4829
|
# resp.to_h outputs the following:
|
4830
4830
|
# {
|
4831
4831
|
# container_instance_arns: [
|
4832
|
-
# "arn:aws:ecs:us-east-1:<aws_account_id>:container-instance/f6bbb147-5370-4ace-8c73-c7181ded911f",
|
4833
|
-
# "arn:aws:ecs:us-east-1:<aws_account_id>:container-instance/ffe3d344-77e2-476c-a4d0-bf560ad50acb",
|
4832
|
+
# "arn:aws:ecs:us-east-1:<aws_account_id>:container-instance/default/f6bbb147-5370-4ace-8c73-c7181ded911f",
|
4833
|
+
# "arn:aws:ecs:us-east-1:<aws_account_id>:container-instance/default/ffe3d344-77e2-476c-a4d0-bf560ad50acb",
|
4834
4834
|
# ],
|
4835
4835
|
# }
|
4836
4836
|
#
|
@@ -4914,7 +4914,7 @@ module Aws::ECS
|
|
4914
4914
|
# resp.to_h outputs the following:
|
4915
4915
|
# {
|
4916
4916
|
# service_arns: [
|
4917
|
-
# "arn:aws:ecs:us-east-1:012345678910:service/my-http-service",
|
4917
|
+
# "arn:aws:ecs:us-east-1:012345678910:service/default/my-http-service",
|
4918
4918
|
# ],
|
4919
4919
|
# }
|
4920
4920
|
#
|
@@ -5398,8 +5398,8 @@ module Aws::ECS
|
|
5398
5398
|
# resp.to_h outputs the following:
|
5399
5399
|
# {
|
5400
5400
|
# task_arns: [
|
5401
|
-
# "arn:aws:ecs:us-east-1:012345678910:task/0cc43cdb-3bee-4407-9c26-c0e6ea5bee84",
|
5402
|
-
# "arn:aws:ecs:us-east-1:012345678910:task/6b809ef6-c67e-4467-921f-ee261c15a0a1",
|
5401
|
+
# "arn:aws:ecs:us-east-1:012345678910:task/default/0cc43cdb-3bee-4407-9c26-c0e6ea5bee84",
|
5402
|
+
# "arn:aws:ecs:us-east-1:012345678910:task/default/6b809ef6-c67e-4467-921f-ee261c15a0a1",
|
5403
5403
|
# ],
|
5404
5404
|
# }
|
5405
5405
|
#
|
@@ -5416,7 +5416,7 @@ module Aws::ECS
|
|
5416
5416
|
# resp.to_h outputs the following:
|
5417
5417
|
# {
|
5418
5418
|
# task_arns: [
|
5419
|
-
# "arn:aws:ecs:us-east-1:012345678910:task/0cc43cdb-3bee-4407-9c26-c0e6ea5bee84",
|
5419
|
+
# "arn:aws:ecs:us-east-1:012345678910:task/default/0cc43cdb-3bee-4407-9c26-c0e6ea5bee84",
|
5420
5420
|
# ],
|
5421
5421
|
# }
|
5422
5422
|
#
|
@@ -7144,7 +7144,7 @@ module Aws::ECS
|
|
7144
7144
|
# apply a unique identifier for that job to your task with the
|
7145
7145
|
# `startedBy` parameter. You can then identify which tasks belong to
|
7146
7146
|
# that job by filtering the results of a ListTasks call with the
|
7147
|
-
# `startedBy` value. Up to
|
7147
|
+
# `startedBy` value. Up to 128 letters (uppercase and lowercase),
|
7148
7148
|
# numbers, hyphens (-), and underscores (\_) are allowed.
|
7149
7149
|
#
|
7150
7150
|
# If a task is started by an Amazon ECS service, then the `startedBy`
|
@@ -7212,6 +7212,20 @@ module Aws::ECS
|
|
7212
7212
|
#
|
7213
7213
|
# [1]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/security_iam_service-with-iam.html#security_iam_service-with-iam-id-based-policies-resources
|
7214
7214
|
#
|
7215
|
+
# @option params [String] :client_token
|
7216
|
+
# An identifier that you provide to ensure the idempotency of the
|
7217
|
+
# request. It must be unique and is case sensitive. Up to 64 characters
|
7218
|
+
# are allowed. The valid characters are characters in the range of
|
7219
|
+
# 33-126, inclusive. For more information, see [Ensuring
|
7220
|
+
# idempotency][1].
|
7221
|
+
#
|
7222
|
+
# **A suitable default value is auto-generated.** You should normally
|
7223
|
+
# not need to pass this option.**
|
7224
|
+
#
|
7225
|
+
#
|
7226
|
+
#
|
7227
|
+
# [1]: https://docs.aws.amazon.com/AmazonECS/latest/APIReference/ECS_Idempotency.html
|
7228
|
+
#
|
7215
7229
|
# @return [Types::RunTaskResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
7216
7230
|
#
|
7217
7231
|
# * {Types::RunTaskResponse#tasks #tasks} => Array<Types::Task>
|
@@ -7231,13 +7245,13 @@ module Aws::ECS
|
|
7231
7245
|
# {
|
7232
7246
|
# tasks: [
|
7233
7247
|
# {
|
7234
|
-
# container_instance_arn: "arn:aws:ecs:us-east-1:<aws_account_id>:container-instance/ffe3d344-77e2-476c-a4d0-bf560ad50acb",
|
7248
|
+
# container_instance_arn: "arn:aws:ecs:us-east-1:<aws_account_id>:container-instance/default/ffe3d344-77e2-476c-a4d0-bf560ad50acb",
|
7235
7249
|
# containers: [
|
7236
7250
|
# {
|
7237
7251
|
# name: "sleep",
|
7238
|
-
# container_arn: "arn:aws:ecs:us-east-1:<aws_account_id>:container/58591c8e-be29-4ddf-95aa-ee459d4c59fd",
|
7252
|
+
# container_arn: "arn:aws:ecs:us-east-1:<aws_account_id>:container/default/58591c8e-be29-4ddf-95aa-ee459d4c59fd",
|
7239
7253
|
# last_status: "PENDING",
|
7240
|
-
# task_arn: "arn:aws:ecs:us-east-1:<aws_account_id>:task/a9f21ea7-c9f5-44b1-b8e6-b31f50ed33c0",
|
7254
|
+
# task_arn: "arn:aws:ecs:us-east-1:<aws_account_id>:task/default/a9f21ea7-c9f5-44b1-b8e6-b31f50ed33c0",
|
7241
7255
|
# },
|
7242
7256
|
# ],
|
7243
7257
|
# desired_status: "RUNNING",
|
@@ -7249,7 +7263,7 @@ module Aws::ECS
|
|
7249
7263
|
# },
|
7250
7264
|
# ],
|
7251
7265
|
# },
|
7252
|
-
# task_arn: "arn:aws:ecs:us-east-1:<aws_account_id>:task/a9f21ea7-c9f5-44b1-b8e6-b31f50ed33c0",
|
7266
|
+
# task_arn: "arn:aws:ecs:us-east-1:<aws_account_id>:task/default/a9f21ea7-c9f5-44b1-b8e6-b31f50ed33c0",
|
7253
7267
|
# task_definition_arn: "arn:aws:ecs:us-east-1:<aws_account_id>:task-definition/sleep360:1",
|
7254
7268
|
# },
|
7255
7269
|
# ],
|
@@ -7343,6 +7357,7 @@ module Aws::ECS
|
|
7343
7357
|
# },
|
7344
7358
|
# ],
|
7345
7359
|
# task_definition: "String", # required
|
7360
|
+
# client_token: "String",
|
7346
7361
|
# })
|
7347
7362
|
#
|
7348
7363
|
# @example Response structure
|
@@ -9616,7 +9631,7 @@ module Aws::ECS
|
|
9616
9631
|
# {
|
9617
9632
|
# expiration_date: Time.parse("2022-11-02T06:56:32.553Z"),
|
9618
9633
|
# protection_enabled: true,
|
9619
|
-
# task_arn: "arn:aws:ecs:us-west-2:012345678910:task/b8b1cf532d0e46ba8d44a40d1de16772",
|
9634
|
+
# task_arn: "arn:aws:ecs:us-west-2:012345678910:task/default/b8b1cf532d0e46ba8d44a40d1de16772",
|
9620
9635
|
# },
|
9621
9636
|
# ],
|
9622
9637
|
# }
|
@@ -9642,7 +9657,7 @@ module Aws::ECS
|
|
9642
9657
|
# {
|
9643
9658
|
# expiration_date: Time.parse("2022-11-02T06:56:32.553Z"),
|
9644
9659
|
# protection_enabled: true,
|
9645
|
-
# task_arn: "arn:aws:ecs:us-west-2:012345678910:task/b8b1cf532d0e46ba8d44a40d1de16772",
|
9660
|
+
# task_arn: "arn:aws:ecs:us-west-2:012345678910:task/default/b8b1cf532d0e46ba8d44a40d1de16772",
|
9646
9661
|
# },
|
9647
9662
|
# ],
|
9648
9663
|
# }
|
@@ -9666,7 +9681,7 @@ module Aws::ECS
|
|
9666
9681
|
# protected_tasks: [
|
9667
9682
|
# {
|
9668
9683
|
# protection_enabled: false,
|
9669
|
-
# task_arn: "arn:aws:ecs:us-west-2:012345678910:task/b8b1cf532d0e46ba8d44a40d1de16772",
|
9684
|
+
# task_arn: "arn:aws:ecs:us-west-2:012345678910:task/default/b8b1cf532d0e46ba8d44a40d1de16772",
|
9670
9685
|
# },
|
9671
9686
|
# ],
|
9672
9687
|
# }
|
@@ -9808,7 +9823,7 @@ module Aws::ECS
|
|
9808
9823
|
params: params,
|
9809
9824
|
config: config)
|
9810
9825
|
context[:gem_name] = 'aws-sdk-ecs'
|
9811
|
-
context[:gem_version] = '1.
|
9826
|
+
context[:gem_version] = '1.132.0'
|
9812
9827
|
Seahorse::Client::Request.new(handlers, context)
|
9813
9828
|
end
|
9814
9829
|
|
@@ -60,6 +60,7 @@ module Aws::ECS
|
|
60
60
|
Clusters = Shapes::ListShape.new(name: 'Clusters')
|
61
61
|
Compatibility = Shapes::StringShape.new(name: 'Compatibility')
|
62
62
|
CompatibilityList = Shapes::ListShape.new(name: 'CompatibilityList')
|
63
|
+
ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
|
63
64
|
Connectivity = Shapes::StringShape.new(name: 'Connectivity')
|
64
65
|
Container = Shapes::StructureShape.new(name: 'Container')
|
65
66
|
ContainerCondition = Shapes::StringShape.new(name: 'ContainerCondition')
|
@@ -266,6 +267,7 @@ module Aws::ECS
|
|
266
267
|
RepositoryCredentials = Shapes::StructureShape.new(name: 'RepositoryCredentials')
|
267
268
|
RequiresAttributes = Shapes::ListShape.new(name: 'RequiresAttributes')
|
268
269
|
Resource = Shapes::StructureShape.new(name: 'Resource')
|
270
|
+
ResourceIds = Shapes::ListShape.new(name: 'ResourceIds')
|
269
271
|
ResourceInUseException = Shapes::StructureShape.new(name: 'ResourceInUseException')
|
270
272
|
ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
|
271
273
|
ResourceRequirement = Shapes::StructureShape.new(name: 'ResourceRequirement')
|
@@ -501,6 +503,9 @@ module Aws::ECS
|
|
501
503
|
|
502
504
|
CompatibilityList.member = Shapes::ShapeRef.new(shape: Compatibility)
|
503
505
|
|
506
|
+
ConflictException.add_member(:resource_ids, Shapes::ShapeRef.new(shape: ResourceIds, location_name: "resourceIds"))
|
507
|
+
ConflictException.struct_class = Types::ConflictException
|
508
|
+
|
504
509
|
Container.add_member(:container_arn, Shapes::ShapeRef.new(shape: String, location_name: "containerArn"))
|
505
510
|
Container.add_member(:task_arn, Shapes::ShapeRef.new(shape: String, location_name: "taskArn"))
|
506
511
|
Container.add_member(:name, Shapes::ShapeRef.new(shape: String, location_name: "name"))
|
@@ -1327,6 +1332,8 @@ module Aws::ECS
|
|
1327
1332
|
Resource.add_member(:string_set_value, Shapes::ShapeRef.new(shape: StringList, location_name: "stringSetValue"))
|
1328
1333
|
Resource.struct_class = Types::Resource
|
1329
1334
|
|
1335
|
+
ResourceIds.member = Shapes::ShapeRef.new(shape: String)
|
1336
|
+
|
1330
1337
|
ResourceInUseException.struct_class = Types::ResourceInUseException
|
1331
1338
|
|
1332
1339
|
ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
|
@@ -1356,6 +1363,7 @@ module Aws::ECS
|
|
1356
1363
|
RunTaskRequest.add_member(:started_by, Shapes::ShapeRef.new(shape: String, location_name: "startedBy"))
|
1357
1364
|
RunTaskRequest.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "tags"))
|
1358
1365
|
RunTaskRequest.add_member(:task_definition, Shapes::ShapeRef.new(shape: String, required: true, location_name: "taskDefinition"))
|
1366
|
+
RunTaskRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: String, location_name: "clientToken", metadata: {"idempotencyToken"=>true}))
|
1359
1367
|
RunTaskRequest.struct_class = Types::RunTaskRequest
|
1360
1368
|
|
1361
1369
|
RunTaskResponse.add_member(:tasks, Shapes::ShapeRef.new(shape: Tasks, location_name: "tasks"))
|
@@ -2389,6 +2397,7 @@ module Aws::ECS
|
|
2389
2397
|
o.errors << Shapes::ShapeRef.new(shape: PlatformTaskDefinitionIncompatibilityException)
|
2390
2398
|
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
2391
2399
|
o.errors << Shapes::ShapeRef.new(shape: BlockedException)
|
2400
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
2392
2401
|
end)
|
2393
2402
|
|
2394
2403
|
api.add_operation(:start_task, Seahorse::Model::Operation.new.tap do |o|
|
@@ -32,7 +32,7 @@ module Aws::ECS
|
|
32
32
|
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
33
33
|
end
|
34
34
|
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
35
|
-
if Aws::Endpoints::Matchers.boolean_equals?(
|
35
|
+
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
|
36
36
|
return Aws::Endpoints::Endpoint.new(url: "https://ecs-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
37
37
|
end
|
38
38
|
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
data/lib/aws-sdk-ecs/errors.rb
CHANGED
@@ -35,6 +35,7 @@ module Aws::ECS
|
|
35
35
|
# * {ClusterContainsServicesException}
|
36
36
|
# * {ClusterContainsTasksException}
|
37
37
|
# * {ClusterNotFoundException}
|
38
|
+
# * {ConflictException}
|
38
39
|
# * {InvalidParameterException}
|
39
40
|
# * {LimitExceededException}
|
40
41
|
# * {MissingVersionException}
|
@@ -144,6 +145,21 @@ module Aws::ECS
|
|
144
145
|
end
|
145
146
|
end
|
146
147
|
|
148
|
+
class ConflictException < ServiceError
|
149
|
+
|
150
|
+
# @param [Seahorse::Client::RequestContext] context
|
151
|
+
# @param [String] message
|
152
|
+
# @param [Aws::ECS::Types::ConflictException] data
|
153
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
154
|
+
super(context, message, data)
|
155
|
+
end
|
156
|
+
|
157
|
+
# @return [String]
|
158
|
+
def resource_ids
|
159
|
+
@data[:resource_ids]
|
160
|
+
end
|
161
|
+
end
|
162
|
+
|
147
163
|
class InvalidParameterException < ServiceError
|
148
164
|
|
149
165
|
# @param [Seahorse::Client::RequestContext] context
|
data/lib/aws-sdk-ecs/types.rb
CHANGED
@@ -419,7 +419,7 @@ module Aws::ECS
|
|
419
419
|
|
420
420
|
# These errors are usually caused by a client action. This client action
|
421
421
|
# might be using an action or resource on behalf of a user that doesn't
|
422
|
-
# have permissions to use the action or resource
|
422
|
+
# have permissions to use the action or resource. Or, it might be
|
423
423
|
# specifying an identifier that isn't valid.
|
424
424
|
#
|
425
425
|
# @!attribute [rw] message
|
@@ -763,7 +763,7 @@ module Aws::ECS
|
|
763
763
|
# the "HTTP" namespace type in the Command Line Interface. Other
|
764
764
|
# types of instance discovery aren't used by Service Connect.
|
765
765
|
#
|
766
|
-
# If you update the
|
766
|
+
# If you update the cluster with an empty string `""` for the
|
767
767
|
# namespace name, the cluster configuration for Service Connect is
|
768
768
|
# removed. Note that the namespace will remain in Cloud Map and must
|
769
769
|
# be deleted separately.
|
@@ -817,6 +817,31 @@ module Aws::ECS
|
|
817
817
|
include Aws::Structure
|
818
818
|
end
|
819
819
|
|
820
|
+
# The `RunTask` request could not be processed due to conflicts. The
|
821
|
+
# provided `clientToken` is already in use with a different `RunTask`
|
822
|
+
# request. The `resourceIds` are the existing task ARNs which are
|
823
|
+
# already associated with the `clientToken`.
|
824
|
+
#
|
825
|
+
# To fix this issue:
|
826
|
+
#
|
827
|
+
# * Run `RunTask` with a unique `clientToken`.
|
828
|
+
#
|
829
|
+
# * Run `RunTask` with the `clientToken` and the original set of
|
830
|
+
# parameters
|
831
|
+
#
|
832
|
+
# @!attribute [rw] resource_ids
|
833
|
+
# The existing task ARNs which are already associated with the
|
834
|
+
# `clientToken`.
|
835
|
+
# @return [Array<String>]
|
836
|
+
#
|
837
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/ConflictException AWS API Documentation
|
838
|
+
#
|
839
|
+
class ConflictException < Struct.new(
|
840
|
+
:resource_ids)
|
841
|
+
SENSITIVE = []
|
842
|
+
include Aws::Structure
|
843
|
+
end
|
844
|
+
|
820
845
|
# A Docker container that's part of a task.
|
821
846
|
#
|
822
847
|
# @!attribute [rw] container_arn
|
@@ -2677,8 +2702,8 @@ module Aws::ECS
|
|
2677
2702
|
#
|
2678
2703
|
# @!attribute [rw] client_token
|
2679
2704
|
# An identifier that you provide to ensure the idempotency of the
|
2680
|
-
# request. It must be unique and is case sensitive. Up to
|
2681
|
-
# characters are allowed.
|
2705
|
+
# request. It must be unique and is case sensitive. Up to 36 ASCII
|
2706
|
+
# characters in the range of 33-126 (inclusive) are allowed.
|
2682
2707
|
# @return [String]
|
2683
2708
|
#
|
2684
2709
|
# @!attribute [rw] launch_type
|
@@ -3099,9 +3124,9 @@ module Aws::ECS
|
|
3099
3124
|
# @return [Types::Scale]
|
3100
3125
|
#
|
3101
3126
|
# @!attribute [rw] client_token
|
3102
|
-
#
|
3103
|
-
# request. It
|
3104
|
-
#
|
3127
|
+
# An identifier that you provide to ensure the idempotency of the
|
3128
|
+
# request. It must be unique and is case sensitive. Up to 36 ASCII
|
3129
|
+
# characters in the range of 33-126 (inclusive) are allowed.
|
3105
3130
|
# @return [String]
|
3106
3131
|
#
|
3107
3132
|
# @!attribute [rw] tags
|
@@ -4577,9 +4602,7 @@ module Aws::ECS
|
|
4577
4602
|
# container. You can specify up to ten environment files. The file must
|
4578
4603
|
# have a `.env` file extension. Each line in an environment file should
|
4579
4604
|
# contain an environment variable in `VARIABLE=VALUE` format. Lines
|
4580
|
-
# beginning with `#` are treated as comments and are ignored.
|
4581
|
-
# information about the environment variable file syntax, see [Declare
|
4582
|
-
# default environment variables in file][1].
|
4605
|
+
# beginning with `#` are treated as comments and are ignored.
|
4583
4606
|
#
|
4584
4607
|
# If there are environment variables specified using the `environment`
|
4585
4608
|
# parameter in a container definition, they take precedence over the
|
@@ -4587,7 +4610,7 @@ module Aws::ECS
|
|
4587
4610
|
# environment files are specified that contain the same variable,
|
4588
4611
|
# they're processed from the top down. We recommend that you use unique
|
4589
4612
|
# variable names. For more information, see [Specifying environment
|
4590
|
-
# variables][
|
4613
|
+
# variables][1] in the *Amazon Elastic Container Service Developer
|
4591
4614
|
# Guide*.
|
4592
4615
|
#
|
4593
4616
|
# You must use the following platforms for the Fargate launch type:
|
@@ -4596,10 +4619,17 @@ module Aws::ECS
|
|
4596
4619
|
#
|
4597
4620
|
# * Windows platform version `1.0.0` or later.
|
4598
4621
|
#
|
4622
|
+
# Consider the following when using the Fargate launch type:
|
4623
|
+
#
|
4624
|
+
# * The file is handled like a native Docker env-file.
|
4625
|
+
#
|
4626
|
+
# * There is no support for shell escape handling.
|
4599
4627
|
#
|
4628
|
+
# * The container entry point interperts the `VARIABLE` values.
|
4600
4629
|
#
|
4601
|
-
#
|
4602
|
-
#
|
4630
|
+
#
|
4631
|
+
#
|
4632
|
+
# [1]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/taskdef-envfiles.html
|
4603
4633
|
#
|
4604
4634
|
# @!attribute [rw] value
|
4605
4635
|
# The Amazon Resource Name (ARN) of the Amazon S3 object containing
|
@@ -5036,23 +5066,57 @@ module Aws::ECS
|
|
5036
5066
|
#
|
5037
5067
|
# * `UNHEALTHY`-The container health check has failed.
|
5038
5068
|
#
|
5039
|
-
# * `UNKNOWN`-The container health check is being evaluated
|
5040
|
-
#
|
5069
|
+
# * `UNKNOWN`-The container health check is being evaluated, there's no
|
5070
|
+
# container health check defined, or Amazon ECS doesn't have the
|
5071
|
+
# health status of the container.
|
5041
5072
|
#
|
5042
|
-
# The following describes the possible `healthStatus` values
|
5043
|
-
#
|
5044
|
-
#
|
5073
|
+
# The following describes the possible `healthStatus` values based on
|
5074
|
+
# the container health checker status of essential containers in the
|
5075
|
+
# task with the following priority order (high to low):
|
5076
|
+
#
|
5077
|
+
# * `UNHEALTHY`-One or more essential containers have failed their
|
5078
|
+
# health check.
|
5079
|
+
#
|
5080
|
+
# * `UNKNOWN`-Any essential container running within the task is in an
|
5081
|
+
# `UNKNOWN` state and no other essential containers have an
|
5082
|
+
# `UNHEALTHY` state.
|
5045
5083
|
#
|
5046
5084
|
# * `HEALTHY`-All essential containers within the task have passed their
|
5047
5085
|
# health checks.
|
5048
5086
|
#
|
5049
|
-
#
|
5050
|
-
# health check.
|
5087
|
+
# Consider the following task health example with 2 containers.
|
5051
5088
|
#
|
5052
|
-
# * `
|
5053
|
-
#
|
5054
|
-
#
|
5055
|
-
#
|
5089
|
+
# * If Container1 is `UNHEALTHY` and Container2 is `UNKNOWN`, the task
|
5090
|
+
# health is `UNHEALTHY`.
|
5091
|
+
#
|
5092
|
+
# * If Container1 is `UNHEALTHY` and Container2 is `HEALTHY`, the task
|
5093
|
+
# health is `UNHEALTHY`.
|
5094
|
+
#
|
5095
|
+
# * If Container1 is `HEALTHY` and Container2 is `UNKNOWN`, the task
|
5096
|
+
# health is `UNKNOWN`.
|
5097
|
+
#
|
5098
|
+
# * If Container1 is `HEALTHY` and Container2 is `HEALTHY`, the task
|
5099
|
+
# health is `HEALTHY`.
|
5100
|
+
#
|
5101
|
+
# Consider the following task health example with 3 containers.
|
5102
|
+
#
|
5103
|
+
# * If Container1 is `UNHEALTHY` and Container2 is `UNKNOWN`, and
|
5104
|
+
# Container3 is `UNKNOWN`, the task health is `UNHEALTHY`.
|
5105
|
+
#
|
5106
|
+
# * If Container1 is `UNHEALTHY` and Container2 is `UNKNOWN`, and
|
5107
|
+
# Container3 is `HEALTHY`, the task health is `UNHEALTHY`.
|
5108
|
+
#
|
5109
|
+
# * If Container1 is `UNHEALTHY` and Container2 is `HEALTHY`, and
|
5110
|
+
# Container3 is `HEALTHY`, the task health is `UNHEALTHY`.
|
5111
|
+
#
|
5112
|
+
# * If Container1 is `HEALTHY` and Container2 is `UNKNOWN`, and
|
5113
|
+
# Container3 is `HEALTHY`, the task health is `UNKNOWN`.
|
5114
|
+
#
|
5115
|
+
# * If Container1 is `HEALTHY` and Container2 is `UNKNOWN`, and
|
5116
|
+
# Container3 is `UNKNOWN`, the task health is `UNKNOWN`.
|
5117
|
+
#
|
5118
|
+
# * If Container1 is `HEALTHY` and Container2 is `HEALTHY`, and
|
5119
|
+
# Container3 is `HEALTHY`, the task health is `HEALTHY`.
|
5056
5120
|
#
|
5057
5121
|
# If a task is run manually, and not as part of a service, the task will
|
5058
5122
|
# continue its lifecycle regardless of its health status. For tasks that
|
@@ -6710,8 +6774,8 @@ module Aws::ECS
|
|
6710
6774
|
# `hostPortRange` is set as follows:
|
6711
6775
|
#
|
6712
6776
|
# * For containers in a task with the `awsvpc` network mode, the
|
6713
|
-
# `
|
6714
|
-
# is a static mapping strategy.
|
6777
|
+
# `hostPortRange` is set to the same value as the
|
6778
|
+
# `containerPortRange`. This is a static mapping strategy.
|
6715
6779
|
#
|
6716
6780
|
# * For containers in a task with the `bridge` network mode, the
|
6717
6781
|
# Amazon ECS agent finds open host ports from the default
|
@@ -7032,7 +7096,9 @@ module Aws::ECS
|
|
7032
7096
|
#
|
7033
7097
|
# @!attribute [rw] protocol
|
7034
7098
|
# The protocol used for the port mapping. Valid values are `tcp` and
|
7035
|
-
# `udp`. The default is `tcp`.
|
7099
|
+
# `udp`. The default is `tcp`. `protocol` is immutable in a Service
|
7100
|
+
# Connect service. Updating this field requires a service deletion and
|
7101
|
+
# redeployment.
|
7036
7102
|
# @return [String]
|
7037
7103
|
#
|
7038
7104
|
# @!attribute [rw] name
|
@@ -7064,6 +7130,9 @@ module Aws::ECS
|
|
7064
7130
|
# However, Amazon ECS doesn't add protocol-specific telemetry for
|
7065
7131
|
# TCP.
|
7066
7132
|
#
|
7133
|
+
# `appProtocol` is immutable in a Service Connect service. Updating
|
7134
|
+
# this field requires a service deletion and redeployment.
|
7135
|
+
#
|
7067
7136
|
# Tasks that run in a namespace can use short names to connect to
|
7068
7137
|
# services in the namespace. Tasks can connect to services across all
|
7069
7138
|
# of the clusters in the namespace. Tasks connect through a managed
|
@@ -7103,8 +7172,8 @@ module Aws::ECS
|
|
7103
7172
|
# `hostPortRange` is set as follows:
|
7104
7173
|
#
|
7105
7174
|
# * For containers in a task with the `awsvpc` network mode, the
|
7106
|
-
# `
|
7107
|
-
# is a static mapping strategy.
|
7175
|
+
# `hostPortRange` is set to the same value as the
|
7176
|
+
# `containerPortRange`. This is a static mapping strategy.
|
7108
7177
|
#
|
7109
7178
|
# * For containers in a task with the `bridge` network mode, the
|
7110
7179
|
# Amazon ECS agent finds open host ports from the default
|
@@ -8289,7 +8358,7 @@ module Aws::ECS
|
|
8289
8358
|
# could apply a unique identifier for that job to your task with the
|
8290
8359
|
# `startedBy` parameter. You can then identify which tasks belong to
|
8291
8360
|
# that job by filtering the results of a ListTasks call with the
|
8292
|
-
# `startedBy` value. Up to
|
8361
|
+
# `startedBy` value. Up to 128 letters (uppercase and lowercase),
|
8293
8362
|
# numbers, hyphens (-), and underscores (\_) are allowed.
|
8294
8363
|
#
|
8295
8364
|
# If a task is started by an Amazon ECS service, then the `startedBy`
|
@@ -8360,6 +8429,21 @@ module Aws::ECS
|
|
8360
8429
|
# [1]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/security_iam_service-with-iam.html#security_iam_service-with-iam-id-based-policies-resources
|
8361
8430
|
# @return [String]
|
8362
8431
|
#
|
8432
|
+
# @!attribute [rw] client_token
|
8433
|
+
# An identifier that you provide to ensure the idempotency of the
|
8434
|
+
# request. It must be unique and is case sensitive. Up to 64
|
8435
|
+
# characters are allowed. The valid characters are characters in the
|
8436
|
+
# range of 33-126, inclusive. For more information, see [Ensuring
|
8437
|
+
# idempotency][1].
|
8438
|
+
#
|
8439
|
+
# **A suitable default value is auto-generated.** You should normally
|
8440
|
+
# not need to pass this option.
|
8441
|
+
#
|
8442
|
+
#
|
8443
|
+
#
|
8444
|
+
# [1]: https://docs.aws.amazon.com/AmazonECS/latest/APIReference/ECS_Idempotency.html
|
8445
|
+
# @return [String]
|
8446
|
+
#
|
8363
8447
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/RunTaskRequest AWS API Documentation
|
8364
8448
|
#
|
8365
8449
|
class RunTaskRequest < Struct.new(
|
@@ -8379,7 +8463,8 @@ module Aws::ECS
|
|
8379
8463
|
:reference_id,
|
8380
8464
|
:started_by,
|
8381
8465
|
:tags,
|
8382
|
-
:task_definition
|
8466
|
+
:task_definition,
|
8467
|
+
:client_token)
|
8383
8468
|
SENSITIVE = []
|
8384
8469
|
include Aws::Structure
|
8385
8470
|
end
|
data/lib/aws-sdk-ecs.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-ecs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.132.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-11-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|