From 9a3a3f695c05f892116db66bf1c0a2f4da0f610e Mon Sep 17 00:00:00 2001 From: awstools Date: Tue, 17 Oct 2023 18:21:18 +0000 Subject: [PATCH] docs(client-ecs): Documentation only updates to address Amazon ECS tickets. --- clients/client-ecs/src/endpoint/ruleset.ts | 44 +++--- clients/client-ecs/src/models/models_0.ts | 119 +++++++++++---- codegen/sdk-codegen/aws-models/ecs.json | 168 ++++++++------------- 3 files changed, 176 insertions(+), 155 deletions(-) diff --git a/clients/client-ecs/src/endpoint/ruleset.ts b/clients/client-ecs/src/endpoint/ruleset.ts index 886a6837cdd14..13415e50bc37f 100644 --- a/clients/client-ecs/src/endpoint/ruleset.ts +++ b/clients/client-ecs/src/endpoint/ruleset.ts @@ -6,25 +6,27 @@ import { RuleSetObject } from "@smithy/types"; or see "smithy.rules#endpointRuleSet" in codegen/sdk-codegen/aws-models/ecs.json */ -const q="required", -r="fn", -s="argv", -t="ref"; -const a="isSet", -b="tree", -c="error", -d="endpoint", -e="PartitionResult", -f={[q]:false,"type":"String"}, -g={[q]:true,"default":false,"type":"Boolean"}, -h={[t]:"Endpoint"}, -i={[r]:"booleanEquals",[s]:[{[t]:"UseFIPS"},true]}, -j={[r]:"booleanEquals",[s]:[{[t]:"UseDualStack"},true]}, -k={}, -l={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:e},"supportsFIPS"]}]}, -m={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:e},"supportsDualStack"]}]}, -n=[i], -o=[j], -p=[{[t]:"Region"}]; -const _data={version:"1.0",parameters:{Region:f,UseDualStack:g,UseFIPS:g,Endpoint:f},rules:[{conditions:[{[r]:a,[s]:[h]}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:h,properties:k,headers:k},type:d}]},{conditions:[{[r]:a,[s]:p}],type:b,rules:[{conditions:[{[r]:"aws.partition",[s]:p,assign:e}],type:b,rules:[{conditions:[i,j],type:b,rules:[{conditions:[l,m],type:b,rules:[{endpoint:{url:"https://ecs-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:k,headers:k},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://ecs-fips.{Region}.{PartitionResult#dnsSuffix}",properties:k,headers:k},type:d}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[m],type:b,rules:[{endpoint:{url:"https://ecs.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:k,headers:k},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://ecs.{Region}.{PartitionResult#dnsSuffix}",properties:k,headers:k},type:d}]}]},{error:"Invalid Configuration: Missing Region",type:c}]}; +const s="required", +t="fn", +u="argv", +v="ref"; +const a=true, +b="isSet", +c="booleanEquals", +d="error", +e="endpoint", +f="tree", +g="PartitionResult", +h={[s]:false,"type":"String"}, +i={[s]:true,"default":false,"type":"Boolean"}, +j={[v]:"Endpoint"}, +k={[t]:c,[u]:[{[v]:"UseFIPS"},true]}, +l={[t]:c,[u]:[{[v]:"UseDualStack"},true]}, +m={}, +n={[t]:"getAttr",[u]:[{[v]:g},"supportsFIPS"]}, +o={[t]:c,[u]:[true,{[t]:"getAttr",[u]:[{[v]:g},"supportsDualStack"]}]}, +p=[k], +q=[l], +r=[{[v]:"Region"}]; +const _data={version:"1.0",parameters:{Region:h,UseDualStack:i,UseFIPS:i,Endpoint:h},rules:[{conditions:[{[t]:b,[u]:[j]}],rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:d},{conditions:q,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:d},{endpoint:{url:j,properties:m,headers:m},type:e}],type:f},{conditions:[{[t]:b,[u]:r}],rules:[{conditions:[{[t]:"aws.partition",[u]:r,assign:g}],rules:[{conditions:[k,l],rules:[{conditions:[{[t]:c,[u]:[a,n]},o],rules:[{endpoint:{url:"https://ecs-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:e}],type:f},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:d}],type:f},{conditions:p,rules:[{conditions:[{[t]:c,[u]:[n,a]}],rules:[{endpoint:{url:"https://ecs-fips.{Region}.{PartitionResult#dnsSuffix}",properties:m,headers:m},type:e}],type:f},{error:"FIPS is enabled but this partition does not support FIPS",type:d}],type:f},{conditions:q,rules:[{conditions:[o],rules:[{endpoint:{url:"https://ecs.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:e}],type:f},{error:"DualStack is enabled but this partition does not support DualStack",type:d}],type:f},{endpoint:{url:"https://ecs.{Region}.{PartitionResult#dnsSuffix}",properties:m,headers:m},type:e}],type:f}],type:f},{error:"Invalid Configuration: Missing Region",type:d}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-ecs/src/models/models_0.ts b/clients/client-ecs/src/models/models_0.ts index 4953d985932d0..c099f0c3eaa81 100644 --- a/clients/client-ecs/src/models/models_0.ts +++ b/clients/client-ecs/src/models/models_0.ts @@ -735,7 +735,7 @@ export interface ClusterServiceConnectDefaultsRequest { * Cloud Map namespace with the "API calls" method of instance discovery only. This instance * discovery method is the "HTTP" namespace type in the Command Line Interface. Other types of instance * discovery aren't used by Service Connect.

- *

If you update the service with an empty string "" for the namespace name, + *

If you update the cluster with an empty string "" for the namespace name, * the cluster configuration for Service Connect is removed. Note that the namespace will * remain in Cloud Map and must be deleted separately.

*

For more information about Cloud Map, see Working @@ -4049,13 +4049,11 @@ export type EnvironmentFileType = (typeof EnvironmentFileType)[keyof typeof Envi /** * @public - *

A list of files containing the environment variables to pass to a container. You can - * specify up to ten environment files. The file must have a .env file - * extension. Each line in an environment file should contain an environment variable in + *

A list of files containing the environment variables to pass to a container. You can specify + * up to ten environment files. The file must have a .env file extension. Each + * line in an environment file should contain an environment variable in * VARIABLE=VALUE format. Lines beginning with # are treated - * as comments and are ignored. For more information about the environment variable file - * syntax, see Declare default - * environment variables in file.

+ * as comments and are ignored.

*

If there are environment variables specified using the environment * parameter in a container definition, they take precedence over the variables contained * within an environment file. If multiple environment files are specified that contain the @@ -4071,6 +4069,18 @@ export type EnvironmentFileType = (typeof EnvironmentFileType)[keyof typeof Envi *

Windows platform version 1.0.0 or later.

* * + *

Consider the following when using the Fargate launch type:

+ * */ export interface EnvironmentFile { /** @@ -4167,8 +4177,8 @@ export interface FirelensConfiguration { * *

You can view the health status of both individual containers and a task with the * DescribeTasks API operation or when viewing the task details in the console.

- *

The health check is designed to make sure that your containers survive - * agent restarts, upgrades, or temporary unavailability.

+ *

The health check is designed to make sure that your containers survive agent restarts, + * upgrades, or temporary unavailability.

*

The following describes the possible healthStatus values for a * container:

* - *

The following describes the possible healthStatus values for a task. The - * container health check status of - * non-essential containers don't have an effect on the health status of a task.

+ *

The following describes the possible healthStatus values based on the + * container health checker status of essential containers in the task with the following + * priority order (high to low):

* + *

Consider the following task health example with 2 containers.

+ * + *

Consider the following task health example with 3 containers.

+ * *

If a task is run manually, and not as part of a service, the task will continue its @@ -4216,12 +4274,13 @@ export interface FirelensConfiguration { *

The following are notes about container health check support:

*