aws-sdk-ecs 1.58.0 → 1.63.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 +5 -5
- data/lib/aws-sdk-ecs.rb +1 -1
- data/lib/aws-sdk-ecs/client.rb +222 -62
- data/lib/aws-sdk-ecs/client_api.rb +23 -0
- data/lib/aws-sdk-ecs/resource.rb +1 -7
- data/lib/aws-sdk-ecs/types.rb +414 -81
- data/lib/aws-sdk-ecs/waiters.rb +64 -0
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 627808ed0354fcba1ff42d086a02afd5977b6dcd74120c0e7ac7c3c335762299
|
|
4
|
+
data.tar.gz: 963cbd6d44e8a51a03cbf82831add0a6755124a4ea3c6f6234b18e67b4529fb5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6edadc3ea6c6fce0cc2980eb530d26a917b3df92a5358f8fc5a52ab8de854e28fde24ea5d43e1db08fefccf58dd427319941bc0832e255313bdb81a7eeacde79
|
|
7
|
+
data.tar.gz: 864d807029ce69caf82790533c60f966e13c112a6e2e6035a485c80cecbcb3ba08e24294035c934bef942adb7cd66ff3d6d8cc863808bdc15ca03f4337ab1bd6
|
data/lib/aws-sdk-ecs.rb
CHANGED
data/lib/aws-sdk-ecs/client.rb
CHANGED
|
@@ -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
|
-
#
|
|
36
|
-
#
|
|
37
|
-
#
|
|
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).
|
|
@@ -105,7 +105,7 @@ module Aws::ECS
|
|
|
105
105
|
# @option options [required, String] :region
|
|
106
106
|
# The AWS region to connect to. The configured `:region` is
|
|
107
107
|
# used to determine the service `:endpoint`. When not passed,
|
|
108
|
-
# a default `:region` is
|
|
108
|
+
# a default `:region` is searched for in the following locations:
|
|
109
109
|
#
|
|
110
110
|
# * `Aws.config[:region]`
|
|
111
111
|
# * `ENV['AWS_REGION']`
|
|
@@ -161,7 +161,7 @@ module Aws::ECS
|
|
|
161
161
|
# @option options [String] :endpoint
|
|
162
162
|
# The client endpoint is normally constructed from the `:region`
|
|
163
163
|
# option. You should only configure an `:endpoint` when connecting
|
|
164
|
-
# to test endpoints. This should be
|
|
164
|
+
# to test endpoints. This should be a valid HTTP(S) URI.
|
|
165
165
|
#
|
|
166
166
|
# @option options [Integer] :endpoint_cache_max_entries (1000)
|
|
167
167
|
# Used for the maximum size limit of the LRU cache storing endpoints data
|
|
@@ -176,7 +176,7 @@ module Aws::ECS
|
|
|
176
176
|
# requests fetching endpoints information. Defaults to 60 sec.
|
|
177
177
|
#
|
|
178
178
|
# @option options [Boolean] :endpoint_discovery (false)
|
|
179
|
-
# When set to `true`, endpoint discovery will be enabled for operations when available.
|
|
179
|
+
# When set to `true`, endpoint discovery will be enabled for operations when available.
|
|
180
180
|
#
|
|
181
181
|
# @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
|
|
182
182
|
# The log formatter.
|
|
@@ -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
|
-
#
|
|
233
|
-
#
|
|
234
|
-
#
|
|
235
|
-
#
|
|
236
|
-
#
|
|
237
|
-
#
|
|
238
|
-
#
|
|
239
|
-
#
|
|
240
|
-
#
|
|
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
|
#
|
|
@@ -275,8 +279,7 @@ module Aws::ECS
|
|
|
275
279
|
#
|
|
276
280
|
# @option options [Integer] :http_read_timeout (60) The default
|
|
277
281
|
# number of seconds to wait for response data. This value can
|
|
278
|
-
# safely be set
|
|
279
|
-
# per-request on the session yielded by {#session_for}.
|
|
282
|
+
# safely be set per-request on the session.
|
|
280
283
|
#
|
|
281
284
|
# @option options [Float] :http_idle_timeout (5) The number of
|
|
282
285
|
# seconds a connection is allowed to sit idle before it is
|
|
@@ -288,7 +291,7 @@ module Aws::ECS
|
|
|
288
291
|
# request body. This option has no effect unless the request has
|
|
289
292
|
# "Expect" header set to "100-continue". Defaults to `nil` which
|
|
290
293
|
# disables this behaviour. This value can safely be set per
|
|
291
|
-
# request on the session
|
|
294
|
+
# request on the session.
|
|
292
295
|
#
|
|
293
296
|
# @option options [Boolean] :http_wire_trace (false) When `true`,
|
|
294
297
|
# HTTP debug output will be sent to the `:logger`.
|
|
@@ -474,8 +477,8 @@ module Aws::ECS
|
|
|
474
477
|
# PutAccountSetting or PutAccountSettingDefault.
|
|
475
478
|
#
|
|
476
479
|
# @option params [Array<String>] :capacity_providers
|
|
477
|
-
# The short name
|
|
478
|
-
#
|
|
480
|
+
# The short name of one or more capacity providers to associate with the
|
|
481
|
+
# cluster.
|
|
479
482
|
#
|
|
480
483
|
# If specifying a capacity provider that uses an Auto Scaling group, the
|
|
481
484
|
# capacity provider must already be created and not already associated
|
|
@@ -615,7 +618,8 @@ module Aws::ECS
|
|
|
615
618
|
# Runs and maintains a desired number of tasks from a specified task
|
|
616
619
|
# definition. If the number of tasks running in a service drops below
|
|
617
620
|
# the `desiredCount`, Amazon ECS runs another copy of the task in the
|
|
618
|
-
# specified cluster. To update an existing service, see
|
|
621
|
+
# specified cluster. To update an existing service, see the
|
|
622
|
+
# UpdateService action.
|
|
619
623
|
#
|
|
620
624
|
# In addition to maintaining the desired count of tasks in your service,
|
|
621
625
|
# you can optionally run your service behind one or more load balancers.
|
|
@@ -641,11 +645,14 @@ module Aws::ECS
|
|
|
641
645
|
#
|
|
642
646
|
# * `DAEMON` - The daemon scheduling strategy deploys exactly one task
|
|
643
647
|
# on each active container instance that meets all of the task
|
|
644
|
-
# placement constraints that you specify in your cluster.
|
|
645
|
-
#
|
|
646
|
-
#
|
|
647
|
-
#
|
|
648
|
-
#
|
|
648
|
+
# placement constraints that you specify in your cluster. The service
|
|
649
|
+
# scheduler also evaluates the task placement constraints for running
|
|
650
|
+
# tasks and will stop tasks that do not meet the placement
|
|
651
|
+
# constraints. When using this strategy, you don't need to specify a
|
|
652
|
+
# desired number of tasks, a task placement strategy, or use Service
|
|
653
|
+
# Auto Scaling policies. For more information, see [Service Scheduler
|
|
654
|
+
# Concepts][2] in the *Amazon Elastic Container Service Developer
|
|
655
|
+
# Guide*.
|
|
649
656
|
#
|
|
650
657
|
# You can optionally specify a deployment configuration for your
|
|
651
658
|
# service. The deployment is triggered by changing properties, such as
|
|
@@ -944,14 +951,17 @@ module Aws::ECS
|
|
|
944
951
|
# @option params [Integer] :health_check_grace_period_seconds
|
|
945
952
|
# The period of time, in seconds, that the Amazon ECS service scheduler
|
|
946
953
|
# should ignore unhealthy Elastic Load Balancing target health checks
|
|
947
|
-
# after a task has first started. This is only
|
|
948
|
-
# configured to use a load balancer. If your service
|
|
949
|
-
#
|
|
950
|
-
#
|
|
951
|
-
#
|
|
952
|
-
#
|
|
953
|
-
#
|
|
954
|
-
#
|
|
954
|
+
# after a task has first started. This is only used when your service is
|
|
955
|
+
# configured to use a load balancer. If your service has a load balancer
|
|
956
|
+
# defined and you don't specify a health check grace period value, the
|
|
957
|
+
# default value of `0` is used.
|
|
958
|
+
#
|
|
959
|
+
# If your service's tasks take a while to start and respond to Elastic
|
|
960
|
+
# Load Balancing health checks, you can specify a health check grace
|
|
961
|
+
# period of up to 2,147,483,647 seconds. During that time, the Amazon
|
|
962
|
+
# ECS service scheduler ignores health check status. This grace period
|
|
963
|
+
# can prevent the service scheduler from marking tasks as unhealthy and
|
|
964
|
+
# stopping them before they have time to come up.
|
|
955
965
|
#
|
|
956
966
|
# @option params [String] :scheduling_strategy
|
|
957
967
|
# The scheduling strategy to use for the service. For more information,
|
|
@@ -968,9 +978,12 @@ module Aws::ECS
|
|
|
968
978
|
#
|
|
969
979
|
# * `DAEMON`-The daemon scheduling strategy deploys exactly one task on
|
|
970
980
|
# each active container instance that meets all of the task placement
|
|
971
|
-
# constraints that you specify in your cluster.
|
|
972
|
-
#
|
|
973
|
-
#
|
|
981
|
+
# constraints that you specify in your cluster. The service scheduler
|
|
982
|
+
# also evaluates the task placement constraints for running tasks and
|
|
983
|
+
# will stop tasks that do not meet the placement constraints. When
|
|
984
|
+
# you're using this strategy, you don't need to specify a desired
|
|
985
|
+
# number of tasks, a task placement strategy, or use Service Auto
|
|
986
|
+
# Scaling policies.
|
|
974
987
|
#
|
|
975
988
|
# <note markdown="1"> Tasks using the Fargate launch type or the `CODE_DEPLOY` or
|
|
976
989
|
# `EXTERNAL` deployment controller types don't support the `DAEMON`
|
|
@@ -2283,6 +2296,9 @@ module Aws::ECS
|
|
|
2283
2296
|
# resp.task_definition.container_definitions[0].environment #=> Array
|
|
2284
2297
|
# resp.task_definition.container_definitions[0].environment[0].name #=> String
|
|
2285
2298
|
# resp.task_definition.container_definitions[0].environment[0].value #=> String
|
|
2299
|
+
# resp.task_definition.container_definitions[0].environment_files #=> Array
|
|
2300
|
+
# resp.task_definition.container_definitions[0].environment_files[0].value #=> String
|
|
2301
|
+
# resp.task_definition.container_definitions[0].environment_files[0].type #=> String, one of "s3"
|
|
2286
2302
|
# resp.task_definition.container_definitions[0].mount_points #=> Array
|
|
2287
2303
|
# resp.task_definition.container_definitions[0].mount_points[0].source_volume #=> String
|
|
2288
2304
|
# resp.task_definition.container_definitions[0].mount_points[0].container_path #=> String
|
|
@@ -2377,6 +2393,10 @@ module Aws::ECS
|
|
|
2377
2393
|
# resp.task_definition.volumes[0].docker_volume_configuration.labels["String"] #=> String
|
|
2378
2394
|
# resp.task_definition.volumes[0].efs_volume_configuration.file_system_id #=> String
|
|
2379
2395
|
# resp.task_definition.volumes[0].efs_volume_configuration.root_directory #=> String
|
|
2396
|
+
# resp.task_definition.volumes[0].efs_volume_configuration.transit_encryption #=> String, one of "ENABLED", "DISABLED"
|
|
2397
|
+
# resp.task_definition.volumes[0].efs_volume_configuration.transit_encryption_port #=> Integer
|
|
2398
|
+
# resp.task_definition.volumes[0].efs_volume_configuration.authorization_config.access_point_id #=> String
|
|
2399
|
+
# resp.task_definition.volumes[0].efs_volume_configuration.authorization_config.iam #=> String, one of "ENABLED", "DISABLED"
|
|
2380
2400
|
# resp.task_definition.status #=> String, one of "ACTIVE", "INACTIVE"
|
|
2381
2401
|
# resp.task_definition.requires_attributes #=> Array
|
|
2382
2402
|
# resp.task_definition.requires_attributes[0].name #=> String
|
|
@@ -3008,6 +3028,12 @@ module Aws::ECS
|
|
|
3008
3028
|
# resp.failures[0].reason #=> String
|
|
3009
3029
|
# resp.failures[0].detail #=> String
|
|
3010
3030
|
#
|
|
3031
|
+
#
|
|
3032
|
+
# The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
|
|
3033
|
+
#
|
|
3034
|
+
# * services_inactive
|
|
3035
|
+
# * services_stable
|
|
3036
|
+
#
|
|
3011
3037
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/DescribeServices AWS API Documentation
|
|
3012
3038
|
#
|
|
3013
3039
|
# @overload describe_services(params = {})
|
|
@@ -3136,6 +3162,9 @@ module Aws::ECS
|
|
|
3136
3162
|
# resp.task_definition.container_definitions[0].environment #=> Array
|
|
3137
3163
|
# resp.task_definition.container_definitions[0].environment[0].name #=> String
|
|
3138
3164
|
# resp.task_definition.container_definitions[0].environment[0].value #=> String
|
|
3165
|
+
# resp.task_definition.container_definitions[0].environment_files #=> Array
|
|
3166
|
+
# resp.task_definition.container_definitions[0].environment_files[0].value #=> String
|
|
3167
|
+
# resp.task_definition.container_definitions[0].environment_files[0].type #=> String, one of "s3"
|
|
3139
3168
|
# resp.task_definition.container_definitions[0].mount_points #=> Array
|
|
3140
3169
|
# resp.task_definition.container_definitions[0].mount_points[0].source_volume #=> String
|
|
3141
3170
|
# resp.task_definition.container_definitions[0].mount_points[0].container_path #=> String
|
|
@@ -3230,6 +3259,10 @@ module Aws::ECS
|
|
|
3230
3259
|
# resp.task_definition.volumes[0].docker_volume_configuration.labels["String"] #=> String
|
|
3231
3260
|
# resp.task_definition.volumes[0].efs_volume_configuration.file_system_id #=> String
|
|
3232
3261
|
# resp.task_definition.volumes[0].efs_volume_configuration.root_directory #=> String
|
|
3262
|
+
# resp.task_definition.volumes[0].efs_volume_configuration.transit_encryption #=> String, one of "ENABLED", "DISABLED"
|
|
3263
|
+
# resp.task_definition.volumes[0].efs_volume_configuration.transit_encryption_port #=> Integer
|
|
3264
|
+
# resp.task_definition.volumes[0].efs_volume_configuration.authorization_config.access_point_id #=> String
|
|
3265
|
+
# resp.task_definition.volumes[0].efs_volume_configuration.authorization_config.iam #=> String, one of "ENABLED", "DISABLED"
|
|
3233
3266
|
# resp.task_definition.status #=> String, one of "ACTIVE", "INACTIVE"
|
|
3234
3267
|
# resp.task_definition.requires_attributes #=> Array
|
|
3235
3268
|
# resp.task_definition.requires_attributes[0].name #=> String
|
|
@@ -3510,6 +3543,9 @@ module Aws::ECS
|
|
|
3510
3543
|
# resp.tasks[0].overrides.container_overrides[0].environment #=> Array
|
|
3511
3544
|
# resp.tasks[0].overrides.container_overrides[0].environment[0].name #=> String
|
|
3512
3545
|
# resp.tasks[0].overrides.container_overrides[0].environment[0].value #=> String
|
|
3546
|
+
# resp.tasks[0].overrides.container_overrides[0].environment_files #=> Array
|
|
3547
|
+
# resp.tasks[0].overrides.container_overrides[0].environment_files[0].value #=> String
|
|
3548
|
+
# resp.tasks[0].overrides.container_overrides[0].environment_files[0].type #=> String, one of "s3"
|
|
3513
3549
|
# resp.tasks[0].overrides.container_overrides[0].cpu #=> Integer
|
|
3514
3550
|
# resp.tasks[0].overrides.container_overrides[0].memory #=> Integer
|
|
3515
3551
|
# resp.tasks[0].overrides.container_overrides[0].memory_reservation #=> Integer
|
|
@@ -3543,6 +3579,12 @@ module Aws::ECS
|
|
|
3543
3579
|
# resp.failures[0].reason #=> String
|
|
3544
3580
|
# resp.failures[0].detail #=> String
|
|
3545
3581
|
#
|
|
3582
|
+
#
|
|
3583
|
+
# The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
|
|
3584
|
+
#
|
|
3585
|
+
# * tasks_running
|
|
3586
|
+
# * tasks_stopped
|
|
3587
|
+
#
|
|
3546
3588
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/DescribeTasks AWS API Documentation
|
|
3547
3589
|
#
|
|
3548
3590
|
# @overload describe_tasks(params = {})
|
|
@@ -3646,6 +3688,8 @@ module Aws::ECS
|
|
|
3646
3688
|
# * {Types::ListAccountSettingsResponse#settings #settings} => Array<Types::Setting>
|
|
3647
3689
|
# * {Types::ListAccountSettingsResponse#next_token #next_token} => String
|
|
3648
3690
|
#
|
|
3691
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
|
3692
|
+
#
|
|
3649
3693
|
#
|
|
3650
3694
|
# @example Example: To view your effective account settings
|
|
3651
3695
|
#
|
|
@@ -3785,6 +3829,8 @@ module Aws::ECS
|
|
|
3785
3829
|
# * {Types::ListAttributesResponse#attributes #attributes} => Array<Types::Attribute>
|
|
3786
3830
|
# * {Types::ListAttributesResponse#next_token #next_token} => String
|
|
3787
3831
|
#
|
|
3832
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
|
3833
|
+
#
|
|
3788
3834
|
# @example Request syntax with placeholder values
|
|
3789
3835
|
#
|
|
3790
3836
|
# resp = client.list_attributes({
|
|
@@ -3843,6 +3889,8 @@ module Aws::ECS
|
|
|
3843
3889
|
# * {Types::ListClustersResponse#cluster_arns #cluster_arns} => Array<String>
|
|
3844
3890
|
# * {Types::ListClustersResponse#next_token #next_token} => String
|
|
3845
3891
|
#
|
|
3892
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
|
3893
|
+
#
|
|
3846
3894
|
#
|
|
3847
3895
|
# @example Example: To list your available clusters
|
|
3848
3896
|
#
|
|
@@ -3941,6 +3989,8 @@ module Aws::ECS
|
|
|
3941
3989
|
# * {Types::ListContainerInstancesResponse#container_instance_arns #container_instance_arns} => Array<String>
|
|
3942
3990
|
# * {Types::ListContainerInstancesResponse#next_token #next_token} => String
|
|
3943
3991
|
#
|
|
3992
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
|
3993
|
+
#
|
|
3944
3994
|
#
|
|
3945
3995
|
# @example Example: To list your available container instances in a cluster
|
|
3946
3996
|
#
|
|
@@ -4023,6 +4073,8 @@ module Aws::ECS
|
|
|
4023
4073
|
# * {Types::ListServicesResponse#service_arns #service_arns} => Array<String>
|
|
4024
4074
|
# * {Types::ListServicesResponse#next_token #next_token} => String
|
|
4025
4075
|
#
|
|
4076
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
|
4077
|
+
#
|
|
4026
4078
|
#
|
|
4027
4079
|
# @example Example: To list the services in a cluster
|
|
4028
4080
|
#
|
|
@@ -4169,6 +4221,8 @@ module Aws::ECS
|
|
|
4169
4221
|
# * {Types::ListTaskDefinitionFamiliesResponse#families #families} => Array<String>
|
|
4170
4222
|
# * {Types::ListTaskDefinitionFamiliesResponse#next_token #next_token} => String
|
|
4171
4223
|
#
|
|
4224
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
|
4225
|
+
#
|
|
4172
4226
|
#
|
|
4173
4227
|
# @example Example: To list your registered task definition families
|
|
4174
4228
|
#
|
|
@@ -4282,6 +4336,8 @@ module Aws::ECS
|
|
|
4282
4336
|
# * {Types::ListTaskDefinitionsResponse#task_definition_arns #task_definition_arns} => Array<String>
|
|
4283
4337
|
# * {Types::ListTaskDefinitionsResponse#next_token #next_token} => String
|
|
4284
4338
|
#
|
|
4339
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
|
4340
|
+
#
|
|
4285
4341
|
#
|
|
4286
4342
|
# @example Example: To list your registered task definitions
|
|
4287
4343
|
#
|
|
@@ -4425,6 +4481,8 @@ module Aws::ECS
|
|
|
4425
4481
|
# * {Types::ListTasksResponse#task_arns #task_arns} => Array<String>
|
|
4426
4482
|
# * {Types::ListTasksResponse#next_token #next_token} => String
|
|
4427
4483
|
#
|
|
4484
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
|
4485
|
+
#
|
|
4428
4486
|
#
|
|
4429
4487
|
# @example Example: To list the tasks in a cluster
|
|
4430
4488
|
#
|
|
@@ -5443,6 +5501,12 @@ module Aws::ECS
|
|
|
5443
5501
|
# value: "String",
|
|
5444
5502
|
# },
|
|
5445
5503
|
# ],
|
|
5504
|
+
# environment_files: [
|
|
5505
|
+
# {
|
|
5506
|
+
# value: "String", # required
|
|
5507
|
+
# type: "s3", # required, accepts s3
|
|
5508
|
+
# },
|
|
5509
|
+
# ],
|
|
5446
5510
|
# mount_points: [
|
|
5447
5511
|
# {
|
|
5448
5512
|
# source_volume: "String",
|
|
@@ -5580,6 +5644,12 @@ module Aws::ECS
|
|
|
5580
5644
|
# efs_volume_configuration: {
|
|
5581
5645
|
# file_system_id: "String", # required
|
|
5582
5646
|
# root_directory: "String",
|
|
5647
|
+
# transit_encryption: "ENABLED", # accepts ENABLED, DISABLED
|
|
5648
|
+
# transit_encryption_port: 1,
|
|
5649
|
+
# authorization_config: {
|
|
5650
|
+
# access_point_id: "String",
|
|
5651
|
+
# iam: "ENABLED", # accepts ENABLED, DISABLED
|
|
5652
|
+
# },
|
|
5583
5653
|
# },
|
|
5584
5654
|
# },
|
|
5585
5655
|
# ],
|
|
@@ -5642,6 +5712,9 @@ module Aws::ECS
|
|
|
5642
5712
|
# resp.task_definition.container_definitions[0].environment #=> Array
|
|
5643
5713
|
# resp.task_definition.container_definitions[0].environment[0].name #=> String
|
|
5644
5714
|
# resp.task_definition.container_definitions[0].environment[0].value #=> String
|
|
5715
|
+
# resp.task_definition.container_definitions[0].environment_files #=> Array
|
|
5716
|
+
# resp.task_definition.container_definitions[0].environment_files[0].value #=> String
|
|
5717
|
+
# resp.task_definition.container_definitions[0].environment_files[0].type #=> String, one of "s3"
|
|
5645
5718
|
# resp.task_definition.container_definitions[0].mount_points #=> Array
|
|
5646
5719
|
# resp.task_definition.container_definitions[0].mount_points[0].source_volume #=> String
|
|
5647
5720
|
# resp.task_definition.container_definitions[0].mount_points[0].container_path #=> String
|
|
@@ -5736,6 +5809,10 @@ module Aws::ECS
|
|
|
5736
5809
|
# resp.task_definition.volumes[0].docker_volume_configuration.labels["String"] #=> String
|
|
5737
5810
|
# resp.task_definition.volumes[0].efs_volume_configuration.file_system_id #=> String
|
|
5738
5811
|
# resp.task_definition.volumes[0].efs_volume_configuration.root_directory #=> String
|
|
5812
|
+
# resp.task_definition.volumes[0].efs_volume_configuration.transit_encryption #=> String, one of "ENABLED", "DISABLED"
|
|
5813
|
+
# resp.task_definition.volumes[0].efs_volume_configuration.transit_encryption_port #=> Integer
|
|
5814
|
+
# resp.task_definition.volumes[0].efs_volume_configuration.authorization_config.access_point_id #=> String
|
|
5815
|
+
# resp.task_definition.volumes[0].efs_volume_configuration.authorization_config.iam #=> String, one of "ENABLED", "DISABLED"
|
|
5739
5816
|
# resp.task_definition.status #=> String, one of "ACTIVE", "INACTIVE"
|
|
5740
5817
|
# resp.task_definition.requires_attributes #=> Array
|
|
5741
5818
|
# resp.task_definition.requires_attributes[0].name #=> String
|
|
@@ -6056,6 +6133,12 @@ module Aws::ECS
|
|
|
6056
6133
|
# value: "String",
|
|
6057
6134
|
# },
|
|
6058
6135
|
# ],
|
|
6136
|
+
# environment_files: [
|
|
6137
|
+
# {
|
|
6138
|
+
# value: "String", # required
|
|
6139
|
+
# type: "s3", # required, accepts s3
|
|
6140
|
+
# },
|
|
6141
|
+
# ],
|
|
6059
6142
|
# cpu: 1,
|
|
6060
6143
|
# memory: 1,
|
|
6061
6144
|
# memory_reservation: 1,
|
|
@@ -6168,6 +6251,9 @@ module Aws::ECS
|
|
|
6168
6251
|
# resp.tasks[0].overrides.container_overrides[0].environment #=> Array
|
|
6169
6252
|
# resp.tasks[0].overrides.container_overrides[0].environment[0].name #=> String
|
|
6170
6253
|
# resp.tasks[0].overrides.container_overrides[0].environment[0].value #=> String
|
|
6254
|
+
# resp.tasks[0].overrides.container_overrides[0].environment_files #=> Array
|
|
6255
|
+
# resp.tasks[0].overrides.container_overrides[0].environment_files[0].value #=> String
|
|
6256
|
+
# resp.tasks[0].overrides.container_overrides[0].environment_files[0].type #=> String, one of "s3"
|
|
6171
6257
|
# resp.tasks[0].overrides.container_overrides[0].cpu #=> Integer
|
|
6172
6258
|
# resp.tasks[0].overrides.container_overrides[0].memory #=> Integer
|
|
6173
6259
|
# resp.tasks[0].overrides.container_overrides[0].memory_reservation #=> Integer
|
|
@@ -6350,6 +6436,12 @@ module Aws::ECS
|
|
|
6350
6436
|
# value: "String",
|
|
6351
6437
|
# },
|
|
6352
6438
|
# ],
|
|
6439
|
+
# environment_files: [
|
|
6440
|
+
# {
|
|
6441
|
+
# value: "String", # required
|
|
6442
|
+
# type: "s3", # required, accepts s3
|
|
6443
|
+
# },
|
|
6444
|
+
# ],
|
|
6353
6445
|
# cpu: 1,
|
|
6354
6446
|
# memory: 1,
|
|
6355
6447
|
# memory_reservation: 1,
|
|
@@ -6449,6 +6541,9 @@ module Aws::ECS
|
|
|
6449
6541
|
# resp.tasks[0].overrides.container_overrides[0].environment #=> Array
|
|
6450
6542
|
# resp.tasks[0].overrides.container_overrides[0].environment[0].name #=> String
|
|
6451
6543
|
# resp.tasks[0].overrides.container_overrides[0].environment[0].value #=> String
|
|
6544
|
+
# resp.tasks[0].overrides.container_overrides[0].environment_files #=> Array
|
|
6545
|
+
# resp.tasks[0].overrides.container_overrides[0].environment_files[0].value #=> String
|
|
6546
|
+
# resp.tasks[0].overrides.container_overrides[0].environment_files[0].type #=> String, one of "s3"
|
|
6452
6547
|
# resp.tasks[0].overrides.container_overrides[0].cpu #=> Integer
|
|
6453
6548
|
# resp.tasks[0].overrides.container_overrides[0].memory #=> Integer
|
|
6454
6549
|
# resp.tasks[0].overrides.container_overrides[0].memory_reservation #=> Integer
|
|
@@ -6603,6 +6698,9 @@ module Aws::ECS
|
|
|
6603
6698
|
# resp.task.overrides.container_overrides[0].environment #=> Array
|
|
6604
6699
|
# resp.task.overrides.container_overrides[0].environment[0].name #=> String
|
|
6605
6700
|
# resp.task.overrides.container_overrides[0].environment[0].value #=> String
|
|
6701
|
+
# resp.task.overrides.container_overrides[0].environment_files #=> Array
|
|
6702
|
+
# resp.task.overrides.container_overrides[0].environment_files[0].value #=> String
|
|
6703
|
+
# resp.task.overrides.container_overrides[0].environment_files[0].type #=> String, one of "s3"
|
|
6606
6704
|
# resp.task.overrides.container_overrides[0].cpu #=> Integer
|
|
6607
6705
|
# resp.task.overrides.container_overrides[0].memory #=> Integer
|
|
6608
6706
|
# resp.task.overrides.container_overrides[0].memory_reservation #=> Integer
|
|
@@ -7277,25 +7375,33 @@ module Aws::ECS
|
|
|
7277
7375
|
req.send_request(options)
|
|
7278
7376
|
end
|
|
7279
7377
|
|
|
7378
|
+
# Updating the task placement strategies and constraints on an Amazon
|
|
7379
|
+
# ECS service remains in preview and is a Beta Service as defined by and
|
|
7380
|
+
# subject to the Beta Service Participation Service Terms located at
|
|
7381
|
+
# [https://aws.amazon.com/service-terms][1] ("Beta Terms"). These Beta
|
|
7382
|
+
# Terms apply to your participation in this preview.
|
|
7383
|
+
#
|
|
7280
7384
|
# Modifies the parameters of a service.
|
|
7281
7385
|
#
|
|
7282
7386
|
# For services using the rolling update (`ECS`) deployment controller,
|
|
7283
|
-
# the desired count, deployment configuration, network configuration,
|
|
7284
|
-
# task definition used can
|
|
7387
|
+
# the desired count, deployment configuration, network configuration,
|
|
7388
|
+
# task placement constraints and strategies, or task definition used can
|
|
7389
|
+
# be updated.
|
|
7285
7390
|
#
|
|
7286
7391
|
# For services using the blue/green (`CODE_DEPLOY`) deployment
|
|
7287
|
-
# controller, only the desired count, deployment configuration,
|
|
7288
|
-
#
|
|
7289
|
-
#
|
|
7290
|
-
#
|
|
7291
|
-
#
|
|
7292
|
-
# Reference*.
|
|
7392
|
+
# controller, only the desired count, deployment configuration, task
|
|
7393
|
+
# placement constraints and strategies, and health check grace period
|
|
7394
|
+
# can be updated using this API. If the network configuration, platform
|
|
7395
|
+
# version, or task definition need to be updated, a new AWS CodeDeploy
|
|
7396
|
+
# deployment should be created. For more information, see
|
|
7397
|
+
# [CreateDeployment][2] in the *AWS CodeDeploy API Reference*.
|
|
7293
7398
|
#
|
|
7294
7399
|
# For services using an external deployment controller, you can update
|
|
7295
|
-
# only the desired count
|
|
7296
|
-
# If the launch type, load
|
|
7297
|
-
#
|
|
7298
|
-
# new task set. For more
|
|
7400
|
+
# only the desired count, task placement constraints and strategies, and
|
|
7401
|
+
# health check grace period using this API. If the launch type, load
|
|
7402
|
+
# balancer, network configuration, platform version, or task definition
|
|
7403
|
+
# need to be updated, you should create a new task set. For more
|
|
7404
|
+
# information, see CreateTaskSet.
|
|
7299
7405
|
#
|
|
7300
7406
|
# You can add to or subtract from the number of instantiations of a task
|
|
7301
7407
|
# definition in a service by specifying the cluster that the service is
|
|
@@ -7385,7 +7491,8 @@ module Aws::ECS
|
|
|
7385
7491
|
#
|
|
7386
7492
|
#
|
|
7387
7493
|
#
|
|
7388
|
-
# [1]: https://
|
|
7494
|
+
# [1]: https://aws.amazon.com/service-terms
|
|
7495
|
+
# [2]: https://docs.aws.amazon.com/codedeploy/latest/APIReference/API_CreateDeployment.html
|
|
7389
7496
|
#
|
|
7390
7497
|
# @option params [String] :cluster
|
|
7391
7498
|
# The short name or full Amazon Resource Name (ARN) of the cluster that
|
|
@@ -7412,9 +7519,30 @@ module Aws::ECS
|
|
|
7412
7519
|
#
|
|
7413
7520
|
# If the service is using the default capacity provider strategy for the
|
|
7414
7521
|
# cluster, the service can be updated to use one or more capacity
|
|
7415
|
-
# providers
|
|
7416
|
-
#
|
|
7417
|
-
# default capacity provider strategy
|
|
7522
|
+
# providers as opposed to the default capacity provider strategy.
|
|
7523
|
+
# However, when a service is using a capacity provider strategy that is
|
|
7524
|
+
# not the default capacity provider strategy, the service cannot be
|
|
7525
|
+
# updated to use the cluster's default capacity provider strategy.
|
|
7526
|
+
#
|
|
7527
|
+
# A capacity provider strategy consists of one or more capacity
|
|
7528
|
+
# providers along with the `base` and `weight` to assign to them. A
|
|
7529
|
+
# capacity provider must be associated with the cluster to be used in a
|
|
7530
|
+
# capacity provider strategy. The PutClusterCapacityProviders API is
|
|
7531
|
+
# used to associate a capacity provider with a cluster. Only capacity
|
|
7532
|
+
# providers with an `ACTIVE` or `UPDATING` status can be used.
|
|
7533
|
+
#
|
|
7534
|
+
# If specifying a capacity provider that uses an Auto Scaling group, the
|
|
7535
|
+
# capacity provider must already be created. New capacity providers can
|
|
7536
|
+
# be created with the CreateCapacityProvider API operation.
|
|
7537
|
+
#
|
|
7538
|
+
# To use a AWS Fargate capacity provider, specify either the `FARGATE`
|
|
7539
|
+
# or `FARGATE_SPOT` capacity providers. The AWS Fargate capacity
|
|
7540
|
+
# providers are available to all accounts and only need to be associated
|
|
7541
|
+
# with a cluster to be used.
|
|
7542
|
+
#
|
|
7543
|
+
# The PutClusterCapacityProviders API operation is used to update the
|
|
7544
|
+
# list of available capacity providers for a cluster after the cluster
|
|
7545
|
+
# is created.
|
|
7418
7546
|
#
|
|
7419
7547
|
# @option params [Types::DeploymentConfiguration] :deployment_configuration
|
|
7420
7548
|
# Optional deployment parameters that control how many tasks run during
|
|
@@ -7424,6 +7552,26 @@ module Aws::ECS
|
|
|
7424
7552
|
# An object representing the network configuration for a task or
|
|
7425
7553
|
# service.
|
|
7426
7554
|
#
|
|
7555
|
+
# @option params [Array<Types::PlacementConstraint>] :placement_constraints
|
|
7556
|
+
# An array of task placement constraint objects to update the service to
|
|
7557
|
+
# use. If no value is specified, the existing placement constraints for
|
|
7558
|
+
# the service will remain unchanged. If this value is specified, it will
|
|
7559
|
+
# override any existing placement constraints defined for the service.
|
|
7560
|
+
# To remove all existing placement constraints, specify an empty array.
|
|
7561
|
+
#
|
|
7562
|
+
# You can specify a maximum of 10 constraints per task (this limit
|
|
7563
|
+
# includes constraints in the task definition and those specified at
|
|
7564
|
+
# runtime).
|
|
7565
|
+
#
|
|
7566
|
+
# @option params [Array<Types::PlacementStrategy>] :placement_strategy
|
|
7567
|
+
# The task placement strategy objects to update the service to use. If
|
|
7568
|
+
# no value is specified, the existing placement strategy for the service
|
|
7569
|
+
# will remain unchanged. If this value is specified, it will override
|
|
7570
|
+
# the existing placement strategy defined for the service. To remove an
|
|
7571
|
+
# existing placement strategy, specify an empty object.
|
|
7572
|
+
#
|
|
7573
|
+
# You can specify a maximum of five strategy rules per service.
|
|
7574
|
+
#
|
|
7427
7575
|
# @option params [String] :platform_version
|
|
7428
7576
|
# The platform version on which your tasks in the service are running. A
|
|
7429
7577
|
# platform version is only specified for tasks using the Fargate launch
|
|
@@ -7512,6 +7660,18 @@ module Aws::ECS
|
|
|
7512
7660
|
# assign_public_ip: "ENABLED", # accepts ENABLED, DISABLED
|
|
7513
7661
|
# },
|
|
7514
7662
|
# },
|
|
7663
|
+
# placement_constraints: [
|
|
7664
|
+
# {
|
|
7665
|
+
# type: "distinctInstance", # accepts distinctInstance, memberOf
|
|
7666
|
+
# expression: "String",
|
|
7667
|
+
# },
|
|
7668
|
+
# ],
|
|
7669
|
+
# placement_strategy: [
|
|
7670
|
+
# {
|
|
7671
|
+
# type: "random", # accepts random, spread, binpack
|
|
7672
|
+
# field: "String",
|
|
7673
|
+
# },
|
|
7674
|
+
# ],
|
|
7515
7675
|
# platform_version: "String",
|
|
7516
7676
|
# force_new_deployment: false,
|
|
7517
7677
|
# health_check_grace_period_seconds: 1,
|
|
@@ -7838,7 +7998,7 @@ module Aws::ECS
|
|
|
7838
7998
|
params: params,
|
|
7839
7999
|
config: config)
|
|
7840
8000
|
context[:gem_name] = 'aws-sdk-ecs'
|
|
7841
|
-
context[:gem_version] = '1.
|
|
8001
|
+
context[:gem_version] = '1.63.0'
|
|
7842
8002
|
Seahorse::Client::Request.new(handlers, context)
|
|
7843
8003
|
end
|
|
7844
8004
|
|
|
@@ -7904,12 +8064,12 @@ module Aws::ECS
|
|
|
7904
8064
|
# The following table lists the valid waiter names, the operations they call,
|
|
7905
8065
|
# and the default `:delay` and `:max_attempts` values.
|
|
7906
8066
|
#
|
|
7907
|
-
# | waiter_name | params
|
|
7908
|
-
# | ----------------- |
|
|
7909
|
-
# | services_inactive | {#describe_services} | 15 | 40 |
|
|
7910
|
-
# | services_stable | {#describe_services} | 15 | 40 |
|
|
7911
|
-
# | tasks_running | {#describe_tasks} | 6 | 100 |
|
|
7912
|
-
# | tasks_stopped | {#describe_tasks} | 6 | 100 |
|
|
8067
|
+
# | waiter_name | params | :delay | :max_attempts |
|
|
8068
|
+
# | ----------------- | -------------------------- | -------- | ------------- |
|
|
8069
|
+
# | services_inactive | {Client#describe_services} | 15 | 40 |
|
|
8070
|
+
# | services_stable | {Client#describe_services} | 15 | 40 |
|
|
8071
|
+
# | tasks_running | {Client#describe_tasks} | 6 | 100 |
|
|
8072
|
+
# | tasks_stopped | {Client#describe_tasks} | 6 | 100 |
|
|
7913
8073
|
#
|
|
7914
8074
|
# @raise [Errors::FailureStateError] Raised when the waiter terminates
|
|
7915
8075
|
# because the waiter has entered a state that it will not transition
|