aws-sdk-ecs 1.243.0 → 1.244.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 +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-ecs/client.rb +26 -1
- data/lib/aws-sdk-ecs/client_api.rb +9 -0
- data/lib/aws-sdk-ecs/types.rb +72 -5
- data/lib/aws-sdk-ecs.rb +1 -1
- data/sig/params.rbs +5 -0
- data/sig/types.rbs +8 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 02f578bf06b3e302e5ef62cf4414fa991c86d4d53c9daa21253c1bfc7fbf215c
|
|
4
|
+
data.tar.gz: 790bc9793c082ac802186f4db78cc3657a60f079442d1592154d0753554fcc71
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3be021c579c03a6f328282e09652ea49cbf566dc0a74508a0a948566d7dc8e211cd76d15201eef7e941a28c361fae86ab067112025dc17f0ad7aa6cb5397e633
|
|
7
|
+
data.tar.gz: 19be2db2f9fe529ac3994649f1f9a3f456d431f55b7e055dcb7c176e95959b7bee6ff19a6939135d82b117dbb812e6c284a5e48e14fa8e5451ff75ffcb2218e0
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
Unreleased Changes
|
|
2
2
|
------------------
|
|
3
3
|
|
|
4
|
+
1.244.0 (2026-08-28)
|
|
5
|
+
------------------
|
|
6
|
+
|
|
7
|
+
* Feature - Amazon Elastic Container Service - This release adds support for early success criteria on ECS rolling deployments, letting deployment complete once a configurable percentage of tasks are healthy, with configurable BLOCKING (required) or DEFERRED (asynchronous) cleanup of previous service revisions.
|
|
8
|
+
|
|
4
9
|
1.243.0 (2026-08-05)
|
|
5
10
|
------------------
|
|
6
11
|
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.244.0
|
data/lib/aws-sdk-ecs/client.rb
CHANGED
|
@@ -2497,6 +2497,11 @@ module Aws::ECS
|
|
|
2497
2497
|
# canary_percent: 1.0,
|
|
2498
2498
|
# canary_bake_time_in_minutes: 1,
|
|
2499
2499
|
# },
|
|
2500
|
+
# early_success_criteria: {
|
|
2501
|
+
# enable: false, # required
|
|
2502
|
+
# healthy_percent: 1,
|
|
2503
|
+
# source_service_revision_cleanup: "BLOCKING", # accepts BLOCKING, DEFERRED
|
|
2504
|
+
# },
|
|
2500
2505
|
# },
|
|
2501
2506
|
# placement_constraints: [
|
|
2502
2507
|
# {
|
|
@@ -2685,6 +2690,9 @@ module Aws::ECS
|
|
|
2685
2690
|
# resp.service.deployment_configuration.linear_configuration.step_bake_time_in_minutes #=> Integer
|
|
2686
2691
|
# resp.service.deployment_configuration.canary_configuration.canary_percent #=> Float
|
|
2687
2692
|
# resp.service.deployment_configuration.canary_configuration.canary_bake_time_in_minutes #=> Integer
|
|
2693
|
+
# resp.service.deployment_configuration.early_success_criteria.enable #=> Boolean
|
|
2694
|
+
# resp.service.deployment_configuration.early_success_criteria.healthy_percent #=> Integer
|
|
2695
|
+
# resp.service.deployment_configuration.early_success_criteria.source_service_revision_cleanup #=> String, one of "BLOCKING", "DEFERRED"
|
|
2688
2696
|
# resp.service.task_sets #=> Array
|
|
2689
2697
|
# resp.service.task_sets[0].id #=> String
|
|
2690
2698
|
# resp.service.task_sets[0].task_set_arn #=> String
|
|
@@ -3927,6 +3935,9 @@ module Aws::ECS
|
|
|
3927
3935
|
# resp.service.deployment_configuration.linear_configuration.step_bake_time_in_minutes #=> Integer
|
|
3928
3936
|
# resp.service.deployment_configuration.canary_configuration.canary_percent #=> Float
|
|
3929
3937
|
# resp.service.deployment_configuration.canary_configuration.canary_bake_time_in_minutes #=> Integer
|
|
3938
|
+
# resp.service.deployment_configuration.early_success_criteria.enable #=> Boolean
|
|
3939
|
+
# resp.service.deployment_configuration.early_success_criteria.healthy_percent #=> Integer
|
|
3940
|
+
# resp.service.deployment_configuration.early_success_criteria.source_service_revision_cleanup #=> String, one of "BLOCKING", "DEFERRED"
|
|
3930
3941
|
# resp.service.task_sets #=> Array
|
|
3931
3942
|
# resp.service.task_sets[0].id #=> String
|
|
3932
3943
|
# resp.service.task_sets[0].task_set_arn #=> String
|
|
@@ -6282,6 +6293,9 @@ module Aws::ECS
|
|
|
6282
6293
|
# resp.service_deployments[0].deployment_configuration.linear_configuration.step_bake_time_in_minutes #=> Integer
|
|
6283
6294
|
# resp.service_deployments[0].deployment_configuration.canary_configuration.canary_percent #=> Float
|
|
6284
6295
|
# resp.service_deployments[0].deployment_configuration.canary_configuration.canary_bake_time_in_minutes #=> Integer
|
|
6296
|
+
# resp.service_deployments[0].deployment_configuration.early_success_criteria.enable #=> Boolean
|
|
6297
|
+
# resp.service_deployments[0].deployment_configuration.early_success_criteria.healthy_percent #=> Integer
|
|
6298
|
+
# resp.service_deployments[0].deployment_configuration.early_success_criteria.source_service_revision_cleanup #=> String, one of "BLOCKING", "DEFERRED"
|
|
6285
6299
|
# resp.service_deployments[0].rollback.reason #=> String
|
|
6286
6300
|
# resp.service_deployments[0].rollback.started_at #=> Time
|
|
6287
6301
|
# resp.service_deployments[0].rollback.service_revision_arn #=> String
|
|
@@ -6806,6 +6820,9 @@ module Aws::ECS
|
|
|
6806
6820
|
# resp.services[0].deployment_configuration.linear_configuration.step_bake_time_in_minutes #=> Integer
|
|
6807
6821
|
# resp.services[0].deployment_configuration.canary_configuration.canary_percent #=> Float
|
|
6808
6822
|
# resp.services[0].deployment_configuration.canary_configuration.canary_bake_time_in_minutes #=> Integer
|
|
6823
|
+
# resp.services[0].deployment_configuration.early_success_criteria.enable #=> Boolean
|
|
6824
|
+
# resp.services[0].deployment_configuration.early_success_criteria.healthy_percent #=> Integer
|
|
6825
|
+
# resp.services[0].deployment_configuration.early_success_criteria.source_service_revision_cleanup #=> String, one of "BLOCKING", "DEFERRED"
|
|
6809
6826
|
# resp.services[0].task_sets #=> Array
|
|
6810
6827
|
# resp.services[0].task_sets[0].id #=> String
|
|
6811
6828
|
# resp.services[0].task_sets[0].task_set_arn #=> String
|
|
@@ -15390,6 +15407,11 @@ module Aws::ECS
|
|
|
15390
15407
|
# canary_percent: 1.0,
|
|
15391
15408
|
# canary_bake_time_in_minutes: 1,
|
|
15392
15409
|
# },
|
|
15410
|
+
# early_success_criteria: {
|
|
15411
|
+
# enable: false, # required
|
|
15412
|
+
# healthy_percent: 1,
|
|
15413
|
+
# source_service_revision_cleanup: "BLOCKING", # accepts BLOCKING, DEFERRED
|
|
15414
|
+
# },
|
|
15393
15415
|
# },
|
|
15394
15416
|
# availability_zone_rebalancing: "ENABLED", # accepts ENABLED, DISABLED
|
|
15395
15417
|
# network_configuration: {
|
|
@@ -15596,6 +15618,9 @@ module Aws::ECS
|
|
|
15596
15618
|
# resp.service.deployment_configuration.linear_configuration.step_bake_time_in_minutes #=> Integer
|
|
15597
15619
|
# resp.service.deployment_configuration.canary_configuration.canary_percent #=> Float
|
|
15598
15620
|
# resp.service.deployment_configuration.canary_configuration.canary_bake_time_in_minutes #=> Integer
|
|
15621
|
+
# resp.service.deployment_configuration.early_success_criteria.enable #=> Boolean
|
|
15622
|
+
# resp.service.deployment_configuration.early_success_criteria.healthy_percent #=> Integer
|
|
15623
|
+
# resp.service.deployment_configuration.early_success_criteria.source_service_revision_cleanup #=> String, one of "BLOCKING", "DEFERRED"
|
|
15599
15624
|
# resp.service.task_sets #=> Array
|
|
15600
15625
|
# resp.service.task_sets[0].id #=> String
|
|
15601
15626
|
# resp.service.task_sets[0].task_set_arn #=> String
|
|
@@ -16247,7 +16272,7 @@ module Aws::ECS
|
|
|
16247
16272
|
tracer: tracer
|
|
16248
16273
|
)
|
|
16249
16274
|
context[:gem_name] = 'aws-sdk-ecs'
|
|
16250
|
-
context[:gem_version] = '1.
|
|
16275
|
+
context[:gem_version] = '1.244.0'
|
|
16251
16276
|
Seahorse::Client::Request.new(handlers, context)
|
|
16252
16277
|
end
|
|
16253
16278
|
|
|
@@ -197,6 +197,7 @@ module Aws::ECS
|
|
|
197
197
|
DeploymentConfiguration = Shapes::StructureShape.new(name: 'DeploymentConfiguration')
|
|
198
198
|
DeploymentController = Shapes::StructureShape.new(name: 'DeploymentController')
|
|
199
199
|
DeploymentControllerType = Shapes::StringShape.new(name: 'DeploymentControllerType')
|
|
200
|
+
DeploymentEarlySuccessCriteria = Shapes::StructureShape.new(name: 'DeploymentEarlySuccessCriteria')
|
|
200
201
|
DeploymentEphemeralStorage = Shapes::StructureShape.new(name: 'DeploymentEphemeralStorage')
|
|
201
202
|
DeploymentLifecycleHook = Shapes::StructureShape.new(name: 'DeploymentLifecycleHook')
|
|
202
203
|
DeploymentLifecycleHookAction = Shapes::StringShape.new(name: 'DeploymentLifecycleHookAction')
|
|
@@ -304,6 +305,7 @@ module Aws::ECS
|
|
|
304
305
|
GpuIds = Shapes::ListShape.new(name: 'GpuIds')
|
|
305
306
|
HealthCheck = Shapes::StructureShape.new(name: 'HealthCheck')
|
|
306
307
|
HealthStatus = Shapes::StringShape.new(name: 'HealthStatus')
|
|
308
|
+
HealthyPercentInteger = Shapes::IntegerShape.new(name: 'HealthyPercentInteger')
|
|
307
309
|
HookDetails = Shapes::DocumentShape.new(name: 'HookDetails', document: true)
|
|
308
310
|
HostEntry = Shapes::StructureShape.new(name: 'HostEntry')
|
|
309
311
|
HostEntryList = Shapes::ListShape.new(name: 'HostEntryList')
|
|
@@ -533,6 +535,7 @@ module Aws::ECS
|
|
|
533
535
|
ServiceRegistries = Shapes::ListShape.new(name: 'ServiceRegistries')
|
|
534
536
|
ServiceRegistry = Shapes::StructureShape.new(name: 'ServiceRegistry')
|
|
535
537
|
ServiceRevision = Shapes::StructureShape.new(name: 'ServiceRevision')
|
|
538
|
+
ServiceRevisionCleanup = Shapes::StringShape.new(name: 'ServiceRevisionCleanup')
|
|
536
539
|
ServiceRevisionLoadBalancer = Shapes::StructureShape.new(name: 'ServiceRevisionLoadBalancer')
|
|
537
540
|
ServiceRevisionLoadBalancers = Shapes::ListShape.new(name: 'ServiceRevisionLoadBalancers')
|
|
538
541
|
ServiceRevisionOverrides = Shapes::StructureShape.new(name: 'ServiceRevisionOverrides')
|
|
@@ -1408,11 +1411,17 @@ module Aws::ECS
|
|
|
1408
1411
|
DeploymentConfiguration.add_member(:lifecycle_hooks, Shapes::ShapeRef.new(shape: DeploymentLifecycleHookList, location_name: "lifecycleHooks"))
|
|
1409
1412
|
DeploymentConfiguration.add_member(:linear_configuration, Shapes::ShapeRef.new(shape: LinearConfiguration, location_name: "linearConfiguration"))
|
|
1410
1413
|
DeploymentConfiguration.add_member(:canary_configuration, Shapes::ShapeRef.new(shape: CanaryConfiguration, location_name: "canaryConfiguration"))
|
|
1414
|
+
DeploymentConfiguration.add_member(:early_success_criteria, Shapes::ShapeRef.new(shape: DeploymentEarlySuccessCriteria, location_name: "earlySuccessCriteria"))
|
|
1411
1415
|
DeploymentConfiguration.struct_class = Types::DeploymentConfiguration
|
|
1412
1416
|
|
|
1413
1417
|
DeploymentController.add_member(:type, Shapes::ShapeRef.new(shape: DeploymentControllerType, required: true, location_name: "type"))
|
|
1414
1418
|
DeploymentController.struct_class = Types::DeploymentController
|
|
1415
1419
|
|
|
1420
|
+
DeploymentEarlySuccessCriteria.add_member(:enable, Shapes::ShapeRef.new(shape: Boolean, required: true, location_name: "enable"))
|
|
1421
|
+
DeploymentEarlySuccessCriteria.add_member(:healthy_percent, Shapes::ShapeRef.new(shape: HealthyPercentInteger, location_name: "healthyPercent"))
|
|
1422
|
+
DeploymentEarlySuccessCriteria.add_member(:source_service_revision_cleanup, Shapes::ShapeRef.new(shape: ServiceRevisionCleanup, location_name: "sourceServiceRevisionCleanup"))
|
|
1423
|
+
DeploymentEarlySuccessCriteria.struct_class = Types::DeploymentEarlySuccessCriteria
|
|
1424
|
+
|
|
1416
1425
|
DeploymentEphemeralStorage.add_member(:kms_key_id, Shapes::ShapeRef.new(shape: String, location_name: "kmsKeyId"))
|
|
1417
1426
|
DeploymentEphemeralStorage.struct_class = Types::DeploymentEphemeralStorage
|
|
1418
1427
|
|
data/lib/aws-sdk-ecs/types.rb
CHANGED
|
@@ -5984,6 +5984,14 @@ module Aws::ECS
|
|
|
5984
5984
|
# remaining traffic after a bake period.
|
|
5985
5985
|
# @return [Types::CanaryConfiguration]
|
|
5986
5986
|
#
|
|
5987
|
+
# @!attribute [rw] early_success_criteria
|
|
5988
|
+
# The early success criteria configuration for a rolling deployment.
|
|
5989
|
+
# With early success criteria, you can configure an Amazon ECS
|
|
5990
|
+
# deployment to complete faster. Amazon ECS declares a deployment
|
|
5991
|
+
# successful once a target percentage of tasks are healthy, instead of
|
|
5992
|
+
# waiting for the service to fully stabilize.
|
|
5993
|
+
# @return [Types::DeploymentEarlySuccessCriteria]
|
|
5994
|
+
#
|
|
5987
5995
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/DeploymentConfiguration AWS API Documentation
|
|
5988
5996
|
#
|
|
5989
5997
|
class DeploymentConfiguration < Struct.new(
|
|
@@ -5995,7 +6003,8 @@ module Aws::ECS
|
|
|
5995
6003
|
:bake_time_in_minutes,
|
|
5996
6004
|
:lifecycle_hooks,
|
|
5997
6005
|
:linear_configuration,
|
|
5998
|
-
:canary_configuration
|
|
6006
|
+
:canary_configuration,
|
|
6007
|
+
:early_success_criteria)
|
|
5999
6008
|
SENSITIVE = []
|
|
6000
6009
|
include Aws::Structure
|
|
6001
6010
|
end
|
|
@@ -6101,6 +6110,63 @@ module Aws::ECS
|
|
|
6101
6110
|
include Aws::Structure
|
|
6102
6111
|
end
|
|
6103
6112
|
|
|
6113
|
+
# <note markdown="1"> You can use early success criteria only with
|
|
6114
|
+
# rolling deployment
|
|
6115
|
+
# strategy.
|
|
6116
|
+
#
|
|
6117
|
+
# </note>
|
|
6118
|
+
#
|
|
6119
|
+
# The configuration that determines when a rolling update deployment is
|
|
6120
|
+
# considered successful. Early success criteria defines the percentage
|
|
6121
|
+
# of tasks that must be healthy before a deployment completes. It also
|
|
6122
|
+
# controls whether Amazon ECS must remove the previous tasks before a
|
|
6123
|
+
# deployment completes.
|
|
6124
|
+
#
|
|
6125
|
+
# @!attribute [rw] enable
|
|
6126
|
+
# Specifies whether to use the early success criteria for the service
|
|
6127
|
+
# deployment. When set to `false`, the deployment uses the default
|
|
6128
|
+
# behavior, where Amazon ECS considers the deployment successful when
|
|
6129
|
+
# the target service revision fully stabilizes and the previous tasks
|
|
6130
|
+
# are removed. The default value is `false`.
|
|
6131
|
+
#
|
|
6132
|
+
# When set to `true`, Amazon ECS monitors the deployment to meet early
|
|
6133
|
+
# success criteria. You must also specify `healthyPercent` and
|
|
6134
|
+
# `sourceServiceRevisionCleanup`.
|
|
6135
|
+
# @return [Boolean]
|
|
6136
|
+
#
|
|
6137
|
+
# @!attribute [rw] healthy_percent
|
|
6138
|
+
# The percentage of healthy tasks that the target service revision
|
|
6139
|
+
# must reach before Amazon ECS considers the deployment successful.
|
|
6140
|
+
# This percentage is relative to the service's `desiredCount` and
|
|
6141
|
+
# must be an integer between `0` and `100`. This value must be greater
|
|
6142
|
+
# than or equal to the `minimumHealthyPercent` value.
|
|
6143
|
+
#
|
|
6144
|
+
# After this percentage of tasks is healthy and the bake time elapses,
|
|
6145
|
+
# Amazon ECS completes the deployment. Amazon ECS continues to scale
|
|
6146
|
+
# the target service revision to 100 percent in the background.
|
|
6147
|
+
# @return [Integer]
|
|
6148
|
+
#
|
|
6149
|
+
# @!attribute [rw] source_service_revision_cleanup
|
|
6150
|
+
# The time when Amazon ECS removes the source revisions' tasks
|
|
6151
|
+
# relative to deployment completion. The valid values are:
|
|
6152
|
+
#
|
|
6153
|
+
# * `BLOCKING`—Amazon ECS removes the previous tasks before it marks
|
|
6154
|
+
# the deployment as successful.
|
|
6155
|
+
#
|
|
6156
|
+
# * `DEFERRED`—Amazon ECS marks the deployment successful, and then
|
|
6157
|
+
# removes the previous tasks in the background.
|
|
6158
|
+
# @return [String]
|
|
6159
|
+
#
|
|
6160
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/DeploymentEarlySuccessCriteria AWS API Documentation
|
|
6161
|
+
#
|
|
6162
|
+
class DeploymentEarlySuccessCriteria < Struct.new(
|
|
6163
|
+
:enable,
|
|
6164
|
+
:healthy_percent,
|
|
6165
|
+
:source_service_revision_cleanup)
|
|
6166
|
+
SENSITIVE = []
|
|
6167
|
+
include Aws::Structure
|
|
6168
|
+
end
|
|
6169
|
+
|
|
6104
6170
|
# The amount of ephemeral storage to allocate for the deployment.
|
|
6105
6171
|
#
|
|
6106
6172
|
# @!attribute [rw] kms_key_id
|
|
@@ -12240,10 +12306,11 @@ module Aws::ECS
|
|
|
12240
12306
|
# @return [Integer]
|
|
12241
12307
|
#
|
|
12242
12308
|
# @!attribute [rw] protocol
|
|
12243
|
-
# The protocol used for the port mapping. Valid values are
|
|
12244
|
-
# `udp
|
|
12245
|
-
#
|
|
12246
|
-
#
|
|
12309
|
+
# The protocol that's used for the port mapping. Valid values are
|
|
12310
|
+
# `tcp` and `udp` (case-sensitive). The default is `tcp`. Amazon ECS
|
|
12311
|
+
# treats any other specified value as `tcp`. `protocol` is immutable
|
|
12312
|
+
# in a Service Connect service. To update this field, you must delete
|
|
12313
|
+
# and redeploy the service.
|
|
12247
12314
|
# @return [String]
|
|
12248
12315
|
#
|
|
12249
12316
|
# @!attribute [rw] name
|
data/lib/aws-sdk-ecs.rb
CHANGED
data/sig/params.rbs
CHANGED
|
@@ -160,6 +160,11 @@ module Aws
|
|
|
160
160
|
canary_configuration: {
|
|
161
161
|
canary_percent: ::Float?,
|
|
162
162
|
canary_bake_time_in_minutes: ::Integer?
|
|
163
|
+
}?,
|
|
164
|
+
early_success_criteria: {
|
|
165
|
+
enable: bool,
|
|
166
|
+
healthy_percent: ::Integer?,
|
|
167
|
+
source_service_revision_cleanup: ("BLOCKING" | "DEFERRED")?
|
|
163
168
|
}?
|
|
164
169
|
}
|
|
165
170
|
|
data/sig/types.rbs
CHANGED
|
@@ -889,6 +889,7 @@ module Aws::ECS
|
|
|
889
889
|
attr_accessor lifecycle_hooks: ::Array[Types::DeploymentLifecycleHook]
|
|
890
890
|
attr_accessor linear_configuration: Types::LinearConfiguration
|
|
891
891
|
attr_accessor canary_configuration: Types::CanaryConfiguration
|
|
892
|
+
attr_accessor early_success_criteria: Types::DeploymentEarlySuccessCriteria
|
|
892
893
|
SENSITIVE: []
|
|
893
894
|
end
|
|
894
895
|
|
|
@@ -897,6 +898,13 @@ module Aws::ECS
|
|
|
897
898
|
SENSITIVE: []
|
|
898
899
|
end
|
|
899
900
|
|
|
901
|
+
class DeploymentEarlySuccessCriteria
|
|
902
|
+
attr_accessor enable: bool
|
|
903
|
+
attr_accessor healthy_percent: ::Integer
|
|
904
|
+
attr_accessor source_service_revision_cleanup: ("BLOCKING" | "DEFERRED")
|
|
905
|
+
SENSITIVE: []
|
|
906
|
+
end
|
|
907
|
+
|
|
900
908
|
class DeploymentEphemeralStorage
|
|
901
909
|
attr_accessor kms_key_id: ::String
|
|
902
910
|
SENSITIVE: []
|