aws-sdk-ecs 1.108.0 → 1.110.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 +13 -1
- 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/endpoint_provider.rb +35 -94
- 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: '099a61e6b90333ac05b74ade4af404d2af9ddfeafdeb4c61920dd3bbc776a553'
|
4
|
+
data.tar.gz: 6d587065c7c63a201f17be4323cfaaa41c94b4c8a4cf45ed8cf8c56ba28881e6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c783fd58a23fdccd6da398dbf30af9a78c8302784a3bf15af363ec7c26e380d375fe8c6fe33eae582a047ad7789aee118d21b6ff80c9537fee7f2e1ea66712fe
|
7
|
+
data.tar.gz: 785c6a884f7984b50eb7cb9d876e29f6c47d4ea3669b1d16ee62eb7022828a25067c8083f512c0b6a922f5d0f93b405c2adcd81758428397d690403d6866f500
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,18 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.110.0 (2023-01-18)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
8
|
+
|
9
|
+
* Issue - Replace runtime endpoint resolution approach with generated ruby code.
|
10
|
+
|
11
|
+
1.109.0 (2022-12-19)
|
12
|
+
------------------
|
13
|
+
|
14
|
+
* 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.
|
15
|
+
|
4
16
|
1.108.0 (2022-12-15)
|
5
17
|
------------------
|
6
18
|
|
@@ -622,4 +634,4 @@ Unreleased Changes
|
|
622
634
|
1.0.0.rc1 (2016-12-05)
|
623
635
|
------------------
|
624
636
|
|
625
|
-
* Feature - Initial preview release of the `aws-sdk-ecs` gem.
|
637
|
+
* Feature - Initial preview release of the `aws-sdk-ecs` gem.
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.110.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.110.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"))
|
@@ -9,102 +9,43 @@
|
|
9
9
|
|
10
10
|
module Aws::ECS
|
11
11
|
class EndpointProvider
|
12
|
-
def
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
12
|
+
def resolve_endpoint(parameters)
|
13
|
+
region = parameters.region
|
14
|
+
use_dual_stack = parameters.use_dual_stack
|
15
|
+
use_fips = parameters.use_fips
|
16
|
+
endpoint = parameters.endpoint
|
17
|
+
if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
|
18
|
+
if Aws::Endpoints::Matchers.set?(endpoint)
|
19
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
20
|
+
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
21
|
+
end
|
22
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
23
|
+
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
24
|
+
end
|
25
|
+
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
26
|
+
end
|
27
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
28
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
29
|
+
return Aws::Endpoints::Endpoint.new(url: "https://ecs-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
30
|
+
end
|
31
|
+
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
32
|
+
end
|
33
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
34
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
|
35
|
+
return Aws::Endpoints::Endpoint.new(url: "https://ecs-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
36
|
+
end
|
37
|
+
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
38
|
+
end
|
39
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
40
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
41
|
+
return Aws::Endpoints::Endpoint.new(url: "https://ecs.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
42
|
+
end
|
43
|
+
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
44
|
+
end
|
45
|
+
return Aws::Endpoints::Endpoint.new(url: "https://ecs.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
21
46
|
end
|
22
|
-
|
23
|
-
end
|
47
|
+
raise ArgumentError, 'No endpoint could be resolved'
|
24
48
|
|
25
|
-
def resolve_endpoint(parameters)
|
26
|
-
@provider.resolve_endpoint(parameters)
|
27
49
|
end
|
28
|
-
|
29
|
-
# @api private
|
30
|
-
RULES = <<-JSON
|
31
|
-
eyJ2ZXJzaW9uIjoiMS4wIiwicGFyYW1ldGVycyI6eyJSZWdpb24iOnsiYnVp
|
32
|
-
bHRJbiI6IkFXUzo6UmVnaW9uIiwicmVxdWlyZWQiOnRydWUsImRvY3VtZW50
|
33
|
-
YXRpb24iOiJUaGUgQVdTIHJlZ2lvbiB1c2VkIHRvIGRpc3BhdGNoIHRoZSBy
|
34
|
-
ZXF1ZXN0LiIsInR5cGUiOiJTdHJpbmcifSwiVXNlRHVhbFN0YWNrIjp7ImJ1
|
35
|
-
aWx0SW4iOiJBV1M6OlVzZUR1YWxTdGFjayIsInJlcXVpcmVkIjp0cnVlLCJk
|
36
|
-
ZWZhdWx0IjpmYWxzZSwiZG9jdW1lbnRhdGlvbiI6IldoZW4gdHJ1ZSwgdXNl
|
37
|
-
IHRoZSBkdWFsLXN0YWNrIGVuZHBvaW50LiBJZiB0aGUgY29uZmlndXJlZCBl
|
38
|
-
bmRwb2ludCBkb2VzIG5vdCBzdXBwb3J0IGR1YWwtc3RhY2ssIGRpc3BhdGNo
|
39
|
-
aW5nIHRoZSByZXF1ZXN0IE1BWSByZXR1cm4gYW4gZXJyb3I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WQgYnV0IHRoaXMgcGFydGl0aW9u
|
102
|
-
IGRvZXMgbm90IHN1cHBvcnQgRHVhbFN0YWNrIiwidHlwZSI6ImVycm9yIn1d
|
103
|
-
fSx7ImNvbmRpdGlvbnMiOltdLCJlbmRwb2ludCI6eyJ1cmwiOiJodHRwczov
|
104
|
-
L2Vjcy57UmVnaW9ufS57UGFydGl0aW9uUmVzdWx0I2Ruc1N1ZmZpeH0iLCJw
|
105
|
-
cm9wZXJ0aWVzIjp7fSwiaGVhZGVycyI6e319LCJ0eXBlIjoiZW5kcG9pbnQi
|
106
|
-
fV19XX0=
|
107
|
-
|
108
|
-
JSON
|
109
50
|
end
|
110
51
|
end
|
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.110.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:
|
11
|
+
date: 2023-01-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|