@aws-sdk/client-datasync 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.
@@ -3,3 +3,4 @@ export * from "./DataSyncClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
5
  export * from "./pagination";
6
+ export { DataSyncServiceException } from "./models/DataSyncServiceException";
@@ -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 DataSync service.
4
+ */
5
+ export declare class DataSyncServiceException 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 { DataSyncServiceException as __BaseException } from "./DataSyncServiceException";
2
3
  export declare enum AgentStatus {
3
4
  OFFLINE = "OFFLINE",
4
5
  ONLINE = "ONLINE"
@@ -59,20 +60,26 @@ export declare namespace CancelTaskExecutionResponse {
59
60
  /**
60
61
  * <p>This exception is thrown when an error occurs in the DataSync service.</p>
61
62
  */
62
- export interface InternalException extends __SmithyException, $MetadataBearer {
63
- name: "InternalException";
64
- $fault: "server";
65
- message?: string;
63
+ export declare class InternalException extends __BaseException {
64
+ readonly name: "InternalException";
65
+ readonly $fault: "server";
66
66
  errorCode?: string;
67
+ /**
68
+ * @internal
69
+ */
70
+ constructor(opts: __ExceptionOptionType<InternalException, __BaseException>);
67
71
  }
68
72
  /**
69
73
  * <p>This exception is thrown when the client submits a malformed request.</p>
70
74
  */
71
- export interface InvalidRequestException extends __SmithyException, $MetadataBearer {
72
- name: "InvalidRequestException";
73
- $fault: "client";
74
- message?: string;
75
+ export declare class InvalidRequestException extends __BaseException {
76
+ readonly name: "InvalidRequestException";
77
+ readonly $fault: "client";
75
78
  errorCode?: string;
79
+ /**
80
+ * @internal
81
+ */
82
+ constructor(opts: __ExceptionOptionType<InvalidRequestException, __BaseException>);
76
83
  }
77
84
  /**
78
85
  * <p>Represents a single entry in a list of Amazon Web Services resource tags. <code>TagListEntry</code>
@@ -3,3 +3,4 @@ export * from "./DataSyncClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
5
  export * from "./pagination";
6
+ export { DataSyncServiceException } from "./models/DataSyncServiceException";
@@ -0,0 +1,6 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
+
3
+ export declare class DataSyncServiceException 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 { DataSyncServiceException as __BaseException } from "./DataSyncServiceException";
2
3
  export declare enum AgentStatus {
3
4
  OFFLINE = "OFFLINE",
4
5
  ONLINE = "ONLINE"
@@ -36,18 +37,20 @@ export declare namespace CancelTaskExecutionResponse {
36
37
  const filterSensitiveLog: (obj: CancelTaskExecutionResponse) => any;
37
38
  }
38
39
 
39
- export interface InternalException extends __SmithyException, $MetadataBearer {
40
- name: "InternalException";
41
- $fault: "server";
42
- message?: string;
40
+ export declare class InternalException extends __BaseException {
41
+ readonly name: "InternalException";
42
+ readonly $fault: "server";
43
43
  errorCode?: string;
44
+
45
+ constructor(opts: __ExceptionOptionType<InternalException, __BaseException>);
44
46
  }
45
47
 
46
- export interface InvalidRequestException extends __SmithyException, $MetadataBearer {
47
- name: "InvalidRequestException";
48
- $fault: "client";
49
- message?: string;
48
+ export declare class InvalidRequestException extends __BaseException {
49
+ readonly name: "InvalidRequestException";
50
+ readonly $fault: "client";
50
51
  errorCode?: string;
52
+
53
+ constructor(opts: __ExceptionOptionType<InvalidRequestException, __BaseException>);
51
54
  }
52
55
 
53
56
  export interface TagListEntry {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-datasync",
3
3
  "description": "AWS SDK for JavaScript Datasync 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"