@aws-sdk/client-ecs 3.52.0 → 3.53.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.
@@ -4,3 +4,4 @@ export * from "./commands";
4
4
  export * from "./models";
5
5
  export * from "./pagination";
6
6
  export * from "./waiters";
7
+ export { ECSServiceException } from "./models/ECSServiceException";
@@ -0,0 +1,10 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
+ /**
3
+ * Base exception class for all service exceptions from ECS service.
4
+ */
5
+ export declare class ECSServiceException extends __ServiceException {
6
+ /**
7
+ * @internal
8
+ */
9
+ constructor(options: __ServiceExceptionOptions);
10
+ }
@@ -1,11 +1,15 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
+ import { ECSServiceException as __BaseException } from "./ECSServiceException";
2
3
  /**
3
4
  * <p>You don't have authorization to perform the requested action.</p>
4
5
  */
5
- export interface AccessDeniedException extends __SmithyException, $MetadataBearer {
6
- name: "AccessDeniedException";
7
- $fault: "client";
8
- message?: string;
6
+ export declare class AccessDeniedException extends __BaseException {
7
+ readonly name: "AccessDeniedException";
8
+ readonly $fault: "client";
9
+ /**
10
+ * @internal
11
+ */
12
+ constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
9
13
  }
10
14
  export declare enum AgentUpdateStatus {
11
15
  FAILED = "FAILED",
@@ -20,10 +24,13 @@ export declare enum AgentUpdateStatus {
20
24
  * an action or resource on behalf of a user that doesn't have permissions to use the
21
25
  * action or resource,. Or, it might be specifying an identifier that isn't valid.</p>
22
26
  */
23
- export interface ClientException extends __SmithyException, $MetadataBearer {
24
- name: "ClientException";
25
- $fault: "client";
26
- message?: string;
27
+ export declare class ClientException extends __BaseException {
28
+ readonly name: "ClientException";
29
+ readonly $fault: "client";
30
+ /**
31
+ * @internal
32
+ */
33
+ constructor(opts: __ExceptionOptionType<ClientException, __BaseException>);
27
34
  }
28
35
  export declare enum ManagedScalingStatus {
29
36
  DISABLED = "DISABLED",
@@ -341,26 +348,35 @@ export declare namespace CreateCapacityProviderResponse {
341
348
  * <p>The specified parameter isn't valid. Review the available parameters for the API
342
349
  * request.</p>
343
350
  */
344
- export interface InvalidParameterException extends __SmithyException, $MetadataBearer {
345
- name: "InvalidParameterException";
346
- $fault: "client";
347
- message?: string;
351
+ export declare class InvalidParameterException extends __BaseException {
352
+ readonly name: "InvalidParameterException";
353
+ readonly $fault: "client";
354
+ /**
355
+ * @internal
356
+ */
357
+ constructor(opts: __ExceptionOptionType<InvalidParameterException, __BaseException>);
348
358
  }
349
359
  /**
350
360
  * <p>The limit for the resource was exceeded.</p>
351
361
  */
352
- export interface LimitExceededException extends __SmithyException, $MetadataBearer {
353
- name: "LimitExceededException";
354
- $fault: "client";
355
- message?: string;
362
+ export declare class LimitExceededException extends __BaseException {
363
+ readonly name: "LimitExceededException";
364
+ readonly $fault: "client";
365
+ /**
366
+ * @internal
367
+ */
368
+ constructor(opts: __ExceptionOptionType<LimitExceededException, __BaseException>);
356
369
  }
357
370
  /**
358
371
  * <p>These errors are usually caused by a server issue.</p>
359
372
  */
360
- export interface ServerException extends __SmithyException, $MetadataBearer {
361
- name: "ServerException";
362
- $fault: "server";
363
- message?: string;
373
+ export declare class ServerException extends __BaseException {
374
+ readonly name: "ServerException";
375
+ readonly $fault: "server";
376
+ /**
377
+ * @internal
378
+ */
379
+ constructor(opts: __ExceptionOptionType<ServerException, __BaseException>);
364
380
  }
365
381
  /**
366
382
  * <p>There's already a current Amazon ECS container agent update in progress on the container
@@ -369,10 +385,13 @@ export interface ServerException extends __SmithyException, $MetadataBearer {
369
385
  * process can get stuck in that state. However, when the agent reconnects, it resumes
370
386
  * where it stopped previously.</p>
371
387
  */
372
- export interface UpdateInProgressException extends __SmithyException, $MetadataBearer {
373
- name: "UpdateInProgressException";
374
- $fault: "client";
375
- message?: string;
388
+ export declare class UpdateInProgressException extends __BaseException {
389
+ readonly name: "UpdateInProgressException";
390
+ readonly $fault: "client";
391
+ /**
392
+ * @internal
393
+ */
394
+ constructor(opts: __ExceptionOptionType<UpdateInProgressException, __BaseException>);
376
395
  }
377
396
  /**
378
397
  * <p>The log configuration for the results of the execute command actions. The logs can be
@@ -908,10 +927,13 @@ export declare namespace CreateClusterResponse {
908
927
  /**
909
928
  * <p>The specified cluster wasn't found. You can view your available clusters with <a>ListClusters</a>. Amazon ECS clusters are Region specific.</p>
910
929
  */
911
- export interface ClusterNotFoundException extends __SmithyException, $MetadataBearer {
912
- name: "ClusterNotFoundException";
913
- $fault: "client";
914
- message?: string;
930
+ export declare class ClusterNotFoundException extends __BaseException {
931
+ readonly name: "ClusterNotFoundException";
932
+ readonly $fault: "client";
933
+ /**
934
+ * @internal
935
+ */
936
+ constructor(opts: __ExceptionOptionType<ClusterNotFoundException, __BaseException>);
915
937
  }
916
938
  /**
917
939
  * <note>
@@ -2212,26 +2234,35 @@ export declare namespace CreateServiceResponse {
2212
2234
  * <p>The specified platform version doesn't satisfy the required capabilities of the task
2213
2235
  * definition.</p>
2214
2236
  */
2215
- export interface PlatformTaskDefinitionIncompatibilityException extends __SmithyException, $MetadataBearer {
2216
- name: "PlatformTaskDefinitionIncompatibilityException";
2217
- $fault: "client";
2218
- message?: string;
2237
+ export declare class PlatformTaskDefinitionIncompatibilityException extends __BaseException {
2238
+ readonly name: "PlatformTaskDefinitionIncompatibilityException";
2239
+ readonly $fault: "client";
2240
+ /**
2241
+ * @internal
2242
+ */
2243
+ constructor(opts: __ExceptionOptionType<PlatformTaskDefinitionIncompatibilityException, __BaseException>);
2219
2244
  }
2220
2245
  /**
2221
2246
  * <p>The specified platform version doesn't exist.</p>
2222
2247
  */
2223
- export interface PlatformUnknownException extends __SmithyException, $MetadataBearer {
2224
- name: "PlatformUnknownException";
2225
- $fault: "client";
2226
- message?: string;
2248
+ export declare class PlatformUnknownException extends __BaseException {
2249
+ readonly name: "PlatformUnknownException";
2250
+ readonly $fault: "client";
2251
+ /**
2252
+ * @internal
2253
+ */
2254
+ constructor(opts: __ExceptionOptionType<PlatformUnknownException, __BaseException>);
2227
2255
  }
2228
2256
  /**
2229
2257
  * <p>The specified task isn't supported in this Region.</p>
2230
2258
  */
2231
- export interface UnsupportedFeatureException extends __SmithyException, $MetadataBearer {
2232
- name: "UnsupportedFeatureException";
2233
- $fault: "client";
2234
- message?: string;
2259
+ export declare class UnsupportedFeatureException extends __BaseException {
2260
+ readonly name: "UnsupportedFeatureException";
2261
+ readonly $fault: "client";
2262
+ /**
2263
+ * @internal
2264
+ */
2265
+ constructor(opts: __ExceptionOptionType<UnsupportedFeatureException, __BaseException>);
2235
2266
  }
2236
2267
  export interface CreateTaskSetRequest {
2237
2268
  /**
@@ -2377,19 +2408,25 @@ export declare namespace CreateTaskSetResponse {
2377
2408
  * <p>The specified service isn't active. You can't update a service that's inactive. If you
2378
2409
  * have previously deleted a service, you can re-create it with <a>CreateService</a>.</p>
2379
2410
  */
2380
- export interface ServiceNotActiveException extends __SmithyException, $MetadataBearer {
2381
- name: "ServiceNotActiveException";
2382
- $fault: "client";
2383
- message?: string;
2411
+ export declare class ServiceNotActiveException extends __BaseException {
2412
+ readonly name: "ServiceNotActiveException";
2413
+ readonly $fault: "client";
2414
+ /**
2415
+ * @internal
2416
+ */
2417
+ constructor(opts: __ExceptionOptionType<ServiceNotActiveException, __BaseException>);
2384
2418
  }
2385
2419
  /**
2386
2420
  * <p>The specified service wasn't found. You can view your available services with <a>ListServices</a>. Amazon ECS services are cluster specific and Region
2387
2421
  * specific.</p>
2388
2422
  */
2389
- export interface ServiceNotFoundException extends __SmithyException, $MetadataBearer {
2390
- name: "ServiceNotFoundException";
2391
- $fault: "client";
2392
- message?: string;
2423
+ export declare class ServiceNotFoundException extends __BaseException {
2424
+ readonly name: "ServiceNotFoundException";
2425
+ readonly $fault: "client";
2426
+ /**
2427
+ * @internal
2428
+ */
2429
+ constructor(opts: __ExceptionOptionType<ServiceNotFoundException, __BaseException>);
2393
2430
  }
2394
2431
  export declare enum SettingName {
2395
2432
  AWSVPC_TRUNKING = "awsvpcTrunking",
@@ -2537,10 +2574,13 @@ export declare namespace DeleteAttributesResponse {
2537
2574
  * with <a>ListContainerInstances</a>. Amazon ECS container instances are
2538
2575
  * cluster-specific and Region-specific.</p>
2539
2576
  */
2540
- export interface TargetNotFoundException extends __SmithyException, $MetadataBearer {
2541
- name: "TargetNotFoundException";
2542
- $fault: "client";
2543
- message?: string;
2577
+ export declare class TargetNotFoundException extends __BaseException {
2578
+ readonly name: "TargetNotFoundException";
2579
+ readonly $fault: "client";
2580
+ /**
2581
+ * @internal
2582
+ */
2583
+ constructor(opts: __ExceptionOptionType<TargetNotFoundException, __BaseException>);
2544
2584
  }
2545
2585
  export interface DeleteCapacityProviderRequest {
2546
2586
  /**
@@ -2571,28 +2611,37 @@ export declare namespace DeleteCapacityProviderResponse {
2571
2611
  * the container instances before you can delete the cluster. For more information, see
2572
2612
  * <a>DeregisterContainerInstance</a>.</p>
2573
2613
  */
2574
- export interface ClusterContainsContainerInstancesException extends __SmithyException, $MetadataBearer {
2575
- name: "ClusterContainsContainerInstancesException";
2576
- $fault: "client";
2577
- message?: string;
2614
+ export declare class ClusterContainsContainerInstancesException extends __BaseException {
2615
+ readonly name: "ClusterContainsContainerInstancesException";
2616
+ readonly $fault: "client";
2617
+ /**
2618
+ * @internal
2619
+ */
2620
+ constructor(opts: __ExceptionOptionType<ClusterContainsContainerInstancesException, __BaseException>);
2578
2621
  }
2579
2622
  /**
2580
2623
  * <p>You can't delete a cluster that contains services. First, update the service to reduce
2581
2624
  * its desired task count to 0, and then delete the service. For more information, see
2582
2625
  * <a>UpdateService</a> and <a>DeleteService</a>.</p>
2583
2626
  */
2584
- export interface ClusterContainsServicesException extends __SmithyException, $MetadataBearer {
2585
- name: "ClusterContainsServicesException";
2586
- $fault: "client";
2587
- message?: string;
2627
+ export declare class ClusterContainsServicesException extends __BaseException {
2628
+ readonly name: "ClusterContainsServicesException";
2629
+ readonly $fault: "client";
2630
+ /**
2631
+ * @internal
2632
+ */
2633
+ constructor(opts: __ExceptionOptionType<ClusterContainsServicesException, __BaseException>);
2588
2634
  }
2589
2635
  /**
2590
2636
  * <p>You can't delete a cluster that has active tasks.</p>
2591
2637
  */
2592
- export interface ClusterContainsTasksException extends __SmithyException, $MetadataBearer {
2593
- name: "ClusterContainsTasksException";
2594
- $fault: "client";
2595
- message?: string;
2638
+ export declare class ClusterContainsTasksException extends __BaseException {
2639
+ readonly name: "ClusterContainsTasksException";
2640
+ readonly $fault: "client";
2641
+ /**
2642
+ * @internal
2643
+ */
2644
+ constructor(opts: __ExceptionOptionType<ClusterContainsTasksException, __BaseException>);
2596
2645
  }
2597
2646
  export interface DeleteClusterRequest {
2598
2647
  /**
@@ -2696,10 +2745,13 @@ export declare namespace DeleteTaskSetResponse {
2696
2745
  * <p>The specified task set wasn't found. You can view your available task sets with <a>DescribeTaskSets</a>. Task sets are specific to each cluster, service and
2697
2746
  * Region.</p>
2698
2747
  */
2699
- export interface TaskSetNotFoundException extends __SmithyException, $MetadataBearer {
2700
- name: "TaskSetNotFoundException";
2701
- $fault: "client";
2702
- message?: string;
2748
+ export declare class TaskSetNotFoundException extends __BaseException {
2749
+ readonly name: "TaskSetNotFoundException";
2750
+ readonly $fault: "client";
2751
+ /**
2752
+ * @internal
2753
+ */
2754
+ constructor(opts: __ExceptionOptionType<TaskSetNotFoundException, __BaseException>);
2703
2755
  }
2704
2756
  export interface DeregisterContainerInstanceRequest {
2705
2757
  /**
@@ -6518,10 +6570,13 @@ export declare namespace ExecuteCommandResponse {
6518
6570
  * <p>The target container isn't properly configured with the execute command agent or the
6519
6571
  * container is no longer active or running.</p>
6520
6572
  */
6521
- export interface TargetNotConnectedException extends __SmithyException, $MetadataBearer {
6522
- name: "TargetNotConnectedException";
6523
- $fault: "client";
6524
- message?: string;
6573
+ export declare class TargetNotConnectedException extends __BaseException {
6574
+ readonly name: "TargetNotConnectedException";
6575
+ readonly $fault: "client";
6576
+ /**
6577
+ * @internal
6578
+ */
6579
+ constructor(opts: __ExceptionOptionType<TargetNotConnectedException, __BaseException>);
6525
6580
  }
6526
6581
  export interface ListAccountSettingsRequest {
6527
6582
  /**
@@ -7243,10 +7298,13 @@ export declare namespace PutAccountSettingDefaultResponse {
7243
7298
  * attributes of a resource with <a>ListAttributes</a>. You can remove existing
7244
7299
  * attributes on a resource with <a>DeleteAttributes</a>.</p>
7245
7300
  */
7246
- export interface AttributeLimitExceededException extends __SmithyException, $MetadataBearer {
7247
- name: "AttributeLimitExceededException";
7248
- $fault: "client";
7249
- message?: string;
7301
+ export declare class AttributeLimitExceededException extends __BaseException {
7302
+ readonly name: "AttributeLimitExceededException";
7303
+ readonly $fault: "client";
7304
+ /**
7305
+ * @internal
7306
+ */
7307
+ constructor(opts: __ExceptionOptionType<AttributeLimitExceededException, __BaseException>);
7250
7308
  }
7251
7309
  export interface PutAttributesRequest {
7252
7310
  /**
@@ -7335,10 +7393,13 @@ export declare namespace PutClusterCapacityProvidersResponse {
7335
7393
  /**
7336
7394
  * <p>The specified resource is in-use and can't be removed.</p>
7337
7395
  */
7338
- export interface ResourceInUseException extends __SmithyException, $MetadataBearer {
7339
- name: "ResourceInUseException";
7340
- $fault: "client";
7341
- message?: string;
7396
+ export declare class ResourceInUseException extends __BaseException {
7397
+ readonly name: "ResourceInUseException";
7398
+ readonly $fault: "client";
7399
+ /**
7400
+ * @internal
7401
+ */
7402
+ constructor(opts: __ExceptionOptionType<ResourceInUseException, __BaseException>);
7342
7403
  }
7343
7404
  export declare enum PlatformDeviceType {
7344
7405
  GPU = "GPU"
@@ -7768,10 +7829,13 @@ export declare namespace RegisterTaskDefinitionResponse {
7768
7829
  * <p>Your Amazon Web Services account was blocked. For more information, contact <a href="http://aws.amazon.com/contact-us/">
7769
7830
  * Amazon Web Services Support</a>.</p>
7770
7831
  */
7771
- export interface BlockedException extends __SmithyException, $MetadataBearer {
7772
- name: "BlockedException";
7773
- $fault: "client";
7774
- message?: string;
7832
+ export declare class BlockedException extends __BaseException {
7833
+ readonly name: "BlockedException";
7834
+ readonly $fault: "client";
7835
+ /**
7836
+ * @internal
7837
+ */
7838
+ constructor(opts: __ExceptionOptionType<BlockedException, __BaseException>);
7775
7839
  }
7776
7840
  export interface RunTaskRequest {
7777
7841
  /**
@@ -8366,10 +8430,13 @@ export declare namespace SubmitTaskStateChangeResponse {
8366
8430
  /**
8367
8431
  * <p>The specified resource wasn't found.</p>
8368
8432
  */
8369
- export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
8370
- name: "ResourceNotFoundException";
8371
- $fault: "client";
8372
- message?: string;
8433
+ export declare class ResourceNotFoundException extends __BaseException {
8434
+ readonly name: "ResourceNotFoundException";
8435
+ readonly $fault: "client";
8436
+ /**
8437
+ * @internal
8438
+ */
8439
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
8373
8440
  }
8374
8441
  export interface TagResourceRequest {
8375
8442
  /**
@@ -8583,20 +8650,26 @@ export declare namespace UpdateClusterSettingsResponse {
8583
8650
  * could be because the agent running on the container instance is a previous or custom
8584
8651
  * version that doesn't use our version information.</p>
8585
8652
  */
8586
- export interface MissingVersionException extends __SmithyException, $MetadataBearer {
8587
- name: "MissingVersionException";
8588
- $fault: "client";
8589
- message?: string;
8653
+ export declare class MissingVersionException extends __BaseException {
8654
+ readonly name: "MissingVersionException";
8655
+ readonly $fault: "client";
8656
+ /**
8657
+ * @internal
8658
+ */
8659
+ constructor(opts: __ExceptionOptionType<MissingVersionException, __BaseException>);
8590
8660
  }
8591
8661
  /**
8592
8662
  * <p>There's no update available for this Amazon ECS container agent. This might be because the
8593
8663
  * agent is already running the latest version or because it's so old that there's no
8594
8664
  * update path to the current version.</p>
8595
8665
  */
8596
- export interface NoUpdateAvailableException extends __SmithyException, $MetadataBearer {
8597
- name: "NoUpdateAvailableException";
8598
- $fault: "client";
8599
- message?: string;
8666
+ export declare class NoUpdateAvailableException extends __BaseException {
8667
+ readonly name: "NoUpdateAvailableException";
8668
+ readonly $fault: "client";
8669
+ /**
8670
+ * @internal
8671
+ */
8672
+ constructor(opts: __ExceptionOptionType<NoUpdateAvailableException, __BaseException>);
8600
8673
  }
8601
8674
  export interface UpdateContainerAgentRequest {
8602
8675
  /**
@@ -4,3 +4,4 @@ export * from "./commands";
4
4
  export * from "./models";
5
5
  export * from "./pagination";
6
6
  export * from "./waiters";
7
+ export { ECSServiceException } from "./models/ECSServiceException";
@@ -0,0 +1,6 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
+
3
+ export declare class ECSServiceException extends __ServiceException {
4
+
5
+ constructor(options: __ServiceExceptionOptions);
6
+ }