aws-sdk-ecs 1.131.0 → 1.133.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-ecs/client.rb +22 -7
- data/lib/aws-sdk-ecs/client_api.rb +9 -0
- data/lib/aws-sdk-ecs/errors.rb +16 -0
- data/lib/aws-sdk-ecs/types.rb +55 -9
- data/lib/aws-sdk-ecs.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 62bde69002f776c00e7485d2181be5c0db81364d5bd49f67b58aa026d0145547
|
4
|
+
data.tar.gz: 63a05f93c687895a122025b78021bc68d86c4d4218f977113843e2c9895f5831
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2f070098ac5089146d5915687965a586dcb58b554167df91c39783836823f7a82df132cc601d362fb374ed44f4d8188527a2c019a3949837d60950a37fe79bae
|
7
|
+
data.tar.gz: 61b8f4e3637e2d6a20cb9a716dc141384e0cb30792eb902a082c983ba0d205e703447687bdd9f93d26001843e4cd9d99fc6f44003fdb06163346b8fe10023340
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.133.0 (2023-11-22)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
8
|
+
|
9
|
+
1.132.0 (2023-11-13)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Adds a Client Token parameter to the ECS RunTask API. The Client Token parameter allows for idempotent RunTask requests.
|
13
|
+
|
4
14
|
1.131.0 (2023-10-17)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.133.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,
|
@@ -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
|
@@ -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>
|
@@ -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
|
@@ -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.133.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|
|
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
|
@@ -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
|
@@ -7071,7 +7096,9 @@ module Aws::ECS
|
|
7071
7096
|
#
|
7072
7097
|
# @!attribute [rw] protocol
|
7073
7098
|
# The protocol used for the port mapping. Valid values are `tcp` and
|
7074
|
-
# `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.
|
7075
7102
|
# @return [String]
|
7076
7103
|
#
|
7077
7104
|
# @!attribute [rw] name
|
@@ -7103,6 +7130,9 @@ module Aws::ECS
|
|
7103
7130
|
# However, Amazon ECS doesn't add protocol-specific telemetry for
|
7104
7131
|
# TCP.
|
7105
7132
|
#
|
7133
|
+
# `appProtocol` is immutable in a Service Connect service. Updating
|
7134
|
+
# this field requires a service deletion and redeployment.
|
7135
|
+
#
|
7106
7136
|
# Tasks that run in a namespace can use short names to connect to
|
7107
7137
|
# services in the namespace. Tasks can connect to services across all
|
7108
7138
|
# of the clusters in the namespace. Tasks connect through a managed
|
@@ -8328,7 +8358,7 @@ module Aws::ECS
|
|
8328
8358
|
# could apply a unique identifier for that job to your task with the
|
8329
8359
|
# `startedBy` parameter. You can then identify which tasks belong to
|
8330
8360
|
# that job by filtering the results of a ListTasks call with the
|
8331
|
-
# `startedBy` value. Up to
|
8361
|
+
# `startedBy` value. Up to 128 letters (uppercase and lowercase),
|
8332
8362
|
# numbers, hyphens (-), and underscores (\_) are allowed.
|
8333
8363
|
#
|
8334
8364
|
# If a task is started by an Amazon ECS service, then the `startedBy`
|
@@ -8399,6 +8429,21 @@ module Aws::ECS
|
|
8399
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
|
8400
8430
|
# @return [String]
|
8401
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
|
+
#
|
8402
8447
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/RunTaskRequest AWS API Documentation
|
8403
8448
|
#
|
8404
8449
|
class RunTaskRequest < Struct.new(
|
@@ -8418,7 +8463,8 @@ module Aws::ECS
|
|
8418
8463
|
:reference_id,
|
8419
8464
|
:started_by,
|
8420
8465
|
:tags,
|
8421
|
-
:task_definition
|
8466
|
+
:task_definition,
|
8467
|
+
:client_token)
|
8422
8468
|
SENSITIVE = []
|
8423
8469
|
include Aws::Structure
|
8424
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.133.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-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '3'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 3.
|
22
|
+
version: 3.188.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '3'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 3.
|
32
|
+
version: 3.188.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -81,7 +81,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
81
81
|
requirements:
|
82
82
|
- - ">="
|
83
83
|
- !ruby/object:Gem::Version
|
84
|
-
version: '2.
|
84
|
+
version: '2.5'
|
85
85
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - ">="
|