aws-sdk-ecs 1.58.0 → 1.59.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: ad6aee995ef876c4bb6361f374865a95fa81ba7a
4
- data.tar.gz: f4b27a0183294d82f74dbbbf3ebc7403e0ab465b
2
+ SHA256:
3
+ metadata.gz: 4c362005cf7550cbf4709fc8f5ecf074c746658f87f9b09a97c2a31cea0b971f
4
+ data.tar.gz: 499d1561fd517e309c156267b7bdb6356db8d9ebc9bf201d4a090fb2c96c5c55
5
5
  SHA512:
6
- metadata.gz: bfe8e6dffe386216d778b687c7d0c80125a779942d45f78f3ad872b351f02bfda773ebf3749ef894b32d5a1132cc3635209c700694f878be26997bceb7d6b359
7
- data.tar.gz: f0f1629c32c1f50e9a4bda49d8737e0662775e3f75c92ef98b48f8acd46658c776c71849f8e96f3f9a9e44e5fc12b28d3b8f109810bbf68873549fb204776fc2
6
+ metadata.gz: b79eb71c8e855972f61389da3769222f49c3f6c29a3d7b9296017a60584a96996c201c62ad6c407c72f578e8e1f1ff9738d1dea7ed8954270384b3bd969c17aa
7
+ data.tar.gz: d22da21a5ff617301457d5be87cf6015ef811dad37c4b05626244b5f6557793d6fbba8d05d97731ac24fc5f07690081b6b54cf7b4ccf7dba110c7d66f93575bd
@@ -46,6 +46,6 @@ require_relative 'aws-sdk-ecs/customizations'
46
46
  # @service
47
47
  module Aws::ECS
48
48
 
49
- GEM_VERSION = '1.58.0'
49
+ GEM_VERSION = '1.59.0'
50
50
 
51
51
  end
@@ -32,11 +32,11 @@ Aws::Plugins::GlobalConfiguration.add_identifier(:ecs)
32
32
  module Aws::ECS
33
33
  # An API client for ECS. To construct a client, you need to configure a `:region` and `:credentials`.
34
34
  #
35
- # client = Aws::ECS::Client.new(
36
- # region: region_name,
37
- # credentials: credentials,
38
- # # ...
39
- # )
35
+ # client = Aws::ECS::Client.new(
36
+ # region: region_name,
37
+ # credentials: credentials,
38
+ # # ...
39
+ # )
40
40
  #
41
41
  # For details on configuring region and credentials see
42
42
  # the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
@@ -229,15 +229,19 @@ module Aws::ECS
229
229
  #
230
230
  # @option options [String] :retry_mode ("legacy")
231
231
  # Specifies which retry algorithm to use. Values are:
232
- # * `legacy` - The pre-existing retry behavior. This is default value if
233
- # no retry mode is provided.
234
- # * `standard` - A standardized set of retry rules across the AWS SDKs.
235
- # This includes support for retry quotas, which limit the number of
236
- # unsuccessful retries a client can make.
237
- # * `adaptive` - An experimental retry mode that includes all the
238
- # functionality of `standard` mode along with automatic client side
239
- # throttling. This is a provisional mode that may change behavior
240
- # in the future.
232
+ #
233
+ # * `legacy` - The pre-existing retry behavior. This is default value if
234
+ # no retry mode is provided.
235
+ #
236
+ # * `standard` - A standardized set of retry rules across the AWS SDKs.
237
+ # This includes support for retry quotas, which limit the number of
238
+ # unsuccessful retries a client can make.
239
+ #
240
+ # * `adaptive` - An experimental retry mode that includes all the
241
+ # functionality of `standard` mode along with automatic client side
242
+ # throttling. This is a provisional mode that may change behavior
243
+ # in the future.
244
+ #
241
245
  #
242
246
  # @option options [String] :secret_access_key
243
247
  #
@@ -615,7 +619,8 @@ module Aws::ECS
615
619
  # Runs and maintains a desired number of tasks from a specified task
616
620
  # definition. If the number of tasks running in a service drops below
617
621
  # the `desiredCount`, Amazon ECS runs another copy of the task in the
618
- # specified cluster. To update an existing service, see UpdateService.
622
+ # specified cluster. To update an existing service, see the
623
+ # UpdateService action.
619
624
  #
620
625
  # In addition to maintaining the desired count of tasks in your service,
621
626
  # you can optionally run your service behind one or more load balancers.
@@ -944,14 +949,17 @@ module Aws::ECS
944
949
  # @option params [Integer] :health_check_grace_period_seconds
945
950
  # The period of time, in seconds, that the Amazon ECS service scheduler
946
951
  # should ignore unhealthy Elastic Load Balancing target health checks
947
- # after a task has first started. This is only valid if your service is
948
- # configured to use a load balancer. If your service's tasks take a
949
- # while to start and respond to Elastic Load Balancing health checks,
950
- # you can specify a health check grace period of up to 2,147,483,647
951
- # seconds. During that time, the ECS service scheduler ignores health
952
- # check status. This grace period can prevent the ECS service scheduler
953
- # from marking tasks as unhealthy and stopping them before they have
954
- # time to come up.
952
+ # after a task has first started. This is only used when your service is
953
+ # configured to use a load balancer. If your service has a load balancer
954
+ # defined and you don't specify a health check grace period value, the
955
+ # default value of `0` is used.
956
+ #
957
+ # If your service's tasks take a while to start and respond to Elastic
958
+ # Load Balancing health checks, you can specify a health check grace
959
+ # period of up to 2,147,483,647 seconds. During that time, the Amazon
960
+ # ECS service scheduler ignores health check status. This grace period
961
+ # can prevent the service scheduler from marking tasks as unhealthy and
962
+ # stopping them before they have time to come up.
955
963
  #
956
964
  # @option params [String] :scheduling_strategy
957
965
  # The scheduling strategy to use for the service. For more information,
@@ -7424,6 +7432,26 @@ module Aws::ECS
7424
7432
  # An object representing the network configuration for a task or
7425
7433
  # service.
7426
7434
  #
7435
+ # @option params [Array<Types::PlacementConstraint>] :placement_constraints
7436
+ # An array of task placement constraint objects to update the service to
7437
+ # use. If no value is specified, the existing placement constraints for
7438
+ # the service will remain unchanged. If this value is specified, it will
7439
+ # override any existing placement constraints defined for the service.
7440
+ # To remove all existing placement constraints, specify an empty array.
7441
+ #
7442
+ # You can specify a maximum of 10 constraints per task (this limit
7443
+ # includes constraints in the task definition and those specified at
7444
+ # runtime).
7445
+ #
7446
+ # @option params [Array<Types::PlacementStrategy>] :placement_strategy
7447
+ # The task placement strategy objects to update the service to use. If
7448
+ # no value is specified, the existing placement strategy for the service
7449
+ # will remain unchanged. If this value is specified, it will override
7450
+ # the existing placement strategy defined for the service. To remove an
7451
+ # existing placement strategy, specify an empty object.
7452
+ #
7453
+ # You can specify a maximum of five strategy rules per service.
7454
+ #
7427
7455
  # @option params [String] :platform_version
7428
7456
  # The platform version on which your tasks in the service are running. A
7429
7457
  # platform version is only specified for tasks using the Fargate launch
@@ -7512,6 +7540,18 @@ module Aws::ECS
7512
7540
  # assign_public_ip: "ENABLED", # accepts ENABLED, DISABLED
7513
7541
  # },
7514
7542
  # },
7543
+ # placement_constraints: [
7544
+ # {
7545
+ # type: "distinctInstance", # accepts distinctInstance, memberOf
7546
+ # expression: "String",
7547
+ # },
7548
+ # ],
7549
+ # placement_strategy: [
7550
+ # {
7551
+ # type: "random", # accepts random, spread, binpack
7552
+ # field: "String",
7553
+ # },
7554
+ # ],
7515
7555
  # platform_version: "String",
7516
7556
  # force_new_deployment: false,
7517
7557
  # health_check_grace_period_seconds: 1,
@@ -7838,7 +7878,7 @@ module Aws::ECS
7838
7878
  params: params,
7839
7879
  config: config)
7840
7880
  context[:gem_name] = 'aws-sdk-ecs'
7841
- context[:gem_version] = '1.58.0'
7881
+ context[:gem_version] = '1.59.0'
7842
7882
  Seahorse::Client::Request.new(handlers, context)
7843
7883
  end
7844
7884
 
@@ -1453,6 +1453,8 @@ module Aws::ECS
1453
1453
  UpdateServiceRequest.add_member(:capacity_provider_strategy, Shapes::ShapeRef.new(shape: CapacityProviderStrategy, location_name: "capacityProviderStrategy"))
1454
1454
  UpdateServiceRequest.add_member(:deployment_configuration, Shapes::ShapeRef.new(shape: DeploymentConfiguration, location_name: "deploymentConfiguration"))
1455
1455
  UpdateServiceRequest.add_member(:network_configuration, Shapes::ShapeRef.new(shape: NetworkConfiguration, location_name: "networkConfiguration"))
1456
+ UpdateServiceRequest.add_member(:placement_constraints, Shapes::ShapeRef.new(shape: PlacementConstraints, location_name: "placementConstraints"))
1457
+ UpdateServiceRequest.add_member(:placement_strategy, Shapes::ShapeRef.new(shape: PlacementStrategies, location_name: "placementStrategy"))
1456
1458
  UpdateServiceRequest.add_member(:platform_version, Shapes::ShapeRef.new(shape: String, location_name: "platformVersion"))
1457
1459
  UpdateServiceRequest.add_member(:force_new_deployment, Shapes::ShapeRef.new(shape: Boolean, location_name: "forceNewDeployment"))
1458
1460
  UpdateServiceRequest.add_member(:health_check_grace_period_seconds, Shapes::ShapeRef.new(shape: BoxedInteger, location_name: "healthCheckGracePeriodSeconds"))
@@ -1277,22 +1277,30 @@ module Aws::ECS
1277
1277
  # give up and not start. This results in the task transitioning to a
1278
1278
  # `STOPPED` state.
1279
1279
  #
1280
- # For tasks using the EC2 launch type, the container instances require
1281
- # at least version 1.26.0 of the container agent to enable a container
1282
- # start timeout value. However, we recommend using the latest
1283
- # container agent version. For information about checking your agent
1284
- # version and updating to the latest version, see [Updating the Amazon
1285
- # ECS Container Agent][1] in the *Amazon Elastic Container Service
1286
- # Developer Guide*. If you are using an Amazon ECS-optimized Linux
1287
- # AMI, your instance needs at least version 1.26.0-1 of the `ecs-init`
1288
- # package. If your container instances are launched from version
1289
- # `20190301` or later, then they contain the required versions of the
1290
- # container agent and `ecs-init`. For more information, see [Amazon
1291
- # ECS-optimized Linux AMI][2] in the *Amazon Elastic Container Service
1292
- # Developer Guide*.
1280
+ # For tasks using the Fargate launch type, this parameter requires
1281
+ # that the task or service uses platform version 1.3.0 or later. If
1282
+ # this parameter is not specified, the default value of 3 minutes is
1283
+ # used.
1293
1284
  #
1294
- # For tasks using the Fargate launch type, the task or service
1295
- # requires platform version `1.3.0` or later.
1285
+ # For tasks using the EC2 launch type, if the `startTimeout` parameter
1286
+ # is not specified, the value set for the Amazon ECS container agent
1287
+ # configuration variable `ECS_CONTAINER_START_TIMEOUT` is used by
1288
+ # default. If neither the `startTimeout` parameter or the
1289
+ # `ECS_CONTAINER_START_TIMEOUT` agent configuration variable are set,
1290
+ # then the default values of 3 minutes for Linux containers and 8
1291
+ # minutes on Windows containers are used. Your container instances
1292
+ # require at least version 1.26.0 of the container agent to enable a
1293
+ # container start timeout value. However, we recommend using the
1294
+ # latest container agent version. For information about checking your
1295
+ # agent version and updating to the latest version, see [Updating the
1296
+ # Amazon ECS Container Agent][1] in the *Amazon Elastic Container
1297
+ # Service Developer Guide*. If you are using an Amazon ECS-optimized
1298
+ # Linux AMI, your instance needs at least version 1.26.0-1 of the
1299
+ # `ecs-init` package. If your container instances are launched from
1300
+ # version `20190301` or later, then they contain the required versions
1301
+ # of the container agent and `ecs-init`. For more information, see
1302
+ # [Amazon ECS-optimized Linux AMI][2] in the *Amazon Elastic Container
1303
+ # Service Developer Guide*.
1296
1304
  #
1297
1305
  #
1298
1306
  #
@@ -1304,25 +1312,30 @@ module Aws::ECS
1304
1312
  # Time duration (in seconds) to wait before the container is
1305
1313
  # forcefully killed if it doesn't exit normally on its own.
1306
1314
  #
1307
- # For tasks using the Fargate launch type, the max `stopTimeout` value
1308
- # is 2 minutes and the task or service requires platform version
1309
- # `1.3.0` or later.
1310
- #
1311
- # For tasks using the EC2 launch type, the stop timeout value for the
1312
- # container takes precedence over the `ECS_CONTAINER_STOP_TIMEOUT`
1313
- # container agent configuration parameter, if used. Container
1314
- # instances require at least version 1.26.0 of the container agent to
1315
- # enable a container stop timeout value. However, we recommend using
1316
- # the latest container agent version. For information about checking
1317
- # your agent version and updating to the latest version, see [Updating
1318
- # the Amazon ECS Container Agent][1] in the *Amazon Elastic Container
1319
- # Service Developer Guide*. If you are using an Amazon ECS-optimized
1320
- # Linux AMI, your instance needs at least version 1.26.0-1 of the
1321
- # `ecs-init` package. If your container instances are launched from
1322
- # version `20190301` or later, then they contain the required versions
1323
- # of the container agent and `ecs-init`. For more information, see
1324
- # [Amazon ECS-optimized Linux AMI][2] in the *Amazon Elastic Container
1325
- # Service Developer Guide*.
1315
+ # For tasks using the Fargate launch type, the task or service
1316
+ # requires platform version 1.3.0 or later. The max stop timeout value
1317
+ # is 120 seconds and if the parameter is not specified, the default
1318
+ # value of 30 seconds is used.
1319
+ #
1320
+ # For tasks using the EC2 launch type, if the `stopTimeout` parameter
1321
+ # is not specified, the value set for the Amazon ECS container agent
1322
+ # configuration variable `ECS_CONTAINER_STOP_TIMEOUT` is used by
1323
+ # default. If neither the `stopTimeout` parameter or the
1324
+ # `ECS_CONTAINER_STOP_TIMEOUT` agent configuration variable are set,
1325
+ # then the default values of 30 seconds for Linux containers and 30
1326
+ # seconds on Windows containers are used. Your container instances
1327
+ # require at least version 1.26.0 of the container agent to enable a
1328
+ # container stop timeout value. However, we recommend using the latest
1329
+ # container agent version. For information about checking your agent
1330
+ # version and updating to the latest version, see [Updating the Amazon
1331
+ # ECS Container Agent][1] in the *Amazon Elastic Container Service
1332
+ # Developer Guide*. If you are using an Amazon ECS-optimized Linux
1333
+ # AMI, your instance needs at least version 1.26.0-1 of the `ecs-init`
1334
+ # package. If your container instances are launched from version
1335
+ # `20190301` or later, then they contain the required versions of the
1336
+ # container agent and `ecs-init`. For more information, see [Amazon
1337
+ # ECS-optimized Linux AMI][2] in the *Amazon Elastic Container Service
1338
+ # Developer Guide*.
1326
1339
  #
1327
1340
  #
1328
1341
  #
@@ -2670,14 +2683,17 @@ module Aws::ECS
2670
2683
  # @!attribute [rw] health_check_grace_period_seconds
2671
2684
  # The period of time, in seconds, that the Amazon ECS service
2672
2685
  # scheduler should ignore unhealthy Elastic Load Balancing target
2673
- # health checks after a task has first started. This is only valid if
2674
- # your service is configured to use a load balancer. If your
2675
- # service's tasks take a while to start and respond to Elastic Load
2676
- # Balancing health checks, you can specify a health check grace period
2677
- # of up to 2,147,483,647 seconds. During that time, the ECS service
2678
- # scheduler ignores health check status. This grace period can prevent
2679
- # the ECS service scheduler from marking tasks as unhealthy and
2680
- # stopping them before they have time to come up.
2686
+ # health checks after a task has first started. This is only used when
2687
+ # your service is configured to use a load balancer. If your service
2688
+ # has a load balancer defined and you don't specify a health check
2689
+ # grace period value, the default value of `0` is used.
2690
+ #
2691
+ # If your service's tasks take a while to start and respond to
2692
+ # Elastic Load Balancing health checks, you can specify a health check
2693
+ # grace period of up to 2,147,483,647 seconds. During that time, the
2694
+ # Amazon ECS service scheduler ignores health check status. This grace
2695
+ # period can prevent the service scheduler from marking tasks as
2696
+ # unhealthy and stopping them before they have time to come up.
2681
2697
  # @return [Integer]
2682
2698
  #
2683
2699
  # @!attribute [rw] scheduling_strategy
@@ -5554,8 +5570,11 @@ module Aws::ECS
5554
5570
  include Aws::Structure
5555
5571
  end
5556
5572
 
5557
- # Details on the load balancer or load balancers to use with a service
5558
- # or task set.
5573
+ # The load balancer configuration to use with a service or task set.
5574
+ #
5575
+ # For specific notes and restrictions regarding the use of load
5576
+ # balancers with services and task sets, see the CreateService and
5577
+ # CreateTaskSet actions.
5559
5578
  #
5560
5579
  # @note When making an API call, you may pass LoadBalancer
5561
5580
  # data as a hash:
@@ -5573,7 +5592,7 @@ module Aws::ECS
5573
5592
  #
5574
5593
  # A target group ARN is only specified when using an Application Load
5575
5594
  # Balancer or Network Load Balancer. If you are using a Classic Load
5576
- # Balancer this should be omitted.
5595
+ # Balancer the target group ARN should be omitted.
5577
5596
  #
5578
5597
  # For services using the `ECS` deployment controller, you can specify
5579
5598
  # one or multiple target groups. For more information, see
@@ -5604,7 +5623,7 @@ module Aws::ECS
5604
5623
  #
5605
5624
  # A load balancer name is only specified when using a Classic Load
5606
5625
  # Balancer. If you are using an Application Load Balancer or a Network
5607
- # Load Balancer this should be omitted.
5626
+ # Load Balancer the load balancer name parameter should be omitted.
5608
5627
  # @return [String]
5609
5628
  #
5610
5629
  # @!attribute [rw] container_name
@@ -10100,6 +10119,18 @@ module Aws::ECS
10100
10119
  # assign_public_ip: "ENABLED", # accepts ENABLED, DISABLED
10101
10120
  # },
10102
10121
  # },
10122
+ # placement_constraints: [
10123
+ # {
10124
+ # type: "distinctInstance", # accepts distinctInstance, memberOf
10125
+ # expression: "String",
10126
+ # },
10127
+ # ],
10128
+ # placement_strategy: [
10129
+ # {
10130
+ # type: "random", # accepts random, spread, binpack
10131
+ # field: "String",
10132
+ # },
10133
+ # ],
10103
10134
  # platform_version: "String",
10104
10135
  # force_new_deployment: false,
10105
10136
  # health_check_grace_period_seconds: 1,
@@ -10150,6 +10181,29 @@ module Aws::ECS
10150
10181
  # service.
10151
10182
  # @return [Types::NetworkConfiguration]
10152
10183
  #
10184
+ # @!attribute [rw] placement_constraints
10185
+ # An array of task placement constraint objects to update the service
10186
+ # to use. If no value is specified, the existing placement constraints
10187
+ # for the service will remain unchanged. If this value is specified,
10188
+ # it will override any existing placement constraints defined for the
10189
+ # service. To remove all existing placement constraints, specify an
10190
+ # empty array.
10191
+ #
10192
+ # You can specify a maximum of 10 constraints per task (this limit
10193
+ # includes constraints in the task definition and those specified at
10194
+ # runtime).
10195
+ # @return [Array<Types::PlacementConstraint>]
10196
+ #
10197
+ # @!attribute [rw] placement_strategy
10198
+ # The task placement strategy objects to update the service to use. If
10199
+ # no value is specified, the existing placement strategy for the
10200
+ # service will remain unchanged. If this value is specified, it will
10201
+ # override the existing placement strategy defined for the service. To
10202
+ # remove an existing placement strategy, specify an empty object.
10203
+ #
10204
+ # You can specify a maximum of five strategy rules per service.
10205
+ # @return [Array<Types::PlacementStrategy>]
10206
+ #
10153
10207
  # @!attribute [rw] platform_version
10154
10208
  # The platform version on which your tasks in the service are running.
10155
10209
  # A platform version is only specified for tasks using the Fargate
@@ -10196,6 +10250,8 @@ module Aws::ECS
10196
10250
  :capacity_provider_strategy,
10197
10251
  :deployment_configuration,
10198
10252
  :network_configuration,
10253
+ :placement_constraints,
10254
+ :placement_strategy,
10199
10255
  :platform_version,
10200
10256
  :force_new_deployment,
10201
10257
  :health_check_grace_period_seconds)
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.58.0
4
+ version: 1.59.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-03-09 00:00:00.000000000 Z
11
+ date: 2020-03-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -81,8 +81,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  requirements: []
84
- rubyforge_project:
85
- rubygems_version: 2.5.2.3
84
+ rubygems_version: 3.0.3
86
85
  signing_key:
87
86
  specification_version: 4
88
87
  summary: AWS SDK for Ruby - Amazon ECS