@aws-sdk/client-dlm 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 "./DLM";
2
2
  export * from "./DLMClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
+ export { DLMServiceException } from "./models/DLMServiceException";
@@ -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 DLM service.
4
+ */
5
+ export declare class DLMServiceException extends __ServiceException {
6
+ /**
7
+ * @internal
8
+ */
9
+ constructor(options: __ServiceExceptionOptions);
10
+ }
@@ -1,4 +1,5 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
+ import { DLMServiceException as __BaseException } from "./DLMServiceException";
2
3
  /**
3
4
  * <p>Specifies the encryption settings for shared snapshots that are copied across Regions.</p>
4
5
  */
@@ -600,19 +601,23 @@ export declare namespace CreateLifecyclePolicyResponse {
600
601
  /**
601
602
  * <p>The service failed in an unexpected way.</p>
602
603
  */
603
- export interface InternalServerException extends __SmithyException, $MetadataBearer {
604
- name: "InternalServerException";
605
- $fault: "server";
604
+ export declare class InternalServerException extends __BaseException {
605
+ readonly name: "InternalServerException";
606
+ readonly $fault: "server";
606
607
  Message?: string;
607
608
  Code?: string;
609
+ /**
610
+ * @internal
611
+ */
612
+ constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
608
613
  }
609
614
  /**
610
615
  * <p>Bad request. The request is missing required parameters or has invalid
611
616
  * parameters.</p>
612
617
  */
613
- export interface InvalidRequestException extends __SmithyException, $MetadataBearer {
614
- name: "InvalidRequestException";
615
- $fault: "client";
618
+ export declare class InvalidRequestException extends __BaseException {
619
+ readonly name: "InvalidRequestException";
620
+ readonly $fault: "client";
616
621
  Message?: string;
617
622
  Code?: string;
618
623
  /**
@@ -623,19 +628,27 @@ export interface InvalidRequestException extends __SmithyException, $MetadataBea
623
628
  * <p>The request included parameters that cannot be provided together.</p>
624
629
  */
625
630
  MutuallyExclusiveParameters?: string[];
631
+ /**
632
+ * @internal
633
+ */
634
+ constructor(opts: __ExceptionOptionType<InvalidRequestException, __BaseException>);
626
635
  }
627
636
  /**
628
637
  * <p>The request failed because a limit was exceeded.</p>
629
638
  */
630
- export interface LimitExceededException extends __SmithyException, $MetadataBearer {
631
- name: "LimitExceededException";
632
- $fault: "client";
639
+ export declare class LimitExceededException extends __BaseException {
640
+ readonly name: "LimitExceededException";
641
+ readonly $fault: "client";
633
642
  Message?: string;
634
643
  Code?: string;
635
644
  /**
636
645
  * <p>Value is the type of resource for which a limit was exceeded.</p>
637
646
  */
638
647
  ResourceType?: string;
648
+ /**
649
+ * @internal
650
+ */
651
+ constructor(opts: __ExceptionOptionType<LimitExceededException, __BaseException>);
639
652
  }
640
653
  export interface DeleteLifecyclePolicyRequest {
641
654
  /**
@@ -660,9 +673,9 @@ export declare namespace DeleteLifecyclePolicyResponse {
660
673
  /**
661
674
  * <p>A requested resource was not found.</p>
662
675
  */
663
- export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
664
- name: "ResourceNotFoundException";
665
- $fault: "client";
676
+ export declare class ResourceNotFoundException extends __BaseException {
677
+ readonly name: "ResourceNotFoundException";
678
+ readonly $fault: "client";
666
679
  Message?: string;
667
680
  Code?: string;
668
681
  /**
@@ -673,6 +686,10 @@ export interface ResourceNotFoundException extends __SmithyException, $MetadataB
673
686
  * <p>Value is a list of resource IDs that were not found.</p>
674
687
  */
675
688
  ResourceIds?: string[];
689
+ /**
690
+ * @internal
691
+ */
692
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
676
693
  }
677
694
  export declare enum GettablePolicyStateValues {
678
695
  DISABLED = "DISABLED",
@@ -2,3 +2,4 @@ export * from "./DLM";
2
2
  export * from "./DLMClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
+ export { DLMServiceException } from "./models/DLMServiceException";
@@ -0,0 +1,6 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
+
3
+ export declare class DLMServiceException extends __ServiceException {
4
+
5
+ constructor(options: __ServiceExceptionOptions);
6
+ }
@@ -1,4 +1,5 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
+ import { DLMServiceException as __BaseException } from "./DLMServiceException";
2
3
 
3
4
  export interface EncryptionConfiguration {
4
5
 
@@ -307,31 +308,37 @@ export declare namespace CreateLifecyclePolicyResponse {
307
308
  const filterSensitiveLog: (obj: CreateLifecyclePolicyResponse) => any;
308
309
  }
309
310
 
310
- export interface InternalServerException extends __SmithyException, $MetadataBearer {
311
- name: "InternalServerException";
312
- $fault: "server";
311
+ export declare class InternalServerException extends __BaseException {
312
+ readonly name: "InternalServerException";
313
+ readonly $fault: "server";
313
314
  Message?: string;
314
315
  Code?: string;
316
+
317
+ constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
315
318
  }
316
319
 
317
- export interface InvalidRequestException extends __SmithyException, $MetadataBearer {
318
- name: "InvalidRequestException";
319
- $fault: "client";
320
+ export declare class InvalidRequestException extends __BaseException {
321
+ readonly name: "InvalidRequestException";
322
+ readonly $fault: "client";
320
323
  Message?: string;
321
324
  Code?: string;
322
325
 
323
326
  RequiredParameters?: string[];
324
327
 
325
328
  MutuallyExclusiveParameters?: string[];
329
+
330
+ constructor(opts: __ExceptionOptionType<InvalidRequestException, __BaseException>);
326
331
  }
327
332
 
328
- export interface LimitExceededException extends __SmithyException, $MetadataBearer {
329
- name: "LimitExceededException";
330
- $fault: "client";
333
+ export declare class LimitExceededException extends __BaseException {
334
+ readonly name: "LimitExceededException";
335
+ readonly $fault: "client";
331
336
  Message?: string;
332
337
  Code?: string;
333
338
 
334
339
  ResourceType?: string;
340
+
341
+ constructor(opts: __ExceptionOptionType<LimitExceededException, __BaseException>);
335
342
  }
336
343
  export interface DeleteLifecyclePolicyRequest {
337
344
 
@@ -348,15 +355,17 @@ export declare namespace DeleteLifecyclePolicyResponse {
348
355
  const filterSensitiveLog: (obj: DeleteLifecyclePolicyResponse) => any;
349
356
  }
350
357
 
351
- export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
352
- name: "ResourceNotFoundException";
353
- $fault: "client";
358
+ export declare class ResourceNotFoundException extends __BaseException {
359
+ readonly name: "ResourceNotFoundException";
360
+ readonly $fault: "client";
354
361
  Message?: string;
355
362
  Code?: string;
356
363
 
357
364
  ResourceType?: string;
358
365
 
359
366
  ResourceIds?: string[];
367
+
368
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
360
369
  }
361
370
  export declare enum GettablePolicyStateValues {
362
371
  DISABLED = "DISABLED",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-dlm",
3
3
  "description": "AWS SDK for JavaScript Dlm 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"