Skip to content

Commit

Permalink
feat(client-ecs): Adds a Client Token parameter to the ECS RunTask AP…
Browse files Browse the repository at this point in the history
…I. The Client Token parameter allows for idempotent RunTask requests.
  • Loading branch information
awstools committed Nov 13, 2023
1 parent 5364e1d commit 2cbe655
Show file tree
Hide file tree
Showing 57 changed files with 236 additions and 80 deletions.
4 changes: 3 additions & 1 deletion clients/client-ecs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,14 @@
"@smithy/util-retry": "^2.0.5",
"@smithy/util-utf8": "^2.0.0",
"@smithy/util-waiter": "^2.0.12",
"tslib": "^2.5.0"
"tslib": "^2.5.0",
"uuid": "^8.3.2"
},
"devDependencies": {
"@smithy/service-client-documentation-generator": "^2.0.0",
"@tsconfig/node14": "1.0.3",
"@types/node": "^14.14.31",
"@types/uuid": "^8.3.0",
"concurrently": "7.0.0",
"downlevel-dts": "0.10.1",
"rimraf": "3.0.2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export interface CreateCapacityProviderCommandOutput extends CreateCapacityProvi
* @throws {@link ClientException} (client fault)
* <p>These errors are usually caused by a client action. This client action might be using
* an action or resource on behalf of a user that doesn't have permissions to use the
* action or resource,. Or, it might be specifying an identifier that isn't valid.</p>
* action or resource. Or, it might be specifying an identifier that isn't valid.</p>
*
* @throws {@link InvalidParameterException} (client fault)
* <p>The specified parameter isn't valid. Review the available parameters for the API
Expand Down
2 changes: 1 addition & 1 deletion clients/client-ecs/src/commands/CreateClusterCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ export interface CreateClusterCommandOutput extends CreateClusterResponse, __Met
* @throws {@link ClientException} (client fault)
* <p>These errors are usually caused by a client action. This client action might be using
* an action or resource on behalf of a user that doesn't have permissions to use the
* action or resource,. Or, it might be specifying an identifier that isn't valid.</p>
* action or resource. Or, it might be specifying an identifier that isn't valid.</p>
*
* @throws {@link InvalidParameterException} (client fault)
* <p>The specified parameter isn't valid. Review the available parameters for the API
Expand Down
2 changes: 1 addition & 1 deletion clients/client-ecs/src/commands/CreateServiceCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ export interface CreateServiceCommandOutput extends CreateServiceResponse, __Met
* @throws {@link ClientException} (client fault)
* <p>These errors are usually caused by a client action. This client action might be using
* an action or resource on behalf of a user that doesn't have permissions to use the
* action or resource,. Or, it might be specifying an identifier that isn't valid.</p>
* action or resource. Or, it might be specifying an identifier that isn't valid.</p>
*
* @throws {@link ClusterNotFoundException} (client fault)
* <p>The specified cluster wasn't found. You can view your available clusters with <a>ListClusters</a>. Amazon ECS clusters are Region specific.</p>
Expand Down
2 changes: 1 addition & 1 deletion clients/client-ecs/src/commands/CreateTaskSetCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ export interface CreateTaskSetCommandOutput extends CreateTaskSetResponse, __Met
* @throws {@link ClientException} (client fault)
* <p>These errors are usually caused by a client action. This client action might be using
* an action or resource on behalf of a user that doesn't have permissions to use the
* action or resource,. Or, it might be specifying an identifier that isn't valid.</p>
* action or resource. Or, it might be specifying an identifier that isn't valid.</p>
*
* @throws {@link ClusterNotFoundException} (client fault)
* <p>The specified cluster wasn't found. You can view your available clusters with <a>ListClusters</a>. Amazon ECS clusters are Region specific.</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export interface DeleteAccountSettingCommandOutput extends DeleteAccountSettingR
* @throws {@link ClientException} (client fault)
* <p>These errors are usually caused by a client action. This client action might be using
* an action or resource on behalf of a user that doesn't have permissions to use the
* action or resource,. Or, it might be specifying an identifier that isn't valid.</p>
* action or resource. Or, it might be specifying an identifier that isn't valid.</p>
*
* @throws {@link InvalidParameterException} (client fault)
* <p>The specified parameter isn't valid. Review the available parameters for the API
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export interface DeleteCapacityProviderCommandOutput extends DeleteCapacityProvi
* @throws {@link ClientException} (client fault)
* <p>These errors are usually caused by a client action. This client action might be using
* an action or resource on behalf of a user that doesn't have permissions to use the
* action or resource,. Or, it might be specifying an identifier that isn't valid.</p>
* action or resource. Or, it might be specifying an identifier that isn't valid.</p>
*
* @throws {@link InvalidParameterException} (client fault)
* <p>The specified parameter isn't valid. Review the available parameters for the API
Expand Down
2 changes: 1 addition & 1 deletion clients/client-ecs/src/commands/DeleteClusterCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ export interface DeleteClusterCommandOutput extends DeleteClusterResponse, __Met
* @throws {@link ClientException} (client fault)
* <p>These errors are usually caused by a client action. This client action might be using
* an action or resource on behalf of a user that doesn't have permissions to use the
* action or resource,. Or, it might be specifying an identifier that isn't valid.</p>
* action or resource. Or, it might be specifying an identifier that isn't valid.</p>
*
* @throws {@link ClusterContainsContainerInstancesException} (client fault)
* <p>You can't delete a cluster that has registered container instances. First, deregister
Expand Down
2 changes: 1 addition & 1 deletion clients/client-ecs/src/commands/DeleteServiceCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ export interface DeleteServiceCommandOutput extends DeleteServiceResponse, __Met
* @throws {@link ClientException} (client fault)
* <p>These errors are usually caused by a client action. This client action might be using
* an action or resource on behalf of a user that doesn't have permissions to use the
* action or resource,. Or, it might be specifying an identifier that isn't valid.</p>
* action or resource. Or, it might be specifying an identifier that isn't valid.</p>
*
* @throws {@link ClusterNotFoundException} (client fault)
* <p>The specified cluster wasn't found. You can view your available clusters with <a>ListClusters</a>. Amazon ECS clusters are Region specific.</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ export interface DeleteTaskDefinitionsCommandOutput extends DeleteTaskDefinition
* @throws {@link ClientException} (client fault)
* <p>These errors are usually caused by a client action. This client action might be using
* an action or resource on behalf of a user that doesn't have permissions to use the
* action or resource,. Or, it might be specifying an identifier that isn't valid.</p>
* action or resource. Or, it might be specifying an identifier that isn't valid.</p>
*
* @throws {@link InvalidParameterException} (client fault)
* <p>The specified parameter isn't valid. Review the available parameters for the API
Expand Down
2 changes: 1 addition & 1 deletion clients/client-ecs/src/commands/DeleteTaskSetCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export interface DeleteTaskSetCommandOutput extends DeleteTaskSetResponse, __Met
* @throws {@link ClientException} (client fault)
* <p>These errors are usually caused by a client action. This client action might be using
* an action or resource on behalf of a user that doesn't have permissions to use the
* action or resource,. Or, it might be specifying an identifier that isn't valid.</p>
* action or resource. Or, it might be specifying an identifier that isn't valid.</p>
*
* @throws {@link ClusterNotFoundException} (client fault)
* <p>The specified cluster wasn't found. You can view your available clusters with <a>ListClusters</a>. Amazon ECS clusters are Region specific.</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ export interface DeregisterContainerInstanceCommandOutput
* @throws {@link ClientException} (client fault)
* <p>These errors are usually caused by a client action. This client action might be using
* an action or resource on behalf of a user that doesn't have permissions to use the
* action or resource,. Or, it might be specifying an identifier that isn't valid.</p>
* action or resource. Or, it might be specifying an identifier that isn't valid.</p>
*
* @throws {@link ClusterNotFoundException} (client fault)
* <p>The specified cluster wasn't found. You can view your available clusters with <a>ListClusters</a>. Amazon ECS clusters are Region specific.</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ export interface DeregisterTaskDefinitionCommandOutput extends DeregisterTaskDef
* @throws {@link ClientException} (client fault)
* <p>These errors are usually caused by a client action. This client action might be using
* an action or resource on behalf of a user that doesn't have permissions to use the
* action or resource,. Or, it might be specifying an identifier that isn't valid.</p>
* action or resource. Or, it might be specifying an identifier that isn't valid.</p>
*
* @throws {@link InvalidParameterException} (client fault)
* <p>The specified parameter isn't valid. Review the available parameters for the API
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export interface DescribeCapacityProvidersCommandOutput extends DescribeCapacity
* @throws {@link ClientException} (client fault)
* <p>These errors are usually caused by a client action. This client action might be using
* an action or resource on behalf of a user that doesn't have permissions to use the
* action or resource,. Or, it might be specifying an identifier that isn't valid.</p>
* action or resource. Or, it might be specifying an identifier that isn't valid.</p>
*
* @throws {@link InvalidParameterException} (client fault)
* <p>The specified parameter isn't valid. Review the available parameters for the API
Expand Down
2 changes: 1 addition & 1 deletion clients/client-ecs/src/commands/DescribeClustersCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ export interface DescribeClustersCommandOutput extends DescribeClustersResponse,
* @throws {@link ClientException} (client fault)
* <p>These errors are usually caused by a client action. This client action might be using
* an action or resource on behalf of a user that doesn't have permissions to use the
* action or resource,. Or, it might be specifying an identifier that isn't valid.</p>
* action or resource. Or, it might be specifying an identifier that isn't valid.</p>
*
* @throws {@link InvalidParameterException} (client fault)
* <p>The specified parameter isn't valid. Review the available parameters for the API
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ export interface DescribeContainerInstancesCommandOutput extends DescribeContain
* @throws {@link ClientException} (client fault)
* <p>These errors are usually caused by a client action. This client action might be using
* an action or resource on behalf of a user that doesn't have permissions to use the
* action or resource,. Or, it might be specifying an identifier that isn't valid.</p>
* action or resource. Or, it might be specifying an identifier that isn't valid.</p>
*
* @throws {@link ClusterNotFoundException} (client fault)
* <p>The specified cluster wasn't found. You can view your available clusters with <a>ListClusters</a>. Amazon ECS clusters are Region specific.</p>
Expand Down
2 changes: 1 addition & 1 deletion clients/client-ecs/src/commands/DescribeServicesCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ export interface DescribeServicesCommandOutput extends DescribeServicesResponse,
* @throws {@link ClientException} (client fault)
* <p>These errors are usually caused by a client action. This client action might be using
* an action or resource on behalf of a user that doesn't have permissions to use the
* action or resource,. Or, it might be specifying an identifier that isn't valid.</p>
* action or resource. Or, it might be specifying an identifier that isn't valid.</p>
*
* @throws {@link ClusterNotFoundException} (client fault)
* <p>The specified cluster wasn't found. You can view your available clusters with <a>ListClusters</a>. Amazon ECS clusters are Region specific.</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ export interface DescribeTaskDefinitionCommandOutput extends DescribeTaskDefinit
* @throws {@link ClientException} (client fault)
* <p>These errors are usually caused by a client action. This client action might be using
* an action or resource on behalf of a user that doesn't have permissions to use the
* action or resource,. Or, it might be specifying an identifier that isn't valid.</p>
* action or resource. Or, it might be specifying an identifier that isn't valid.</p>
*
* @throws {@link InvalidParameterException} (client fault)
* <p>The specified parameter isn't valid. Review the available parameters for the API
Expand Down
2 changes: 1 addition & 1 deletion clients/client-ecs/src/commands/DescribeTaskSetsCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ export interface DescribeTaskSetsCommandOutput extends DescribeTaskSetsResponse,
* @throws {@link ClientException} (client fault)
* <p>These errors are usually caused by a client action. This client action might be using
* an action or resource on behalf of a user that doesn't have permissions to use the
* action or resource,. Or, it might be specifying an identifier that isn't valid.</p>
* action or resource. Or, it might be specifying an identifier that isn't valid.</p>
*
* @throws {@link ClusterNotFoundException} (client fault)
* <p>The specified cluster wasn't found. You can view your available clusters with <a>ListClusters</a>. Amazon ECS clusters are Region specific.</p>
Expand Down
2 changes: 1 addition & 1 deletion clients/client-ecs/src/commands/DescribeTasksCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ export interface DescribeTasksCommandOutput extends DescribeTasksResponse, __Met
* @throws {@link ClientException} (client fault)
* <p>These errors are usually caused by a client action. This client action might be using
* an action or resource on behalf of a user that doesn't have permissions to use the
* action or resource,. Or, it might be specifying an identifier that isn't valid.</p>
* action or resource. Or, it might be specifying an identifier that isn't valid.</p>
*
* @throws {@link ClusterNotFoundException} (client fault)
* <p>The specified cluster wasn't found. You can view your available clusters with <a>ListClusters</a>. Amazon ECS clusters are Region specific.</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export interface DiscoverPollEndpointCommandOutput extends DiscoverPollEndpointR
* @throws {@link ClientException} (client fault)
* <p>These errors are usually caused by a client action. This client action might be using
* an action or resource on behalf of a user that doesn't have permissions to use the
* action or resource,. Or, it might be specifying an identifier that isn't valid.</p>
* action or resource. Or, it might be specifying an identifier that isn't valid.</p>
*
* @throws {@link ServerException} (server fault)
* <p>These errors are usually caused by a server issue.</p>
Expand Down
2 changes: 1 addition & 1 deletion clients/client-ecs/src/commands/ExecuteCommandCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export interface ExecuteCommandCommandOutput extends ExecuteCommandResponse, __M
* @throws {@link ClientException} (client fault)
* <p>These errors are usually caused by a client action. This client action might be using
* an action or resource on behalf of a user that doesn't have permissions to use the
* action or resource,. Or, it might be specifying an identifier that isn't valid.</p>
* action or resource. Or, it might be specifying an identifier that isn't valid.</p>
*
* @throws {@link ClusterNotFoundException} (client fault)
* <p>The specified cluster wasn't found. You can view your available clusters with <a>ListClusters</a>. Amazon ECS clusters are Region specific.</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export interface GetTaskProtectionCommandOutput extends GetTaskProtectionRespons
* @throws {@link ClientException} (client fault)
* <p>These errors are usually caused by a client action. This client action might be using
* an action or resource on behalf of a user that doesn't have permissions to use the
* action or resource,. Or, it might be specifying an identifier that isn't valid.</p>
* action or resource. Or, it might be specifying an identifier that isn't valid.</p>
*
* @throws {@link ClusterNotFoundException} (client fault)
* <p>The specified cluster wasn't found. You can view your available clusters with <a>ListClusters</a>. Amazon ECS clusters are Region specific.</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export interface ListAccountSettingsCommandOutput extends ListAccountSettingsRes
* @throws {@link ClientException} (client fault)
* <p>These errors are usually caused by a client action. This client action might be using
* an action or resource on behalf of a user that doesn't have permissions to use the
* action or resource,. Or, it might be specifying an identifier that isn't valid.</p>
* action or resource. Or, it might be specifying an identifier that isn't valid.</p>
*
* @throws {@link InvalidParameterException} (client fault)
* <p>The specified parameter isn't valid. Review the available parameters for the API
Expand Down
2 changes: 1 addition & 1 deletion clients/client-ecs/src/commands/ListClustersCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export interface ListClustersCommandOutput extends ListClustersResponse, __Metad
* @throws {@link ClientException} (client fault)
* <p>These errors are usually caused by a client action. This client action might be using
* an action or resource on behalf of a user that doesn't have permissions to use the
* action or resource,. Or, it might be specifying an identifier that isn't valid.</p>
* action or resource. Or, it might be specifying an identifier that isn't valid.</p>
*
* @throws {@link InvalidParameterException} (client fault)
* <p>The specified parameter isn't valid. Review the available parameters for the API
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export interface ListContainerInstancesCommandOutput extends ListContainerInstan
* @throws {@link ClientException} (client fault)
* <p>These errors are usually caused by a client action. This client action might be using
* an action or resource on behalf of a user that doesn't have permissions to use the
* action or resource,. Or, it might be specifying an identifier that isn't valid.</p>
* action or resource. Or, it might be specifying an identifier that isn't valid.</p>
*
* @throws {@link ClusterNotFoundException} (client fault)
* <p>The specified cluster wasn't found. You can view your available clusters with <a>ListClusters</a>. Amazon ECS clusters are Region specific.</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export interface ListServicesByNamespaceCommandOutput extends ListServicesByName
* @throws {@link ClientException} (client fault)
* <p>These errors are usually caused by a client action. This client action might be using
* an action or resource on behalf of a user that doesn't have permissions to use the
* action or resource,. Or, it might be specifying an identifier that isn't valid.</p>
* action or resource. Or, it might be specifying an identifier that isn't valid.</p>
*
* @throws {@link InvalidParameterException} (client fault)
* <p>The specified parameter isn't valid. Review the available parameters for the API
Expand Down
2 changes: 1 addition & 1 deletion clients/client-ecs/src/commands/ListServicesCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export interface ListServicesCommandOutput extends ListServicesResponse, __Metad
* @throws {@link ClientException} (client fault)
* <p>These errors are usually caused by a client action. This client action might be using
* an action or resource on behalf of a user that doesn't have permissions to use the
* action or resource,. Or, it might be specifying an identifier that isn't valid.</p>
* action or resource. Or, it might be specifying an identifier that isn't valid.</p>
*
* @throws {@link ClusterNotFoundException} (client fault)
* <p>The specified cluster wasn't found. You can view your available clusters with <a>ListClusters</a>. Amazon ECS clusters are Region specific.</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export interface ListTagsForResourceCommandOutput extends ListTagsForResourceRes
* @throws {@link ClientException} (client fault)
* <p>These errors are usually caused by a client action. This client action might be using
* an action or resource on behalf of a user that doesn't have permissions to use the
* action or resource,. Or, it might be specifying an identifier that isn't valid.</p>
* action or resource. Or, it might be specifying an identifier that isn't valid.</p>
*
* @throws {@link ClusterNotFoundException} (client fault)
* <p>The specified cluster wasn't found. You can view your available clusters with <a>ListClusters</a>. Amazon ECS clusters are Region specific.</p>
Expand Down
Loading

0 comments on commit 2cbe655

Please sign in to comment.