Skip to content

Commit af66246

Browse files
author
awstools
committed
docs(client-ecs): This is a documentation only release to support migrating Amazon ECS service ARNs to the long ARN format.
1 parent 18ecb88 commit af66246

File tree

3 files changed

+15434
-15494
lines changed

3 files changed

+15434
-15494
lines changed

Diff for: clients/client-ecs/src/models/models_0.ts

+60-10
Original file line numberDiff line numberDiff line change
@@ -672,12 +672,14 @@ export interface ExecuteCommandConfiguration {
672672
export interface ManagedStorageConfiguration {
673673
/**
674674
* <p>Specify a Key Management Service key ID to encrypt the managed storage.</p>
675+
* <p>The key must be a single Region key.</p>
675676
* @public
676677
*/
677678
kmsKeyId?: string | undefined;
678679

679680
/**
680681
* <p>Specify the Key Management Service key ID for the Fargate ephemeral storage.</p>
682+
* <p>The key must be a single Region key.</p>
681683
* @public
682684
*/
683685
fargateEphemeralStorageKmsKeyId?: string | undefined;
@@ -2800,7 +2802,9 @@ export interface CreateServiceRequest {
28002802
/**
28012803
* <p>Indicates whether to use Availability Zone rebalancing for the service.</p>
28022804
* <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-rebalancing.html">Balancing an Amazon ECS service across Availability Zones</a> in
2803-
* the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
2805+
* the <i>
2806+
* <i>Amazon Elastic Container Service Developer Guide</i>
2807+
* </i>.</p>
28042808
* @public
28052809
*/
28062810
availabilityZoneRebalancing?: AvailabilityZoneRebalancing | undefined;
@@ -3977,7 +3981,9 @@ export interface Service {
39773981
/**
39783982
* <p>Indicates whether to use Availability Zone rebalancing for the service.</p>
39793983
* <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-rebalancing.html">Balancing an Amazon ECS service across Availability Zones</a> in
3980-
* the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
3984+
* the <i>
3985+
* <i>Amazon Elastic Container Service Developer Guide</i>
3986+
* </i>.</p>
39813987
* @public
39823988
*/
39833989
availabilityZoneRebalancing?: AvailabilityZoneRebalancing | undefined;
@@ -5046,6 +5052,7 @@ export interface FirelensConfiguration {
50465052
* that's configured to use a Classic Load Balancer.</p>
50475053
* </li>
50485054
* </ul>
5055+
* <p>For an example of how to specify a task definition with multiple containers where container dependency is specified, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/example_task_definitions.html#example_task_definition-containerdependency">Container dependency</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
50495056
* @public
50505057
*/
50515058
export interface HealthCheck {
@@ -5071,31 +5078,34 @@ export interface HealthCheck {
50715078
command: string[] | undefined;
50725079

50735080
/**
5074-
* <p>The time period in seconds between each health check execution. You may specify
5075-
* between 5 and 300 seconds. The default value is 30 seconds.</p>
5081+
* <p>The time period in seconds between each health check execution. You may specify between 5
5082+
* and 300 seconds. The default value is 30 seconds. This value applies only when you
5083+
* specify a <code>command</code>. </p>
50765084
* @public
50775085
*/
50785086
interval?: number | undefined;
50795087

50805088
/**
5081-
* <p>The time period in seconds to wait for a health check to succeed before it is
5082-
* considered a failure. You may specify between 2 and 60 seconds. The default value is
5083-
* 5.</p>
5089+
* <p>The time period in seconds to wait for a health check to succeed before it is considered a
5090+
* failure. You may specify between 2 and 60 seconds. The default value is 5. This value
5091+
* applies only when you specify a <code>command</code>. </p>
50845092
* @public
50855093
*/
50865094
timeout?: number | undefined;
50875095

50885096
/**
50895097
* <p>The number of times to retry a failed health check before the container is considered
5090-
* unhealthy. You may specify between 1 and 10 retries. The default value is 3.</p>
5098+
* unhealthy. You may specify between 1 and 10 retries. The default value is 3. This value
5099+
* applies only when you specify a <code>command</code>. </p>
50915100
* @public
50925101
*/
50935102
retries?: number | undefined;
50945103

50955104
/**
50965105
* <p>The optional grace period to provide containers time to bootstrap before failed health
50975106
* checks count towards the maximum number of retries. You can specify between 0 and 300
5098-
* seconds. By default, the <code>startPeriod</code> is off.</p>
5107+
* seconds. By default, the <code>startPeriod</code> is off. This value applies only when
5108+
* you specify a <code>command</code>. </p>
50995109
* <note>
51005110
* <p>If a health check succeeds within the <code>startPeriod</code>, then the container
51015111
* is considered healthy and any subsequent failures count toward the maximum number of
@@ -5110,6 +5120,35 @@ export interface HealthCheck {
51105120
* <p>The Linux capabilities to add or remove from the default Docker configuration for a
51115121
* container defined in the task definition. For more detailed information about these
51125122
* Linux capabilities, see the <a href="http://man7.org/linux/man-pages/man7/capabilities.7.html">capabilities(7)</a> Linux manual page.</p>
5123+
* <p>The following describes how Docker processes the Linux capabilities specified in the <code>add</code> and
5124+
* <code>drop</code> request parameters. For information about the latest behavior, see
5125+
* <a href="https://forums.docker.com/t/docker-compose-order-of-cap-drop-and-cap-add/97136/1">Docker Compose: order of cap_drop and cap_add</a> in the Docker Community Forum.</p>
5126+
* <ul>
5127+
* <li>
5128+
* <p>When the container is a privleged container, the container capabilities are all of the
5129+
* default Docker capabilities. The capabilities specified in the <code>add</code>
5130+
* request parameter, and the <code>drop</code> request parameter are
5131+
* ignored.</p>
5132+
* </li>
5133+
* <li>
5134+
* <p>When the <code>add</code> request parameter is set to ALL, the container
5135+
* capabilities are all of the default Docker capabilities, excluding those
5136+
* specified in the <code>drop</code> request parameter.</p>
5137+
* </li>
5138+
* <li>
5139+
* <p>When the <code>drop</code> request parameter is set to ALL, the container capabilities are
5140+
* the capabilities specified in the <code>add</code> request parameter.</p>
5141+
* </li>
5142+
* <li>
5143+
* <p>When the <code>add</code> request parameter and the <code>drop</code> request parameter are both empty, the capabilities the container
5144+
* capabilities are all of the default Docker capabilities.</p>
5145+
* </li>
5146+
* <li>
5147+
* <p>The default is to first drop the capabilities specified in the <code>drop</code> request
5148+
* parameter, and then add the capabilities specified in the <code>add</code>
5149+
* request parameter.</p>
5150+
* </li>
5151+
* </ul>
51135152
* @public
51145153
*/
51155154
export interface KernelCapabilities {
@@ -12875,7 +12914,7 @@ export interface StopTaskRequest {
1287512914
cluster?: string | undefined;
1287612915

1287712916
/**
12878-
* <p>The task ID of the task to stop.</p>
12917+
* <p>Thefull Amazon Resource Name (ARN) of the task.</p>
1287912918
* @public
1288012919
*/
1288112920
task: string | undefined;
@@ -13175,6 +13214,17 @@ export interface TagResourceRequest {
1317513214
* <p>The Amazon Resource Name (ARN) of the resource to add tags to. Currently, the supported resources are
1317613215
* Amazon ECS capacity providers, tasks, services, task definitions, clusters, and container
1317713216
* instances.</p>
13217+
* <p>In order to tag a service that has the following ARN format, you need to migrate the
13218+
* service to the long ARN. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-arn-migration.html">Migrate an Amazon ECS short service ARN to a long ARN</a> in the <i>Amazon Elastic Container Service
13219+
* Developer Guide</i>.</p>
13220+
* <p>
13221+
* <code>arn:aws:ecs:region:aws_account_id:service/service-name</code>
13222+
* </p>
13223+
* <p>After the migration is complete, the service has the long ARN format, as shown below. Use this ARN to tag the service.</p>
13224+
* <p>
13225+
* <code>arn:aws:ecs:region:aws_account_id:service/cluster-name/service-name</code>
13226+
* </p>
13227+
* <p>If you try to tag a service with a short ARN, you receive an <code>InvalidParameterException</code> error.</p>
1317813228
* @public
1317913229
*/
1318013230
resourceArn: string | undefined;

Diff for: clients/client-ecs/src/models/models_1.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,9 @@ export interface UpdateServiceRequest {
377377
/**
378378
* <p>Indicates whether to use Availability Zone rebalancing for the service.</p>
379379
* <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-rebalancing.html">Balancing an Amazon ECS service across Availability Zones</a> in
380-
* the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
380+
* the <i>
381+
* <i>Amazon Elastic Container Service Developer Guide</i>
382+
* </i>.</p>
381383
* @public
382384
*/
383385
availabilityZoneRebalancing?: AvailabilityZoneRebalancing | undefined;

0 commit comments

Comments
 (0)