@aws-sdk/client-ecs 3.933.0 → 3.935.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 (76) hide show
  1. package/dist-cjs/index.js +480 -476
  2. package/dist-es/index.js +2 -1
  3. package/dist-es/models/enums.js +447 -0
  4. package/dist-es/models/errors.js +339 -0
  5. package/dist-es/models/models_0.js +1 -688
  6. package/dist-es/schemas/schemas_0.js +11 -7
  7. package/dist-types/commands/CreateCapacityProviderCommand.d.ts +6 -0
  8. package/dist-types/commands/DeleteCapacityProviderCommand.d.ts +3 -0
  9. package/dist-types/commands/DescribeCapacityProvidersCommand.d.ts +3 -0
  10. package/dist-types/commands/ListTasksCommand.d.ts +1 -1
  11. package/dist-types/commands/PutAccountSettingCommand.d.ts +1 -1
  12. package/dist-types/commands/PutAccountSettingDefaultCommand.d.ts +1 -1
  13. package/dist-types/commands/PutAttributesCommand.d.ts +1 -1
  14. package/dist-types/commands/PutClusterCapacityProvidersCommand.d.ts +1 -1
  15. package/dist-types/commands/RegisterContainerInstanceCommand.d.ts +1 -1
  16. package/dist-types/commands/RegisterTaskDefinitionCommand.d.ts +1 -1
  17. package/dist-types/commands/RunTaskCommand.d.ts +1 -1
  18. package/dist-types/commands/StartTaskCommand.d.ts +1 -1
  19. package/dist-types/commands/StopServiceDeploymentCommand.d.ts +1 -1
  20. package/dist-types/commands/StopTaskCommand.d.ts +1 -1
  21. package/dist-types/commands/SubmitAttachmentStateChangesCommand.d.ts +1 -1
  22. package/dist-types/commands/SubmitContainerStateChangeCommand.d.ts +1 -1
  23. package/dist-types/commands/SubmitTaskStateChangeCommand.d.ts +1 -1
  24. package/dist-types/commands/TagResourceCommand.d.ts +1 -1
  25. package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
  26. package/dist-types/commands/UpdateCapacityProviderCommand.d.ts +7 -1
  27. package/dist-types/commands/UpdateClusterCommand.d.ts +1 -1
  28. package/dist-types/commands/UpdateClusterSettingsCommand.d.ts +1 -1
  29. package/dist-types/commands/UpdateContainerAgentCommand.d.ts +1 -1
  30. package/dist-types/commands/UpdateContainerInstancesStateCommand.d.ts +1 -1
  31. package/dist-types/commands/UpdateServiceCommand.d.ts +1 -1
  32. package/dist-types/commands/UpdateServicePrimaryTaskSetCommand.d.ts +1 -1
  33. package/dist-types/commands/UpdateTaskProtectionCommand.d.ts +1 -1
  34. package/dist-types/commands/UpdateTaskSetCommand.d.ts +1 -1
  35. package/dist-types/index.d.ts +3 -1
  36. package/dist-types/models/enums.d.ts +1119 -0
  37. package/dist-types/models/errors.d.ts +397 -0
  38. package/dist-types/models/models_0.d.ts +2816 -1381
  39. package/dist-types/schemas/schemas_0.d.ts +1 -0
  40. package/dist-types/ts3.4/commands/ListTasksCommand.d.ts +1 -1
  41. package/dist-types/ts3.4/commands/PutAccountSettingCommand.d.ts +1 -1
  42. package/dist-types/ts3.4/commands/PutAccountSettingDefaultCommand.d.ts +1 -1
  43. package/dist-types/ts3.4/commands/PutAttributesCommand.d.ts +1 -1
  44. package/dist-types/ts3.4/commands/PutClusterCapacityProvidersCommand.d.ts +1 -1
  45. package/dist-types/ts3.4/commands/RegisterContainerInstanceCommand.d.ts +1 -1
  46. package/dist-types/ts3.4/commands/RegisterTaskDefinitionCommand.d.ts +1 -1
  47. package/dist-types/ts3.4/commands/RunTaskCommand.d.ts +1 -1
  48. package/dist-types/ts3.4/commands/StartTaskCommand.d.ts +1 -1
  49. package/dist-types/ts3.4/commands/StopServiceDeploymentCommand.d.ts +1 -1
  50. package/dist-types/ts3.4/commands/StopTaskCommand.d.ts +1 -1
  51. package/dist-types/ts3.4/commands/SubmitAttachmentStateChangesCommand.d.ts +1 -1
  52. package/dist-types/ts3.4/commands/SubmitContainerStateChangeCommand.d.ts +1 -1
  53. package/dist-types/ts3.4/commands/SubmitTaskStateChangeCommand.d.ts +1 -1
  54. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +1 -1
  55. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +1 -1
  56. package/dist-types/ts3.4/commands/UpdateCapacityProviderCommand.d.ts +1 -1
  57. package/dist-types/ts3.4/commands/UpdateClusterCommand.d.ts +1 -1
  58. package/dist-types/ts3.4/commands/UpdateClusterSettingsCommand.d.ts +1 -1
  59. package/dist-types/ts3.4/commands/UpdateContainerAgentCommand.d.ts +1 -1
  60. package/dist-types/ts3.4/commands/UpdateContainerInstancesStateCommand.d.ts +1 -1
  61. package/dist-types/ts3.4/commands/UpdateServiceCommand.d.ts +1 -1
  62. package/dist-types/ts3.4/commands/UpdateServicePrimaryTaskSetCommand.d.ts +1 -1
  63. package/dist-types/ts3.4/commands/UpdateTaskProtectionCommand.d.ts +1 -1
  64. package/dist-types/ts3.4/commands/UpdateTaskSetCommand.d.ts +1 -1
  65. package/dist-types/ts3.4/index.d.ts +3 -1
  66. package/dist-types/ts3.4/models/enums.d.ts +589 -0
  67. package/dist-types/ts3.4/models/errors.d.ts +209 -0
  68. package/dist-types/ts3.4/models/models_0.d.ts +437 -729
  69. package/dist-types/ts3.4/schemas/schemas_0.d.ts +1 -0
  70. package/package.json +12 -12
  71. package/dist-es/models/index.js +0 -2
  72. package/dist-es/models/models_1.js +0 -99
  73. package/dist-types/models/index.d.ts +0 -2
  74. package/dist-types/models/models_1.d.ts +0 -2908
  75. package/dist-types/ts3.4/models/index.d.ts +0 -2
  76. package/dist-types/ts3.4/models/models_1.d.ts +0 -476
@@ -0,0 +1,397 @@
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
+ import { ECSServiceException as __BaseException } from "./ECSServiceException";
3
+ /**
4
+ * <p>You don't have authorization to perform the requested action.</p>
5
+ * @public
6
+ */
7
+ export declare class AccessDeniedException extends __BaseException {
8
+ readonly name: "AccessDeniedException";
9
+ readonly $fault: "client";
10
+ /**
11
+ * @internal
12
+ */
13
+ constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
14
+ }
15
+ /**
16
+ * <p>These errors are usually caused by a client action. This client action might be using
17
+ * an action or resource on behalf of a user that doesn't have permissions to use the
18
+ * action or resource. Or, it might be specifying an identifier that isn't valid.</p>
19
+ * @public
20
+ */
21
+ export declare class ClientException extends __BaseException {
22
+ readonly name: "ClientException";
23
+ readonly $fault: "client";
24
+ /**
25
+ * @internal
26
+ */
27
+ constructor(opts: __ExceptionOptionType<ClientException, __BaseException>);
28
+ }
29
+ /**
30
+ * <p>The specified cluster wasn't found. You can view your available clusters with <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_ListClusters.html">ListClusters</a>. Amazon ECS clusters are Region specific.</p>
31
+ * @public
32
+ */
33
+ export declare class ClusterNotFoundException extends __BaseException {
34
+ readonly name: "ClusterNotFoundException";
35
+ readonly $fault: "client";
36
+ /**
37
+ * @internal
38
+ */
39
+ constructor(opts: __ExceptionOptionType<ClusterNotFoundException, __BaseException>);
40
+ }
41
+ /**
42
+ * <p>The specified parameter isn't valid. Review the available parameters for the API
43
+ * request.</p>
44
+ * <p>For more information about service event errors, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-event-messages-list.html">Amazon ECS
45
+ * service event messages</a>. </p>
46
+ * @public
47
+ */
48
+ export declare class InvalidParameterException extends __BaseException {
49
+ readonly name: "InvalidParameterException";
50
+ readonly $fault: "client";
51
+ /**
52
+ * @internal
53
+ */
54
+ constructor(opts: __ExceptionOptionType<InvalidParameterException, __BaseException>);
55
+ }
56
+ /**
57
+ * <p>The limit for the resource was exceeded.</p>
58
+ * @public
59
+ */
60
+ export declare class LimitExceededException extends __BaseException {
61
+ readonly name: "LimitExceededException";
62
+ readonly $fault: "client";
63
+ /**
64
+ * @internal
65
+ */
66
+ constructor(opts: __ExceptionOptionType<LimitExceededException, __BaseException>);
67
+ }
68
+ /**
69
+ * <p>These errors are usually caused by a server issue.</p>
70
+ * @public
71
+ */
72
+ export declare class ServerException extends __BaseException {
73
+ readonly name: "ServerException";
74
+ readonly $fault: "server";
75
+ /**
76
+ * @internal
77
+ */
78
+ constructor(opts: __ExceptionOptionType<ServerException, __BaseException>);
79
+ }
80
+ /**
81
+ * <p>The specified task isn't supported in this Region.</p>
82
+ * @public
83
+ */
84
+ export declare class UnsupportedFeatureException extends __BaseException {
85
+ readonly name: "UnsupportedFeatureException";
86
+ readonly $fault: "client";
87
+ /**
88
+ * @internal
89
+ */
90
+ constructor(opts: __ExceptionOptionType<UnsupportedFeatureException, __BaseException>);
91
+ }
92
+ /**
93
+ * <p>There's already a current Amazon ECS container agent update in progress on the
94
+ * container instance that's specified. If the container agent becomes disconnected while
95
+ * it's in a transitional stage, such as <code>PENDING</code> or <code>STAGING</code>, the
96
+ * update process can get stuck in that state. However, when the agent reconnects, it
97
+ * resumes where it stopped previously.</p>
98
+ * @public
99
+ */
100
+ export declare class UpdateInProgressException extends __BaseException {
101
+ readonly name: "UpdateInProgressException";
102
+ readonly $fault: "client";
103
+ /**
104
+ * @internal
105
+ */
106
+ constructor(opts: __ExceptionOptionType<UpdateInProgressException, __BaseException>);
107
+ }
108
+ /**
109
+ * <p>The specified namespace wasn't found.</p>
110
+ * @public
111
+ */
112
+ export declare class NamespaceNotFoundException extends __BaseException {
113
+ readonly name: "NamespaceNotFoundException";
114
+ readonly $fault: "client";
115
+ /**
116
+ * @internal
117
+ */
118
+ constructor(opts: __ExceptionOptionType<NamespaceNotFoundException, __BaseException>);
119
+ }
120
+ /**
121
+ * <p>The specified platform version doesn't satisfy the required capabilities of the task
122
+ * definition.</p>
123
+ * @public
124
+ */
125
+ export declare class PlatformTaskDefinitionIncompatibilityException extends __BaseException {
126
+ readonly name: "PlatformTaskDefinitionIncompatibilityException";
127
+ readonly $fault: "client";
128
+ /**
129
+ * @internal
130
+ */
131
+ constructor(opts: __ExceptionOptionType<PlatformTaskDefinitionIncompatibilityException, __BaseException>);
132
+ }
133
+ /**
134
+ * <p>The specified platform version doesn't exist.</p>
135
+ * @public
136
+ */
137
+ export declare class PlatformUnknownException extends __BaseException {
138
+ readonly name: "PlatformUnknownException";
139
+ readonly $fault: "client";
140
+ /**
141
+ * @internal
142
+ */
143
+ constructor(opts: __ExceptionOptionType<PlatformUnknownException, __BaseException>);
144
+ }
145
+ /**
146
+ * <p>The specified service isn't active. You can't update a service that's inactive. If you
147
+ * have previously deleted a service, you can re-create it with <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_CreateService.html">CreateService</a>.</p>
148
+ * @public
149
+ */
150
+ export declare class ServiceNotActiveException extends __BaseException {
151
+ readonly name: "ServiceNotActiveException";
152
+ readonly $fault: "client";
153
+ /**
154
+ * @internal
155
+ */
156
+ constructor(opts: __ExceptionOptionType<ServiceNotActiveException, __BaseException>);
157
+ }
158
+ /**
159
+ * <p>The specified service wasn't found. You can view your available services with <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_ListServices.html">ListServices</a>. Amazon ECS services are cluster specific and Region
160
+ * specific.</p>
161
+ * @public
162
+ */
163
+ export declare class ServiceNotFoundException extends __BaseException {
164
+ readonly name: "ServiceNotFoundException";
165
+ readonly $fault: "client";
166
+ /**
167
+ * @internal
168
+ */
169
+ constructor(opts: __ExceptionOptionType<ServiceNotFoundException, __BaseException>);
170
+ }
171
+ /**
172
+ * <p>The specified target wasn't found. You can view your available container instances
173
+ * with <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_ListContainerInstances.html">ListContainerInstances</a>. Amazon ECS container instances are cluster-specific
174
+ * and Region-specific.</p>
175
+ * @public
176
+ */
177
+ export declare class TargetNotFoundException extends __BaseException {
178
+ readonly name: "TargetNotFoundException";
179
+ readonly $fault: "client";
180
+ /**
181
+ * @internal
182
+ */
183
+ constructor(opts: __ExceptionOptionType<TargetNotFoundException, __BaseException>);
184
+ }
185
+ /**
186
+ * <p>The cluster contains one or more capacity providers that prevent the requested
187
+ * operation. This exception occurs when you try to delete a cluster that still has active
188
+ * capacity providers, including Amazon ECS Managed Instances capacity providers. You must
189
+ * first delete all capacity providers from the cluster before you can delete the cluster
190
+ * itself.</p>
191
+ * @public
192
+ */
193
+ export declare class ClusterContainsCapacityProviderException extends __BaseException {
194
+ readonly name: "ClusterContainsCapacityProviderException";
195
+ readonly $fault: "client";
196
+ /**
197
+ * @internal
198
+ */
199
+ constructor(opts: __ExceptionOptionType<ClusterContainsCapacityProviderException, __BaseException>);
200
+ }
201
+ /**
202
+ * <p>You can't delete a cluster that has registered container instances. First, deregister
203
+ * the container instances before you can delete the cluster. For more information, see
204
+ * <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_DeregisterContainerInstance.html">DeregisterContainerInstance</a>.</p>
205
+ * @public
206
+ */
207
+ export declare class ClusterContainsContainerInstancesException extends __BaseException {
208
+ readonly name: "ClusterContainsContainerInstancesException";
209
+ readonly $fault: "client";
210
+ /**
211
+ * @internal
212
+ */
213
+ constructor(opts: __ExceptionOptionType<ClusterContainsContainerInstancesException, __BaseException>);
214
+ }
215
+ /**
216
+ * <p>You can't delete a cluster that contains services. First, update the service to reduce
217
+ * its desired task count to 0, and then delete the service. For more information, see
218
+ * <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_UpdateService.html">UpdateService</a> and
219
+ * <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_DeleteService.html">DeleteService</a>.</p>
220
+ * @public
221
+ */
222
+ export declare class ClusterContainsServicesException extends __BaseException {
223
+ readonly name: "ClusterContainsServicesException";
224
+ readonly $fault: "client";
225
+ /**
226
+ * @internal
227
+ */
228
+ constructor(opts: __ExceptionOptionType<ClusterContainsServicesException, __BaseException>);
229
+ }
230
+ /**
231
+ * <p>You can't delete a cluster that has active tasks.</p>
232
+ * @public
233
+ */
234
+ export declare class ClusterContainsTasksException extends __BaseException {
235
+ readonly name: "ClusterContainsTasksException";
236
+ readonly $fault: "client";
237
+ /**
238
+ * @internal
239
+ */
240
+ constructor(opts: __ExceptionOptionType<ClusterContainsTasksException, __BaseException>);
241
+ }
242
+ /**
243
+ * <p>The specified task set wasn't found. You can view your available task sets with <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_DescribeTaskSets.html">DescribeTaskSets</a>. Task sets are specific to each cluster, service and
244
+ * Region.</p>
245
+ * @public
246
+ */
247
+ export declare class TaskSetNotFoundException extends __BaseException {
248
+ readonly name: "TaskSetNotFoundException";
249
+ readonly $fault: "client";
250
+ /**
251
+ * @internal
252
+ */
253
+ constructor(opts: __ExceptionOptionType<TaskSetNotFoundException, __BaseException>);
254
+ }
255
+ /**
256
+ * <p>The execute command cannot run. This error can be caused by any of the following
257
+ * configuration issues:</p>
258
+ * <ul>
259
+ * <li>
260
+ * <p>Incorrect IAM permissions</p>
261
+ * </li>
262
+ * <li>
263
+ * <p>The SSM agent is not installed or is not running</p>
264
+ * </li>
265
+ * <li>
266
+ * <p> There is an interface Amazon VPC endpoint for Amazon ECS, but there is not
267
+ * one for Systems Manager Session Manager</p>
268
+ * </li>
269
+ * </ul>
270
+ * <p>For information about how to troubleshoot the issues, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-exec.html">Troubleshooting issues with ECS
271
+ * Exec</a> in the <i>Amazon Elastic Container Service Developer
272
+ * Guide</i>.</p>
273
+ * @public
274
+ */
275
+ export declare class TargetNotConnectedException extends __BaseException {
276
+ readonly name: "TargetNotConnectedException";
277
+ readonly $fault: "client";
278
+ /**
279
+ * @internal
280
+ */
281
+ constructor(opts: __ExceptionOptionType<TargetNotConnectedException, __BaseException>);
282
+ }
283
+ /**
284
+ * <p>The specified resource wasn't found.</p>
285
+ * @public
286
+ */
287
+ export declare class ResourceNotFoundException extends __BaseException {
288
+ readonly name: "ResourceNotFoundException";
289
+ readonly $fault: "client";
290
+ /**
291
+ * @internal
292
+ */
293
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
294
+ }
295
+ /**
296
+ * <p>You can apply up to 10 custom attributes for each resource. You can view the
297
+ * attributes of a resource with <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_ListAttributes.html">ListAttributes</a>.
298
+ * You can remove existing attributes on a resource with <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_DeleteAttributes.html">DeleteAttributes</a>.</p>
299
+ * @public
300
+ */
301
+ export declare class AttributeLimitExceededException extends __BaseException {
302
+ readonly name: "AttributeLimitExceededException";
303
+ readonly $fault: "client";
304
+ /**
305
+ * @internal
306
+ */
307
+ constructor(opts: __ExceptionOptionType<AttributeLimitExceededException, __BaseException>);
308
+ }
309
+ /**
310
+ * <p>The specified resource is in-use and can't be removed.</p>
311
+ * @public
312
+ */
313
+ export declare class ResourceInUseException extends __BaseException {
314
+ readonly name: "ResourceInUseException";
315
+ readonly $fault: "client";
316
+ /**
317
+ * @internal
318
+ */
319
+ constructor(opts: __ExceptionOptionType<ResourceInUseException, __BaseException>);
320
+ }
321
+ /**
322
+ * <p>Your Amazon Web
323
+ * Services account was blocked. For more information, contact <a href="http://aws.amazon.com/contact-us/">
324
+ * Amazon Web
325
+ * Services Support</a>.</p>
326
+ * @public
327
+ */
328
+ export declare class BlockedException extends __BaseException {
329
+ readonly name: "BlockedException";
330
+ readonly $fault: "client";
331
+ /**
332
+ * @internal
333
+ */
334
+ constructor(opts: __ExceptionOptionType<BlockedException, __BaseException>);
335
+ }
336
+ /**
337
+ * <p>The request could not be processed because of conflict in the current state of the
338
+ * resource. </p>
339
+ * @public
340
+ */
341
+ export declare class ConflictException extends __BaseException {
342
+ readonly name: "ConflictException";
343
+ readonly $fault: "client";
344
+ /**
345
+ * <p>The existing task ARNs which are already associated with the
346
+ * <code>clientToken</code>.</p>
347
+ * @public
348
+ */
349
+ resourceIds?: string[] | undefined;
350
+ /**
351
+ * @internal
352
+ */
353
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
354
+ }
355
+ /**
356
+ * <p>The service deploy ARN that you specified in the <code>StopServiceDeployment</code>
357
+ * doesn't exist. You can use <code>ListServiceDeployments</code> to retrieve the service
358
+ * deployment ARNs.</p>
359
+ * @public
360
+ */
361
+ export declare class ServiceDeploymentNotFoundException extends __BaseException {
362
+ readonly name: "ServiceDeploymentNotFoundException";
363
+ readonly $fault: "client";
364
+ /**
365
+ * @internal
366
+ */
367
+ constructor(opts: __ExceptionOptionType<ServiceDeploymentNotFoundException, __BaseException>);
368
+ }
369
+ /**
370
+ * <p>Amazon ECS can't determine the current version of the Amazon ECS container agent on
371
+ * the container instance and doesn't have enough information to proceed with an update.
372
+ * This could be because the agent running on the container instance is a previous or
373
+ * custom version that doesn't use our version information.</p>
374
+ * @public
375
+ */
376
+ export declare class MissingVersionException extends __BaseException {
377
+ readonly name: "MissingVersionException";
378
+ readonly $fault: "client";
379
+ /**
380
+ * @internal
381
+ */
382
+ constructor(opts: __ExceptionOptionType<MissingVersionException, __BaseException>);
383
+ }
384
+ /**
385
+ * <p>There's no update available for this Amazon ECS container agent. This might be because
386
+ * the agent is already running the latest version or because it's so old that there's no
387
+ * update path to the current version.</p>
388
+ * @public
389
+ */
390
+ export declare class NoUpdateAvailableException extends __BaseException {
391
+ readonly name: "NoUpdateAvailableException";
392
+ readonly $fault: "client";
393
+ /**
394
+ * @internal
395
+ */
396
+ constructor(opts: __ExceptionOptionType<NoUpdateAvailableException, __BaseException>);
397
+ }