aws-sdk-ecs 1.108.0 → 1.109.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 +27 -1
- data/lib/aws-sdk-ecs/client_api.rb +7 -0
- data/lib/aws-sdk-ecs/types.rb +54 -4
- 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: 163b110e37c4dab9b6acf81d6742cf7258dbd310868165d2f70e323c700d0871
|
4
|
+
data.tar.gz: 73ddb1cfbb7ef0d4a3e0ca90b8e4ae9cc72f2c4b0d8738c2a746395e4c978d2f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ee9656c62219ca5d256604287a6f14130e8f38781d948cd2b7ebc991a7dbac19f89b6ca715619201898d8456978ed422208201aa18c6a14f49bd79b2b5aa33e7
|
7
|
+
data.tar.gz: 30c5e5cabb04a8d534826b958106b203b44156261784f1705b804a38f43d80b6c973d19e925c2d33b812e18603a1a323bd6c7e6d14e3e17a919620003197c7fb
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.109.0 (2022-12-19)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - This release adds support for alarm-based rollbacks in ECS, a new feature that allows customers to add automated safeguards for Amazon ECS service rolling updates.
|
8
|
+
|
4
9
|
1.108.0 (2022-12-15)
|
5
10
|
------------------
|
6
11
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.109.0
|
data/lib/aws-sdk-ecs/client.rb
CHANGED
@@ -1324,6 +1324,11 @@ module Aws::ECS
|
|
1324
1324
|
# },
|
1325
1325
|
# maximum_percent: 1,
|
1326
1326
|
# minimum_healthy_percent: 1,
|
1327
|
+
# alarms: {
|
1328
|
+
# alarm_names: ["String"], # required
|
1329
|
+
# enable: false, # required
|
1330
|
+
# rollback: false, # required
|
1331
|
+
# },
|
1327
1332
|
# },
|
1328
1333
|
# placement_constraints: [
|
1329
1334
|
# {
|
@@ -1420,6 +1425,10 @@ module Aws::ECS
|
|
1420
1425
|
# resp.service.deployment_configuration.deployment_circuit_breaker.rollback #=> Boolean
|
1421
1426
|
# resp.service.deployment_configuration.maximum_percent #=> Integer
|
1422
1427
|
# resp.service.deployment_configuration.minimum_healthy_percent #=> Integer
|
1428
|
+
# resp.service.deployment_configuration.alarms.alarm_names #=> Array
|
1429
|
+
# resp.service.deployment_configuration.alarms.alarm_names[0] #=> String
|
1430
|
+
# resp.service.deployment_configuration.alarms.enable #=> Boolean
|
1431
|
+
# resp.service.deployment_configuration.alarms.rollback #=> Boolean
|
1423
1432
|
# resp.service.task_sets #=> Array
|
1424
1433
|
# resp.service.task_sets[0].id #=> String
|
1425
1434
|
# resp.service.task_sets[0].task_set_arn #=> String
|
@@ -2162,6 +2171,10 @@ module Aws::ECS
|
|
2162
2171
|
# resp.service.deployment_configuration.deployment_circuit_breaker.rollback #=> Boolean
|
2163
2172
|
# resp.service.deployment_configuration.maximum_percent #=> Integer
|
2164
2173
|
# resp.service.deployment_configuration.minimum_healthy_percent #=> Integer
|
2174
|
+
# resp.service.deployment_configuration.alarms.alarm_names #=> Array
|
2175
|
+
# resp.service.deployment_configuration.alarms.alarm_names[0] #=> String
|
2176
|
+
# resp.service.deployment_configuration.alarms.enable #=> Boolean
|
2177
|
+
# resp.service.deployment_configuration.alarms.rollback #=> Boolean
|
2165
2178
|
# resp.service.task_sets #=> Array
|
2166
2179
|
# resp.service.task_sets[0].id #=> String
|
2167
2180
|
# resp.service.task_sets[0].task_set_arn #=> String
|
@@ -3237,6 +3250,10 @@ module Aws::ECS
|
|
3237
3250
|
# resp.services[0].deployment_configuration.deployment_circuit_breaker.rollback #=> Boolean
|
3238
3251
|
# resp.services[0].deployment_configuration.maximum_percent #=> Integer
|
3239
3252
|
# resp.services[0].deployment_configuration.minimum_healthy_percent #=> Integer
|
3253
|
+
# resp.services[0].deployment_configuration.alarms.alarm_names #=> Array
|
3254
|
+
# resp.services[0].deployment_configuration.alarms.alarm_names[0] #=> String
|
3255
|
+
# resp.services[0].deployment_configuration.alarms.enable #=> Boolean
|
3256
|
+
# resp.services[0].deployment_configuration.alarms.rollback #=> Boolean
|
3240
3257
|
# resp.services[0].task_sets #=> Array
|
3241
3258
|
# resp.services[0].task_sets[0].id #=> String
|
3242
3259
|
# resp.services[0].task_sets[0].task_set_arn #=> String
|
@@ -8778,6 +8795,11 @@ module Aws::ECS
|
|
8778
8795
|
# },
|
8779
8796
|
# maximum_percent: 1,
|
8780
8797
|
# minimum_healthy_percent: 1,
|
8798
|
+
# alarms: {
|
8799
|
+
# alarm_names: ["String"], # required
|
8800
|
+
# enable: false, # required
|
8801
|
+
# rollback: false, # required
|
8802
|
+
# },
|
8781
8803
|
# },
|
8782
8804
|
# network_configuration: {
|
8783
8805
|
# awsvpc_configuration: {
|
@@ -8882,6 +8904,10 @@ module Aws::ECS
|
|
8882
8904
|
# resp.service.deployment_configuration.deployment_circuit_breaker.rollback #=> Boolean
|
8883
8905
|
# resp.service.deployment_configuration.maximum_percent #=> Integer
|
8884
8906
|
# resp.service.deployment_configuration.minimum_healthy_percent #=> Integer
|
8907
|
+
# resp.service.deployment_configuration.alarms.alarm_names #=> Array
|
8908
|
+
# resp.service.deployment_configuration.alarms.alarm_names[0] #=> String
|
8909
|
+
# resp.service.deployment_configuration.alarms.enable #=> Boolean
|
8910
|
+
# resp.service.deployment_configuration.alarms.rollback #=> Boolean
|
8885
8911
|
# resp.service.task_sets #=> Array
|
8886
8912
|
# resp.service.task_sets[0].id #=> String
|
8887
8913
|
# resp.service.task_sets[0].task_set_arn #=> String
|
@@ -9373,7 +9399,7 @@ module Aws::ECS
|
|
9373
9399
|
params: params,
|
9374
9400
|
config: config)
|
9375
9401
|
context[:gem_name] = 'aws-sdk-ecs'
|
9376
|
-
context[:gem_version] = '1.
|
9402
|
+
context[:gem_version] = '1.109.0'
|
9377
9403
|
Seahorse::Client::Request.new(handlers, context)
|
9378
9404
|
end
|
9379
9405
|
|
@@ -99,6 +99,7 @@ module Aws::ECS
|
|
99
99
|
DeleteTaskSetRequest = Shapes::StructureShape.new(name: 'DeleteTaskSetRequest')
|
100
100
|
DeleteTaskSetResponse = Shapes::StructureShape.new(name: 'DeleteTaskSetResponse')
|
101
101
|
Deployment = Shapes::StructureShape.new(name: 'Deployment')
|
102
|
+
DeploymentAlarms = Shapes::StructureShape.new(name: 'DeploymentAlarms')
|
102
103
|
DeploymentCircuitBreaker = Shapes::StructureShape.new(name: 'DeploymentCircuitBreaker')
|
103
104
|
DeploymentConfiguration = Shapes::StructureShape.new(name: 'DeploymentConfiguration')
|
104
105
|
DeploymentController = Shapes::StructureShape.new(name: 'DeploymentController')
|
@@ -747,6 +748,11 @@ module Aws::ECS
|
|
747
748
|
Deployment.add_member(:service_connect_resources, Shapes::ShapeRef.new(shape: ServiceConnectServiceResourceList, location_name: "serviceConnectResources"))
|
748
749
|
Deployment.struct_class = Types::Deployment
|
749
750
|
|
751
|
+
DeploymentAlarms.add_member(:alarm_names, Shapes::ShapeRef.new(shape: StringList, required: true, location_name: "alarmNames"))
|
752
|
+
DeploymentAlarms.add_member(:enable, Shapes::ShapeRef.new(shape: Boolean, required: true, location_name: "enable"))
|
753
|
+
DeploymentAlarms.add_member(:rollback, Shapes::ShapeRef.new(shape: Boolean, required: true, location_name: "rollback"))
|
754
|
+
DeploymentAlarms.struct_class = Types::DeploymentAlarms
|
755
|
+
|
750
756
|
DeploymentCircuitBreaker.add_member(:enable, Shapes::ShapeRef.new(shape: Boolean, required: true, location_name: "enable"))
|
751
757
|
DeploymentCircuitBreaker.add_member(:rollback, Shapes::ShapeRef.new(shape: Boolean, required: true, location_name: "rollback"))
|
752
758
|
DeploymentCircuitBreaker.struct_class = Types::DeploymentCircuitBreaker
|
@@ -754,6 +760,7 @@ module Aws::ECS
|
|
754
760
|
DeploymentConfiguration.add_member(:deployment_circuit_breaker, Shapes::ShapeRef.new(shape: DeploymentCircuitBreaker, location_name: "deploymentCircuitBreaker"))
|
755
761
|
DeploymentConfiguration.add_member(:maximum_percent, Shapes::ShapeRef.new(shape: BoxedInteger, location_name: "maximumPercent"))
|
756
762
|
DeploymentConfiguration.add_member(:minimum_healthy_percent, Shapes::ShapeRef.new(shape: BoxedInteger, location_name: "minimumHealthyPercent"))
|
763
|
+
DeploymentConfiguration.add_member(:alarms, Shapes::ShapeRef.new(shape: DeploymentAlarms, location_name: "alarms"))
|
757
764
|
DeploymentConfiguration.struct_class = Types::DeploymentConfiguration
|
758
765
|
|
759
766
|
DeploymentController.add_member(:type, Shapes::ShapeRef.new(shape: DeploymentControllerType, required: true, location_name: "type"))
|
data/lib/aws-sdk-ecs/types.rb
CHANGED
@@ -3453,6 +3453,51 @@ module Aws::ECS
|
|
3453
3453
|
include Aws::Structure
|
3454
3454
|
end
|
3455
3455
|
|
3456
|
+
# One of the methods which provide a way for you to quickly identify
|
3457
|
+
# when a deployment has failed, and then to optionally roll back the
|
3458
|
+
# failure to the last working deployment.
|
3459
|
+
#
|
3460
|
+
# When the alarms are generated, Amazon ECS sets the service deployment
|
3461
|
+
# to failed. Set the rollback parameter to have Amazon ECS to roll back
|
3462
|
+
# your service to the last completed deployment after a failure.
|
3463
|
+
#
|
3464
|
+
# You can only use the `DeploymentAlarms` method to detect failures when
|
3465
|
+
# the `DeploymentController` is set to `ECS` (rolling update).
|
3466
|
+
#
|
3467
|
+
# For more information, see [Rolling update][1] in the <i> <i>Amazon
|
3468
|
+
# Elastic Container Service Developer Guide</i> </i>.
|
3469
|
+
#
|
3470
|
+
#
|
3471
|
+
#
|
3472
|
+
# [1]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/deployment-type-ecs.html
|
3473
|
+
#
|
3474
|
+
# @!attribute [rw] alarm_names
|
3475
|
+
# One or more CloudWatch alarm names. Use a "," to separate the
|
3476
|
+
# alarms.
|
3477
|
+
# @return [Array<String>]
|
3478
|
+
#
|
3479
|
+
# @!attribute [rw] enable
|
3480
|
+
# Determines whether to use the CloudWatch alarm option in the service
|
3481
|
+
# deployment process.
|
3482
|
+
# @return [Boolean]
|
3483
|
+
#
|
3484
|
+
# @!attribute [rw] rollback
|
3485
|
+
# Determines whether to configure Amazon ECS to roll back the service
|
3486
|
+
# if a service deployment fails. If rollback is used, when a service
|
3487
|
+
# deployment fails, the service is rolled back to the last deployment
|
3488
|
+
# that completed successfully.
|
3489
|
+
# @return [Boolean]
|
3490
|
+
#
|
3491
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/DeploymentAlarms AWS API Documentation
|
3492
|
+
#
|
3493
|
+
class DeploymentAlarms < Struct.new(
|
3494
|
+
:alarm_names,
|
3495
|
+
:enable,
|
3496
|
+
:rollback)
|
3497
|
+
SENSITIVE = []
|
3498
|
+
include Aws::Structure
|
3499
|
+
end
|
3500
|
+
|
3456
3501
|
# <note markdown="1"> The deployment circuit breaker can only be used for services using the
|
3457
3502
|
# rolling update (`ECS`) deployment type that aren't behind a Classic
|
3458
3503
|
# Load Balancer.
|
@@ -3478,9 +3523,9 @@ module Aws::ECS
|
|
3478
3523
|
#
|
3479
3524
|
# @!attribute [rw] rollback
|
3480
3525
|
# Determines whether to configure Amazon ECS to roll back the service
|
3481
|
-
# if a service deployment fails. If rollback is
|
3482
|
-
#
|
3483
|
-
#
|
3526
|
+
# if a service deployment fails. If rollback is on, when a service
|
3527
|
+
# deployment fails, the service is rolled back to the last deployment
|
3528
|
+
# that completed successfully.
|
3484
3529
|
# @return [Boolean]
|
3485
3530
|
#
|
3486
3531
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/DeploymentCircuitBreaker AWS API Documentation
|
@@ -3590,12 +3635,17 @@ module Aws::ECS
|
|
3590
3635
|
# when describing your service.
|
3591
3636
|
# @return [Integer]
|
3592
3637
|
#
|
3638
|
+
# @!attribute [rw] alarms
|
3639
|
+
# Information about the CloudWatch alarms.
|
3640
|
+
# @return [Types::DeploymentAlarms]
|
3641
|
+
#
|
3593
3642
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/DeploymentConfiguration AWS API Documentation
|
3594
3643
|
#
|
3595
3644
|
class DeploymentConfiguration < Struct.new(
|
3596
3645
|
:deployment_circuit_breaker,
|
3597
3646
|
:maximum_percent,
|
3598
|
-
:minimum_healthy_percent
|
3647
|
+
:minimum_healthy_percent,
|
3648
|
+
:alarms)
|
3599
3649
|
SENSITIVE = []
|
3600
3650
|
include Aws::Structure
|
3601
3651
|
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.109.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: 2022-12-
|
11
|
+
date: 2022-12-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|