aws-sdk-ecs 1.71.0 → 1.72.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: ef38ae17e19da6bf7565c0920bc6e8a77b3ecd926e4ab2781003198c426e7777
4
- data.tar.gz: 633aef4c48871e2db0c2b51b21072078b65d17c5f17cede9acd4a119a33eab00
3
+ metadata.gz: 0c76b86dd5a8de56d22b04dc78e36c493b0d6da99e70f1f9164ab6c0ab121f71
4
+ data.tar.gz: d6ed2538d1c7db997ff9aa4a2507377f245f03f68a47aebcc0b37c36f1a51679
5
5
  SHA512:
6
- metadata.gz: d2a2ff9d3bdb791bd947f5d84e73d59312c9c205451c3f84ec93c931ae1b85c293797a4352e89fa36c8ef88730ebbf8fd5abb74b935e51a90d0eb9ffbd50dcc3
7
- data.tar.gz: 90e60a53d978cd6e92d901f6f5c64902e19198b6f903686c9e52b1cdd76b691741b7c648d563f43e356af346f4c5a03822dfb88122a0c0ccceb169ad87479816
6
+ metadata.gz: 3829f88cfba80e49027022a5d76124a87b63b6666859befda49489fa1ca3ca4c313a7df0ce6d10b9a72552c2b012db6e3d5a6b0accd137676a3c7df27f5665dc
7
+ data.tar.gz: 6a5d5ff6cdc2c4e15a4aea4cce5efaedfa7a44eaf596eff983b3244ddd6e2ae63838dbccdc98725bf9204969d6270ff3c89c85773d9c16c87033501b2e631f26
@@ -49,6 +49,6 @@ require_relative 'aws-sdk-ecs/customizations'
49
49
  # @!group service
50
50
  module Aws::ECS
51
51
 
52
- GEM_VERSION = '1.71.0'
52
+ GEM_VERSION = '1.72.0'
53
53
 
54
54
  end
@@ -400,6 +400,7 @@ module Aws::ECS
400
400
  # target_capacity: 1,
401
401
  # minimum_scaling_step_size: 1,
402
402
  # maximum_scaling_step_size: 1,
403
+ # instance_warmup_period: 1,
403
404
  # },
404
405
  # managed_termination_protection: "ENABLED", # accepts ENABLED, DISABLED
405
406
  # },
@@ -421,8 +422,9 @@ module Aws::ECS
421
422
  # resp.capacity_provider.auto_scaling_group_provider.managed_scaling.target_capacity #=> Integer
422
423
  # resp.capacity_provider.auto_scaling_group_provider.managed_scaling.minimum_scaling_step_size #=> Integer
423
424
  # resp.capacity_provider.auto_scaling_group_provider.managed_scaling.maximum_scaling_step_size #=> Integer
425
+ # resp.capacity_provider.auto_scaling_group_provider.managed_scaling.instance_warmup_period #=> Integer
424
426
  # resp.capacity_provider.auto_scaling_group_provider.managed_termination_protection #=> String, one of "ENABLED", "DISABLED"
425
- # resp.capacity_provider.update_status #=> String, one of "DELETE_IN_PROGRESS", "DELETE_COMPLETE", "DELETE_FAILED"
427
+ # resp.capacity_provider.update_status #=> String, one of "DELETE_IN_PROGRESS", "DELETE_COMPLETE", "DELETE_FAILED", "UPDATE_IN_PROGRESS", "UPDATE_COMPLETE", "UPDATE_FAILED"
426
428
  # resp.capacity_provider.update_status_reason #=> String
427
429
  # resp.capacity_provider.tags #=> Array
428
430
  # resp.capacity_provider.tags[0].key #=> String
@@ -1226,6 +1228,10 @@ module Aws::ECS
1226
1228
  # platform_version: "String",
1227
1229
  # role: "String",
1228
1230
  # deployment_configuration: {
1231
+ # deployment_circuit_breaker: {
1232
+ # enable: false, # required
1233
+ # rollback: false, # required
1234
+ # },
1229
1235
  # maximum_percent: 1,
1230
1236
  # minimum_healthy_percent: 1,
1231
1237
  # },
@@ -1289,6 +1295,8 @@ module Aws::ECS
1289
1295
  # resp.service.capacity_provider_strategy[0].base #=> Integer
1290
1296
  # resp.service.platform_version #=> String
1291
1297
  # resp.service.task_definition #=> String
1298
+ # resp.service.deployment_configuration.deployment_circuit_breaker.enable #=> Boolean
1299
+ # resp.service.deployment_configuration.deployment_circuit_breaker.rollback #=> Boolean
1292
1300
  # resp.service.deployment_configuration.maximum_percent #=> Integer
1293
1301
  # resp.service.deployment_configuration.minimum_healthy_percent #=> Integer
1294
1302
  # resp.service.task_sets #=> Array
@@ -1340,6 +1348,7 @@ module Aws::ECS
1340
1348
  # resp.service.deployments[0].desired_count #=> Integer
1341
1349
  # resp.service.deployments[0].pending_count #=> Integer
1342
1350
  # resp.service.deployments[0].running_count #=> Integer
1351
+ # resp.service.deployments[0].failed_tasks #=> Integer
1343
1352
  # resp.service.deployments[0].created_at #=> Time
1344
1353
  # resp.service.deployments[0].updated_at #=> Time
1345
1354
  # resp.service.deployments[0].capacity_provider_strategy #=> Array
@@ -1353,6 +1362,8 @@ module Aws::ECS
1353
1362
  # resp.service.deployments[0].network_configuration.awsvpc_configuration.security_groups #=> Array
1354
1363
  # resp.service.deployments[0].network_configuration.awsvpc_configuration.security_groups[0] #=> String
1355
1364
  # resp.service.deployments[0].network_configuration.awsvpc_configuration.assign_public_ip #=> String, one of "ENABLED", "DISABLED"
1365
+ # resp.service.deployments[0].rollout_state #=> String, one of "COMPLETED", "FAILED", "IN_PROGRESS"
1366
+ # resp.service.deployments[0].rollout_state_reason #=> String
1356
1367
  # resp.service.role_arn #=> String
1357
1368
  # resp.service.events #=> Array
1358
1369
  # resp.service.events[0].id #=> String
@@ -1802,8 +1813,9 @@ module Aws::ECS
1802
1813
  # resp.capacity_provider.auto_scaling_group_provider.managed_scaling.target_capacity #=> Integer
1803
1814
  # resp.capacity_provider.auto_scaling_group_provider.managed_scaling.minimum_scaling_step_size #=> Integer
1804
1815
  # resp.capacity_provider.auto_scaling_group_provider.managed_scaling.maximum_scaling_step_size #=> Integer
1816
+ # resp.capacity_provider.auto_scaling_group_provider.managed_scaling.instance_warmup_period #=> Integer
1805
1817
  # resp.capacity_provider.auto_scaling_group_provider.managed_termination_protection #=> String, one of "ENABLED", "DISABLED"
1806
- # resp.capacity_provider.update_status #=> String, one of "DELETE_IN_PROGRESS", "DELETE_COMPLETE", "DELETE_FAILED"
1818
+ # resp.capacity_provider.update_status #=> String, one of "DELETE_IN_PROGRESS", "DELETE_COMPLETE", "DELETE_FAILED", "UPDATE_IN_PROGRESS", "UPDATE_COMPLETE", "UPDATE_FAILED"
1807
1819
  # resp.capacity_provider.update_status_reason #=> String
1808
1820
  # resp.capacity_provider.tags #=> Array
1809
1821
  # resp.capacity_provider.tags[0].key #=> String
@@ -1995,6 +2007,8 @@ module Aws::ECS
1995
2007
  # resp.service.capacity_provider_strategy[0].base #=> Integer
1996
2008
  # resp.service.platform_version #=> String
1997
2009
  # resp.service.task_definition #=> String
2010
+ # resp.service.deployment_configuration.deployment_circuit_breaker.enable #=> Boolean
2011
+ # resp.service.deployment_configuration.deployment_circuit_breaker.rollback #=> Boolean
1998
2012
  # resp.service.deployment_configuration.maximum_percent #=> Integer
1999
2013
  # resp.service.deployment_configuration.minimum_healthy_percent #=> Integer
2000
2014
  # resp.service.task_sets #=> Array
@@ -2046,6 +2060,7 @@ module Aws::ECS
2046
2060
  # resp.service.deployments[0].desired_count #=> Integer
2047
2061
  # resp.service.deployments[0].pending_count #=> Integer
2048
2062
  # resp.service.deployments[0].running_count #=> Integer
2063
+ # resp.service.deployments[0].failed_tasks #=> Integer
2049
2064
  # resp.service.deployments[0].created_at #=> Time
2050
2065
  # resp.service.deployments[0].updated_at #=> Time
2051
2066
  # resp.service.deployments[0].capacity_provider_strategy #=> Array
@@ -2059,6 +2074,8 @@ module Aws::ECS
2059
2074
  # resp.service.deployments[0].network_configuration.awsvpc_configuration.security_groups #=> Array
2060
2075
  # resp.service.deployments[0].network_configuration.awsvpc_configuration.security_groups[0] #=> String
2061
2076
  # resp.service.deployments[0].network_configuration.awsvpc_configuration.assign_public_ip #=> String, one of "ENABLED", "DISABLED"
2077
+ # resp.service.deployments[0].rollout_state #=> String, one of "COMPLETED", "FAILED", "IN_PROGRESS"
2078
+ # resp.service.deployments[0].rollout_state_reason #=> String
2062
2079
  # resp.service.role_arn #=> String
2063
2080
  # resp.service.events #=> Array
2064
2081
  # resp.service.events[0].id #=> String
@@ -2581,8 +2598,9 @@ module Aws::ECS
2581
2598
  # resp.capacity_providers[0].auto_scaling_group_provider.managed_scaling.target_capacity #=> Integer
2582
2599
  # resp.capacity_providers[0].auto_scaling_group_provider.managed_scaling.minimum_scaling_step_size #=> Integer
2583
2600
  # resp.capacity_providers[0].auto_scaling_group_provider.managed_scaling.maximum_scaling_step_size #=> Integer
2601
+ # resp.capacity_providers[0].auto_scaling_group_provider.managed_scaling.instance_warmup_period #=> Integer
2584
2602
  # resp.capacity_providers[0].auto_scaling_group_provider.managed_termination_protection #=> String, one of "ENABLED", "DISABLED"
2585
- # resp.capacity_providers[0].update_status #=> String, one of "DELETE_IN_PROGRESS", "DELETE_COMPLETE", "DELETE_FAILED"
2603
+ # resp.capacity_providers[0].update_status #=> String, one of "DELETE_IN_PROGRESS", "DELETE_COMPLETE", "DELETE_FAILED", "UPDATE_IN_PROGRESS", "UPDATE_COMPLETE", "UPDATE_FAILED"
2586
2604
  # resp.capacity_providers[0].update_status_reason #=> String
2587
2605
  # resp.capacity_providers[0].tags #=> Array
2588
2606
  # resp.capacity_providers[0].tags[0].key #=> String
@@ -3021,6 +3039,8 @@ module Aws::ECS
3021
3039
  # resp.services[0].capacity_provider_strategy[0].base #=> Integer
3022
3040
  # resp.services[0].platform_version #=> String
3023
3041
  # resp.services[0].task_definition #=> String
3042
+ # resp.services[0].deployment_configuration.deployment_circuit_breaker.enable #=> Boolean
3043
+ # resp.services[0].deployment_configuration.deployment_circuit_breaker.rollback #=> Boolean
3024
3044
  # resp.services[0].deployment_configuration.maximum_percent #=> Integer
3025
3045
  # resp.services[0].deployment_configuration.minimum_healthy_percent #=> Integer
3026
3046
  # resp.services[0].task_sets #=> Array
@@ -3072,6 +3092,7 @@ module Aws::ECS
3072
3092
  # resp.services[0].deployments[0].desired_count #=> Integer
3073
3093
  # resp.services[0].deployments[0].pending_count #=> Integer
3074
3094
  # resp.services[0].deployments[0].running_count #=> Integer
3095
+ # resp.services[0].deployments[0].failed_tasks #=> Integer
3075
3096
  # resp.services[0].deployments[0].created_at #=> Time
3076
3097
  # resp.services[0].deployments[0].updated_at #=> Time
3077
3098
  # resp.services[0].deployments[0].capacity_provider_strategy #=> Array
@@ -3085,6 +3106,8 @@ module Aws::ECS
3085
3106
  # resp.services[0].deployments[0].network_configuration.awsvpc_configuration.security_groups #=> Array
3086
3107
  # resp.services[0].deployments[0].network_configuration.awsvpc_configuration.security_groups[0] #=> String
3087
3108
  # resp.services[0].deployments[0].network_configuration.awsvpc_configuration.assign_public_ip #=> String, one of "ENABLED", "DISABLED"
3109
+ # resp.services[0].deployments[0].rollout_state #=> String, one of "COMPLETED", "FAILED", "IN_PROGRESS"
3110
+ # resp.services[0].deployments[0].rollout_state_reason #=> String
3088
3111
  # resp.services[0].role_arn #=> String
3089
3112
  # resp.services[0].events #=> Array
3090
3113
  # resp.services[0].events[0].id #=> String
@@ -5254,16 +5277,17 @@ module Aws::ECS
5254
5277
  #
5255
5278
  # @option params [String] :network_mode
5256
5279
  # The Docker networking mode to use for the containers in the task. The
5257
- # valid values are `none`, `bridge`, `awsvpc`, and `host`. The default
5258
- # Docker network mode is `bridge`. If you are using the Fargate launch
5259
- # type, the `awsvpc` network mode is required. If you are using the EC2
5260
- # launch type, any network mode can be used. If the network mode is set
5261
- # to `none`, you cannot specify port mappings in your container
5262
- # definitions, and the tasks containers do not have external
5263
- # connectivity. The `host` and `awsvpc` network modes offer the highest
5264
- # networking performance for containers because they use the EC2 network
5265
- # stack instead of the virtualized network stack provided by the
5266
- # `bridge` mode.
5280
+ # valid values are `none`, `bridge`, `awsvpc`, and `host`. If no network
5281
+ # mode is specified, the default is `bridge`.
5282
+ #
5283
+ # For Amazon ECS tasks on Fargate, the `awsvpc` network mode is
5284
+ # required. For Amazon ECS tasks on Amazon EC2 instances, any network
5285
+ # mode can be used. If the network mode is set to `none`, you cannot
5286
+ # specify port mappings in your container definitions, and the tasks
5287
+ # containers do not have external connectivity. The `host` and `awsvpc`
5288
+ # network modes offer the highest networking performance for containers
5289
+ # because they use the EC2 network stack instead of the virtualized
5290
+ # network stack provided by the `bridge` mode.
5267
5291
  #
5268
5292
  # With the `host` and `awsvpc` network modes, exposed container ports
5269
5293
  # are mapped directly to the corresponding host port (for the `host`
@@ -5271,6 +5295,10 @@ module Aws::ECS
5271
5295
  # `awsvpc` network mode), so you cannot take advantage of dynamic host
5272
5296
  # port mappings.
5273
5297
  #
5298
+ # When using the `host` network mode, you should not run containers
5299
+ # using the root user (UID 0). It is considered best practice to use a
5300
+ # non-root user.
5301
+ #
5274
5302
  # If the network mode is `awsvpc`, the task is allocated an elastic
5275
5303
  # network interface, and you must specify a NetworkConfiguration value
5276
5304
  # when you create a service or run a task with the task definition. For
@@ -5493,11 +5521,7 @@ module Aws::ECS
5493
5521
  # your container instances are launched from the Amazon ECS-optimized
5494
5522
  # AMI version `20190301` or later, then they contain the required
5495
5523
  # versions of the container agent and `ecs-init`. For more information,
5496
- # see [Amazon ECS-optimized Linux AMI][1] in the *Amazon Elastic
5497
- # Container Service Developer Guide*.
5498
- #
5499
- # For tasks using the Fargate launch type, the task or service requires
5500
- # platform version 1.3.0 or later.
5524
+ # see [Amazon ECS-optimized Linux AMI][1]
5501
5525
  #
5502
5526
  #
5503
5527
  #
@@ -7178,6 +7202,62 @@ module Aws::ECS
7178
7202
  req.send_request(options)
7179
7203
  end
7180
7204
 
7205
+ # Modifies the parameters for a capacity provider.
7206
+ #
7207
+ # @option params [required, String] :name
7208
+ # An object representing the parameters to update for the Auto Scaling
7209
+ # group capacity provider.
7210
+ #
7211
+ # @option params [required, Types::AutoScalingGroupProviderUpdate] :auto_scaling_group_provider
7212
+ # The name of the capacity provider to update.
7213
+ #
7214
+ # @return [Types::UpdateCapacityProviderResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
7215
+ #
7216
+ # * {Types::UpdateCapacityProviderResponse#capacity_provider #capacity_provider} => Types::CapacityProvider
7217
+ #
7218
+ # @example Request syntax with placeholder values
7219
+ #
7220
+ # resp = client.update_capacity_provider({
7221
+ # name: "String", # required
7222
+ # auto_scaling_group_provider: { # required
7223
+ # managed_scaling: {
7224
+ # status: "ENABLED", # accepts ENABLED, DISABLED
7225
+ # target_capacity: 1,
7226
+ # minimum_scaling_step_size: 1,
7227
+ # maximum_scaling_step_size: 1,
7228
+ # instance_warmup_period: 1,
7229
+ # },
7230
+ # managed_termination_protection: "ENABLED", # accepts ENABLED, DISABLED
7231
+ # },
7232
+ # })
7233
+ #
7234
+ # @example Response structure
7235
+ #
7236
+ # resp.capacity_provider.capacity_provider_arn #=> String
7237
+ # resp.capacity_provider.name #=> String
7238
+ # resp.capacity_provider.status #=> String, one of "ACTIVE", "INACTIVE"
7239
+ # resp.capacity_provider.auto_scaling_group_provider.auto_scaling_group_arn #=> String
7240
+ # resp.capacity_provider.auto_scaling_group_provider.managed_scaling.status #=> String, one of "ENABLED", "DISABLED"
7241
+ # resp.capacity_provider.auto_scaling_group_provider.managed_scaling.target_capacity #=> Integer
7242
+ # resp.capacity_provider.auto_scaling_group_provider.managed_scaling.minimum_scaling_step_size #=> Integer
7243
+ # resp.capacity_provider.auto_scaling_group_provider.managed_scaling.maximum_scaling_step_size #=> Integer
7244
+ # resp.capacity_provider.auto_scaling_group_provider.managed_scaling.instance_warmup_period #=> Integer
7245
+ # resp.capacity_provider.auto_scaling_group_provider.managed_termination_protection #=> String, one of "ENABLED", "DISABLED"
7246
+ # resp.capacity_provider.update_status #=> String, one of "DELETE_IN_PROGRESS", "DELETE_COMPLETE", "DELETE_FAILED", "UPDATE_IN_PROGRESS", "UPDATE_COMPLETE", "UPDATE_FAILED"
7247
+ # resp.capacity_provider.update_status_reason #=> String
7248
+ # resp.capacity_provider.tags #=> Array
7249
+ # resp.capacity_provider.tags[0].key #=> String
7250
+ # resp.capacity_provider.tags[0].value #=> String
7251
+ #
7252
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/UpdateCapacityProvider AWS API Documentation
7253
+ #
7254
+ # @overload update_capacity_provider(params = {})
7255
+ # @param [Hash] params ({})
7256
+ def update_capacity_provider(params = {}, options = {})
7257
+ req = build_request(:update_capacity_provider, params)
7258
+ req.send_request(options)
7259
+ end
7260
+
7181
7261
  # Modifies the settings to use for a cluster.
7182
7262
  #
7183
7263
  # @option params [required, String] :cluster
@@ -7764,6 +7844,10 @@ module Aws::ECS
7764
7844
  # },
7765
7845
  # ],
7766
7846
  # deployment_configuration: {
7847
+ # deployment_circuit_breaker: {
7848
+ # enable: false, # required
7849
+ # rollback: false, # required
7850
+ # },
7767
7851
  # maximum_percent: 1,
7768
7852
  # minimum_healthy_percent: 1,
7769
7853
  # },
@@ -7817,6 +7901,8 @@ module Aws::ECS
7817
7901
  # resp.service.capacity_provider_strategy[0].base #=> Integer
7818
7902
  # resp.service.platform_version #=> String
7819
7903
  # resp.service.task_definition #=> String
7904
+ # resp.service.deployment_configuration.deployment_circuit_breaker.enable #=> Boolean
7905
+ # resp.service.deployment_configuration.deployment_circuit_breaker.rollback #=> Boolean
7820
7906
  # resp.service.deployment_configuration.maximum_percent #=> Integer
7821
7907
  # resp.service.deployment_configuration.minimum_healthy_percent #=> Integer
7822
7908
  # resp.service.task_sets #=> Array
@@ -7868,6 +7954,7 @@ module Aws::ECS
7868
7954
  # resp.service.deployments[0].desired_count #=> Integer
7869
7955
  # resp.service.deployments[0].pending_count #=> Integer
7870
7956
  # resp.service.deployments[0].running_count #=> Integer
7957
+ # resp.service.deployments[0].failed_tasks #=> Integer
7871
7958
  # resp.service.deployments[0].created_at #=> Time
7872
7959
  # resp.service.deployments[0].updated_at #=> Time
7873
7960
  # resp.service.deployments[0].capacity_provider_strategy #=> Array
@@ -7881,6 +7968,8 @@ module Aws::ECS
7881
7968
  # resp.service.deployments[0].network_configuration.awsvpc_configuration.security_groups #=> Array
7882
7969
  # resp.service.deployments[0].network_configuration.awsvpc_configuration.security_groups[0] #=> String
7883
7970
  # resp.service.deployments[0].network_configuration.awsvpc_configuration.assign_public_ip #=> String, one of "ENABLED", "DISABLED"
7971
+ # resp.service.deployments[0].rollout_state #=> String, one of "COMPLETED", "FAILED", "IN_PROGRESS"
7972
+ # resp.service.deployments[0].rollout_state_reason #=> String
7884
7973
  # resp.service.role_arn #=> String
7885
7974
  # resp.service.events #=> Array
7886
7975
  # resp.service.events[0].id #=> String
@@ -8112,7 +8201,7 @@ module Aws::ECS
8112
8201
  params: params,
8113
8202
  config: config)
8114
8203
  context[:gem_name] = 'aws-sdk-ecs'
8115
- context[:gem_version] = '1.71.0'
8204
+ context[:gem_version] = '1.72.0'
8116
8205
  Seahorse::Client::Request.new(handlers, context)
8117
8206
  end
8118
8207
 
@@ -25,6 +25,7 @@ module Aws::ECS
25
25
  AttributeLimitExceededException = Shapes::StructureShape.new(name: 'AttributeLimitExceededException')
26
26
  Attributes = Shapes::ListShape.new(name: 'Attributes')
27
27
  AutoScalingGroupProvider = Shapes::StructureShape.new(name: 'AutoScalingGroupProvider')
28
+ AutoScalingGroupProviderUpdate = Shapes::StructureShape.new(name: 'AutoScalingGroupProviderUpdate')
28
29
  AwsVpcConfiguration = Shapes::StructureShape.new(name: 'AwsVpcConfiguration')
29
30
  BlockedException = Shapes::StructureShape.new(name: 'BlockedException')
30
31
  Boolean = Shapes::BooleanShape.new(name: 'Boolean')
@@ -92,9 +93,11 @@ module Aws::ECS
92
93
  DeleteTaskSetRequest = Shapes::StructureShape.new(name: 'DeleteTaskSetRequest')
93
94
  DeleteTaskSetResponse = Shapes::StructureShape.new(name: 'DeleteTaskSetResponse')
94
95
  Deployment = Shapes::StructureShape.new(name: 'Deployment')
96
+ DeploymentCircuitBreaker = Shapes::StructureShape.new(name: 'DeploymentCircuitBreaker')
95
97
  DeploymentConfiguration = Shapes::StructureShape.new(name: 'DeploymentConfiguration')
96
98
  DeploymentController = Shapes::StructureShape.new(name: 'DeploymentController')
97
99
  DeploymentControllerType = Shapes::StringShape.new(name: 'DeploymentControllerType')
100
+ DeploymentRolloutState = Shapes::StringShape.new(name: 'DeploymentRolloutState')
98
101
  Deployments = Shapes::ListShape.new(name: 'Deployments')
99
102
  DeregisterContainerInstanceRequest = Shapes::StructureShape.new(name: 'DeregisterContainerInstanceRequest')
100
103
  DeregisterContainerInstanceResponse = Shapes::StructureShape.new(name: 'DeregisterContainerInstanceResponse')
@@ -182,6 +185,7 @@ module Aws::ECS
182
185
  LogDriver = Shapes::StringShape.new(name: 'LogDriver')
183
186
  Long = Shapes::IntegerShape.new(name: 'Long')
184
187
  ManagedScaling = Shapes::StructureShape.new(name: 'ManagedScaling')
188
+ ManagedScalingInstanceWarmupPeriod = Shapes::IntegerShape.new(name: 'ManagedScalingInstanceWarmupPeriod')
185
189
  ManagedScalingStatus = Shapes::StringShape.new(name: 'ManagedScalingStatus')
186
190
  ManagedScalingStepSize = Shapes::IntegerShape.new(name: 'ManagedScalingStepSize')
187
191
  ManagedScalingTargetCapacity = Shapes::IntegerShape.new(name: 'ManagedScalingTargetCapacity')
@@ -313,6 +317,8 @@ module Aws::ECS
313
317
  UnsupportedFeatureException = Shapes::StructureShape.new(name: 'UnsupportedFeatureException')
314
318
  UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
315
319
  UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
320
+ UpdateCapacityProviderRequest = Shapes::StructureShape.new(name: 'UpdateCapacityProviderRequest')
321
+ UpdateCapacityProviderResponse = Shapes::StructureShape.new(name: 'UpdateCapacityProviderResponse')
316
322
  UpdateClusterSettingsRequest = Shapes::StructureShape.new(name: 'UpdateClusterSettingsRequest')
317
323
  UpdateClusterSettingsResponse = Shapes::StructureShape.new(name: 'UpdateClusterSettingsResponse')
318
324
  UpdateContainerAgentRequest = Shapes::StructureShape.new(name: 'UpdateContainerAgentRequest')
@@ -365,6 +371,10 @@ module Aws::ECS
365
371
  AutoScalingGroupProvider.add_member(:managed_termination_protection, Shapes::ShapeRef.new(shape: ManagedTerminationProtection, location_name: "managedTerminationProtection"))
366
372
  AutoScalingGroupProvider.struct_class = Types::AutoScalingGroupProvider
367
373
 
374
+ AutoScalingGroupProviderUpdate.add_member(:managed_scaling, Shapes::ShapeRef.new(shape: ManagedScaling, location_name: "managedScaling"))
375
+ AutoScalingGroupProviderUpdate.add_member(:managed_termination_protection, Shapes::ShapeRef.new(shape: ManagedTerminationProtection, location_name: "managedTerminationProtection"))
376
+ AutoScalingGroupProviderUpdate.struct_class = Types::AutoScalingGroupProviderUpdate
377
+
368
378
  AwsVpcConfiguration.add_member(:subnets, Shapes::ShapeRef.new(shape: StringList, required: true, location_name: "subnets"))
369
379
  AwsVpcConfiguration.add_member(:security_groups, Shapes::ShapeRef.new(shape: StringList, location_name: "securityGroups"))
370
380
  AwsVpcConfiguration.add_member(:assign_public_ip, Shapes::ShapeRef.new(shape: AssignPublicIp, location_name: "assignPublicIp"))
@@ -657,14 +667,22 @@ module Aws::ECS
657
667
  Deployment.add_member(:desired_count, Shapes::ShapeRef.new(shape: Integer, location_name: "desiredCount"))
658
668
  Deployment.add_member(:pending_count, Shapes::ShapeRef.new(shape: Integer, location_name: "pendingCount"))
659
669
  Deployment.add_member(:running_count, Shapes::ShapeRef.new(shape: Integer, location_name: "runningCount"))
670
+ Deployment.add_member(:failed_tasks, Shapes::ShapeRef.new(shape: Integer, location_name: "failedTasks"))
660
671
  Deployment.add_member(:created_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "createdAt"))
661
672
  Deployment.add_member(:updated_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "updatedAt"))
662
673
  Deployment.add_member(:capacity_provider_strategy, Shapes::ShapeRef.new(shape: CapacityProviderStrategy, location_name: "capacityProviderStrategy"))
663
674
  Deployment.add_member(:launch_type, Shapes::ShapeRef.new(shape: LaunchType, location_name: "launchType"))
664
675
  Deployment.add_member(:platform_version, Shapes::ShapeRef.new(shape: String, location_name: "platformVersion"))
665
676
  Deployment.add_member(:network_configuration, Shapes::ShapeRef.new(shape: NetworkConfiguration, location_name: "networkConfiguration"))
677
+ Deployment.add_member(:rollout_state, Shapes::ShapeRef.new(shape: DeploymentRolloutState, location_name: "rolloutState"))
678
+ Deployment.add_member(:rollout_state_reason, Shapes::ShapeRef.new(shape: String, location_name: "rolloutStateReason"))
666
679
  Deployment.struct_class = Types::Deployment
667
680
 
681
+ DeploymentCircuitBreaker.add_member(:enable, Shapes::ShapeRef.new(shape: Boolean, required: true, location_name: "enable"))
682
+ DeploymentCircuitBreaker.add_member(:rollback, Shapes::ShapeRef.new(shape: Boolean, required: true, location_name: "rollback"))
683
+ DeploymentCircuitBreaker.struct_class = Types::DeploymentCircuitBreaker
684
+
685
+ DeploymentConfiguration.add_member(:deployment_circuit_breaker, Shapes::ShapeRef.new(shape: DeploymentCircuitBreaker, location_name: "deploymentCircuitBreaker"))
668
686
  DeploymentConfiguration.add_member(:maximum_percent, Shapes::ShapeRef.new(shape: BoxedInteger, location_name: "maximumPercent"))
669
687
  DeploymentConfiguration.add_member(:minimum_healthy_percent, Shapes::ShapeRef.new(shape: BoxedInteger, location_name: "minimumHealthyPercent"))
670
688
  DeploymentConfiguration.struct_class = Types::DeploymentConfiguration
@@ -988,6 +1006,7 @@ module Aws::ECS
988
1006
  ManagedScaling.add_member(:target_capacity, Shapes::ShapeRef.new(shape: ManagedScalingTargetCapacity, location_name: "targetCapacity"))
989
1007
  ManagedScaling.add_member(:minimum_scaling_step_size, Shapes::ShapeRef.new(shape: ManagedScalingStepSize, location_name: "minimumScalingStepSize"))
990
1008
  ManagedScaling.add_member(:maximum_scaling_step_size, Shapes::ShapeRef.new(shape: ManagedScalingStepSize, location_name: "maximumScalingStepSize"))
1009
+ ManagedScaling.add_member(:instance_warmup_period, Shapes::ShapeRef.new(shape: ManagedScalingInstanceWarmupPeriod, location_name: "instanceWarmupPeriod"))
991
1010
  ManagedScaling.struct_class = Types::ManagedScaling
992
1011
 
993
1012
  MissingVersionException.struct_class = Types::MissingVersionException
@@ -1458,6 +1477,13 @@ module Aws::ECS
1458
1477
 
1459
1478
  UntagResourceResponse.struct_class = Types::UntagResourceResponse
1460
1479
 
1480
+ UpdateCapacityProviderRequest.add_member(:name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "name"))
1481
+ UpdateCapacityProviderRequest.add_member(:auto_scaling_group_provider, Shapes::ShapeRef.new(shape: AutoScalingGroupProviderUpdate, required: true, location_name: "autoScalingGroupProvider"))
1482
+ UpdateCapacityProviderRequest.struct_class = Types::UpdateCapacityProviderRequest
1483
+
1484
+ UpdateCapacityProviderResponse.add_member(:capacity_provider, Shapes::ShapeRef.new(shape: CapacityProvider, location_name: "capacityProvider"))
1485
+ UpdateCapacityProviderResponse.struct_class = Types::UpdateCapacityProviderResponse
1486
+
1461
1487
  UpdateClusterSettingsRequest.add_member(:cluster, Shapes::ShapeRef.new(shape: String, required: true, location_name: "cluster"))
1462
1488
  UpdateClusterSettingsRequest.add_member(:settings, Shapes::ShapeRef.new(shape: ClusterSettings, required: true, location_name: "settings"))
1463
1489
  UpdateClusterSettingsRequest.struct_class = Types::UpdateClusterSettingsRequest
@@ -2134,6 +2160,17 @@ module Aws::ECS
2134
2160
  o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
2135
2161
  end)
2136
2162
 
2163
+ api.add_operation(:update_capacity_provider, Seahorse::Model::Operation.new.tap do |o|
2164
+ o.name = "UpdateCapacityProvider"
2165
+ o.http_method = "POST"
2166
+ o.http_request_uri = "/"
2167
+ o.input = Shapes::ShapeRef.new(shape: UpdateCapacityProviderRequest)
2168
+ o.output = Shapes::ShapeRef.new(shape: UpdateCapacityProviderResponse)
2169
+ o.errors << Shapes::ShapeRef.new(shape: ServerException)
2170
+ o.errors << Shapes::ShapeRef.new(shape: ClientException)
2171
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
2172
+ end)
2173
+
2137
2174
  api.add_operation(:update_cluster_settings, Seahorse::Model::Operation.new.tap do |o|
2138
2175
  o.name = "UpdateClusterSettings"
2139
2176
  o.http_method = "POST"
@@ -153,6 +153,7 @@ module Aws::ECS
153
153
  # target_capacity: 1,
154
154
  # minimum_scaling_step_size: 1,
155
155
  # maximum_scaling_step_size: 1,
156
+ # instance_warmup_period: 1,
156
157
  # },
157
158
  # managed_termination_protection: "ENABLED", # accepts ENABLED, DISABLED
158
159
  # }
@@ -202,6 +203,76 @@ module Aws::ECS
202
203
  include Aws::Structure
203
204
  end
204
205
 
206
+ # The details of the Auto Scaling group capacity provider to update.
207
+ #
208
+ # @note When making an API call, you may pass AutoScalingGroupProviderUpdate
209
+ # data as a hash:
210
+ #
211
+ # {
212
+ # managed_scaling: {
213
+ # status: "ENABLED", # accepts ENABLED, DISABLED
214
+ # target_capacity: 1,
215
+ # minimum_scaling_step_size: 1,
216
+ # maximum_scaling_step_size: 1,
217
+ # instance_warmup_period: 1,
218
+ # },
219
+ # managed_termination_protection: "ENABLED", # accepts ENABLED, DISABLED
220
+ # }
221
+ #
222
+ # @!attribute [rw] managed_scaling
223
+ # The managed scaling settings for the Auto Scaling group capacity
224
+ # provider.
225
+ #
226
+ # When managed scaling is enabled, Amazon ECS manages the scale-in and
227
+ # scale-out actions of the Auto Scaling group. Amazon ECS manages a
228
+ # target tracking scaling policy using an Amazon ECS-managed
229
+ # CloudWatch metric with the specified `targetCapacity` value as the
230
+ # target value for the metric. For more information, see [Using
231
+ # Managed Scaling][1] in the *Amazon Elastic Container Service
232
+ # Developer Guide*.
233
+ #
234
+ # If managed scaling is disabled, the user must manage the scaling of
235
+ # the Auto Scaling group.
236
+ #
237
+ #
238
+ #
239
+ # [1]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/asg-capacity-providers.html#asg-capacity-providers-managed-scaling
240
+ # @return [Types::ManagedScaling]
241
+ #
242
+ # @!attribute [rw] managed_termination_protection
243
+ # The managed termination protection setting to use for the Auto
244
+ # Scaling group capacity provider. This determines whether the Auto
245
+ # Scaling group has managed termination protection.
246
+ #
247
+ # When using managed termination protection, managed scaling must also
248
+ # be used otherwise managed termination protection will not work.
249
+ #
250
+ # When managed termination protection is enabled, Amazon ECS prevents
251
+ # the Amazon EC2 instances in an Auto Scaling group that contain tasks
252
+ # from being terminated during a scale-in action. The Auto Scaling
253
+ # group and each instance in the Auto Scaling group must have instance
254
+ # protection from scale-in actions enabled as well. For more
255
+ # information, see [Instance Protection][1] in the *AWS Auto Scaling
256
+ # User Guide*.
257
+ #
258
+ # When managed termination protection is disabled, your Amazon EC2
259
+ # instances are not protected from termination when the Auto Scaling
260
+ # group scales in.
261
+ #
262
+ #
263
+ #
264
+ # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-instance-termination.html#instance-protection
265
+ # @return [String]
266
+ #
267
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/AutoScalingGroupProviderUpdate AWS API Documentation
268
+ #
269
+ class AutoScalingGroupProviderUpdate < Struct.new(
270
+ :managed_scaling,
271
+ :managed_termination_protection)
272
+ SENSITIVE = []
273
+ include Aws::Structure
274
+ end
275
+
205
276
  # An object representing the networking details for a task or service.
206
277
  #
207
278
  # @note When making an API call, you may pass AwsVpcConfiguration
@@ -1442,12 +1513,16 @@ module Aws::ECS
1442
1513
  # @return [String]
1443
1514
  #
1444
1515
  # @!attribute [rw] user
1445
- # The user name to use inside the container. This parameter maps to
1446
- # `User` in the [Create a container][1] section of the [Docker Remote
1447
- # API][2] and the `--user` option to [docker run][3].
1516
+ # The user to use inside the container. This parameter maps to `User`
1517
+ # in the [Create a container][1] section of the [Docker Remote API][2]
1518
+ # and the `--user` option to [docker run][3].
1448
1519
  #
1449
- # You can use the following formats. If specifying a UID or GID, you
1450
- # must specify it as a positive integer.
1520
+ # When running tasks using the `host` network mode, you should not run
1521
+ # containers using the root user (UID 0). It is considered best
1522
+ # practice to use a non-root user.
1523
+ #
1524
+ # You can specify the `user` using the following formats. If
1525
+ # specifying a UID or GID, you must specify it as a positive integer.
1451
1526
  #
1452
1527
  # * `user`
1453
1528
  #
@@ -2276,6 +2351,7 @@ module Aws::ECS
2276
2351
  # target_capacity: 1,
2277
2352
  # minimum_scaling_step_size: 1,
2278
2353
  # maximum_scaling_step_size: 1,
2354
+ # instance_warmup_period: 1,
2279
2355
  # },
2280
2356
  # managed_termination_protection: "ENABLED", # accepts ENABLED, DISABLED
2281
2357
  # },
@@ -2530,6 +2606,10 @@ module Aws::ECS
2530
2606
  # platform_version: "String",
2531
2607
  # role: "String",
2532
2608
  # deployment_configuration: {
2609
+ # deployment_circuit_breaker: {
2610
+ # enable: false, # required
2611
+ # rollback: false, # required
2612
+ # },
2533
2613
  # maximum_percent: 1,
2534
2614
  # minimum_healthy_percent: 1,
2535
2615
  # },
@@ -3487,6 +3567,19 @@ module Aws::ECS
3487
3567
  # status.
3488
3568
  # @return [Integer]
3489
3569
  #
3570
+ # @!attribute [rw] failed_tasks
3571
+ # The number of consecutively failed tasks in the deployment. A task
3572
+ # is considered a failure if the service scheduler can't launch the
3573
+ # task, the task doesn't transition to a `RUNNING` state, or if it
3574
+ # fails any of its defined health checks and is stopped.
3575
+ #
3576
+ # <note markdown="1"> Once a service deployment has one or more successfully running
3577
+ # tasks, the failed task count resets to zero and stops being
3578
+ # evaluated.
3579
+ #
3580
+ # </note>
3581
+ # @return [Integer]
3582
+ #
3490
3583
  # @!attribute [rw] created_at
3491
3584
  # The Unix timestamp for when the service deployment was created.
3492
3585
  # @return [Time]
@@ -3528,6 +3621,26 @@ module Aws::ECS
3528
3621
  # networking mode.
3529
3622
  # @return [Types::NetworkConfiguration]
3530
3623
  #
3624
+ # @!attribute [rw] rollout_state
3625
+ # <note markdown="1"> The `rolloutState` of a service is only returned for services that
3626
+ # use the rolling update (`ECS`) deployment type that are not behind a
3627
+ # Classic Load Balancer.
3628
+ #
3629
+ # </note>
3630
+ #
3631
+ # The rollout state of the deployment. When a service deployment is
3632
+ # started, it begins in an `IN_PROGRESS` state. When the service
3633
+ # reaches a steady state, the deployment will transition to a
3634
+ # `COMPLETED` state. If the service fails to reach a steady state and
3635
+ # circuit breaker is enabled, the deployment will transition to a
3636
+ # `FAILED` state. A deployment in `FAILED` state will launch no new
3637
+ # tasks. For more information, see DeploymentCircuitBreaker.
3638
+ # @return [String]
3639
+ #
3640
+ # @!attribute [rw] rollout_state_reason
3641
+ # A description of the rollout state of a deployment.
3642
+ # @return [String]
3643
+ #
3531
3644
  # @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/Deployment AWS API Documentation
3532
3645
  #
3533
3646
  class Deployment < Struct.new(
@@ -3537,12 +3650,62 @@ module Aws::ECS
3537
3650
  :desired_count,
3538
3651
  :pending_count,
3539
3652
  :running_count,
3653
+ :failed_tasks,
3540
3654
  :created_at,
3541
3655
  :updated_at,
3542
3656
  :capacity_provider_strategy,
3543
3657
  :launch_type,
3544
3658
  :platform_version,
3545
- :network_configuration)
3659
+ :network_configuration,
3660
+ :rollout_state,
3661
+ :rollout_state_reason)
3662
+ SENSITIVE = []
3663
+ include Aws::Structure
3664
+ end
3665
+
3666
+ # <note markdown="1"> The deployment circuit breaker can only be used for services using the
3667
+ # rolling update (`ECS`) deployment type that are not behind a Classic
3668
+ # Load Balancer.
3669
+ #
3670
+ # </note>
3671
+ #
3672
+ # The **deployment circuit breaker** determines whether a service
3673
+ # deployment will fail if the service can't reach a steady state. If
3674
+ # enabled, a service deployment will transition to a failed state and
3675
+ # stop launching new tasks. You can also enable Amazon ECS to roll back
3676
+ # your service to the last completed deployment after a failure. For
3677
+ # more information, see [Rolling update][1] in the *Amazon Elastic
3678
+ # Container Service Developer Guide*.
3679
+ #
3680
+ #
3681
+ #
3682
+ # [1]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/deployment-type-ecs.html
3683
+ #
3684
+ # @note When making an API call, you may pass DeploymentCircuitBreaker
3685
+ # data as a hash:
3686
+ #
3687
+ # {
3688
+ # enable: false, # required
3689
+ # rollback: false, # required
3690
+ # }
3691
+ #
3692
+ # @!attribute [rw] enable
3693
+ # Whether to enable the deployment circuit breaker logic for the
3694
+ # service.
3695
+ # @return [Boolean]
3696
+ #
3697
+ # @!attribute [rw] rollback
3698
+ # Whether to enable Amazon ECS to roll back the service if a service
3699
+ # deployment fails. If rollback is enabled, when a service deployment
3700
+ # fails, the service is rolled back to the last deployment that
3701
+ # completed successfully.
3702
+ # @return [Boolean]
3703
+ #
3704
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/DeploymentCircuitBreaker AWS API Documentation
3705
+ #
3706
+ class DeploymentCircuitBreaker < Struct.new(
3707
+ :enable,
3708
+ :rollback)
3546
3709
  SENSITIVE = []
3547
3710
  include Aws::Structure
3548
3711
  end
@@ -3554,10 +3717,28 @@ module Aws::ECS
3554
3717
  # data as a hash:
3555
3718
  #
3556
3719
  # {
3720
+ # deployment_circuit_breaker: {
3721
+ # enable: false, # required
3722
+ # rollback: false, # required
3723
+ # },
3557
3724
  # maximum_percent: 1,
3558
3725
  # minimum_healthy_percent: 1,
3559
3726
  # }
3560
3727
  #
3728
+ # @!attribute [rw] deployment_circuit_breaker
3729
+ # <note markdown="1"> The deployment circuit breaker can only be used for services using
3730
+ # the rolling update (`ECS`) deployment type.
3731
+ #
3732
+ # </note>
3733
+ #
3734
+ # The **deployment circuit breaker** determines whether a service
3735
+ # deployment will fail if the service can't reach a steady state. If
3736
+ # deployment circuit breaker is enabled, a service deployment will
3737
+ # transition to a failed state and stop launching new tasks. If
3738
+ # rollback is enabled, when a service deployment fails, the service is
3739
+ # rolled back to the last deployment that completed successfully.
3740
+ # @return [Types::DeploymentCircuitBreaker]
3741
+ #
3561
3742
  # @!attribute [rw] maximum_percent
3562
3743
  # If a service is using the rolling update (`ECS`) deployment type,
3563
3744
  # the **maximum percent** parameter represents an upper limit on the
@@ -3613,6 +3794,7 @@ module Aws::ECS
3613
3794
  # @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/DeploymentConfiguration AWS API Documentation
3614
3795
  #
3615
3796
  class DeploymentConfiguration < Struct.new(
3797
+ :deployment_circuit_breaker,
3616
3798
  :maximum_percent,
3617
3799
  :minimum_healthy_percent)
3618
3800
  SENSITIVE = []
@@ -4602,29 +4784,16 @@ module Aws::ECS
4602
4784
  # }
4603
4785
  #
4604
4786
  # @!attribute [rw] credentials_parameter
4605
- # The authorization credential option to use.
4606
- #
4607
- # The authorization credential options can be provided using either
4608
- # the AWS Secrets Manager ARN or the AWS Systems Manager ARN. The ARNs
4609
- # refer to the stored credentials.
4610
- #
4611
- # **options:**
4612
- #
4613
- # * [ARN][1] of an [AWS Secrets Manager][2] secret.
4614
- #
4615
- # * [ARN][1] of an [AWS Systems Manager][3] parameter.
4616
- #
4617
- #
4618
- #
4619
- # [1]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html
4620
- # [2]: https://docs.aws.amazon.com/secretsmanager
4621
- # [3]: https://docs.aws.amazon.com/systems-manager/latest/userguide/integration-ps-secretsmanager.html
4787
+ # The authorization credential option to use. The authorization
4788
+ # credential options can be provided using either the Amazon Resource
4789
+ # Name (ARN) of an AWS Secrets Manager secret or AWS Systems Manager
4790
+ # Parameter Store parameter. The ARNs refer to the stored credentials.
4622
4791
  # @return [String]
4623
4792
  #
4624
4793
  # @!attribute [rw] domain
4625
4794
  # A fully qualified domain name hosted by an [AWS Directory
4626
4795
  # Service][1] Managed Microsoft AD (Active Directory) or self-hosted
4627
- # EC2 AD.
4796
+ # AD on Amazon EC2.
4628
4797
  #
4629
4798
  #
4630
4799
  #
@@ -6306,6 +6475,7 @@ module Aws::ECS
6306
6475
  # target_capacity: 1,
6307
6476
  # minimum_scaling_step_size: 1,
6308
6477
  # maximum_scaling_step_size: 1,
6478
+ # instance_warmup_period: 1,
6309
6479
  # }
6310
6480
  #
6311
6481
  # @!attribute [rw] status
@@ -6320,27 +6490,22 @@ module Aws::ECS
6320
6490
  # @return [Integer]
6321
6491
  #
6322
6492
  # @!attribute [rw] minimum_scaling_step_size
6323
- # The minimum number of Amazon EC2 instances that Amazon ECS will
6324
- # scale out at one time. The scale in process is not affected by this
6325
- # parameter If this parameter is omitted, the default value of `1` is
6326
- # used.
6327
- #
6328
- # When additional capacity is required, Amazon ECS will scale up the
6329
- # minimum scaling step size even if the actual demand is less than the
6330
- # minimum scaling step size.
6331
- #
6332
- # If you use a capacity provider with an Auto Scaling group configured
6333
- # with more than one Amazon EC2 instance type or Availability Zone,
6334
- # Amazon ECS will scale up by the exact minimum scaling step size
6335
- # value and will ignore both the maximum scaling step size as well as
6336
- # the capacity demand.
6493
+ # The minimum number of container instances that Amazon ECS will scale
6494
+ # in or scale out at one time. If this parameter is omitted, the
6495
+ # default value of `1` is used.
6337
6496
  # @return [Integer]
6338
6497
  #
6339
6498
  # @!attribute [rw] maximum_scaling_step_size
6340
- # The maximum number of Amazon EC2 instances that Amazon ECS will
6341
- # scale out at one time. The scale in process is not affected by this
6342
- # parameter. If this parameter is omitted, the default value of
6343
- # `10000` is used.
6499
+ # The maximum number of container instances that Amazon ECS will scale
6500
+ # in or scale out at one time. If this parameter is omitted, the
6501
+ # default value of `10000` is used.
6502
+ # @return [Integer]
6503
+ #
6504
+ # @!attribute [rw] instance_warmup_period
6505
+ # The period of time, in seconds, after a newly launched Amazon EC2
6506
+ # instance can contribute to CloudWatch metrics for Auto Scaling
6507
+ # group. If this parameter is omitted, the default value of `300`
6508
+ # seconds is used.
6344
6509
  # @return [Integer]
6345
6510
  #
6346
6511
  # @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/ManagedScaling AWS API Documentation
@@ -6349,7 +6514,8 @@ module Aws::ECS
6349
6514
  :status,
6350
6515
  :target_capacity,
6351
6516
  :minimum_scaling_step_size,
6352
- :maximum_scaling_step_size)
6517
+ :maximum_scaling_step_size,
6518
+ :instance_warmup_period)
6353
6519
  SENSITIVE = []
6354
6520
  include Aws::Structure
6355
6521
  end
@@ -6749,11 +6915,7 @@ module Aws::ECS
6749
6915
  # your container instances are launched from the Amazon ECS-optimized
6750
6916
  # AMI version `20190301` or later, then they contain the required
6751
6917
  # versions of the container agent and `ecs-init`. For more information,
6752
- # see [Amazon ECS-optimized Linux AMI][1] in the *Amazon Elastic
6753
- # Container Service Developer Guide*.
6754
- #
6755
- # For tasks using the Fargate launch type, the task or service requires
6756
- # platform version 1.3.0 or later.
6918
+ # see [Amazon ECS-optimized Linux AMI][1]
6757
6919
  #
6758
6920
  #
6759
6921
  #
@@ -7475,16 +7637,17 @@ module Aws::ECS
7475
7637
  #
7476
7638
  # @!attribute [rw] network_mode
7477
7639
  # The Docker networking mode to use for the containers in the task.
7478
- # The valid values are `none`, `bridge`, `awsvpc`, and `host`. The
7479
- # default Docker network mode is `bridge`. If you are using the
7480
- # Fargate launch type, the `awsvpc` network mode is required. If you
7481
- # are using the EC2 launch type, any network mode can be used. If the
7482
- # network mode is set to `none`, you cannot specify port mappings in
7483
- # your container definitions, and the tasks containers do not have
7484
- # external connectivity. The `host` and `awsvpc` network modes offer
7485
- # the highest networking performance for containers because they use
7486
- # the EC2 network stack instead of the virtualized network stack
7487
- # provided by the `bridge` mode.
7640
+ # The valid values are `none`, `bridge`, `awsvpc`, and `host`. If no
7641
+ # network mode is specified, the default is `bridge`.
7642
+ #
7643
+ # For Amazon ECS tasks on Fargate, the `awsvpc` network mode is
7644
+ # required. For Amazon ECS tasks on Amazon EC2 instances, any network
7645
+ # mode can be used. If the network mode is set to `none`, you cannot
7646
+ # specify port mappings in your container definitions, and the tasks
7647
+ # containers do not have external connectivity. The `host` and
7648
+ # `awsvpc` network modes offer the highest networking performance for
7649
+ # containers because they use the EC2 network stack instead of the
7650
+ # virtualized network stack provided by the `bridge` mode.
7488
7651
  #
7489
7652
  # With the `host` and `awsvpc` network modes, exposed container ports
7490
7653
  # are mapped directly to the corresponding host port (for the `host`
@@ -7492,6 +7655,10 @@ module Aws::ECS
7492
7655
  # the `awsvpc` network mode), so you cannot take advantage of dynamic
7493
7656
  # host port mappings.
7494
7657
  #
7658
+ # When using the `host` network mode, you should not run containers
7659
+ # using the root user (UID 0). It is considered best practice to use a
7660
+ # non-root user.
7661
+ #
7495
7662
  # If the network mode is `awsvpc`, the task is allocated an elastic
7496
7663
  # network interface, and you must specify a NetworkConfiguration value
7497
7664
  # when you create a service or run a task with the task definition.
@@ -7727,11 +7894,7 @@ module Aws::ECS
7727
7894
  # If your container instances are launched from the Amazon
7728
7895
  # ECS-optimized AMI version `20190301` or later, then they contain the
7729
7896
  # required versions of the container agent and `ecs-init`. For more
7730
- # information, see [Amazon ECS-optimized Linux AMI][1] in the *Amazon
7731
- # Elastic Container Service Developer Guide*.
7732
- #
7733
- # For tasks using the Fargate launch type, the task or service
7734
- # requires platform version 1.3.0 or later.
7897
+ # information, see [Amazon ECS-optimized Linux AMI][1]
7735
7898
  #
7736
7899
  #
7737
7900
  #
@@ -9777,16 +9940,17 @@ module Aws::ECS
9777
9940
  #
9778
9941
  # @!attribute [rw] network_mode
9779
9942
  # The Docker networking mode to use for the containers in the task.
9780
- # The valid values are `none`, `bridge`, `awsvpc`, and `host`. The
9781
- # default Docker network mode is `bridge`. If you are using the
9782
- # Fargate launch type, the `awsvpc` network mode is required. If you
9783
- # are using the EC2 launch type, any network mode can be used. If the
9784
- # network mode is set to `none`, you cannot specify port mappings in
9785
- # your container definitions, and the tasks containers do not have
9786
- # external connectivity. The `host` and `awsvpc` network modes offer
9787
- # the highest networking performance for containers because they use
9788
- # the EC2 network stack instead of the virtualized network stack
9789
- # provided by the `bridge` mode.
9943
+ # The valid values are `none`, `bridge`, `awsvpc`, and `host`. If no
9944
+ # network mode is specified, the default is `bridge`.
9945
+ #
9946
+ # For Amazon ECS tasks on Fargate, the `awsvpc` network mode is
9947
+ # required. For Amazon ECS tasks on Amazon EC2 instances, any network
9948
+ # mode can be used. If the network mode is set to `none`, you cannot
9949
+ # specify port mappings in your container definitions, and the tasks
9950
+ # containers do not have external connectivity. The `host` and
9951
+ # `awsvpc` network modes offer the highest networking performance for
9952
+ # containers because they use the EC2 network stack instead of the
9953
+ # virtualized network stack provided by the `bridge` mode.
9790
9954
  #
9791
9955
  # With the `host` and `awsvpc` network modes, exposed container ports
9792
9956
  # are mapped directly to the corresponding host port (for the `host`
@@ -9794,6 +9958,10 @@ module Aws::ECS
9794
9958
  # the `awsvpc` network mode), so you cannot take advantage of dynamic
9795
9959
  # host port mappings.
9796
9960
  #
9961
+ # When using the `host` network mode, you should not run containers
9962
+ # using the root user (UID 0). It is considered best practice to use a
9963
+ # non-root user.
9964
+ #
9797
9965
  # If the network mode is `awsvpc`, the task is allocated an elastic
9798
9966
  # network interface, and you must specify a NetworkConfiguration value
9799
9967
  # when you create a service or run a task with the task definition.
@@ -10528,6 +10696,53 @@ module Aws::ECS
10528
10696
  #
10529
10697
  class UntagResourceResponse < Aws::EmptyStructure; end
10530
10698
 
10699
+ # @note When making an API call, you may pass UpdateCapacityProviderRequest
10700
+ # data as a hash:
10701
+ #
10702
+ # {
10703
+ # name: "String", # required
10704
+ # auto_scaling_group_provider: { # required
10705
+ # managed_scaling: {
10706
+ # status: "ENABLED", # accepts ENABLED, DISABLED
10707
+ # target_capacity: 1,
10708
+ # minimum_scaling_step_size: 1,
10709
+ # maximum_scaling_step_size: 1,
10710
+ # instance_warmup_period: 1,
10711
+ # },
10712
+ # managed_termination_protection: "ENABLED", # accepts ENABLED, DISABLED
10713
+ # },
10714
+ # }
10715
+ #
10716
+ # @!attribute [rw] name
10717
+ # An object representing the parameters to update for the Auto Scaling
10718
+ # group capacity provider.
10719
+ # @return [String]
10720
+ #
10721
+ # @!attribute [rw] auto_scaling_group_provider
10722
+ # The name of the capacity provider to update.
10723
+ # @return [Types::AutoScalingGroupProviderUpdate]
10724
+ #
10725
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/UpdateCapacityProviderRequest AWS API Documentation
10726
+ #
10727
+ class UpdateCapacityProviderRequest < Struct.new(
10728
+ :name,
10729
+ :auto_scaling_group_provider)
10730
+ SENSITIVE = []
10731
+ include Aws::Structure
10732
+ end
10733
+
10734
+ # @!attribute [rw] capacity_provider
10735
+ # The details of a capacity provider.
10736
+ # @return [Types::CapacityProvider]
10737
+ #
10738
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/UpdateCapacityProviderResponse AWS API Documentation
10739
+ #
10740
+ class UpdateCapacityProviderResponse < Struct.new(
10741
+ :capacity_provider)
10742
+ SENSITIVE = []
10743
+ include Aws::Structure
10744
+ end
10745
+
10531
10746
  # @note When making an API call, you may pass UpdateClusterSettingsRequest
10532
10747
  # data as a hash:
10533
10748
  #
@@ -10750,6 +10965,10 @@ module Aws::ECS
10750
10965
  # },
10751
10966
  # ],
10752
10967
  # deployment_configuration: {
10968
+ # deployment_circuit_breaker: {
10969
+ # enable: false, # required
10970
+ # rollback: false, # required
10971
+ # },
10753
10972
  # maximum_percent: 1,
10754
10973
  # minimum_healthy_percent: 1,
10755
10974
  # },
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.71.0
4
+ version: 1.72.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: 2020-11-09 00:00:00.000000000 Z
11
+ date: 2020-11-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core