aws-sdk-ecs 1.238.0 → 1.239.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7cb318724f73d1a7e40ec775154e7c7c35bdccc5d575c2eeb4b0845f9facb89e
4
- data.tar.gz: 874349088dc3c7e751b772ed04e8e7d8090e425fadc927f18b3e0f8621ae3be4
3
+ metadata.gz: aae803f2c6b8d956b64b5b1b4155a1c78b4aa8c4e826575c618eb81b1921359c
4
+ data.tar.gz: 75af27be15564316af3d62a11fb8606d06551b8a0b88ea8f20c247c0e950b0b7
5
5
  SHA512:
6
- metadata.gz: 3de3597aca2dfceaf276de4f0c0033dcba479dc3aa0fc143e292714a0eedbe2cb1b76c2822514b94bcb3d6e425ac32c95d6ea15f1e0d39a6b2c43cdf6d2759b5
7
- data.tar.gz: b3042dd2689112a0043568fc4a913c019f29840b7f31cfd12e26a6888e95401f29bb78c60ac53c73200d78e90efbe38fdd87ce022a546b376296b0eda5f5ca71
6
+ metadata.gz: e2452fda81f4cf9b148b10c72ed06be12e9314b9d1f0781fc64a58dc1a69a2e1b7cc773c3b4dd04a6e26bdee3677ffa8bf37be4fc49b39a30c17c4d29bc7936c
7
+ data.tar.gz: 945abfa550a5dc6a2721bf90eba53950563ed02f8e4f2070ab25f7c97b6a00ac8b8ef7bdfb59a9802d114202f8a0b616f6a2bf4f66b0de711d992feeb57e0c6a
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.239.0 (2026-06-29)
5
+ ------------------
6
+
7
+ * Feature - Amazon ECS now supports customizable deployment circuit breaker configurations. Customers can now define the failure threshold or control the failure counting mechanism.
8
+
4
9
  1.238.0 (2026-06-18)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.238.0
1
+ 1.239.0
@@ -2460,6 +2460,11 @@ module Aws::ECS
2460
2460
  # deployment_circuit_breaker: {
2461
2461
  # enable: false, # required
2462
2462
  # rollback: false, # required
2463
+ # reset_on_healthy_task: false,
2464
+ # threshold_configuration: {
2465
+ # type: "COUNT", # required, accepts COUNT, BOUNDED_PERCENT, UNBOUNDED_PERCENT
2466
+ # value: 1, # required
2467
+ # },
2463
2468
  # },
2464
2469
  # maximum_percent: 1,
2465
2470
  # minimum_healthy_percent: 1,
@@ -2657,6 +2662,9 @@ module Aws::ECS
2657
2662
  # resp.service.task_definition #=> String
2658
2663
  # resp.service.deployment_configuration.deployment_circuit_breaker.enable #=> Boolean
2659
2664
  # resp.service.deployment_configuration.deployment_circuit_breaker.rollback #=> Boolean
2665
+ # resp.service.deployment_configuration.deployment_circuit_breaker.reset_on_healthy_task #=> Boolean
2666
+ # resp.service.deployment_configuration.deployment_circuit_breaker.threshold_configuration.type #=> String, one of "COUNT", "BOUNDED_PERCENT", "UNBOUNDED_PERCENT"
2667
+ # resp.service.deployment_configuration.deployment_circuit_breaker.threshold_configuration.value #=> Integer
2660
2668
  # resp.service.deployment_configuration.maximum_percent #=> Integer
2661
2669
  # resp.service.deployment_configuration.minimum_healthy_percent #=> Integer
2662
2670
  # resp.service.deployment_configuration.alarms.alarm_names #=> Array
@@ -3896,6 +3904,9 @@ module Aws::ECS
3896
3904
  # resp.service.task_definition #=> String
3897
3905
  # resp.service.deployment_configuration.deployment_circuit_breaker.enable #=> Boolean
3898
3906
  # resp.service.deployment_configuration.deployment_circuit_breaker.rollback #=> Boolean
3907
+ # resp.service.deployment_configuration.deployment_circuit_breaker.reset_on_healthy_task #=> Boolean
3908
+ # resp.service.deployment_configuration.deployment_circuit_breaker.threshold_configuration.type #=> String, one of "COUNT", "BOUNDED_PERCENT", "UNBOUNDED_PERCENT"
3909
+ # resp.service.deployment_configuration.deployment_circuit_breaker.threshold_configuration.value #=> Integer
3899
3910
  # resp.service.deployment_configuration.maximum_percent #=> Integer
3900
3911
  # resp.service.deployment_configuration.minimum_healthy_percent #=> Integer
3901
3912
  # resp.service.deployment_configuration.alarms.alarm_names #=> Array
@@ -6112,8 +6123,13 @@ module Aws::ECS
6112
6123
  # cluster_arn: "arn:aws:ecs:us-west-2:123456789012:cluster/example",
6113
6124
  # deployment_configuration: {
6114
6125
  # deployment_circuit_breaker: {
6115
- # enable: false,
6116
- # rollback: false,
6126
+ # enable: true,
6127
+ # reset_on_healthy_task: true,
6128
+ # rollback: true,
6129
+ # threshold_configuration: {
6130
+ # type: "BOUNDED_PERCENT",
6131
+ # value: 50,
6132
+ # },
6117
6133
  # },
6118
6134
  # maximum_percent: 200,
6119
6135
  # minimum_healthy_percent: 100,
@@ -6153,8 +6169,13 @@ module Aws::ECS
6153
6169
  # cluster_arn: "arn:aws:ecs:us-east-1:123456789012:cluster/MyCluster",
6154
6170
  # deployment_configuration: {
6155
6171
  # deployment_circuit_breaker: {
6156
- # enable: false,
6157
- # rollback: false,
6172
+ # enable: true,
6173
+ # reset_on_healthy_task: true,
6174
+ # rollback: true,
6175
+ # threshold_configuration: {
6176
+ # type: "BOUNDED_PERCENT",
6177
+ # value: 50,
6178
+ # },
6158
6179
  # },
6159
6180
  # lifecycle_hooks: [
6160
6181
  # {
@@ -6238,6 +6259,9 @@ module Aws::ECS
6238
6259
  # resp.service_deployments[0].lifecycle_hook_details[0].timeout_action #=> String, one of "ROLLBACK", "CONTINUE"
6239
6260
  # resp.service_deployments[0].deployment_configuration.deployment_circuit_breaker.enable #=> Boolean
6240
6261
  # resp.service_deployments[0].deployment_configuration.deployment_circuit_breaker.rollback #=> Boolean
6262
+ # resp.service_deployments[0].deployment_configuration.deployment_circuit_breaker.reset_on_healthy_task #=> Boolean
6263
+ # resp.service_deployments[0].deployment_configuration.deployment_circuit_breaker.threshold_configuration.type #=> String, one of "COUNT", "BOUNDED_PERCENT", "UNBOUNDED_PERCENT"
6264
+ # resp.service_deployments[0].deployment_configuration.deployment_circuit_breaker.threshold_configuration.value #=> Integer
6241
6265
  # resp.service_deployments[0].deployment_configuration.maximum_percent #=> Integer
6242
6266
  # resp.service_deployments[0].deployment_configuration.minimum_healthy_percent #=> Integer
6243
6267
  # resp.service_deployments[0].deployment_configuration.alarms.alarm_names #=> Array
@@ -6758,6 +6782,9 @@ module Aws::ECS
6758
6782
  # resp.services[0].task_definition #=> String
6759
6783
  # resp.services[0].deployment_configuration.deployment_circuit_breaker.enable #=> Boolean
6760
6784
  # resp.services[0].deployment_configuration.deployment_circuit_breaker.rollback #=> Boolean
6785
+ # resp.services[0].deployment_configuration.deployment_circuit_breaker.reset_on_healthy_task #=> Boolean
6786
+ # resp.services[0].deployment_configuration.deployment_circuit_breaker.threshold_configuration.type #=> String, one of "COUNT", "BOUNDED_PERCENT", "UNBOUNDED_PERCENT"
6787
+ # resp.services[0].deployment_configuration.deployment_circuit_breaker.threshold_configuration.value #=> Integer
6761
6788
  # resp.services[0].deployment_configuration.maximum_percent #=> Integer
6762
6789
  # resp.services[0].deployment_configuration.minimum_healthy_percent #=> Integer
6763
6790
  # resp.services[0].deployment_configuration.alarms.alarm_names #=> Array
@@ -14648,7 +14675,8 @@ module Aws::ECS
14648
14675
  # task definition must also have `FARGATE` compatibility.
14649
14676
  #
14650
14677
  # If you provide a task definition ARN, you cannot also specify
14651
- # `primaryContainer`, `taskRoleArn`, `cpu`, or `memory`.
14678
+ # `primaryContainer`, `executionRoleArn`, `taskRoleArn`, `cpu`, or
14679
+ # `memory`.
14652
14680
  #
14653
14681
  # @return [Types::UpdateExpressGatewayServiceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
14654
14682
  #
@@ -15324,6 +15352,11 @@ module Aws::ECS
15324
15352
  # deployment_circuit_breaker: {
15325
15353
  # enable: false, # required
15326
15354
  # rollback: false, # required
15355
+ # reset_on_healthy_task: false,
15356
+ # threshold_configuration: {
15357
+ # type: "COUNT", # required, accepts COUNT, BOUNDED_PERCENT, UNBOUNDED_PERCENT
15358
+ # value: 1, # required
15359
+ # },
15327
15360
  # },
15328
15361
  # maximum_percent: 1,
15329
15362
  # minimum_healthy_percent: 1,
@@ -15539,6 +15572,9 @@ module Aws::ECS
15539
15572
  # resp.service.task_definition #=> String
15540
15573
  # resp.service.deployment_configuration.deployment_circuit_breaker.enable #=> Boolean
15541
15574
  # resp.service.deployment_configuration.deployment_circuit_breaker.rollback #=> Boolean
15575
+ # resp.service.deployment_configuration.deployment_circuit_breaker.reset_on_healthy_task #=> Boolean
15576
+ # resp.service.deployment_configuration.deployment_circuit_breaker.threshold_configuration.type #=> String, one of "COUNT", "BOUNDED_PERCENT", "UNBOUNDED_PERCENT"
15577
+ # resp.service.deployment_configuration.deployment_circuit_breaker.threshold_configuration.value #=> Integer
15542
15578
  # resp.service.deployment_configuration.maximum_percent #=> Integer
15543
15579
  # resp.service.deployment_configuration.minimum_healthy_percent #=> Integer
15544
15580
  # resp.service.deployment_configuration.alarms.alarm_names #=> Array
@@ -16210,7 +16246,7 @@ module Aws::ECS
16210
16246
  tracer: tracer
16211
16247
  )
16212
16248
  context[:gem_name] = 'aws-sdk-ecs'
16213
- context[:gem_version] = '1.238.0'
16249
+ context[:gem_version] = '1.239.0'
16214
16250
  Seahorse::Client::Request.new(handlers, context)
16215
16251
  end
16216
16252
 
@@ -603,6 +603,8 @@ module Aws::ECS
603
603
  TaskVolumeConfigurations = Shapes::ListShape.new(name: 'TaskVolumeConfigurations')
604
604
  TaskVolumeStorageGiB = Shapes::IntegerShape.new(name: 'TaskVolumeStorageGiB')
605
605
  Tasks = Shapes::ListShape.new(name: 'Tasks')
606
+ ThresholdConfiguration = Shapes::StructureShape.new(name: 'ThresholdConfiguration')
607
+ ThresholdType = Shapes::StringShape.new(name: 'ThresholdType')
606
608
  TimeoutConfiguration = Shapes::StructureShape.new(name: 'TimeoutConfiguration')
607
609
  Timestamp = Shapes::TimestampShape.new(name: 'Timestamp')
608
610
  Tmpfs = Shapes::StructureShape.new(name: 'Tmpfs')
@@ -1391,6 +1393,8 @@ module Aws::ECS
1391
1393
 
1392
1394
  DeploymentCircuitBreaker.add_member(:enable, Shapes::ShapeRef.new(shape: Boolean, required: true, location_name: "enable"))
1393
1395
  DeploymentCircuitBreaker.add_member(:rollback, Shapes::ShapeRef.new(shape: Boolean, required: true, location_name: "rollback"))
1396
+ DeploymentCircuitBreaker.add_member(:reset_on_healthy_task, Shapes::ShapeRef.new(shape: BoxedBoolean, location_name: "resetOnHealthyTask"))
1397
+ DeploymentCircuitBreaker.add_member(:threshold_configuration, Shapes::ShapeRef.new(shape: ThresholdConfiguration, location_name: "thresholdConfiguration"))
1394
1398
  DeploymentCircuitBreaker.struct_class = Types::DeploymentCircuitBreaker
1395
1399
 
1396
1400
  DeploymentConfiguration.add_member(:deployment_circuit_breaker, Shapes::ShapeRef.new(shape: DeploymentCircuitBreaker, location_name: "deploymentCircuitBreaker"))
@@ -2969,6 +2973,10 @@ module Aws::ECS
2969
2973
 
2970
2974
  Tasks.member = Shapes::ShapeRef.new(shape: Task)
2971
2975
 
2976
+ ThresholdConfiguration.add_member(:type, Shapes::ShapeRef.new(shape: ThresholdType, required: true, location_name: "type"))
2977
+ ThresholdConfiguration.add_member(:value, Shapes::ShapeRef.new(shape: Integer, required: true, location_name: "value"))
2978
+ ThresholdConfiguration.struct_class = Types::ThresholdConfiguration
2979
+
2972
2980
  TimeoutConfiguration.add_member(:idle_timeout_seconds, Shapes::ShapeRef.new(shape: Duration, location_name: "idleTimeoutSeconds"))
2973
2981
  TimeoutConfiguration.add_member(:per_request_timeout_seconds, Shapes::ShapeRef.new(shape: Duration, location_name: "perRequestTimeoutSeconds"))
2974
2982
  TimeoutConfiguration.struct_class = Types::TimeoutConfiguration
@@ -5739,11 +5739,30 @@ module Aws::ECS
5739
5739
  # that completed successfully.
5740
5740
  # @return [Boolean]
5741
5741
  #
5742
+ # @!attribute [rw] reset_on_healthy_task
5743
+ # Determines whether the deployment circuit breaker resets its failure
5744
+ # count when a task reaches a healthy state. When set to `true`, a
5745
+ # healthy task resets the failure count to `0`; when `false`, it
5746
+ # doesn't.
5747
+ # @return [Boolean]
5748
+ #
5749
+ # @!attribute [rw] threshold_configuration
5750
+ # The threshold configuration that controls when the deployment
5751
+ # circuit breaker triggers. For more information, see
5752
+ # [ThresholdConfiguration][1].
5753
+ #
5754
+ #
5755
+ #
5756
+ # [1]: https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_ThresholdConfiguration.html
5757
+ # @return [Types::ThresholdConfiguration]
5758
+ #
5742
5759
  # @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/DeploymentCircuitBreaker AWS API Documentation
5743
5760
  #
5744
5761
  class DeploymentCircuitBreaker < Struct.new(
5745
5762
  :enable,
5746
- :rollback)
5763
+ :rollback,
5764
+ :reset_on_healthy_task,
5765
+ :threshold_configuration)
5747
5766
  SENSITIVE = []
5748
5767
  include Aws::Structure
5749
5768
  end
@@ -18174,6 +18193,39 @@ module Aws::ECS
18174
18193
  include Aws::Structure
18175
18194
  end
18176
18195
 
18196
+ # Defines the failure threshold that the deployment circuit breaker uses
18197
+ # to monitor a deployment. The `type` and `value` together determine the
18198
+ # number of task failures that are tolerated before the circuit breaker
18199
+ # triggers.
18200
+ #
18201
+ # By default, the threshold configuration uses a `type` of
18202
+ # `BOUNDED_PERCENT` with a `value` of `50`.
18203
+ #
18204
+ # @!attribute [rw] type
18205
+ # Determines how `value` is used to calculate the failure threshold.
18206
+ # For the percentage types (`BOUNDED_PERCENT` and
18207
+ # `UNBOUNDED_PERCENT`), `value` is multiplied by the latest service
18208
+ # desired count; for `COUNT`, `value` is used directly. The default is
18209
+ # `BOUNDED_PERCENT`.
18210
+ # @return [String]
18211
+ #
18212
+ # @!attribute [rw] value
18213
+ # The integer used to calculate the failure threshold. When `type` is
18214
+ # `COUNT`, this is the failure threshold itself. When `type` is a
18215
+ # percentage type, this is the percentage that Amazon ECS multiplies
18216
+ # by the latest service desired count to calculate the failure
18217
+ # threshold.
18218
+ # @return [Integer]
18219
+ #
18220
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/ThresholdConfiguration AWS API Documentation
18221
+ #
18222
+ class ThresholdConfiguration < Struct.new(
18223
+ :type,
18224
+ :value)
18225
+ SENSITIVE = []
18226
+ include Aws::Structure
18227
+ end
18228
+
18177
18229
  # An object that represents the timeout configurations for Service
18178
18230
  # Connect.
18179
18231
  #
@@ -18727,7 +18779,8 @@ module Aws::ECS
18727
18779
  # task definition must also have `FARGATE` compatibility.
18728
18780
  #
18729
18781
  # If you provide a task definition ARN, you cannot also specify
18730
- # `primaryContainer`, `taskRoleArn`, `cpu`, or `memory`.
18782
+ # `primaryContainer`, `executionRoleArn`, `taskRoleArn`, `cpu`, or
18783
+ # `memory`.
18731
18784
  # @return [String]
18732
18785
  #
18733
18786
  # @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/UpdateExpressGatewayServiceRequest AWS API Documentation
data/lib/aws-sdk-ecs.rb CHANGED
@@ -55,7 +55,7 @@ module Aws::ECS
55
55
  autoload :EndpointProvider, 'aws-sdk-ecs/endpoint_provider'
56
56
  autoload :Endpoints, 'aws-sdk-ecs/endpoints'
57
57
 
58
- GEM_VERSION = '1.238.0'
58
+ GEM_VERSION = '1.239.0'
59
59
 
60
60
  end
61
61
 
data/sig/params.rbs CHANGED
@@ -129,11 +129,18 @@ module Aws
129
129
  }?
130
130
  }
131
131
 
132
+ type deployment_circuit_breaker = {
133
+ enable: bool,
134
+ rollback: bool,
135
+ reset_on_healthy_task: bool?,
136
+ threshold_configuration: {
137
+ type: ("COUNT" | "BOUNDED_PERCENT" | "UNBOUNDED_PERCENT"),
138
+ value: ::Integer
139
+ }?
140
+ }
141
+
132
142
  type deployment_configuration = {
133
- deployment_circuit_breaker: {
134
- enable: bool,
135
- rollback: bool
136
- }?,
143
+ deployment_circuit_breaker: Params::deployment_circuit_breaker?,
137
144
  maximum_percent: ::Integer?,
138
145
  minimum_healthy_percent: ::Integer?,
139
146
  alarms: {
data/sig/types.rbs CHANGED
@@ -874,6 +874,8 @@ module Aws::ECS
874
874
  class DeploymentCircuitBreaker
875
875
  attr_accessor enable: bool
876
876
  attr_accessor rollback: bool
877
+ attr_accessor reset_on_healthy_task: bool
878
+ attr_accessor threshold_configuration: Types::ThresholdConfiguration
877
879
  SENSITIVE: []
878
880
  end
879
881
 
@@ -2762,6 +2764,12 @@ module Aws::ECS
2762
2764
  SENSITIVE: []
2763
2765
  end
2764
2766
 
2767
+ class ThresholdConfiguration
2768
+ attr_accessor type: ("COUNT" | "BOUNDED_PERCENT" | "UNBOUNDED_PERCENT")
2769
+ attr_accessor value: ::Integer
2770
+ SENSITIVE: []
2771
+ end
2772
+
2765
2773
  class TimeoutConfiguration
2766
2774
  attr_accessor idle_timeout_seconds: ::Integer
2767
2775
  attr_accessor per_request_timeout_seconds: ::Integer
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-ecs
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.238.0
4
+ version: 1.239.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services