@aws-sdk/client-compute-optimizer 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.
@@ -2,3 +2,4 @@ export * from "./ComputeOptimizer";
2
2
  export * from "./ComputeOptimizerClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
+ export { ComputeOptimizerServiceException } from "./models/ComputeOptimizerServiceException";
@@ -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 ComputeOptimizer service.
4
+ */
5
+ export declare class ComputeOptimizerServiceException 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 { ComputeOptimizerServiceException as __BaseException } from "./ComputeOptimizerServiceException";
2
3
  /**
3
4
  * <p>You do not have sufficient access to perform this 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 Status {
11
15
  ACTIVE = "Active",
@@ -715,59 +719,80 @@ export declare namespace DeleteRecommendationPreferencesResponse {
715
719
  /**
716
720
  * <p>An internal error has occurred. Try your call again.</p>
717
721
  */
718
- export interface InternalServerException extends __SmithyException, $MetadataBearer {
719
- name: "InternalServerException";
720
- $fault: "server";
721
- message?: string;
722
+ export declare class InternalServerException extends __BaseException {
723
+ readonly name: "InternalServerException";
724
+ readonly $fault: "server";
725
+ /**
726
+ * @internal
727
+ */
728
+ constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
722
729
  }
723
730
  /**
724
731
  * <p>The value supplied for the input parameter is out of range or not valid.</p>
725
732
  */
726
- export interface InvalidParameterValueException extends __SmithyException, $MetadataBearer {
727
- name: "InvalidParameterValueException";
728
- $fault: "client";
729
- message?: string;
733
+ export declare class InvalidParameterValueException extends __BaseException {
734
+ readonly name: "InvalidParameterValueException";
735
+ readonly $fault: "client";
736
+ /**
737
+ * @internal
738
+ */
739
+ constructor(opts: __ExceptionOptionType<InvalidParameterValueException, __BaseException>);
730
740
  }
731
741
  /**
732
742
  * <p>The request must contain either a valid (registered) Amazon Web Services access key ID
733
743
  * or X.509 certificate.</p>
734
744
  */
735
- export interface MissingAuthenticationToken extends __SmithyException, $MetadataBearer {
736
- name: "MissingAuthenticationToken";
737
- $fault: "client";
738
- message?: string;
745
+ export declare class MissingAuthenticationToken extends __BaseException {
746
+ readonly name: "MissingAuthenticationToken";
747
+ readonly $fault: "client";
748
+ /**
749
+ * @internal
750
+ */
751
+ constructor(opts: __ExceptionOptionType<MissingAuthenticationToken, __BaseException>);
739
752
  }
740
753
  /**
741
754
  * <p>The account is not opted in to Compute Optimizer.</p>
742
755
  */
743
- export interface OptInRequiredException extends __SmithyException, $MetadataBearer {
744
- name: "OptInRequiredException";
745
- $fault: "client";
746
- message?: string;
756
+ export declare class OptInRequiredException extends __BaseException {
757
+ readonly name: "OptInRequiredException";
758
+ readonly $fault: "client";
759
+ /**
760
+ * @internal
761
+ */
762
+ constructor(opts: __ExceptionOptionType<OptInRequiredException, __BaseException>);
747
763
  }
748
764
  /**
749
765
  * <p>A resource that is required for the action doesn't exist.</p>
750
766
  */
751
- export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
752
- name: "ResourceNotFoundException";
753
- $fault: "client";
754
- message?: string;
767
+ export declare class ResourceNotFoundException extends __BaseException {
768
+ readonly name: "ResourceNotFoundException";
769
+ readonly $fault: "client";
770
+ /**
771
+ * @internal
772
+ */
773
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
755
774
  }
756
775
  /**
757
776
  * <p>The request has failed due to a temporary failure of the server.</p>
758
777
  */
759
- export interface ServiceUnavailableException extends __SmithyException, $MetadataBearer {
760
- name: "ServiceUnavailableException";
761
- $fault: "server";
762
- message?: string;
778
+ export declare class ServiceUnavailableException extends __BaseException {
779
+ readonly name: "ServiceUnavailableException";
780
+ readonly $fault: "server";
781
+ /**
782
+ * @internal
783
+ */
784
+ constructor(opts: __ExceptionOptionType<ServiceUnavailableException, __BaseException>);
763
785
  }
764
786
  /**
765
787
  * <p>The request was denied due to request throttling.</p>
766
788
  */
767
- export interface ThrottlingException extends __SmithyException, $MetadataBearer {
768
- name: "ThrottlingException";
769
- $fault: "client";
770
- message: string | undefined;
789
+ export declare class ThrottlingException extends __BaseException {
790
+ readonly name: "ThrottlingException";
791
+ readonly $fault: "client";
792
+ /**
793
+ * @internal
794
+ */
795
+ constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
771
796
  }
772
797
  export declare enum JobFilterName {
773
798
  JOB_STATUS = "JobStatus",
@@ -1361,10 +1386,13 @@ export declare namespace ExportAutoScalingGroupRecommendationsResponse {
1361
1386
  /**
1362
1387
  * <p>The request exceeds a limit of the service.</p>
1363
1388
  */
1364
- export interface LimitExceededException extends __SmithyException, $MetadataBearer {
1365
- name: "LimitExceededException";
1366
- $fault: "client";
1367
- message?: string;
1389
+ export declare class LimitExceededException extends __BaseException {
1390
+ readonly name: "LimitExceededException";
1391
+ readonly $fault: "client";
1392
+ /**
1393
+ * @internal
1394
+ */
1395
+ constructor(opts: __ExceptionOptionType<LimitExceededException, __BaseException>);
1368
1396
  }
1369
1397
  export declare enum ExportableVolumeField {
1370
1398
  ACCOUNT_ID = "AccountId",
@@ -2,3 +2,4 @@ export * from "./ComputeOptimizer";
2
2
  export * from "./ComputeOptimizerClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
+ export { ComputeOptimizerServiceException } from "./models/ComputeOptimizerServiceException";
@@ -0,0 +1,6 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
+
3
+ export declare class ComputeOptimizerServiceException extends __ServiceException {
4
+
5
+ constructor(options: __ServiceExceptionOptions);
6
+ }
@@ -1,9 +1,11 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
+ import { ComputeOptimizerServiceException as __BaseException } from "./ComputeOptimizerServiceException";
2
3
 
3
- export interface AccessDeniedException extends __SmithyException, $MetadataBearer {
4
- name: "AccessDeniedException";
5
- $fault: "client";
6
- message?: string;
4
+ export declare class AccessDeniedException extends __BaseException {
5
+ readonly name: "AccessDeniedException";
6
+ readonly $fault: "client";
7
+
8
+ constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
7
9
  }
8
10
  export declare enum Status {
9
11
  ACTIVE = "Active",
@@ -248,46 +250,53 @@ export declare namespace DeleteRecommendationPreferencesResponse {
248
250
  const filterSensitiveLog: (obj: DeleteRecommendationPreferencesResponse) => any;
249
251
  }
250
252
 
251
- export interface InternalServerException extends __SmithyException, $MetadataBearer {
252
- name: "InternalServerException";
253
- $fault: "server";
254
- message?: string;
253
+ export declare class InternalServerException extends __BaseException {
254
+ readonly name: "InternalServerException";
255
+ readonly $fault: "server";
256
+
257
+ constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
255
258
  }
256
259
 
257
- export interface InvalidParameterValueException extends __SmithyException, $MetadataBearer {
258
- name: "InvalidParameterValueException";
259
- $fault: "client";
260
- message?: string;
260
+ export declare class InvalidParameterValueException extends __BaseException {
261
+ readonly name: "InvalidParameterValueException";
262
+ readonly $fault: "client";
263
+
264
+ constructor(opts: __ExceptionOptionType<InvalidParameterValueException, __BaseException>);
261
265
  }
262
266
 
263
- export interface MissingAuthenticationToken extends __SmithyException, $MetadataBearer {
264
- name: "MissingAuthenticationToken";
265
- $fault: "client";
266
- message?: string;
267
+ export declare class MissingAuthenticationToken extends __BaseException {
268
+ readonly name: "MissingAuthenticationToken";
269
+ readonly $fault: "client";
270
+
271
+ constructor(opts: __ExceptionOptionType<MissingAuthenticationToken, __BaseException>);
267
272
  }
268
273
 
269
- export interface OptInRequiredException extends __SmithyException, $MetadataBearer {
270
- name: "OptInRequiredException";
271
- $fault: "client";
272
- message?: string;
274
+ export declare class OptInRequiredException extends __BaseException {
275
+ readonly name: "OptInRequiredException";
276
+ readonly $fault: "client";
277
+
278
+ constructor(opts: __ExceptionOptionType<OptInRequiredException, __BaseException>);
273
279
  }
274
280
 
275
- export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
276
- name: "ResourceNotFoundException";
277
- $fault: "client";
278
- message?: string;
281
+ export declare class ResourceNotFoundException extends __BaseException {
282
+ readonly name: "ResourceNotFoundException";
283
+ readonly $fault: "client";
284
+
285
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
279
286
  }
280
287
 
281
- export interface ServiceUnavailableException extends __SmithyException, $MetadataBearer {
282
- name: "ServiceUnavailableException";
283
- $fault: "server";
284
- message?: string;
288
+ export declare class ServiceUnavailableException extends __BaseException {
289
+ readonly name: "ServiceUnavailableException";
290
+ readonly $fault: "server";
291
+
292
+ constructor(opts: __ExceptionOptionType<ServiceUnavailableException, __BaseException>);
285
293
  }
286
294
 
287
- export interface ThrottlingException extends __SmithyException, $MetadataBearer {
288
- name: "ThrottlingException";
289
- $fault: "client";
290
- message: string | undefined;
295
+ export declare class ThrottlingException extends __BaseException {
296
+ readonly name: "ThrottlingException";
297
+ readonly $fault: "client";
298
+
299
+ constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
291
300
  }
292
301
  export declare enum JobFilterName {
293
302
  JOB_STATUS = "JobStatus",
@@ -503,10 +512,11 @@ export declare namespace ExportAutoScalingGroupRecommendationsResponse {
503
512
  const filterSensitiveLog: (obj: ExportAutoScalingGroupRecommendationsResponse) => any;
504
513
  }
505
514
 
506
- export interface LimitExceededException extends __SmithyException, $MetadataBearer {
507
- name: "LimitExceededException";
508
- $fault: "client";
509
- message?: string;
515
+ export declare class LimitExceededException extends __BaseException {
516
+ readonly name: "LimitExceededException";
517
+ readonly $fault: "client";
518
+
519
+ constructor(opts: __ExceptionOptionType<LimitExceededException, __BaseException>);
510
520
  }
511
521
  export declare enum ExportableVolumeField {
512
522
  ACCOUNT_ID = "AccountId",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-compute-optimizer",
3
3
  "description": "AWS SDK for JavaScript Compute Optimizer Client for Node.js, Browser and React Native",
4
- "version": "3.52.0",
4
+ "version": "3.53.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",
@@ -18,34 +18,34 @@
18
18
  "dependencies": {
19
19
  "@aws-crypto/sha256-browser": "2.0.0",
20
20
  "@aws-crypto/sha256-js": "2.0.0",
21
- "@aws-sdk/client-sts": "3.52.0",
22
- "@aws-sdk/config-resolver": "3.52.0",
23
- "@aws-sdk/credential-provider-node": "3.52.0",
24
- "@aws-sdk/fetch-http-handler": "3.52.0",
25
- "@aws-sdk/hash-node": "3.52.0",
26
- "@aws-sdk/invalid-dependency": "3.52.0",
27
- "@aws-sdk/middleware-content-length": "3.52.0",
28
- "@aws-sdk/middleware-host-header": "3.52.0",
29
- "@aws-sdk/middleware-logger": "3.52.0",
30
- "@aws-sdk/middleware-retry": "3.52.0",
31
- "@aws-sdk/middleware-serde": "3.52.0",
32
- "@aws-sdk/middleware-signing": "3.52.0",
33
- "@aws-sdk/middleware-stack": "3.52.0",
34
- "@aws-sdk/middleware-user-agent": "3.52.0",
35
- "@aws-sdk/node-config-provider": "3.52.0",
36
- "@aws-sdk/node-http-handler": "3.52.0",
37
- "@aws-sdk/protocol-http": "3.52.0",
38
- "@aws-sdk/smithy-client": "3.52.0",
39
- "@aws-sdk/types": "3.52.0",
40
- "@aws-sdk/url-parser": "3.52.0",
21
+ "@aws-sdk/client-sts": "3.53.0",
22
+ "@aws-sdk/config-resolver": "3.53.0",
23
+ "@aws-sdk/credential-provider-node": "3.53.0",
24
+ "@aws-sdk/fetch-http-handler": "3.53.0",
25
+ "@aws-sdk/hash-node": "3.53.0",
26
+ "@aws-sdk/invalid-dependency": "3.53.0",
27
+ "@aws-sdk/middleware-content-length": "3.53.0",
28
+ "@aws-sdk/middleware-host-header": "3.53.0",
29
+ "@aws-sdk/middleware-logger": "3.53.0",
30
+ "@aws-sdk/middleware-retry": "3.53.0",
31
+ "@aws-sdk/middleware-serde": "3.53.0",
32
+ "@aws-sdk/middleware-signing": "3.53.0",
33
+ "@aws-sdk/middleware-stack": "3.53.0",
34
+ "@aws-sdk/middleware-user-agent": "3.53.0",
35
+ "@aws-sdk/node-config-provider": "3.53.0",
36
+ "@aws-sdk/node-http-handler": "3.53.0",
37
+ "@aws-sdk/protocol-http": "3.53.0",
38
+ "@aws-sdk/smithy-client": "3.53.0",
39
+ "@aws-sdk/types": "3.53.0",
40
+ "@aws-sdk/url-parser": "3.53.0",
41
41
  "@aws-sdk/util-base64-browser": "3.52.0",
42
42
  "@aws-sdk/util-base64-node": "3.52.0",
43
43
  "@aws-sdk/util-body-length-browser": "3.52.0",
44
44
  "@aws-sdk/util-body-length-node": "3.52.0",
45
- "@aws-sdk/util-defaults-mode-browser": "3.52.0",
46
- "@aws-sdk/util-defaults-mode-node": "3.52.0",
47
- "@aws-sdk/util-user-agent-browser": "3.52.0",
48
- "@aws-sdk/util-user-agent-node": "3.52.0",
45
+ "@aws-sdk/util-defaults-mode-browser": "3.53.0",
46
+ "@aws-sdk/util-defaults-mode-node": "3.53.0",
47
+ "@aws-sdk/util-user-agent-browser": "3.53.0",
48
+ "@aws-sdk/util-user-agent-node": "3.53.0",
49
49
  "@aws-sdk/util-utf8-browser": "3.52.0",
50
50
  "@aws-sdk/util-utf8-node": "3.52.0",
51
51
  "tslib": "^2.3.0"