@aws-sdk/client-ecs 3.445.0 → 3.450.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.
Files changed (61) hide show
  1. package/README.md +1 -1
  2. package/dist-cjs/models/models_0.js +15 -1
  3. package/dist-cjs/protocols/Aws_json1_1.js +36 -1
  4. package/dist-es/models/models_0.js +13 -0
  5. package/dist-es/protocols/Aws_json1_1.js +37 -2
  6. package/dist-types/commands/CreateCapacityProviderCommand.d.ts +1 -1
  7. package/dist-types/commands/CreateClusterCommand.d.ts +1 -1
  8. package/dist-types/commands/CreateServiceCommand.d.ts +1 -1
  9. package/dist-types/commands/CreateTaskSetCommand.d.ts +1 -1
  10. package/dist-types/commands/DeleteAccountSettingCommand.d.ts +1 -1
  11. package/dist-types/commands/DeleteCapacityProviderCommand.d.ts +1 -1
  12. package/dist-types/commands/DeleteClusterCommand.d.ts +1 -1
  13. package/dist-types/commands/DeleteServiceCommand.d.ts +1 -1
  14. package/dist-types/commands/DeleteTaskDefinitionsCommand.d.ts +1 -1
  15. package/dist-types/commands/DeleteTaskSetCommand.d.ts +1 -1
  16. package/dist-types/commands/DeregisterContainerInstanceCommand.d.ts +1 -1
  17. package/dist-types/commands/DeregisterTaskDefinitionCommand.d.ts +1 -1
  18. package/dist-types/commands/DescribeCapacityProvidersCommand.d.ts +1 -1
  19. package/dist-types/commands/DescribeClustersCommand.d.ts +1 -1
  20. package/dist-types/commands/DescribeContainerInstancesCommand.d.ts +1 -1
  21. package/dist-types/commands/DescribeServicesCommand.d.ts +1 -1
  22. package/dist-types/commands/DescribeTaskDefinitionCommand.d.ts +1 -1
  23. package/dist-types/commands/DescribeTaskSetsCommand.d.ts +1 -1
  24. package/dist-types/commands/DescribeTasksCommand.d.ts +1 -1
  25. package/dist-types/commands/DiscoverPollEndpointCommand.d.ts +1 -1
  26. package/dist-types/commands/ExecuteCommandCommand.d.ts +1 -1
  27. package/dist-types/commands/GetTaskProtectionCommand.d.ts +1 -1
  28. package/dist-types/commands/ListAccountSettingsCommand.d.ts +1 -1
  29. package/dist-types/commands/ListClustersCommand.d.ts +1 -1
  30. package/dist-types/commands/ListContainerInstancesCommand.d.ts +1 -1
  31. package/dist-types/commands/ListServicesByNamespaceCommand.d.ts +1 -1
  32. package/dist-types/commands/ListServicesCommand.d.ts +1 -1
  33. package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
  34. package/dist-types/commands/ListTaskDefinitionFamiliesCommand.d.ts +1 -1
  35. package/dist-types/commands/ListTaskDefinitionsCommand.d.ts +1 -1
  36. package/dist-types/commands/ListTasksCommand.d.ts +1 -1
  37. package/dist-types/commands/PutAccountSettingCommand.d.ts +1 -1
  38. package/dist-types/commands/PutAccountSettingDefaultCommand.d.ts +1 -1
  39. package/dist-types/commands/PutClusterCapacityProvidersCommand.d.ts +1 -1
  40. package/dist-types/commands/RegisterContainerInstanceCommand.d.ts +1 -1
  41. package/dist-types/commands/RegisterTaskDefinitionCommand.d.ts +1 -1
  42. package/dist-types/commands/RunTaskCommand.d.ts +19 -1
  43. package/dist-types/commands/StartTaskCommand.d.ts +1 -1
  44. package/dist-types/commands/StopTaskCommand.d.ts +1 -1
  45. package/dist-types/commands/SubmitAttachmentStateChangesCommand.d.ts +1 -1
  46. package/dist-types/commands/SubmitContainerStateChangeCommand.d.ts +1 -1
  47. package/dist-types/commands/SubmitTaskStateChangeCommand.d.ts +1 -1
  48. package/dist-types/commands/TagResourceCommand.d.ts +1 -1
  49. package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
  50. package/dist-types/commands/UpdateCapacityProviderCommand.d.ts +1 -1
  51. package/dist-types/commands/UpdateClusterCommand.d.ts +1 -1
  52. package/dist-types/commands/UpdateClusterSettingsCommand.d.ts +1 -1
  53. package/dist-types/commands/UpdateContainerAgentCommand.d.ts +1 -1
  54. package/dist-types/commands/UpdateContainerInstancesStateCommand.d.ts +1 -1
  55. package/dist-types/commands/UpdateServiceCommand.d.ts +1 -1
  56. package/dist-types/commands/UpdateServicePrimaryTaskSetCommand.d.ts +1 -1
  57. package/dist-types/commands/UpdateTaskProtectionCommand.d.ts +1 -1
  58. package/dist-types/commands/UpdateTaskSetCommand.d.ts +1 -1
  59. package/dist-types/models/models_0.d.ts +56 -11
  60. package/dist-types/ts3.4/models/models_0.d.ts +7 -0
  61. package/package.json +15 -13
package/README.md CHANGED
@@ -175,7 +175,7 @@ try {
175
175
  const data = await client.send(command);
176
176
  // process data.
177
177
  } catch (error) {
178
- const { requestId, cfId, extendedRequestId } = error.$$metadata;
178
+ const { requestId, cfId, extendedRequestId } = error.$metadata;
179
179
  console.log({ requestId, cfId, extendedRequestId });
180
180
  /**
181
181
  * The keys within exceptions are also parsed.
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TaskDefinitionPlacementConstraintType = exports.PidMode = exports.NetworkMode = exports.IpcMode = exports.UlimitName = exports.ResourceType = exports.TransportProtocol = exports.ApplicationProtocol = exports.DeviceCgroupPermission = exports.FirelensConfigurationType = exports.EnvironmentFileType = exports.ContainerCondition = exports.Compatibility = exports.ClusterContainsTasksException = exports.ClusterContainsServicesException = exports.ClusterContainsContainerInstancesException = exports.TargetNotFoundException = exports.TargetType = exports.SettingName = exports.ServiceNotFoundException = exports.ServiceNotActiveException = exports.UnsupportedFeatureException = exports.PlatformUnknownException = exports.PlatformTaskDefinitionIncompatibilityException = exports.StabilityStatus = exports.ScaleUnit = exports.DeploymentRolloutState = exports.LogDriver = exports.SchedulingStrategy = exports.PropagateTags = exports.PlacementStrategyType = exports.PlacementConstraintType = exports.AssignPublicIp = exports.LaunchType = exports.DeploymentControllerType = exports.ClusterNotFoundException = exports.NamespaceNotFoundException = exports.ClusterSettingName = exports.ExecuteCommandLogging = exports.UpdateInProgressException = exports.ServerException = exports.LimitExceededException = exports.InvalidParameterException = exports.CapacityProviderUpdateStatus = exports.CapacityProviderStatus = exports.ManagedTerminationProtection = exports.ManagedScalingStatus = exports.ClientException = exports.AgentUpdateStatus = exports.AccessDeniedException = void 0;
4
- exports.ExecuteCommandResponseFilterSensitiveLog = exports.SessionFilterSensitiveLog = exports.NoUpdateAvailableException = exports.MissingVersionException = exports.BlockedException = exports.PlatformDeviceType = exports.ResourceInUseException = exports.AttributeLimitExceededException = exports.DesiredStatus = exports.SortOrder = exports.TaskDefinitionFamilyStatus = exports.ContainerInstanceStatus = exports.ResourceNotFoundException = exports.TargetNotConnectedException = exports.TaskSetField = exports.TaskStopCode = exports.ManagedAgentName = exports.HealthStatus = exports.Connectivity = exports.TaskField = exports.TaskDefinitionField = exports.ServiceField = exports.ContainerInstanceField = exports.ClusterField = exports.CapacityProviderField = exports.InstanceHealthCheckType = exports.InstanceHealthCheckState = exports.TaskSetNotFoundException = exports.EFSTransitEncryption = exports.EFSAuthorizationConfigIAM = exports.Scope = exports.TaskDefinitionStatus = exports.OSFamily = exports.CPUArchitecture = exports.ProxyConfigurationType = void 0;
4
+ exports.ExecuteCommandResponseFilterSensitiveLog = exports.SessionFilterSensitiveLog = exports.NoUpdateAvailableException = exports.MissingVersionException = exports.ConflictException = exports.BlockedException = exports.PlatformDeviceType = exports.ResourceInUseException = exports.AttributeLimitExceededException = exports.DesiredStatus = exports.SortOrder = exports.TaskDefinitionFamilyStatus = exports.ContainerInstanceStatus = exports.ResourceNotFoundException = exports.TargetNotConnectedException = exports.TaskSetField = exports.TaskStopCode = exports.ManagedAgentName = exports.HealthStatus = exports.Connectivity = exports.TaskField = exports.TaskDefinitionField = exports.ServiceField = exports.ContainerInstanceField = exports.ClusterField = exports.CapacityProviderField = exports.InstanceHealthCheckType = exports.InstanceHealthCheckState = exports.TaskSetNotFoundException = exports.EFSTransitEncryption = exports.EFSAuthorizationConfigIAM = exports.Scope = exports.TaskDefinitionStatus = exports.OSFamily = exports.CPUArchitecture = exports.ProxyConfigurationType = void 0;
5
5
  const smithy_client_1 = require("@smithy/smithy-client");
6
6
  const ECSServiceException_1 = require("./ECSServiceException");
7
7
  class AccessDeniedException extends ECSServiceException_1.ECSServiceException {
@@ -590,6 +590,20 @@ class BlockedException extends ECSServiceException_1.ECSServiceException {
590
590
  }
591
591
  }
592
592
  exports.BlockedException = BlockedException;
593
+ class ConflictException extends ECSServiceException_1.ECSServiceException {
594
+ constructor(opts) {
595
+ super({
596
+ name: "ConflictException",
597
+ $fault: "client",
598
+ ...opts,
599
+ });
600
+ this.name = "ConflictException";
601
+ this.$fault = "client";
602
+ Object.setPrototypeOf(this, ConflictException.prototype);
603
+ this.resourceIds = opts.resourceIds;
604
+ }
605
+ }
606
+ exports.ConflictException = ConflictException;
593
607
  class MissingVersionException extends ECSServiceException_1.ECSServiceException {
594
608
  constructor(opts) {
595
609
  super({
@@ -5,6 +5,7 @@ exports.de_SubmitContainerStateChangeCommand = exports.de_SubmitAttachmentStateC
5
5
  exports.de_UpdateTaskSetCommand = exports.de_UpdateTaskProtectionCommand = exports.de_UpdateServicePrimaryTaskSetCommand = exports.de_UpdateServiceCommand = exports.de_UpdateContainerInstancesStateCommand = exports.de_UpdateContainerAgentCommand = exports.de_UpdateClusterSettingsCommand = exports.de_UpdateClusterCommand = exports.de_UpdateCapacityProviderCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_SubmitTaskStateChangeCommand = void 0;
6
6
  const protocol_http_1 = require("@smithy/protocol-http");
7
7
  const smithy_client_1 = require("@smithy/smithy-client");
8
+ const uuid_1 = require("uuid");
8
9
  const ECSServiceException_1 = require("../models/ECSServiceException");
9
10
  const models_0_1 = require("../models/models_0");
10
11
  const se_CreateCapacityProviderCommand = async (input, context) => {
@@ -283,7 +284,7 @@ exports.se_RegisterTaskDefinitionCommand = se_RegisterTaskDefinitionCommand;
283
284
  const se_RunTaskCommand = async (input, context) => {
284
285
  const headers = sharedHeaders("RunTask");
285
286
  let body;
286
- body = JSON.stringify((0, smithy_client_1._json)(input));
287
+ body = JSON.stringify(se_RunTaskRequest(input, context));
287
288
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
288
289
  };
289
290
  exports.se_RunTaskCommand = se_RunTaskCommand;
@@ -2118,6 +2119,9 @@ const de_RunTaskCommandError = async (output, context) => {
2118
2119
  case "ClusterNotFoundException":
2119
2120
  case "com.amazonaws.ecs#ClusterNotFoundException":
2120
2121
  throw await de_ClusterNotFoundExceptionRes(parsedOutput, context);
2122
+ case "ConflictException":
2123
+ case "com.amazonaws.ecs#ConflictException":
2124
+ throw await de_ConflictExceptionRes(parsedOutput, context);
2121
2125
  case "InvalidParameterException":
2122
2126
  case "com.amazonaws.ecs#InvalidParameterException":
2123
2127
  throw await de_InvalidParameterExceptionRes(parsedOutput, context);
@@ -2955,6 +2959,15 @@ const de_ClusterNotFoundExceptionRes = async (parsedOutput, context) => {
2955
2959
  });
2956
2960
  return (0, smithy_client_1.decorateServiceException)(exception, body);
2957
2961
  };
2962
+ const de_ConflictExceptionRes = async (parsedOutput, context) => {
2963
+ const body = parsedOutput.body;
2964
+ const deserialized = (0, smithy_client_1._json)(body);
2965
+ const exception = new models_0_1.ConflictException({
2966
+ $metadata: deserializeMetadata(parsedOutput),
2967
+ ...deserialized,
2968
+ });
2969
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
2970
+ };
2958
2971
  const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
2959
2972
  const body = parsedOutput.body;
2960
2973
  const deserialized = (0, smithy_client_1._json)(body);
@@ -3155,6 +3168,28 @@ const se_Resources = (input, context) => {
3155
3168
  return se_Resource(entry, context);
3156
3169
  });
3157
3170
  };
3171
+ const se_RunTaskRequest = (input, context) => {
3172
+ return (0, smithy_client_1.take)(input, {
3173
+ capacityProviderStrategy: smithy_client_1._json,
3174
+ clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
3175
+ cluster: [],
3176
+ count: [],
3177
+ enableECSManagedTags: [],
3178
+ enableExecuteCommand: [],
3179
+ group: [],
3180
+ launchType: [],
3181
+ networkConfiguration: smithy_client_1._json,
3182
+ overrides: smithy_client_1._json,
3183
+ placementConstraints: smithy_client_1._json,
3184
+ placementStrategy: smithy_client_1._json,
3185
+ platformVersion: [],
3186
+ propagateTags: [],
3187
+ referenceId: [],
3188
+ startedBy: [],
3189
+ tags: smithy_client_1._json,
3190
+ taskDefinition: [],
3191
+ });
3192
+ };
3158
3193
  const se_Scale = (input, context) => {
3159
3194
  return (0, smithy_client_1.take)(input, {
3160
3195
  unit: [],
@@ -563,6 +563,19 @@ export class BlockedException extends __BaseException {
563
563
  Object.setPrototypeOf(this, BlockedException.prototype);
564
564
  }
565
565
  }
566
+ export class ConflictException extends __BaseException {
567
+ constructor(opts) {
568
+ super({
569
+ name: "ConflictException",
570
+ $fault: "client",
571
+ ...opts,
572
+ });
573
+ this.name = "ConflictException";
574
+ this.$fault = "client";
575
+ Object.setPrototypeOf(this, ConflictException.prototype);
576
+ this.resourceIds = opts.resourceIds;
577
+ }
578
+ }
566
579
  export class MissingVersionException extends __BaseException {
567
580
  constructor(opts) {
568
581
  super({
@@ -1,7 +1,8 @@
1
1
  import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
2
2
  import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
3
+ import { v4 as generateIdempotencyToken } from "uuid";
3
4
  import { ECSServiceException as __BaseException } from "../models/ECSServiceException";
4
- import { AccessDeniedException, AttributeLimitExceededException, BlockedException, ClientException, ClusterContainsContainerInstancesException, ClusterContainsServicesException, ClusterContainsTasksException, ClusterNotFoundException, InvalidParameterException, LimitExceededException, MissingVersionException, NamespaceNotFoundException, NoUpdateAvailableException, PlatformTaskDefinitionIncompatibilityException, PlatformUnknownException, ResourceInUseException, ResourceNotFoundException, ServerException, ServiceNotActiveException, ServiceNotFoundException, TargetNotConnectedException, TargetNotFoundException, TaskSetNotFoundException, UnsupportedFeatureException, UpdateInProgressException, } from "../models/models_0";
5
+ import { AccessDeniedException, AttributeLimitExceededException, BlockedException, ClientException, ClusterContainsContainerInstancesException, ClusterContainsServicesException, ClusterContainsTasksException, ClusterNotFoundException, ConflictException, InvalidParameterException, LimitExceededException, MissingVersionException, NamespaceNotFoundException, NoUpdateAvailableException, PlatformTaskDefinitionIncompatibilityException, PlatformUnknownException, ResourceInUseException, ResourceNotFoundException, ServerException, ServiceNotActiveException, ServiceNotFoundException, TargetNotConnectedException, TargetNotFoundException, TaskSetNotFoundException, UnsupportedFeatureException, UpdateInProgressException, } from "../models/models_0";
5
6
  export const se_CreateCapacityProviderCommand = async (input, context) => {
6
7
  const headers = sharedHeaders("CreateCapacityProvider");
7
8
  let body;
@@ -239,7 +240,7 @@ export const se_RegisterTaskDefinitionCommand = async (input, context) => {
239
240
  export const se_RunTaskCommand = async (input, context) => {
240
241
  const headers = sharedHeaders("RunTask");
241
242
  let body;
242
- body = JSON.stringify(_json(input));
243
+ body = JSON.stringify(se_RunTaskRequest(input, context));
243
244
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
244
245
  };
245
246
  export const se_StartTaskCommand = async (input, context) => {
@@ -2017,6 +2018,9 @@ const de_RunTaskCommandError = async (output, context) => {
2017
2018
  case "ClusterNotFoundException":
2018
2019
  case "com.amazonaws.ecs#ClusterNotFoundException":
2019
2020
  throw await de_ClusterNotFoundExceptionRes(parsedOutput, context);
2021
+ case "ConflictException":
2022
+ case "com.amazonaws.ecs#ConflictException":
2023
+ throw await de_ConflictExceptionRes(parsedOutput, context);
2020
2024
  case "InvalidParameterException":
2021
2025
  case "com.amazonaws.ecs#InvalidParameterException":
2022
2026
  throw await de_InvalidParameterExceptionRes(parsedOutput, context);
@@ -2838,6 +2842,15 @@ const de_ClusterNotFoundExceptionRes = async (parsedOutput, context) => {
2838
2842
  });
2839
2843
  return __decorateServiceException(exception, body);
2840
2844
  };
2845
+ const de_ConflictExceptionRes = async (parsedOutput, context) => {
2846
+ const body = parsedOutput.body;
2847
+ const deserialized = _json(body);
2848
+ const exception = new ConflictException({
2849
+ $metadata: deserializeMetadata(parsedOutput),
2850
+ ...deserialized,
2851
+ });
2852
+ return __decorateServiceException(exception, body);
2853
+ };
2841
2854
  const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
2842
2855
  const body = parsedOutput.body;
2843
2856
  const deserialized = _json(body);
@@ -3038,6 +3051,28 @@ const se_Resources = (input, context) => {
3038
3051
  return se_Resource(entry, context);
3039
3052
  });
3040
3053
  };
3054
+ const se_RunTaskRequest = (input, context) => {
3055
+ return take(input, {
3056
+ capacityProviderStrategy: _json,
3057
+ clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
3058
+ cluster: [],
3059
+ count: [],
3060
+ enableECSManagedTags: [],
3061
+ enableExecuteCommand: [],
3062
+ group: [],
3063
+ launchType: [],
3064
+ networkConfiguration: _json,
3065
+ overrides: _json,
3066
+ placementConstraints: _json,
3067
+ placementStrategy: _json,
3068
+ platformVersion: [],
3069
+ propagateTags: [],
3070
+ referenceId: [],
3071
+ startedBy: [],
3072
+ tags: _json,
3073
+ taskDefinition: [],
3074
+ });
3075
+ };
3041
3076
  const se_Scale = (input, context) => {
3042
3077
  return take(input, {
3043
3078
  unit: [],
@@ -96,7 +96,7 @@ export interface CreateCapacityProviderCommandOutput extends CreateCapacityProvi
96
96
  * @throws {@link ClientException} (client fault)
97
97
  * <p>These errors are usually caused by a client action. This client action might be using
98
98
  * an action or resource on behalf of a user that doesn't have permissions to use the
99
- * action or resource,. Or, it might be specifying an identifier that isn't valid.</p>
99
+ * action or resource. Or, it might be specifying an identifier that isn't valid.</p>
100
100
  *
101
101
  * @throws {@link InvalidParameterException} (client fault)
102
102
  * <p>The specified parameter isn't valid. Review the available parameters for the API
@@ -164,7 +164,7 @@ export interface CreateClusterCommandOutput extends CreateClusterResponse, __Met
164
164
  * @throws {@link ClientException} (client fault)
165
165
  * <p>These errors are usually caused by a client action. This client action might be using
166
166
  * an action or resource on behalf of a user that doesn't have permissions to use the
167
- * action or resource,. Or, it might be specifying an identifier that isn't valid.</p>
167
+ * action or resource. Or, it might be specifying an identifier that isn't valid.</p>
168
168
  *
169
169
  * @throws {@link InvalidParameterException} (client fault)
170
170
  * <p>The specified parameter isn't valid. Review the available parameters for the API
@@ -473,7 +473,7 @@ export interface CreateServiceCommandOutput extends CreateServiceResponse, __Met
473
473
  * @throws {@link ClientException} (client fault)
474
474
  * <p>These errors are usually caused by a client action. This client action might be using
475
475
  * an action or resource on behalf of a user that doesn't have permissions to use the
476
- * action or resource,. Or, it might be specifying an identifier that isn't valid.</p>
476
+ * action or resource. Or, it might be specifying an identifier that isn't valid.</p>
477
477
  *
478
478
  * @throws {@link ClusterNotFoundException} (client fault)
479
479
  * <p>The specified cluster wasn't found. You can view your available clusters with <a>ListClusters</a>. Amazon ECS clusters are Region specific.</p>
@@ -169,7 +169,7 @@ export interface CreateTaskSetCommandOutput extends CreateTaskSetResponse, __Met
169
169
  * @throws {@link ClientException} (client fault)
170
170
  * <p>These errors are usually caused by a client action. This client action might be using
171
171
  * an action or resource on behalf of a user that doesn't have permissions to use the
172
- * action or resource,. Or, it might be specifying an identifier that isn't valid.</p>
172
+ * action or resource. Or, it might be specifying an identifier that isn't valid.</p>
173
173
  *
174
174
  * @throws {@link ClusterNotFoundException} (client fault)
175
175
  * <p>The specified cluster wasn't found. You can view your available clusters with <a>ListClusters</a>. Amazon ECS clusters are Region specific.</p>
@@ -56,7 +56,7 @@ export interface DeleteAccountSettingCommandOutput extends DeleteAccountSettingR
56
56
  * @throws {@link ClientException} (client fault)
57
57
  * <p>These errors are usually caused by a client action. This client action might be using
58
58
  * an action or resource on behalf of a user that doesn't have permissions to use the
59
- * action or resource,. Or, it might be specifying an identifier that isn't valid.</p>
59
+ * action or resource. Or, it might be specifying an identifier that isn't valid.</p>
60
60
  *
61
61
  * @throws {@link InvalidParameterException} (client fault)
62
62
  * <p>The specified parameter isn't valid. Review the available parameters for the API
@@ -87,7 +87,7 @@ export interface DeleteCapacityProviderCommandOutput extends DeleteCapacityProvi
87
87
  * @throws {@link ClientException} (client fault)
88
88
  * <p>These errors are usually caused by a client action. This client action might be using
89
89
  * an action or resource on behalf of a user that doesn't have permissions to use the
90
- * action or resource,. Or, it might be specifying an identifier that isn't valid.</p>
90
+ * action or resource. Or, it might be specifying an identifier that isn't valid.</p>
91
91
  *
92
92
  * @throws {@link InvalidParameterException} (client fault)
93
93
  * <p>The specified parameter isn't valid. Review the available parameters for the API
@@ -121,7 +121,7 @@ export interface DeleteClusterCommandOutput extends DeleteClusterResponse, __Met
121
121
  * @throws {@link ClientException} (client fault)
122
122
  * <p>These errors are usually caused by a client action. This client action might be using
123
123
  * an action or resource on behalf of a user that doesn't have permissions to use the
124
- * action or resource,. Or, it might be specifying an identifier that isn't valid.</p>
124
+ * action or resource. Or, it might be specifying an identifier that isn't valid.</p>
125
125
  *
126
126
  * @throws {@link ClusterContainsContainerInstancesException} (client fault)
127
127
  * <p>You can't delete a cluster that has registered container instances. First, deregister
@@ -302,7 +302,7 @@ export interface DeleteServiceCommandOutput extends DeleteServiceResponse, __Met
302
302
  * @throws {@link ClientException} (client fault)
303
303
  * <p>These errors are usually caused by a client action. This client action might be using
304
304
  * an action or resource on behalf of a user that doesn't have permissions to use the
305
- * action or resource,. Or, it might be specifying an identifier that isn't valid.</p>
305
+ * action or resource. Or, it might be specifying an identifier that isn't valid.</p>
306
306
  *
307
307
  * @throws {@link ClusterNotFoundException} (client fault)
308
308
  * <p>The specified cluster wasn't found. You can view your available clusters with <a>ListClusters</a>. Amazon ECS clusters are Region specific.</p>
@@ -339,7 +339,7 @@ export interface DeleteTaskDefinitionsCommandOutput extends DeleteTaskDefinition
339
339
  * @throws {@link ClientException} (client fault)
340
340
  * <p>These errors are usually caused by a client action. This client action might be using
341
341
  * an action or resource on behalf of a user that doesn't have permissions to use the
342
- * action or resource,. Or, it might be specifying an identifier that isn't valid.</p>
342
+ * action or resource. Or, it might be specifying an identifier that isn't valid.</p>
343
343
  *
344
344
  * @throws {@link InvalidParameterException} (client fault)
345
345
  * <p>The specified parameter isn't valid. Review the available parameters for the API
@@ -120,7 +120,7 @@ export interface DeleteTaskSetCommandOutput extends DeleteTaskSetResponse, __Met
120
120
  * @throws {@link ClientException} (client fault)
121
121
  * <p>These errors are usually caused by a client action. This client action might be using
122
122
  * an action or resource on behalf of a user that doesn't have permissions to use the
123
- * action or resource,. Or, it might be specifying an identifier that isn't valid.</p>
123
+ * action or resource. Or, it might be specifying an identifier that isn't valid.</p>
124
124
  *
125
125
  * @throws {@link ClusterNotFoundException} (client fault)
126
126
  * <p>The specified cluster wasn't found. You can view your available clusters with <a>ListClusters</a>. Amazon ECS clusters are Region specific.</p>
@@ -144,7 +144,7 @@ export interface DeregisterContainerInstanceCommandOutput extends DeregisterCont
144
144
  * @throws {@link ClientException} (client fault)
145
145
  * <p>These errors are usually caused by a client action. This client action might be using
146
146
  * an action or resource on behalf of a user that doesn't have permissions to use the
147
- * action or resource,. Or, it might be specifying an identifier that isn't valid.</p>
147
+ * action or resource. Or, it might be specifying an identifier that isn't valid.</p>
148
148
  *
149
149
  * @throws {@link ClusterNotFoundException} (client fault)
150
150
  * <p>The specified cluster wasn't found. You can view your available clusters with <a>ListClusters</a>. Amazon ECS clusters are Region specific.</p>
@@ -328,7 +328,7 @@ export interface DeregisterTaskDefinitionCommandOutput extends DeregisterTaskDef
328
328
  * @throws {@link ClientException} (client fault)
329
329
  * <p>These errors are usually caused by a client action. This client action might be using
330
330
  * an action or resource on behalf of a user that doesn't have permissions to use the
331
- * action or resource,. Or, it might be specifying an identifier that isn't valid.</p>
331
+ * action or resource. Or, it might be specifying an identifier that isn't valid.</p>
332
332
  *
333
333
  * @throws {@link InvalidParameterException} (client fault)
334
334
  * <p>The specified parameter isn't valid. Review the available parameters for the API
@@ -90,7 +90,7 @@ export interface DescribeCapacityProvidersCommandOutput extends DescribeCapacity
90
90
  * @throws {@link ClientException} (client fault)
91
91
  * <p>These errors are usually caused by a client action. This client action might be using
92
92
  * an action or resource on behalf of a user that doesn't have permissions to use the
93
- * action or resource,. Or, it might be specifying an identifier that isn't valid.</p>
93
+ * action or resource. Or, it might be specifying an identifier that isn't valid.</p>
94
94
  *
95
95
  * @throws {@link InvalidParameterException} (client fault)
96
96
  * <p>The specified parameter isn't valid. Review the available parameters for the API
@@ -130,7 +130,7 @@ export interface DescribeClustersCommandOutput extends DescribeClustersResponse,
130
130
  * @throws {@link ClientException} (client fault)
131
131
  * <p>These errors are usually caused by a client action. This client action might be using
132
132
  * an action or resource on behalf of a user that doesn't have permissions to use the
133
- * action or resource,. Or, it might be specifying an identifier that isn't valid.</p>
133
+ * action or resource. Or, it might be specifying an identifier that isn't valid.</p>
134
134
  *
135
135
  * @throws {@link InvalidParameterException} (client fault)
136
136
  * <p>The specified parameter isn't valid. Review the available parameters for the API
@@ -145,7 +145,7 @@ export interface DescribeContainerInstancesCommandOutput extends DescribeContain
145
145
  * @throws {@link ClientException} (client fault)
146
146
  * <p>These errors are usually caused by a client action. This client action might be using
147
147
  * an action or resource on behalf of a user that doesn't have permissions to use the
148
- * action or resource,. Or, it might be specifying an identifier that isn't valid.</p>
148
+ * action or resource. Or, it might be specifying an identifier that isn't valid.</p>
149
149
  *
150
150
  * @throws {@link ClusterNotFoundException} (client fault)
151
151
  * <p>The specified cluster wasn't found. You can view your available clusters with <a>ListClusters</a>. Amazon ECS clusters are Region specific.</p>
@@ -295,7 +295,7 @@ export interface DescribeServicesCommandOutput extends DescribeServicesResponse,
295
295
  * @throws {@link ClientException} (client fault)
296
296
  * <p>These errors are usually caused by a client action. This client action might be using
297
297
  * an action or resource on behalf of a user that doesn't have permissions to use the
298
- * action or resource,. Or, it might be specifying an identifier that isn't valid.</p>
298
+ * action or resource. Or, it might be specifying an identifier that isn't valid.</p>
299
299
  *
300
300
  * @throws {@link ClusterNotFoundException} (client fault)
301
301
  * <p>The specified cluster wasn't found. You can view your available clusters with <a>ListClusters</a>. Amazon ECS clusters are Region specific.</p>
@@ -327,7 +327,7 @@ export interface DescribeTaskDefinitionCommandOutput extends DescribeTaskDefinit
327
327
  * @throws {@link ClientException} (client fault)
328
328
  * <p>These errors are usually caused by a client action. This client action might be using
329
329
  * an action or resource on behalf of a user that doesn't have permissions to use the
330
- * action or resource,. Or, it might be specifying an identifier that isn't valid.</p>
330
+ * action or resource. Or, it might be specifying an identifier that isn't valid.</p>
331
331
  *
332
332
  * @throws {@link InvalidParameterException} (client fault)
333
333
  * <p>The specified parameter isn't valid. Review the available parameters for the API
@@ -135,7 +135,7 @@ export interface DescribeTaskSetsCommandOutput extends DescribeTaskSetsResponse,
135
135
  * @throws {@link ClientException} (client fault)
136
136
  * <p>These errors are usually caused by a client action. This client action might be using
137
137
  * an action or resource on behalf of a user that doesn't have permissions to use the
138
- * action or resource,. Or, it might be specifying an identifier that isn't valid.</p>
138
+ * action or resource. Or, it might be specifying an identifier that isn't valid.</p>
139
139
  *
140
140
  * @throws {@link ClusterNotFoundException} (client fault)
141
141
  * <p>The specified cluster wasn't found. You can view your available clusters with <a>ListClusters</a>. Amazon ECS clusters are Region specific.</p>
@@ -224,7 +224,7 @@ export interface DescribeTasksCommandOutput extends DescribeTasksResponse, __Met
224
224
  * @throws {@link ClientException} (client fault)
225
225
  * <p>These errors are usually caused by a client action. This client action might be using
226
226
  * an action or resource on behalf of a user that doesn't have permissions to use the
227
- * action or resource,. Or, it might be specifying an identifier that isn't valid.</p>
227
+ * action or resource. Or, it might be specifying an identifier that isn't valid.</p>
228
228
  *
229
229
  * @throws {@link ClusterNotFoundException} (client fault)
230
230
  * <p>The specified cluster wasn't found. You can view your available clusters with <a>ListClusters</a>. Amazon ECS clusters are Region specific.</p>
@@ -56,7 +56,7 @@ export interface DiscoverPollEndpointCommandOutput extends DiscoverPollEndpointR
56
56
  * @throws {@link ClientException} (client fault)
57
57
  * <p>These errors are usually caused by a client action. This client action might be using
58
58
  * an action or resource on behalf of a user that doesn't have permissions to use the
59
- * action or resource,. Or, it might be specifying an identifier that isn't valid.</p>
59
+ * action or resource. Or, it might be specifying an identifier that isn't valid.</p>
60
60
  *
61
61
  * @throws {@link ServerException} (server fault)
62
62
  * <p>These errors are usually caused by a server issue.</p>
@@ -72,7 +72,7 @@ export interface ExecuteCommandCommandOutput extends ExecuteCommandResponse, __M
72
72
  * @throws {@link ClientException} (client fault)
73
73
  * <p>These errors are usually caused by a client action. This client action might be using
74
74
  * an action or resource on behalf of a user that doesn't have permissions to use the
75
- * action or resource,. Or, it might be specifying an identifier that isn't valid.</p>
75
+ * action or resource. Or, it might be specifying an identifier that isn't valid.</p>
76
76
  *
77
77
  * @throws {@link ClusterNotFoundException} (client fault)
78
78
  * <p>The specified cluster wasn't found. You can view your available clusters with <a>ListClusters</a>. Amazon ECS clusters are Region specific.</p>
@@ -69,7 +69,7 @@ export interface GetTaskProtectionCommandOutput extends GetTaskProtectionRespons
69
69
  * @throws {@link ClientException} (client fault)
70
70
  * <p>These errors are usually caused by a client action. This client action might be using
71
71
  * an action or resource on behalf of a user that doesn't have permissions to use the
72
- * action or resource,. Or, it might be specifying an identifier that isn't valid.</p>
72
+ * action or resource. Or, it might be specifying an identifier that isn't valid.</p>
73
73
  *
74
74
  * @throws {@link ClusterNotFoundException} (client fault)
75
75
  * <p>The specified cluster wasn't found. You can view your available clusters with <a>ListClusters</a>. Amazon ECS clusters are Region specific.</p>
@@ -62,7 +62,7 @@ export interface ListAccountSettingsCommandOutput extends ListAccountSettingsRes
62
62
  * @throws {@link ClientException} (client fault)
63
63
  * <p>These errors are usually caused by a client action. This client action might be using
64
64
  * an action or resource on behalf of a user that doesn't have permissions to use the
65
- * action or resource,. Or, it might be specifying an identifier that isn't valid.</p>
65
+ * action or resource. Or, it might be specifying an identifier that isn't valid.</p>
66
66
  *
67
67
  * @throws {@link InvalidParameterException} (client fault)
68
68
  * <p>The specified parameter isn't valid. Review the available parameters for the API
@@ -54,7 +54,7 @@ export interface ListClustersCommandOutput extends ListClustersResponse, __Metad
54
54
  * @throws {@link ClientException} (client fault)
55
55
  * <p>These errors are usually caused by a client action. This client action might be using
56
56
  * an action or resource on behalf of a user that doesn't have permissions to use the
57
- * action or resource,. Or, it might be specifying an identifier that isn't valid.</p>
57
+ * action or resource. Or, it might be specifying an identifier that isn't valid.</p>
58
58
  *
59
59
  * @throws {@link InvalidParameterException} (client fault)
60
60
  * <p>The specified parameter isn't valid. Review the available parameters for the API
@@ -59,7 +59,7 @@ export interface ListContainerInstancesCommandOutput extends ListContainerInstan
59
59
  * @throws {@link ClientException} (client fault)
60
60
  * <p>These errors are usually caused by a client action. This client action might be using
61
61
  * an action or resource on behalf of a user that doesn't have permissions to use the
62
- * action or resource,. Or, it might be specifying an identifier that isn't valid.</p>
62
+ * action or resource. Or, it might be specifying an identifier that isn't valid.</p>
63
63
  *
64
64
  * @throws {@link ClusterNotFoundException} (client fault)
65
65
  * <p>The specified cluster wasn't found. You can view your available clusters with <a>ListClusters</a>. Amazon ECS clusters are Region specific.</p>
@@ -59,7 +59,7 @@ export interface ListServicesByNamespaceCommandOutput extends ListServicesByName
59
59
  * @throws {@link ClientException} (client fault)
60
60
  * <p>These errors are usually caused by a client action. This client action might be using
61
61
  * an action or resource on behalf of a user that doesn't have permissions to use the
62
- * action or resource,. Or, it might be specifying an identifier that isn't valid.</p>
62
+ * action or resource. Or, it might be specifying an identifier that isn't valid.</p>
63
63
  *
64
64
  * @throws {@link InvalidParameterException} (client fault)
65
65
  * <p>The specified parameter isn't valid. Review the available parameters for the API
@@ -58,7 +58,7 @@ export interface ListServicesCommandOutput extends ListServicesResponse, __Metad
58
58
  * @throws {@link ClientException} (client fault)
59
59
  * <p>These errors are usually caused by a client action. This client action might be using
60
60
  * an action or resource on behalf of a user that doesn't have permissions to use the
61
- * action or resource,. Or, it might be specifying an identifier that isn't valid.</p>
61
+ * action or resource. Or, it might be specifying an identifier that isn't valid.</p>
62
62
  *
63
63
  * @throws {@link ClusterNotFoundException} (client fault)
64
64
  * <p>The specified cluster wasn't found. You can view your available clusters with <a>ListClusters</a>. Amazon ECS clusters are Region specific.</p>
@@ -55,7 +55,7 @@ export interface ListTagsForResourceCommandOutput extends ListTagsForResourceRes
55
55
  * @throws {@link ClientException} (client fault)
56
56
  * <p>These errors are usually caused by a client action. This client action might be using
57
57
  * an action or resource on behalf of a user that doesn't have permissions to use the
58
- * action or resource,. Or, it might be specifying an identifier that isn't valid.</p>
58
+ * action or resource. Or, it might be specifying an identifier that isn't valid.</p>
59
59
  *
60
60
  * @throws {@link ClusterNotFoundException} (client fault)
61
61
  * <p>The specified cluster wasn't found. You can view your available clusters with <a>ListClusters</a>. Amazon ECS clusters are Region specific.</p>
@@ -62,7 +62,7 @@ export interface ListTaskDefinitionFamiliesCommandOutput extends ListTaskDefinit
62
62
  * @throws {@link ClientException} (client fault)
63
63
  * <p>These errors are usually caused by a client action. This client action might be using
64
64
  * an action or resource on behalf of a user that doesn't have permissions to use the
65
- * action or resource,. Or, it might be specifying an identifier that isn't valid.</p>
65
+ * action or resource. Or, it might be specifying an identifier that isn't valid.</p>
66
66
  *
67
67
  * @throws {@link InvalidParameterException} (client fault)
68
68
  * <p>The specified parameter isn't valid. Review the available parameters for the API
@@ -59,7 +59,7 @@ export interface ListTaskDefinitionsCommandOutput extends ListTaskDefinitionsRes
59
59
  * @throws {@link ClientException} (client fault)
60
60
  * <p>These errors are usually caused by a client action. This client action might be using
61
61
  * an action or resource on behalf of a user that doesn't have permissions to use the
62
- * action or resource,. Or, it might be specifying an identifier that isn't valid.</p>
62
+ * action or resource. Or, it might be specifying an identifier that isn't valid.</p>
63
63
  *
64
64
  * @throws {@link InvalidParameterException} (client fault)
65
65
  * <p>The specified parameter isn't valid. Review the available parameters for the API
@@ -64,7 +64,7 @@ export interface ListTasksCommandOutput extends ListTasksResponse, __MetadataBea
64
64
  * @throws {@link ClientException} (client fault)
65
65
  * <p>These errors are usually caused by a client action. This client action might be using
66
66
  * an action or resource on behalf of a user that doesn't have permissions to use the
67
- * action or resource,. Or, it might be specifying an identifier that isn't valid.</p>
67
+ * action or resource. Or, it might be specifying an identifier that isn't valid.</p>
68
68
  *
69
69
  * @throws {@link ClusterNotFoundException} (client fault)
70
70
  * <p>The specified cluster wasn't found. You can view your available clusters with <a>ListClusters</a>. Amazon ECS clusters are Region specific.</p>
@@ -92,7 +92,7 @@ export interface PutAccountSettingCommandOutput extends PutAccountSettingRespons
92
92
  * @throws {@link ClientException} (client fault)
93
93
  * <p>These errors are usually caused by a client action. This client action might be using
94
94
  * an action or resource on behalf of a user that doesn't have permissions to use the
95
- * action or resource,. Or, it might be specifying an identifier that isn't valid.</p>
95
+ * action or resource. Or, it might be specifying an identifier that isn't valid.</p>
96
96
  *
97
97
  * @throws {@link InvalidParameterException} (client fault)
98
98
  * <p>The specified parameter isn't valid. Review the available parameters for the API
@@ -57,7 +57,7 @@ export interface PutAccountSettingDefaultCommandOutput extends PutAccountSetting
57
57
  * @throws {@link ClientException} (client fault)
58
58
  * <p>These errors are usually caused by a client action. This client action might be using
59
59
  * an action or resource on behalf of a user that doesn't have permissions to use the
60
- * action or resource,. Or, it might be specifying an identifier that isn't valid.</p>
60
+ * action or resource. Or, it might be specifying an identifier that isn't valid.</p>
61
61
  *
62
62
  * @throws {@link InvalidParameterException} (client fault)
63
63
  * <p>The specified parameter isn't valid. Review the available parameters for the API
@@ -139,7 +139,7 @@ export interface PutClusterCapacityProvidersCommandOutput extends PutClusterCapa
139
139
  * @throws {@link ClientException} (client fault)
140
140
  * <p>These errors are usually caused by a client action. This client action might be using
141
141
  * an action or resource on behalf of a user that doesn't have permissions to use the
142
- * action or resource,. Or, it might be specifying an identifier that isn't valid.</p>
142
+ * action or resource. Or, it might be specifying an identifier that isn't valid.</p>
143
143
  *
144
144
  * @throws {@link ClusterNotFoundException} (client fault)
145
145
  * <p>The specified cluster wasn't found. You can view your available clusters with <a>ListClusters</a>. Amazon ECS clusters are Region specific.</p>
@@ -173,7 +173,7 @@ export interface RegisterContainerInstanceCommandOutput extends RegisterContaine
173
173
  * @throws {@link ClientException} (client fault)
174
174
  * <p>These errors are usually caused by a client action. This client action might be using
175
175
  * an action or resource on behalf of a user that doesn't have permissions to use the
176
- * action or resource,. Or, it might be specifying an identifier that isn't valid.</p>
176
+ * action or resource. Or, it might be specifying an identifier that isn't valid.</p>
177
177
  *
178
178
  * @throws {@link InvalidParameterException} (client fault)
179
179
  * <p>The specified parameter isn't valid. Review the available parameters for the API
@@ -582,7 +582,7 @@ export interface RegisterTaskDefinitionCommandOutput extends RegisterTaskDefinit
582
582
  * @throws {@link ClientException} (client fault)
583
583
  * <p>These errors are usually caused by a client action. This client action might be using
584
584
  * an action or resource on behalf of a user that doesn't have permissions to use the
585
- * action or resource,. Or, it might be specifying an identifier that isn't valid.</p>
585
+ * action or resource. Or, it might be specifying an identifier that isn't valid.</p>
586
586
  *
587
587
  * @throws {@link InvalidParameterException} (client fault)
588
588
  * <p>The specified parameter isn't valid. Review the available parameters for the API
@@ -152,6 +152,7 @@ export interface RunTaskCommandOutput extends RunTaskResponse, __MetadataBearer
152
152
  * },
153
153
  * ],
154
154
  * taskDefinition: "STRING_VALUE", // required
155
+ * clientToken: "STRING_VALUE",
155
156
  * };
156
157
  * const command = new RunTaskCommand(input);
157
158
  * const response = await client.send(command);
@@ -341,11 +342,28 @@ export interface RunTaskCommandOutput extends RunTaskResponse, __MetadataBearer
341
342
  * @throws {@link ClientException} (client fault)
342
343
  * <p>These errors are usually caused by a client action. This client action might be using
343
344
  * an action or resource on behalf of a user that doesn't have permissions to use the
344
- * action or resource,. Or, it might be specifying an identifier that isn't valid.</p>
345
+ * action or resource. Or, it might be specifying an identifier that isn't valid.</p>
345
346
  *
346
347
  * @throws {@link ClusterNotFoundException} (client fault)
347
348
  * <p>The specified cluster wasn't found. You can view your available clusters with <a>ListClusters</a>. Amazon ECS clusters are Region specific.</p>
348
349
  *
350
+ * @throws {@link ConflictException} (client fault)
351
+ * <p>The <code>RunTask</code> request could not be processed due to conflicts. The provided
352
+ * <code>clientToken</code> is already in use with a different <code>RunTask</code>
353
+ * request. The <code>resourceIds</code> are the existing task ARNs which are already
354
+ * associated with the <code>clientToken</code>. </p>
355
+ * <p>To fix this issue:</p>
356
+ * <ul>
357
+ * <li>
358
+ * <p>Run <code>RunTask</code> with a unique
359
+ * <code>clientToken</code>.</p>
360
+ * </li>
361
+ * <li>
362
+ * <p>Run <code>RunTask</code> with the <code>clientToken</code> and the original set of
363
+ * parameters</p>
364
+ * </li>
365
+ * </ul>
366
+ *
349
367
  * @throws {@link InvalidParameterException} (client fault)
350
368
  * <p>The specified parameter isn't valid. Review the available parameters for the API
351
369
  * request.</p>
@@ -289,7 +289,7 @@ export interface StartTaskCommandOutput extends StartTaskResponse, __MetadataBea
289
289
  * @throws {@link ClientException} (client fault)
290
290
  * <p>These errors are usually caused by a client action. This client action might be using
291
291
  * an action or resource on behalf of a user that doesn't have permissions to use the
292
- * action or resource,. Or, it might be specifying an identifier that isn't valid.</p>
292
+ * action or resource. Or, it might be specifying an identifier that isn't valid.</p>
293
293
  *
294
294
  * @throws {@link ClusterNotFoundException} (client fault)
295
295
  * <p>The specified cluster wasn't found. You can view your available clusters with <a>ListClusters</a>. Amazon ECS clusters are Region specific.</p>
@@ -219,7 +219,7 @@ export interface StopTaskCommandOutput extends StopTaskResponse, __MetadataBeare
219
219
  * @throws {@link ClientException} (client fault)
220
220
  * <p>These errors are usually caused by a client action. This client action might be using
221
221
  * an action or resource on behalf of a user that doesn't have permissions to use the
222
- * action or resource,. Or, it might be specifying an identifier that isn't valid.</p>
222
+ * action or resource. Or, it might be specifying an identifier that isn't valid.</p>
223
223
  *
224
224
  * @throws {@link ClusterNotFoundException} (client fault)
225
225
  * <p>The specified cluster wasn't found. You can view your available clusters with <a>ListClusters</a>. Amazon ECS clusters are Region specific.</p>
@@ -62,7 +62,7 @@ export interface SubmitAttachmentStateChangesCommandOutput extends SubmitAttachm
62
62
  * @throws {@link ClientException} (client fault)
63
63
  * <p>These errors are usually caused by a client action. This client action might be using
64
64
  * an action or resource on behalf of a user that doesn't have permissions to use the
65
- * action or resource,. Or, it might be specifying an identifier that isn't valid.</p>
65
+ * action or resource. Or, it might be specifying an identifier that isn't valid.</p>
66
66
  *
67
67
  * @throws {@link InvalidParameterException} (client fault)
68
68
  * <p>The specified parameter isn't valid. Review the available parameters for the API
@@ -72,7 +72,7 @@ export interface SubmitContainerStateChangeCommandOutput extends SubmitContainer
72
72
  * @throws {@link ClientException} (client fault)
73
73
  * <p>These errors are usually caused by a client action. This client action might be using
74
74
  * an action or resource on behalf of a user that doesn't have permissions to use the
75
- * action or resource,. Or, it might be specifying an identifier that isn't valid.</p>
75
+ * action or resource. Or, it might be specifying an identifier that isn't valid.</p>
76
76
  *
77
77
  * @throws {@link ServerException} (server fault)
78
78
  * <p>These errors are usually caused by a server issue.</p>
@@ -96,7 +96,7 @@ export interface SubmitTaskStateChangeCommandOutput extends SubmitTaskStateChang
96
96
  * @throws {@link ClientException} (client fault)
97
97
  * <p>These errors are usually caused by a client action. This client action might be using
98
98
  * an action or resource on behalf of a user that doesn't have permissions to use the
99
- * action or resource,. Or, it might be specifying an identifier that isn't valid.</p>
99
+ * action or resource. Or, it might be specifying an identifier that isn't valid.</p>
100
100
  *
101
101
  * @throws {@link InvalidParameterException} (client fault)
102
102
  * <p>The specified parameter isn't valid. Review the available parameters for the API
@@ -57,7 +57,7 @@ export interface TagResourceCommandOutput extends TagResourceResponse, __Metadat
57
57
  * @throws {@link ClientException} (client fault)
58
58
  * <p>These errors are usually caused by a client action. This client action might be using
59
59
  * an action or resource on behalf of a user that doesn't have permissions to use the
60
- * action or resource,. Or, it might be specifying an identifier that isn't valid.</p>
60
+ * action or resource. Or, it might be specifying an identifier that isn't valid.</p>
61
61
  *
62
62
  * @throws {@link ClusterNotFoundException} (client fault)
63
63
  * <p>The specified cluster wasn't found. You can view your available clusters with <a>ListClusters</a>. Amazon ECS clusters are Region specific.</p>
@@ -51,7 +51,7 @@ export interface UntagResourceCommandOutput extends UntagResourceResponse, __Met
51
51
  * @throws {@link ClientException} (client fault)
52
52
  * <p>These errors are usually caused by a client action. This client action might be using
53
53
  * an action or resource on behalf of a user that doesn't have permissions to use the
54
- * action or resource,. Or, it might be specifying an identifier that isn't valid.</p>
54
+ * action or resource. Or, it might be specifying an identifier that isn't valid.</p>
55
55
  *
56
56
  * @throws {@link ClusterNotFoundException} (client fault)
57
57
  * <p>The specified cluster wasn't found. You can view your available clusters with <a>ListClusters</a>. Amazon ECS clusters are Region specific.</p>
@@ -83,7 +83,7 @@ export interface UpdateCapacityProviderCommandOutput extends UpdateCapacityProvi
83
83
  * @throws {@link ClientException} (client fault)
84
84
  * <p>These errors are usually caused by a client action. This client action might be using
85
85
  * an action or resource on behalf of a user that doesn't have permissions to use the
86
- * action or resource,. Or, it might be specifying an identifier that isn't valid.</p>
86
+ * action or resource. Or, it might be specifying an identifier that isn't valid.</p>
87
87
  *
88
88
  * @throws {@link InvalidParameterException} (client fault)
89
89
  * <p>The specified parameter isn't valid. Review the available parameters for the API
@@ -138,7 +138,7 @@ export interface UpdateClusterCommandOutput extends UpdateClusterResponse, __Met
138
138
  * @throws {@link ClientException} (client fault)
139
139
  * <p>These errors are usually caused by a client action. This client action might be using
140
140
  * an action or resource on behalf of a user that doesn't have permissions to use the
141
- * action or resource,. Or, it might be specifying an identifier that isn't valid.</p>
141
+ * action or resource. Or, it might be specifying an identifier that isn't valid.</p>
142
142
  *
143
143
  * @throws {@link ClusterNotFoundException} (client fault)
144
144
  * <p>The specified cluster wasn't found. You can view your available clusters with <a>ListClusters</a>. Amazon ECS clusters are Region specific.</p>
@@ -122,7 +122,7 @@ export interface UpdateClusterSettingsCommandOutput extends UpdateClusterSetting
122
122
  * @throws {@link ClientException} (client fault)
123
123
  * <p>These errors are usually caused by a client action. This client action might be using
124
124
  * an action or resource on behalf of a user that doesn't have permissions to use the
125
- * action or resource,. Or, it might be specifying an identifier that isn't valid.</p>
125
+ * action or resource. Or, it might be specifying an identifier that isn't valid.</p>
126
126
  *
127
127
  * @throws {@link ClusterNotFoundException} (client fault)
128
128
  * <p>The specified cluster wasn't found. You can view your available clusters with <a>ListClusters</a>. Amazon ECS clusters are Region specific.</p>
@@ -148,7 +148,7 @@ export interface UpdateContainerAgentCommandOutput extends UpdateContainerAgentR
148
148
  * @throws {@link ClientException} (client fault)
149
149
  * <p>These errors are usually caused by a client action. This client action might be using
150
150
  * an action or resource on behalf of a user that doesn't have permissions to use the
151
- * action or resource,. Or, it might be specifying an identifier that isn't valid.</p>
151
+ * action or resource. Or, it might be specifying an identifier that isn't valid.</p>
152
152
  *
153
153
  * @throws {@link ClusterNotFoundException} (client fault)
154
154
  * <p>The specified cluster wasn't found. You can view your available clusters with <a>ListClusters</a>. Amazon ECS clusters are Region specific.</p>
@@ -190,7 +190,7 @@ export interface UpdateContainerInstancesStateCommandOutput extends UpdateContai
190
190
  * @throws {@link ClientException} (client fault)
191
191
  * <p>These errors are usually caused by a client action. This client action might be using
192
192
  * an action or resource on behalf of a user that doesn't have permissions to use the
193
- * action or resource,. Or, it might be specifying an identifier that isn't valid.</p>
193
+ * action or resource. Or, it might be specifying an identifier that isn't valid.</p>
194
194
  *
195
195
  * @throws {@link ClusterNotFoundException} (client fault)
196
196
  * <p>The specified cluster wasn't found. You can view your available clusters with <a>ListClusters</a>. Amazon ECS clusters are Region specific.</p>
@@ -505,7 +505,7 @@ export interface UpdateServiceCommandOutput extends UpdateServiceResponse, __Met
505
505
  * @throws {@link ClientException} (client fault)
506
506
  * <p>These errors are usually caused by a client action. This client action might be using
507
507
  * an action or resource on behalf of a user that doesn't have permissions to use the
508
- * action or resource,. Or, it might be specifying an identifier that isn't valid.</p>
508
+ * action or resource. Or, it might be specifying an identifier that isn't valid.</p>
509
509
  *
510
510
  * @throws {@link ClusterNotFoundException} (client fault)
511
511
  * <p>The specified cluster wasn't found. You can view your available clusters with <a>ListClusters</a>. Amazon ECS clusters are Region specific.</p>
@@ -122,7 +122,7 @@ export interface UpdateServicePrimaryTaskSetCommandOutput extends UpdateServiceP
122
122
  * @throws {@link ClientException} (client fault)
123
123
  * <p>These errors are usually caused by a client action. This client action might be using
124
124
  * an action or resource on behalf of a user that doesn't have permissions to use the
125
- * action or resource,. Or, it might be specifying an identifier that isn't valid.</p>
125
+ * action or resource. Or, it might be specifying an identifier that isn't valid.</p>
126
126
  *
127
127
  * @throws {@link ClusterNotFoundException} (client fault)
128
128
  * <p>The specified cluster wasn't found. You can view your available clusters with <a>ListClusters</a>. Amazon ECS clusters are Region specific.</p>
@@ -97,7 +97,7 @@ export interface UpdateTaskProtectionCommandOutput extends UpdateTaskProtectionR
97
97
  * @throws {@link ClientException} (client fault)
98
98
  * <p>These errors are usually caused by a client action. This client action might be using
99
99
  * an action or resource on behalf of a user that doesn't have permissions to use the
100
- * action or resource,. Or, it might be specifying an identifier that isn't valid.</p>
100
+ * action or resource. Or, it might be specifying an identifier that isn't valid.</p>
101
101
  *
102
102
  * @throws {@link ClusterNotFoundException} (client fault)
103
103
  * <p>The specified cluster wasn't found. You can view your available clusters with <a>ListClusters</a>. Amazon ECS clusters are Region specific.</p>
@@ -124,7 +124,7 @@ export interface UpdateTaskSetCommandOutput extends UpdateTaskSetResponse, __Met
124
124
  * @throws {@link ClientException} (client fault)
125
125
  * <p>These errors are usually caused by a client action. This client action might be using
126
126
  * an action or resource on behalf of a user that doesn't have permissions to use the
127
- * action or resource,. Or, it might be specifying an identifier that isn't valid.</p>
127
+ * action or resource. Or, it might be specifying an identifier that isn't valid.</p>
128
128
  *
129
129
  * @throws {@link ClusterNotFoundException} (client fault)
130
130
  * <p>The specified cluster wasn't found. You can view your available clusters with <a>ListClusters</a>. Amazon ECS clusters are Region specific.</p>
@@ -32,7 +32,7 @@ export type AgentUpdateStatus = (typeof AgentUpdateStatus)[keyof typeof AgentUpd
32
32
  * @public
33
33
  * <p>These errors are usually caused by a client action. This client action might be using
34
34
  * an action or resource on behalf of a user that doesn't have permissions to use the
35
- * action or resource,. Or, it might be specifying an identifier that isn't valid.</p>
35
+ * action or resource. Or, it might be specifying an identifier that isn't valid.</p>
36
36
  */
37
37
  export declare class ClientException extends __BaseException {
38
38
  readonly name: "ClientException";
@@ -2006,7 +2006,7 @@ export interface CreateServiceRequest {
2006
2006
  /**
2007
2007
  * @public
2008
2008
  * <p>An identifier that you provide to ensure the idempotency of the request. It must be
2009
- * unique and is case sensitive. Up to 32 ASCII characters are allowed.</p>
2009
+ * unique and is case sensitive. Up to 36 ASCII characters in the range of 33-126 (inclusive) are allowed.</p>
2010
2010
  */
2011
2011
  clientToken?: string;
2012
2012
  /**
@@ -3106,8 +3106,8 @@ export interface CreateTaskSetRequest {
3106
3106
  scale?: Scale;
3107
3107
  /**
3108
3108
  * @public
3109
- * <p>The identifier that you provide to ensure the idempotency of the request. It's case
3110
- * sensitive and must be unique. It can be up to 32 ASCII characters are allowed.</p>
3109
+ * <p>An identifier that you provide to ensure the idempotency of the request. It must be
3110
+ * unique and is case sensitive. Up to 36 ASCII characters in the range of 33-126 (inclusive) are allowed.</p>
3111
3111
  */
3112
3112
  clientToken?: string;
3113
3113
  /**
@@ -4243,7 +4243,10 @@ export interface PortMapping {
4243
4243
  /**
4244
4244
  * @public
4245
4245
  * <p>The protocol used for the port mapping. Valid values are <code>tcp</code> and
4246
- * <code>udp</code>. The default is <code>tcp</code>.</p>
4246
+ * <code>udp</code>. The default is <code>tcp</code>. <code>protocol</code> is immutable in a
4247
+ * Service Connect service. Updating this field requires a service deletion and
4248
+ * redeployment.
4249
+ * </p>
4247
4250
  */
4248
4251
  protocol?: TransportProtocol;
4249
4252
  /**
@@ -4265,6 +4268,9 @@ export interface PortMapping {
4265
4268
  * parameter, Amazon ECS adds protocol-specific telemetry in the Amazon ECS console and CloudWatch.</p>
4266
4269
  * <p>If you don't set a value for this parameter, then TCP is used. However, Amazon ECS doesn't
4267
4270
  * add protocol-specific telemetry for TCP.</p>
4271
+ * <p>
4272
+ * <code>appProtocol</code> is immutable in a Service Connect service. Updating this field
4273
+ * requires a service deletion and redeployment.</p>
4268
4274
  * <p>Tasks that run in a namespace can use short names to connect
4269
4275
  * to services in the namespace. Tasks can connect to services across all of the clusters in the namespace.
4270
4276
  * Tasks connect through a managed proxy container
@@ -9501,6 +9507,37 @@ export declare class BlockedException extends __BaseException {
9501
9507
  */
9502
9508
  constructor(opts: __ExceptionOptionType<BlockedException, __BaseException>);
9503
9509
  }
9510
+ /**
9511
+ * @public
9512
+ * <p>The <code>RunTask</code> request could not be processed due to conflicts. The provided
9513
+ * <code>clientToken</code> is already in use with a different <code>RunTask</code>
9514
+ * request. The <code>resourceIds</code> are the existing task ARNs which are already
9515
+ * associated with the <code>clientToken</code>. </p>
9516
+ * <p>To fix this issue:</p>
9517
+ * <ul>
9518
+ * <li>
9519
+ * <p>Run <code>RunTask</code> with a unique
9520
+ * <code>clientToken</code>.</p>
9521
+ * </li>
9522
+ * <li>
9523
+ * <p>Run <code>RunTask</code> with the <code>clientToken</code> and the original set of
9524
+ * parameters</p>
9525
+ * </li>
9526
+ * </ul>
9527
+ */
9528
+ export declare class ConflictException extends __BaseException {
9529
+ readonly name: "ConflictException";
9530
+ readonly $fault: "client";
9531
+ /**
9532
+ * @public
9533
+ * <p>The existing task ARNs which are already associated with the <code>clientToken</code>.</p>
9534
+ */
9535
+ resourceIds?: string[];
9536
+ /**
9537
+ * @internal
9538
+ */
9539
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
9540
+ }
9504
9541
  /**
9505
9542
  * @public
9506
9543
  */
@@ -9634,12 +9671,12 @@ export interface RunTaskRequest {
9634
9671
  referenceId?: string;
9635
9672
  /**
9636
9673
  * @public
9637
- * <p>An optional tag specified when a task is started. For example, if you automatically
9638
- * trigger a task to run a batch process job, you could apply a unique identifier for that
9639
- * job to your task with the <code>startedBy</code> parameter. You can then identify which
9640
- * tasks belong to that job by filtering the results of a <a>ListTasks</a> call
9641
- * with the <code>startedBy</code> value. Up to 36 letters (uppercase and lowercase),
9642
- * numbers, hyphens (-), and underscores (_) are allowed.</p>
9674
+ * <p>An optional tag specified when a task is started. For example, if you automatically trigger
9675
+ * a task to run a batch process job, you could apply a unique identifier for that job to
9676
+ * your task with the <code>startedBy</code> parameter. You can then identify which tasks
9677
+ * belong to that job by filtering the results of a <a>ListTasks</a> call with
9678
+ * the <code>startedBy</code> value. Up to 128 letters (uppercase and lowercase), numbers,
9679
+ * hyphens (-), and underscores (_) are allowed.</p>
9643
9680
  * <p>If a task is started by an Amazon ECS service, then the <code>startedBy</code> parameter
9644
9681
  * contains the deployment ID of the service that starts it.</p>
9645
9682
  */
@@ -9704,6 +9741,13 @@ export interface RunTaskRequest {
9704
9741
  * <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/security_iam_service-with-iam.html#security_iam_service-with-iam-id-based-policies-resources">Policy Resources for Amazon ECS</a> in the Amazon Elastic Container Service developer Guide.</p>
9705
9742
  */
9706
9743
  taskDefinition: string | undefined;
9744
+ /**
9745
+ * @public
9746
+ * <p>An identifier that you provide to ensure the idempotency of the request. It must be unique
9747
+ * and is case sensitive. Up to 64 characters are allowed. The valid characters are characters in the range of 33-126, inclusive. For more information, see
9748
+ * <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/ECS_Idempotency.html">Ensuring idempotency</a>.</p>
9749
+ */
9750
+ clientToken?: string;
9707
9751
  }
9708
9752
  /**
9709
9753
  * @public
@@ -9713,6 +9757,7 @@ export interface RunTaskResponse {
9713
9757
  * @public
9714
9758
  * <p>A full description of the tasks that were run. The tasks that were successfully placed
9715
9759
  * on your cluster are described here.</p>
9760
+ * <p></p>
9716
9761
  */
9717
9762
  tasks?: Task[];
9718
9763
  /**
@@ -1567,6 +1567,12 @@ export declare class BlockedException extends __BaseException {
1567
1567
  readonly $fault: "client";
1568
1568
  constructor(opts: __ExceptionOptionType<BlockedException, __BaseException>);
1569
1569
  }
1570
+ export declare class ConflictException extends __BaseException {
1571
+ readonly name: "ConflictException";
1572
+ readonly $fault: "client";
1573
+ resourceIds?: string[];
1574
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
1575
+ }
1570
1576
  export interface RunTaskRequest {
1571
1577
  capacityProviderStrategy?: CapacityProviderStrategyItem[];
1572
1578
  cluster?: string;
@@ -1585,6 +1591,7 @@ export interface RunTaskRequest {
1585
1591
  startedBy?: string;
1586
1592
  tags?: Tag[];
1587
1593
  taskDefinition: string | undefined;
1594
+ clientToken?: string;
1588
1595
  }
1589
1596
  export interface RunTaskResponse {
1590
1597
  tasks?: Task[];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-ecs",
3
3
  "description": "AWS SDK for JavaScript Ecs Client for Node.js, Browser and React Native",
4
- "version": "3.445.0",
4
+ "version": "3.450.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,19 +21,19 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.445.0",
24
+ "@aws-sdk/client-sts": "3.450.0",
25
25
  "@aws-sdk/core": "3.445.0",
26
- "@aws-sdk/credential-provider-node": "3.445.0",
27
- "@aws-sdk/middleware-host-header": "3.433.0",
28
- "@aws-sdk/middleware-logger": "3.433.0",
29
- "@aws-sdk/middleware-recursion-detection": "3.433.0",
30
- "@aws-sdk/middleware-signing": "3.433.0",
31
- "@aws-sdk/middleware-user-agent": "3.438.0",
26
+ "@aws-sdk/credential-provider-node": "3.450.0",
27
+ "@aws-sdk/middleware-host-header": "3.449.0",
28
+ "@aws-sdk/middleware-logger": "3.449.0",
29
+ "@aws-sdk/middleware-recursion-detection": "3.449.0",
30
+ "@aws-sdk/middleware-signing": "3.449.0",
31
+ "@aws-sdk/middleware-user-agent": "3.449.0",
32
32
  "@aws-sdk/region-config-resolver": "3.433.0",
33
- "@aws-sdk/types": "3.433.0",
34
- "@aws-sdk/util-endpoints": "3.438.0",
35
- "@aws-sdk/util-user-agent-browser": "3.433.0",
36
- "@aws-sdk/util-user-agent-node": "3.437.0",
33
+ "@aws-sdk/types": "3.449.0",
34
+ "@aws-sdk/util-endpoints": "3.449.0",
35
+ "@aws-sdk/util-user-agent-browser": "3.449.0",
36
+ "@aws-sdk/util-user-agent-node": "3.449.0",
37
37
  "@smithy/config-resolver": "^2.0.16",
38
38
  "@smithy/fetch-http-handler": "^2.2.4",
39
39
  "@smithy/hash-node": "^2.0.12",
@@ -58,12 +58,14 @@
58
58
  "@smithy/util-retry": "^2.0.5",
59
59
  "@smithy/util-utf8": "^2.0.0",
60
60
  "@smithy/util-waiter": "^2.0.12",
61
- "tslib": "^2.5.0"
61
+ "tslib": "^2.5.0",
62
+ "uuid": "^8.3.2"
62
63
  },
63
64
  "devDependencies": {
64
65
  "@smithy/service-client-documentation-generator": "^2.0.0",
65
66
  "@tsconfig/node14": "1.0.3",
66
67
  "@types/node": "^14.14.31",
68
+ "@types/uuid": "^8.3.0",
67
69
  "concurrently": "7.0.0",
68
70
  "downlevel-dts": "0.10.1",
69
71
  "rimraf": "3.0.2",