aws-sdk-ecs 1.110.0 → 1.112.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-ecs/client.rb +330 -55
- data/lib/aws-sdk-ecs/client_api.rb +24 -0
- data/lib/aws-sdk-ecs/endpoint_parameters.rb +0 -3
- data/lib/aws-sdk-ecs/endpoint_provider.rb +27 -24
- data/lib/aws-sdk-ecs/endpoints.rb +14 -0
- data/lib/aws-sdk-ecs/plugins/endpoints.rb +2 -0
- data/lib/aws-sdk-ecs/types.rb +210 -141
- data/lib/aws-sdk-ecs.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4c90a46a4baacf0c614cb6ddbe7370359a73afecb74f94e919a811bbdc7203f8
|
4
|
+
data.tar.gz: ba17e93cfe6d99ea96eac67e0cf39b1632c912b4f36a6cb92001154c37b56853
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 423438e98765b7af6b1427a4199dcf98eb0e47c08a3bc57fb930482e620e3b24b50e36242cf7d62c1de3c751e7da03adf563df77df2cfcc5a797b84d4fcb30e4
|
7
|
+
data.tar.gz: daffa348af405620d718fabb3027a89e241ed61ddeb687cccc81370fc14d7cc6504827c55bf956a186f414a5e272233cd2c6c5009af092de6c851cedd21beab6
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.112.0 (2023-04-05)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - This is a document only updated to add information about Amazon Elastic Inference (EI).
|
8
|
+
|
9
|
+
1.111.0 (2023-02-23)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - This release supports deleting Amazon ECS task definitions that are in the INACTIVE state.
|
13
|
+
|
4
14
|
1.110.0 (2023-01-18)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.112.0
|
data/lib/aws-sdk-ecs/client.rb
CHANGED
@@ -488,7 +488,7 @@ module Aws::ECS
|
|
488
488
|
# <note markdown="1"> When you call the CreateCluster API operation, Amazon ECS attempts to
|
489
489
|
# create the Amazon ECS service-linked role for your account. This is so
|
490
490
|
# that it can manage required resources in other Amazon Web Services
|
491
|
-
# services on your behalf. However, if the
|
491
|
+
# services on your behalf. However, if the user that makes the call
|
492
492
|
# doesn't have permissions to create the service-linked role, it isn't
|
493
493
|
# created. For more information, see [Using service-linked roles for
|
494
494
|
# Amazon ECS][1] in the *Amazon Elastic Container Service Developer
|
@@ -550,33 +550,45 @@ module Aws::ECS
|
|
550
550
|
# cluster. A capacity provider must be associated with a cluster before
|
551
551
|
# it can be included as part of the default capacity provider strategy
|
552
552
|
# of the cluster or used in a capacity provider strategy when calling
|
553
|
-
# the CreateService or RunTask actions.
|
553
|
+
# the [CreateService][1] or [RunTask][2] actions.
|
554
554
|
#
|
555
555
|
# If specifying a capacity provider that uses an Auto Scaling group, the
|
556
556
|
# capacity provider must be created but not associated with another
|
557
557
|
# cluster. New Auto Scaling group capacity providers can be created with
|
558
|
-
# the CreateCapacityProvider API operation.
|
558
|
+
# the [CreateCapacityProvider][3] API operation.
|
559
559
|
#
|
560
560
|
# To use a Fargate capacity provider, specify either the `FARGATE` or
|
561
561
|
# `FARGATE_SPOT` capacity providers. The Fargate capacity providers are
|
562
562
|
# available to all accounts and only need to be associated with a
|
563
563
|
# cluster to be used.
|
564
564
|
#
|
565
|
-
# The
|
566
|
-
#
|
567
|
-
#
|
565
|
+
# The [PutCapacityProvider][4] API operation is used to update the list
|
566
|
+
# of available capacity providers for a cluster after the cluster is
|
567
|
+
# created.
|
568
|
+
#
|
569
|
+
#
|
570
|
+
#
|
571
|
+
# [1]: https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_CreateService.html
|
572
|
+
# [2]: https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_RunTask.html
|
573
|
+
# [3]: https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_CreateCapacityProvider.html
|
574
|
+
# [4]: https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_PutCapacityProvider.html
|
568
575
|
#
|
569
576
|
# @option params [Array<Types::CapacityProviderStrategyItem>] :default_capacity_provider_strategy
|
570
577
|
# The capacity provider strategy to set as the default for the cluster.
|
571
578
|
# After a default capacity provider strategy is set for a cluster, when
|
572
|
-
# you call the
|
573
|
-
# strategy or launch type specified, the default capacity
|
574
|
-
# strategy for the cluster is used.
|
579
|
+
# you call the [CreateService][1] or [RunTask][2] APIs with no capacity
|
580
|
+
# provider strategy or launch type specified, the default capacity
|
581
|
+
# provider strategy for the cluster is used.
|
575
582
|
#
|
576
583
|
# If a default capacity provider strategy isn't defined for a cluster
|
577
584
|
# when it was created, it can be defined later with the
|
578
585
|
# PutClusterCapacityProviders API operation.
|
579
586
|
#
|
587
|
+
#
|
588
|
+
#
|
589
|
+
# [1]: https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_CreateService.html
|
590
|
+
# [2]: https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_RunTask.html
|
591
|
+
#
|
580
592
|
# @option params [Types::ClusterServiceConnectDefaultsRequest] :service_connect_defaults
|
581
593
|
# Use this parameter to set a default Service Connect namespace. After
|
582
594
|
# you set a default Service Connect namespace, any new services with
|
@@ -723,6 +735,17 @@ module Aws::ECS
|
|
723
735
|
# specified cluster. To update an existing service, see the
|
724
736
|
# UpdateService action.
|
725
737
|
#
|
738
|
+
# <note markdown="1"> Starting April 15, 2023, Amazon Web Services will not onboard new
|
739
|
+
# customers to Amazon Elastic Inference (EI), and will help current
|
740
|
+
# customers migrate their workloads to options that offer better price
|
741
|
+
# and performance. After April 15, 2023, new customers will not be able
|
742
|
+
# to launch instances with Amazon EI accelerators in Amazon SageMaker,
|
743
|
+
# Amazon ECS, or Amazon EC2. However, customers who have used Amazon EI
|
744
|
+
# at least once during the past 30-day period are considered current
|
745
|
+
# customers and will be able to continue using the service.
|
746
|
+
#
|
747
|
+
# </note>
|
748
|
+
#
|
726
749
|
# In addition to maintaining the desired count of tasks in your service,
|
727
750
|
# you can optionally run your service behind one or more load balancers.
|
728
751
|
# The load balancers distribute traffic across the tasks that are
|
@@ -1137,7 +1160,11 @@ module Aws::ECS
|
|
1137
1160
|
# Specifies whether to propagate the tags from the task definition to
|
1138
1161
|
# the task. If no value is specified, the tags aren't propagated. Tags
|
1139
1162
|
# can only be propagated to the task during task creation. To add tags
|
1140
|
-
# to a task after task creation, use the TagResource API action.
|
1163
|
+
# to a task after task creation, use the [TagResource][1] API action.
|
1164
|
+
#
|
1165
|
+
#
|
1166
|
+
#
|
1167
|
+
# [1]: https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_TagResource.html
|
1141
1168
|
#
|
1142
1169
|
# @option params [Boolean] :enable_execute_command
|
1143
1170
|
# Determines whether the execute command functionality is enabled for
|
@@ -1788,8 +1815,8 @@ module Aws::ECS
|
|
1788
1815
|
req.send_request(options)
|
1789
1816
|
end
|
1790
1817
|
|
1791
|
-
# Disables an account setting for a specified
|
1792
|
-
#
|
1818
|
+
# Disables an account setting for a specified user, role, or the root
|
1819
|
+
# user for an account.
|
1793
1820
|
#
|
1794
1821
|
# @option params [required, String] :name
|
1795
1822
|
# The resource name to disable the account setting for. If
|
@@ -1802,12 +1829,12 @@ module Aws::ECS
|
|
1802
1829
|
# container instances is affected.
|
1803
1830
|
#
|
1804
1831
|
# @option params [String] :principal_arn
|
1805
|
-
# The Amazon Resource Name (ARN) of the principal. It can be an
|
1806
|
-
#
|
1807
|
-
#
|
1808
|
-
#
|
1809
|
-
#
|
1810
|
-
#
|
1832
|
+
# The Amazon Resource Name (ARN) of the principal. It can be an user,
|
1833
|
+
# role, or the root user. If you specify the root user, it disables the
|
1834
|
+
# account setting for all users, roles, and the root user of the account
|
1835
|
+
# unless a user or role explicitly overrides these settings. If this
|
1836
|
+
# field is omitted, the setting is changed only for the authenticated
|
1837
|
+
# user.
|
1811
1838
|
#
|
1812
1839
|
# @return [Types::DeleteAccountSettingResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1813
1840
|
#
|
@@ -2297,6 +2324,226 @@ module Aws::ECS
|
|
2297
2324
|
req.send_request(options)
|
2298
2325
|
end
|
2299
2326
|
|
2327
|
+
# Deletes one or more task definitions.
|
2328
|
+
#
|
2329
|
+
# You must deregister a task definition revision before you delete it.
|
2330
|
+
# For more information, see [DeregisterTaskDefinition][1].
|
2331
|
+
#
|
2332
|
+
# When you delete a task definition revision, it is immediately
|
2333
|
+
# transitions from the `INACTIVE` to `DELETE_IN_PROGRESS`. Existing
|
2334
|
+
# tasks and services that reference a `DELETE_IN_PROGRESS` task
|
2335
|
+
# definition revision continue to run without disruption. Existing
|
2336
|
+
# services that reference a `DELETE_IN_PROGRESS` task definition
|
2337
|
+
# revision can still scale up or down by modifying the service's
|
2338
|
+
# desired count.
|
2339
|
+
#
|
2340
|
+
# You can't use a `DELETE_IN_PROGRESS` task definition revision to run
|
2341
|
+
# new tasks or create new services. You also can't update an existing
|
2342
|
+
# service to reference a `DELETE_IN_PROGRESS` task definition revision.
|
2343
|
+
#
|
2344
|
+
# A task definition revision will stay in `DELETE_IN_PROGRESS` status
|
2345
|
+
# until all the associated tasks and services have been terminated.
|
2346
|
+
#
|
2347
|
+
#
|
2348
|
+
#
|
2349
|
+
# [1]: https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_DeregisterTaskDefinition.html
|
2350
|
+
#
|
2351
|
+
# @option params [required, Array<String>] :task_definitions
|
2352
|
+
# The `family` and `revision` (`family:revision`) or full Amazon
|
2353
|
+
# Resource Name (ARN) of the task definition to delete. You must specify
|
2354
|
+
# a `revision`.
|
2355
|
+
#
|
2356
|
+
# You can specify up to 10 task definitions as a comma separated list.
|
2357
|
+
#
|
2358
|
+
# @return [Types::DeleteTaskDefinitionsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2359
|
+
#
|
2360
|
+
# * {Types::DeleteTaskDefinitionsResponse#task_definitions #task_definitions} => Array<Types::TaskDefinition>
|
2361
|
+
# * {Types::DeleteTaskDefinitionsResponse#failures #failures} => Array<Types::Failure>
|
2362
|
+
#
|
2363
|
+
# @example Request syntax with placeholder values
|
2364
|
+
#
|
2365
|
+
# resp = client.delete_task_definitions({
|
2366
|
+
# task_definitions: ["String"], # required
|
2367
|
+
# })
|
2368
|
+
#
|
2369
|
+
# @example Response structure
|
2370
|
+
#
|
2371
|
+
# resp.task_definitions #=> Array
|
2372
|
+
# resp.task_definitions[0].task_definition_arn #=> String
|
2373
|
+
# resp.task_definitions[0].container_definitions #=> Array
|
2374
|
+
# resp.task_definitions[0].container_definitions[0].name #=> String
|
2375
|
+
# resp.task_definitions[0].container_definitions[0].image #=> String
|
2376
|
+
# resp.task_definitions[0].container_definitions[0].repository_credentials.credentials_parameter #=> String
|
2377
|
+
# resp.task_definitions[0].container_definitions[0].cpu #=> Integer
|
2378
|
+
# resp.task_definitions[0].container_definitions[0].memory #=> Integer
|
2379
|
+
# resp.task_definitions[0].container_definitions[0].memory_reservation #=> Integer
|
2380
|
+
# resp.task_definitions[0].container_definitions[0].links #=> Array
|
2381
|
+
# resp.task_definitions[0].container_definitions[0].links[0] #=> String
|
2382
|
+
# resp.task_definitions[0].container_definitions[0].port_mappings #=> Array
|
2383
|
+
# resp.task_definitions[0].container_definitions[0].port_mappings[0].container_port #=> Integer
|
2384
|
+
# resp.task_definitions[0].container_definitions[0].port_mappings[0].host_port #=> Integer
|
2385
|
+
# resp.task_definitions[0].container_definitions[0].port_mappings[0].protocol #=> String, one of "tcp", "udp"
|
2386
|
+
# resp.task_definitions[0].container_definitions[0].port_mappings[0].name #=> String
|
2387
|
+
# resp.task_definitions[0].container_definitions[0].port_mappings[0].app_protocol #=> String, one of "http", "http2", "grpc"
|
2388
|
+
# resp.task_definitions[0].container_definitions[0].port_mappings[0].container_port_range #=> String
|
2389
|
+
# resp.task_definitions[0].container_definitions[0].essential #=> Boolean
|
2390
|
+
# resp.task_definitions[0].container_definitions[0].entry_point #=> Array
|
2391
|
+
# resp.task_definitions[0].container_definitions[0].entry_point[0] #=> String
|
2392
|
+
# resp.task_definitions[0].container_definitions[0].command #=> Array
|
2393
|
+
# resp.task_definitions[0].container_definitions[0].command[0] #=> String
|
2394
|
+
# resp.task_definitions[0].container_definitions[0].environment #=> Array
|
2395
|
+
# resp.task_definitions[0].container_definitions[0].environment[0].name #=> String
|
2396
|
+
# resp.task_definitions[0].container_definitions[0].environment[0].value #=> String
|
2397
|
+
# resp.task_definitions[0].container_definitions[0].environment_files #=> Array
|
2398
|
+
# resp.task_definitions[0].container_definitions[0].environment_files[0].value #=> String
|
2399
|
+
# resp.task_definitions[0].container_definitions[0].environment_files[0].type #=> String, one of "s3"
|
2400
|
+
# resp.task_definitions[0].container_definitions[0].mount_points #=> Array
|
2401
|
+
# resp.task_definitions[0].container_definitions[0].mount_points[0].source_volume #=> String
|
2402
|
+
# resp.task_definitions[0].container_definitions[0].mount_points[0].container_path #=> String
|
2403
|
+
# resp.task_definitions[0].container_definitions[0].mount_points[0].read_only #=> Boolean
|
2404
|
+
# resp.task_definitions[0].container_definitions[0].volumes_from #=> Array
|
2405
|
+
# resp.task_definitions[0].container_definitions[0].volumes_from[0].source_container #=> String
|
2406
|
+
# resp.task_definitions[0].container_definitions[0].volumes_from[0].read_only #=> Boolean
|
2407
|
+
# resp.task_definitions[0].container_definitions[0].linux_parameters.capabilities.add #=> Array
|
2408
|
+
# resp.task_definitions[0].container_definitions[0].linux_parameters.capabilities.add[0] #=> String
|
2409
|
+
# resp.task_definitions[0].container_definitions[0].linux_parameters.capabilities.drop #=> Array
|
2410
|
+
# resp.task_definitions[0].container_definitions[0].linux_parameters.capabilities.drop[0] #=> String
|
2411
|
+
# resp.task_definitions[0].container_definitions[0].linux_parameters.devices #=> Array
|
2412
|
+
# resp.task_definitions[0].container_definitions[0].linux_parameters.devices[0].host_path #=> String
|
2413
|
+
# resp.task_definitions[0].container_definitions[0].linux_parameters.devices[0].container_path #=> String
|
2414
|
+
# resp.task_definitions[0].container_definitions[0].linux_parameters.devices[0].permissions #=> Array
|
2415
|
+
# resp.task_definitions[0].container_definitions[0].linux_parameters.devices[0].permissions[0] #=> String, one of "read", "write", "mknod"
|
2416
|
+
# resp.task_definitions[0].container_definitions[0].linux_parameters.init_process_enabled #=> Boolean
|
2417
|
+
# resp.task_definitions[0].container_definitions[0].linux_parameters.shared_memory_size #=> Integer
|
2418
|
+
# resp.task_definitions[0].container_definitions[0].linux_parameters.tmpfs #=> Array
|
2419
|
+
# resp.task_definitions[0].container_definitions[0].linux_parameters.tmpfs[0].container_path #=> String
|
2420
|
+
# resp.task_definitions[0].container_definitions[0].linux_parameters.tmpfs[0].size #=> Integer
|
2421
|
+
# resp.task_definitions[0].container_definitions[0].linux_parameters.tmpfs[0].mount_options #=> Array
|
2422
|
+
# resp.task_definitions[0].container_definitions[0].linux_parameters.tmpfs[0].mount_options[0] #=> String
|
2423
|
+
# resp.task_definitions[0].container_definitions[0].linux_parameters.max_swap #=> Integer
|
2424
|
+
# resp.task_definitions[0].container_definitions[0].linux_parameters.swappiness #=> Integer
|
2425
|
+
# resp.task_definitions[0].container_definitions[0].secrets #=> Array
|
2426
|
+
# resp.task_definitions[0].container_definitions[0].secrets[0].name #=> String
|
2427
|
+
# resp.task_definitions[0].container_definitions[0].secrets[0].value_from #=> String
|
2428
|
+
# resp.task_definitions[0].container_definitions[0].depends_on #=> Array
|
2429
|
+
# resp.task_definitions[0].container_definitions[0].depends_on[0].container_name #=> String
|
2430
|
+
# resp.task_definitions[0].container_definitions[0].depends_on[0].condition #=> String, one of "START", "COMPLETE", "SUCCESS", "HEALTHY"
|
2431
|
+
# resp.task_definitions[0].container_definitions[0].start_timeout #=> Integer
|
2432
|
+
# resp.task_definitions[0].container_definitions[0].stop_timeout #=> Integer
|
2433
|
+
# resp.task_definitions[0].container_definitions[0].hostname #=> String
|
2434
|
+
# resp.task_definitions[0].container_definitions[0].user #=> String
|
2435
|
+
# resp.task_definitions[0].container_definitions[0].working_directory #=> String
|
2436
|
+
# resp.task_definitions[0].container_definitions[0].disable_networking #=> Boolean
|
2437
|
+
# resp.task_definitions[0].container_definitions[0].privileged #=> Boolean
|
2438
|
+
# resp.task_definitions[0].container_definitions[0].readonly_root_filesystem #=> Boolean
|
2439
|
+
# resp.task_definitions[0].container_definitions[0].dns_servers #=> Array
|
2440
|
+
# resp.task_definitions[0].container_definitions[0].dns_servers[0] #=> String
|
2441
|
+
# resp.task_definitions[0].container_definitions[0].dns_search_domains #=> Array
|
2442
|
+
# resp.task_definitions[0].container_definitions[0].dns_search_domains[0] #=> String
|
2443
|
+
# resp.task_definitions[0].container_definitions[0].extra_hosts #=> Array
|
2444
|
+
# resp.task_definitions[0].container_definitions[0].extra_hosts[0].hostname #=> String
|
2445
|
+
# resp.task_definitions[0].container_definitions[0].extra_hosts[0].ip_address #=> String
|
2446
|
+
# resp.task_definitions[0].container_definitions[0].docker_security_options #=> Array
|
2447
|
+
# resp.task_definitions[0].container_definitions[0].docker_security_options[0] #=> String
|
2448
|
+
# resp.task_definitions[0].container_definitions[0].interactive #=> Boolean
|
2449
|
+
# resp.task_definitions[0].container_definitions[0].pseudo_terminal #=> Boolean
|
2450
|
+
# resp.task_definitions[0].container_definitions[0].docker_labels #=> Hash
|
2451
|
+
# resp.task_definitions[0].container_definitions[0].docker_labels["String"] #=> String
|
2452
|
+
# resp.task_definitions[0].container_definitions[0].ulimits #=> Array
|
2453
|
+
# resp.task_definitions[0].container_definitions[0].ulimits[0].name #=> String, one of "core", "cpu", "data", "fsize", "locks", "memlock", "msgqueue", "nice", "nofile", "nproc", "rss", "rtprio", "rttime", "sigpending", "stack"
|
2454
|
+
# resp.task_definitions[0].container_definitions[0].ulimits[0].soft_limit #=> Integer
|
2455
|
+
# resp.task_definitions[0].container_definitions[0].ulimits[0].hard_limit #=> Integer
|
2456
|
+
# resp.task_definitions[0].container_definitions[0].log_configuration.log_driver #=> String, one of "json-file", "syslog", "journald", "gelf", "fluentd", "awslogs", "splunk", "awsfirelens"
|
2457
|
+
# resp.task_definitions[0].container_definitions[0].log_configuration.options #=> Hash
|
2458
|
+
# resp.task_definitions[0].container_definitions[0].log_configuration.options["String"] #=> String
|
2459
|
+
# resp.task_definitions[0].container_definitions[0].log_configuration.secret_options #=> Array
|
2460
|
+
# resp.task_definitions[0].container_definitions[0].log_configuration.secret_options[0].name #=> String
|
2461
|
+
# resp.task_definitions[0].container_definitions[0].log_configuration.secret_options[0].value_from #=> String
|
2462
|
+
# resp.task_definitions[0].container_definitions[0].health_check.command #=> Array
|
2463
|
+
# resp.task_definitions[0].container_definitions[0].health_check.command[0] #=> String
|
2464
|
+
# resp.task_definitions[0].container_definitions[0].health_check.interval #=> Integer
|
2465
|
+
# resp.task_definitions[0].container_definitions[0].health_check.timeout #=> Integer
|
2466
|
+
# resp.task_definitions[0].container_definitions[0].health_check.retries #=> Integer
|
2467
|
+
# resp.task_definitions[0].container_definitions[0].health_check.start_period #=> Integer
|
2468
|
+
# resp.task_definitions[0].container_definitions[0].system_controls #=> Array
|
2469
|
+
# resp.task_definitions[0].container_definitions[0].system_controls[0].namespace #=> String
|
2470
|
+
# resp.task_definitions[0].container_definitions[0].system_controls[0].value #=> String
|
2471
|
+
# resp.task_definitions[0].container_definitions[0].resource_requirements #=> Array
|
2472
|
+
# resp.task_definitions[0].container_definitions[0].resource_requirements[0].value #=> String
|
2473
|
+
# resp.task_definitions[0].container_definitions[0].resource_requirements[0].type #=> String, one of "GPU", "InferenceAccelerator"
|
2474
|
+
# resp.task_definitions[0].container_definitions[0].firelens_configuration.type #=> String, one of "fluentd", "fluentbit"
|
2475
|
+
# resp.task_definitions[0].container_definitions[0].firelens_configuration.options #=> Hash
|
2476
|
+
# resp.task_definitions[0].container_definitions[0].firelens_configuration.options["String"] #=> String
|
2477
|
+
# resp.task_definitions[0].family #=> String
|
2478
|
+
# resp.task_definitions[0].task_role_arn #=> String
|
2479
|
+
# resp.task_definitions[0].execution_role_arn #=> String
|
2480
|
+
# resp.task_definitions[0].network_mode #=> String, one of "bridge", "host", "awsvpc", "none"
|
2481
|
+
# resp.task_definitions[0].revision #=> Integer
|
2482
|
+
# resp.task_definitions[0].volumes #=> Array
|
2483
|
+
# resp.task_definitions[0].volumes[0].name #=> String
|
2484
|
+
# resp.task_definitions[0].volumes[0].host.source_path #=> String
|
2485
|
+
# resp.task_definitions[0].volumes[0].docker_volume_configuration.scope #=> String, one of "task", "shared"
|
2486
|
+
# resp.task_definitions[0].volumes[0].docker_volume_configuration.autoprovision #=> Boolean
|
2487
|
+
# resp.task_definitions[0].volumes[0].docker_volume_configuration.driver #=> String
|
2488
|
+
# resp.task_definitions[0].volumes[0].docker_volume_configuration.driver_opts #=> Hash
|
2489
|
+
# resp.task_definitions[0].volumes[0].docker_volume_configuration.driver_opts["String"] #=> String
|
2490
|
+
# resp.task_definitions[0].volumes[0].docker_volume_configuration.labels #=> Hash
|
2491
|
+
# resp.task_definitions[0].volumes[0].docker_volume_configuration.labels["String"] #=> String
|
2492
|
+
# resp.task_definitions[0].volumes[0].efs_volume_configuration.file_system_id #=> String
|
2493
|
+
# resp.task_definitions[0].volumes[0].efs_volume_configuration.root_directory #=> String
|
2494
|
+
# resp.task_definitions[0].volumes[0].efs_volume_configuration.transit_encryption #=> String, one of "ENABLED", "DISABLED"
|
2495
|
+
# resp.task_definitions[0].volumes[0].efs_volume_configuration.transit_encryption_port #=> Integer
|
2496
|
+
# resp.task_definitions[0].volumes[0].efs_volume_configuration.authorization_config.access_point_id #=> String
|
2497
|
+
# resp.task_definitions[0].volumes[0].efs_volume_configuration.authorization_config.iam #=> String, one of "ENABLED", "DISABLED"
|
2498
|
+
# resp.task_definitions[0].volumes[0].fsx_windows_file_server_volume_configuration.file_system_id #=> String
|
2499
|
+
# resp.task_definitions[0].volumes[0].fsx_windows_file_server_volume_configuration.root_directory #=> String
|
2500
|
+
# resp.task_definitions[0].volumes[0].fsx_windows_file_server_volume_configuration.authorization_config.credentials_parameter #=> String
|
2501
|
+
# resp.task_definitions[0].volumes[0].fsx_windows_file_server_volume_configuration.authorization_config.domain #=> String
|
2502
|
+
# resp.task_definitions[0].status #=> String, one of "ACTIVE", "INACTIVE", "DELETE_IN_PROGRESS"
|
2503
|
+
# resp.task_definitions[0].requires_attributes #=> Array
|
2504
|
+
# resp.task_definitions[0].requires_attributes[0].name #=> String
|
2505
|
+
# resp.task_definitions[0].requires_attributes[0].value #=> String
|
2506
|
+
# resp.task_definitions[0].requires_attributes[0].target_type #=> String, one of "container-instance"
|
2507
|
+
# resp.task_definitions[0].requires_attributes[0].target_id #=> String
|
2508
|
+
# resp.task_definitions[0].placement_constraints #=> Array
|
2509
|
+
# resp.task_definitions[0].placement_constraints[0].type #=> String, one of "memberOf"
|
2510
|
+
# resp.task_definitions[0].placement_constraints[0].expression #=> String
|
2511
|
+
# resp.task_definitions[0].compatibilities #=> Array
|
2512
|
+
# resp.task_definitions[0].compatibilities[0] #=> String, one of "EC2", "FARGATE", "EXTERNAL"
|
2513
|
+
# resp.task_definitions[0].runtime_platform.cpu_architecture #=> String, one of "X86_64", "ARM64"
|
2514
|
+
# resp.task_definitions[0].runtime_platform.operating_system_family #=> String, one of "WINDOWS_SERVER_2019_FULL", "WINDOWS_SERVER_2019_CORE", "WINDOWS_SERVER_2016_FULL", "WINDOWS_SERVER_2004_CORE", "WINDOWS_SERVER_2022_CORE", "WINDOWS_SERVER_2022_FULL", "WINDOWS_SERVER_20H2_CORE", "LINUX"
|
2515
|
+
# resp.task_definitions[0].requires_compatibilities #=> Array
|
2516
|
+
# resp.task_definitions[0].requires_compatibilities[0] #=> String, one of "EC2", "FARGATE", "EXTERNAL"
|
2517
|
+
# resp.task_definitions[0].cpu #=> String
|
2518
|
+
# resp.task_definitions[0].memory #=> String
|
2519
|
+
# resp.task_definitions[0].inference_accelerators #=> Array
|
2520
|
+
# resp.task_definitions[0].inference_accelerators[0].device_name #=> String
|
2521
|
+
# resp.task_definitions[0].inference_accelerators[0].device_type #=> String
|
2522
|
+
# resp.task_definitions[0].pid_mode #=> String, one of "host", "task"
|
2523
|
+
# resp.task_definitions[0].ipc_mode #=> String, one of "host", "task", "none"
|
2524
|
+
# resp.task_definitions[0].proxy_configuration.type #=> String, one of "APPMESH"
|
2525
|
+
# resp.task_definitions[0].proxy_configuration.container_name #=> String
|
2526
|
+
# resp.task_definitions[0].proxy_configuration.properties #=> Array
|
2527
|
+
# resp.task_definitions[0].proxy_configuration.properties[0].name #=> String
|
2528
|
+
# resp.task_definitions[0].proxy_configuration.properties[0].value #=> String
|
2529
|
+
# resp.task_definitions[0].registered_at #=> Time
|
2530
|
+
# resp.task_definitions[0].deregistered_at #=> Time
|
2531
|
+
# resp.task_definitions[0].registered_by #=> String
|
2532
|
+
# resp.task_definitions[0].ephemeral_storage.size_in_gi_b #=> Integer
|
2533
|
+
# resp.failures #=> Array
|
2534
|
+
# resp.failures[0].arn #=> String
|
2535
|
+
# resp.failures[0].reason #=> String
|
2536
|
+
# resp.failures[0].detail #=> String
|
2537
|
+
#
|
2538
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/DeleteTaskDefinitions AWS API Documentation
|
2539
|
+
#
|
2540
|
+
# @overload delete_task_definitions(params = {})
|
2541
|
+
# @param [Hash] params ({})
|
2542
|
+
def delete_task_definitions(params = {}, options = {})
|
2543
|
+
req = build_request(:delete_task_definitions, params)
|
2544
|
+
req.send_request(options)
|
2545
|
+
end
|
2546
|
+
|
2300
2547
|
# Deletes a specified task set within a service. This is used when a
|
2301
2548
|
# service uses the `EXTERNAL` deployment controller type. For more
|
2302
2549
|
# information, see [Amazon ECS deployment types][1] in the *Amazon
|
@@ -2534,7 +2781,8 @@ module Aws::ECS
|
|
2534
2781
|
# tasks and services that reference an `INACTIVE` task definition
|
2535
2782
|
# continue to run without disruption. Existing services that reference
|
2536
2783
|
# an `INACTIVE` task definition can still scale up or down by modifying
|
2537
|
-
# the service's desired count.
|
2784
|
+
# the service's desired count. If you want to delete a task definition
|
2785
|
+
# revision, you must first deregister the task definition revision.
|
2538
2786
|
#
|
2539
2787
|
# You can't use an `INACTIVE` task definition to run new tasks or
|
2540
2788
|
# create new services, and you can't update an existing service to
|
@@ -2550,6 +2798,13 @@ module Aws::ECS
|
|
2550
2798
|
#
|
2551
2799
|
# </note>
|
2552
2800
|
#
|
2801
|
+
# You must deregister a task definition revision before you delete it.
|
2802
|
+
# For more information, see [DeleteTaskDefinitions][1].
|
2803
|
+
#
|
2804
|
+
#
|
2805
|
+
#
|
2806
|
+
# [1]: https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_DeleteTaskDefinitions.html
|
2807
|
+
#
|
2553
2808
|
# @option params [required, String] :task_definition
|
2554
2809
|
# The `family` and `revision` (`family:revision`) or full Amazon
|
2555
2810
|
# Resource Name (ARN) of the task definition to deregister. You must
|
@@ -2697,7 +2952,7 @@ module Aws::ECS
|
|
2697
2952
|
# resp.task_definition.volumes[0].fsx_windows_file_server_volume_configuration.root_directory #=> String
|
2698
2953
|
# resp.task_definition.volumes[0].fsx_windows_file_server_volume_configuration.authorization_config.credentials_parameter #=> String
|
2699
2954
|
# resp.task_definition.volumes[0].fsx_windows_file_server_volume_configuration.authorization_config.domain #=> String
|
2700
|
-
# resp.task_definition.status #=> String, one of "ACTIVE", "INACTIVE"
|
2955
|
+
# resp.task_definition.status #=> String, one of "ACTIVE", "INACTIVE", "DELETE_IN_PROGRESS"
|
2701
2956
|
# resp.task_definition.requires_attributes #=> Array
|
2702
2957
|
# resp.task_definition.requires_attributes[0].name #=> String
|
2703
2958
|
# resp.task_definition.requires_attributes[0].value #=> String
|
@@ -3613,7 +3868,7 @@ module Aws::ECS
|
|
3613
3868
|
# resp.task_definition.volumes[0].fsx_windows_file_server_volume_configuration.root_directory #=> String
|
3614
3869
|
# resp.task_definition.volumes[0].fsx_windows_file_server_volume_configuration.authorization_config.credentials_parameter #=> String
|
3615
3870
|
# resp.task_definition.volumes[0].fsx_windows_file_server_volume_configuration.authorization_config.domain #=> String
|
3616
|
-
# resp.task_definition.status #=> String, one of "ACTIVE", "INACTIVE"
|
3871
|
+
# resp.task_definition.status #=> String, one of "ACTIVE", "INACTIVE", "DELETE_IN_PROGRESS"
|
3617
3872
|
# resp.task_definition.requires_attributes #=> Array
|
3618
3873
|
# resp.task_definition.requires_attributes[0].name #=> String
|
3619
3874
|
# resp.task_definition.requires_attributes[0].value #=> String
|
@@ -4163,9 +4418,9 @@ module Aws::ECS
|
|
4163
4418
|
# also specify an account setting name to use this parameter.
|
4164
4419
|
#
|
4165
4420
|
# @option params [String] :principal_arn
|
4166
|
-
# The ARN of the principal, which can be
|
4167
|
-
#
|
4168
|
-
#
|
4421
|
+
# The ARN of the principal, which can be a user, role, or the root user.
|
4422
|
+
# If this field is omitted, the account settings are listed only for the
|
4423
|
+
# authenticated user.
|
4169
4424
|
#
|
4170
4425
|
# <note markdown="1"> Federated users assume the account setting of the root user and can't
|
4171
4426
|
# have explicit account settings set for them.
|
@@ -4976,7 +5231,7 @@ module Aws::ECS
|
|
4976
5231
|
#
|
4977
5232
|
# resp = client.list_task_definitions({
|
4978
5233
|
# family_prefix: "String",
|
4979
|
-
# status: "ACTIVE", # accepts ACTIVE, INACTIVE
|
5234
|
+
# status: "ACTIVE", # accepts ACTIVE, INACTIVE, DELETE_IN_PROGRESS
|
4980
5235
|
# sort: "ASC", # accepts ASC, DESC
|
4981
5236
|
# next_token: "String",
|
4982
5237
|
# max_results: 1,
|
@@ -5148,7 +5403,7 @@ module Aws::ECS
|
|
5148
5403
|
# basis.
|
5149
5404
|
#
|
5150
5405
|
# If you change the account setting for the root user, the default
|
5151
|
-
# settings for all of the
|
5406
|
+
# settings for all of the users and roles that no individual account
|
5152
5407
|
# setting was specified are reset for. For more information, see
|
5153
5408
|
# [Account Settings][1] in the *Amazon Elastic Container Service
|
5154
5409
|
# Developer Guide*.
|
@@ -5156,12 +5411,12 @@ module Aws::ECS
|
|
5156
5411
|
# When `serviceLongArnFormat`, `taskLongArnFormat`, or
|
5157
5412
|
# `containerInstanceLongArnFormat` are specified, the Amazon Resource
|
5158
5413
|
# Name (ARN) and resource ID format of the resource type for a specified
|
5159
|
-
#
|
5160
|
-
#
|
5161
|
-
#
|
5162
|
-
#
|
5163
|
-
#
|
5164
|
-
#
|
5414
|
+
# user, role, or the root user for an account is affected. The opt-in
|
5415
|
+
# and opt-out account setting must be set for each Amazon ECS resource
|
5416
|
+
# separately. The ARN and resource ID format of a resource is defined by
|
5417
|
+
# the opt-in status of the user or role that created the resource. You
|
5418
|
+
# must turn on this setting to use Amazon ECS features such as resource
|
5419
|
+
# tagging.
|
5165
5420
|
#
|
5166
5421
|
# When `awsvpcTrunking` is specified, the elastic network interface
|
5167
5422
|
# (ENI) limit for any new container instances that support the feature
|
@@ -5202,12 +5457,11 @@ module Aws::ECS
|
|
5202
5457
|
# values are `enabled` and `disabled`.
|
5203
5458
|
#
|
5204
5459
|
# @option params [String] :principal_arn
|
5205
|
-
# The ARN of the principal, which can be
|
5206
|
-
#
|
5207
|
-
#
|
5208
|
-
#
|
5209
|
-
#
|
5210
|
-
# authenticated user.
|
5460
|
+
# The ARN of the principal, which can be a user, role, or the root user.
|
5461
|
+
# If you specify the root user, it modifies the account setting for all
|
5462
|
+
# users, roles, and the root user of the account unless a user or role
|
5463
|
+
# explicitly overrides these settings. If this field is omitted, the
|
5464
|
+
# setting is changed only for the authenticated user.
|
5211
5465
|
#
|
5212
5466
|
# <note markdown="1"> Federated users assume the account setting of the root user and can't
|
5213
5467
|
# have explicit account settings set for them.
|
@@ -5283,8 +5537,8 @@ module Aws::ECS
|
|
5283
5537
|
req.send_request(options)
|
5284
5538
|
end
|
5285
5539
|
|
5286
|
-
# Modifies an account setting for all
|
5287
|
-
#
|
5540
|
+
# Modifies an account setting for all users on an account for whom no
|
5541
|
+
# individual account setting has been specified. Account settings are
|
5288
5542
|
# set on a per-Region basis.
|
5289
5543
|
#
|
5290
5544
|
# @option params [required, String] :name
|
@@ -5734,13 +5988,12 @@ module Aws::ECS
|
|
5734
5988
|
# Definitions][1] in the *Amazon Elastic Container Service Developer
|
5735
5989
|
# Guide*.
|
5736
5990
|
#
|
5737
|
-
# You can specify
|
5738
|
-
#
|
5739
|
-
#
|
5740
|
-
#
|
5741
|
-
#
|
5742
|
-
#
|
5743
|
-
# Developer Guide*.
|
5991
|
+
# You can specify a role for your task with the `taskRoleArn` parameter.
|
5992
|
+
# When you specify a role for a task, its containers can then use the
|
5993
|
+
# latest versions of the CLI or SDKs to make API requests to the Amazon
|
5994
|
+
# Web Services services that are specified in the policy that's
|
5995
|
+
# associated with the role. For more information, see [IAM Roles for
|
5996
|
+
# Tasks][2] in the *Amazon Elastic Container Service Developer Guide*.
|
5744
5997
|
#
|
5745
5998
|
# You can specify a Docker networking mode for the containers in your
|
5746
5999
|
# task definition with the `networkMode` parameter. The available
|
@@ -6522,7 +6775,7 @@ module Aws::ECS
|
|
6522
6775
|
# resp.task_definition.volumes[0].fsx_windows_file_server_volume_configuration.root_directory #=> String
|
6523
6776
|
# resp.task_definition.volumes[0].fsx_windows_file_server_volume_configuration.authorization_config.credentials_parameter #=> String
|
6524
6777
|
# resp.task_definition.volumes[0].fsx_windows_file_server_volume_configuration.authorization_config.domain #=> String
|
6525
|
-
# resp.task_definition.status #=> String, one of "ACTIVE", "INACTIVE"
|
6778
|
+
# resp.task_definition.status #=> String, one of "ACTIVE", "INACTIVE", "DELETE_IN_PROGRESS"
|
6526
6779
|
# resp.task_definition.requires_attributes #=> Array
|
6527
6780
|
# resp.task_definition.requires_attributes[0].name #=> String
|
6528
6781
|
# resp.task_definition.requires_attributes[0].value #=> String
|
@@ -6576,6 +6829,17 @@ module Aws::ECS
|
|
6576
6829
|
# Alternatively, you can use StartTask to use your own scheduler or
|
6577
6830
|
# place tasks manually on specific container instances.
|
6578
6831
|
#
|
6832
|
+
# <note markdown="1"> Starting April 15, 2023, Amazon Web Services will not onboard new
|
6833
|
+
# customers to Amazon Elastic Inference (EI), and will help current
|
6834
|
+
# customers migrate their workloads to options that offer better price
|
6835
|
+
# and performance. After April 15, 2023, new customers will not be able
|
6836
|
+
# to launch instances with Amazon EI accelerators in Amazon SageMaker,
|
6837
|
+
# Amazon ECS, or Amazon EC2. However, customers who have used Amazon EI
|
6838
|
+
# at least once during the past 30-day period are considered current
|
6839
|
+
# customers and will be able to continue using the service.
|
6840
|
+
#
|
6841
|
+
# </note>
|
6842
|
+
#
|
6579
6843
|
# The Amazon ECS API follows an eventual consistency model. This is
|
6580
6844
|
# because of the distributed nature of the system supporting the API.
|
6581
6845
|
# This means that the result of an API command you run that affects your
|
@@ -6785,11 +7049,11 @@ module Aws::ECS
|
|
6785
7049
|
# task definition to run. If a `revision` isn't specified, the latest
|
6786
7050
|
# `ACTIVE` revision is used.
|
6787
7051
|
#
|
6788
|
-
# When you create
|
6789
|
-
#
|
7052
|
+
# When you create a policy for run-task, you can set the resource to be
|
7053
|
+
# the latest task definition revision, or a specific revision.
|
6790
7054
|
#
|
6791
7055
|
# The full ARN value must match the value that you specified as the
|
6792
|
-
# `Resource` of the
|
7056
|
+
# `Resource` of the principal's permissions policy.
|
6793
7057
|
#
|
6794
7058
|
# When you specify the policy resource as the latest task definition
|
6795
7059
|
# version (by setting the `Resource` in the policy to
|
@@ -7069,6 +7333,17 @@ module Aws::ECS
|
|
7069
7333
|
# Starts a new task from the specified task definition on the specified
|
7070
7334
|
# container instance or instances.
|
7071
7335
|
#
|
7336
|
+
# <note markdown="1"> Starting April 15, 2023, Amazon Web Services will not onboard new
|
7337
|
+
# customers to Amazon Elastic Inference (EI), and will help current
|
7338
|
+
# customers migrate their workloads to options that offer better price
|
7339
|
+
# and performance. After April 15, 2023, new customers will not be able
|
7340
|
+
# to launch instances with Amazon EI accelerators in Amazon SageMaker,
|
7341
|
+
# Amazon ECS, or Amazon EC2. However, customers who have used Amazon EI
|
7342
|
+
# at least once during the past 30-day period are considered current
|
7343
|
+
# customers and will be able to continue using the service.
|
7344
|
+
#
|
7345
|
+
# </note>
|
7346
|
+
#
|
7072
7347
|
# Alternatively, you can use RunTask to place tasks for you. For more
|
7073
7348
|
# information, see [Scheduling Tasks][1] in the *Amazon Elastic
|
7074
7349
|
# Container Service Developer Guide*.
|
@@ -7403,7 +7678,7 @@ module Aws::ECS
|
|
7403
7678
|
# cluster is assumed.
|
7404
7679
|
#
|
7405
7680
|
# @option params [required, String] :task
|
7406
|
-
# The task ID
|
7681
|
+
# The task ID of the task to stop.
|
7407
7682
|
#
|
7408
7683
|
# @option params [String] :reason
|
7409
7684
|
# An optional message specified when a task is stopped. For example, if
|
@@ -8518,8 +8793,8 @@ module Aws::ECS
|
|
8518
8793
|
# with the largest number of running tasks for this service.
|
8519
8794
|
#
|
8520
8795
|
# <note markdown="1"> You must have a service-linked role when you update any of the
|
8521
|
-
# following service properties. If you specified a custom
|
8522
|
-
#
|
8796
|
+
# following service properties. If you specified a custom role when you
|
8797
|
+
# created the service, Amazon ECS automatically replaces the
|
8523
8798
|
# [roleARN][2] associated with the service with the ARN of your
|
8524
8799
|
# service-linked role. For more information, see [Service-linked
|
8525
8800
|
# roles][3] in the *Amazon Elastic Container Service Developer Guide*.
|
@@ -9399,7 +9674,7 @@ module Aws::ECS
|
|
9399
9674
|
params: params,
|
9400
9675
|
config: config)
|
9401
9676
|
context[:gem_name] = 'aws-sdk-ecs'
|
9402
|
-
context[:gem_version] = '1.
|
9677
|
+
context[:gem_version] = '1.112.0'
|
9403
9678
|
Seahorse::Client::Request.new(handlers, context)
|
9404
9679
|
end
|
9405
9680
|
|