@aws-sdk/client-batch 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 "./BatchClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
5
  export * from "./pagination";
6
+ export { BatchServiceException } from "./models/BatchServiceException";
@@ -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 Batch service.
4
+ */
5
+ export declare class BatchServiceException 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 { BatchServiceException as __BaseException } from "./BatchServiceException";
2
3
  export declare enum ArrayJobDependency {
3
4
  N_TO_N = "N_TO_N",
4
5
  SEQUENTIAL = "SEQUENTIAL"
@@ -193,18 +194,24 @@ export declare namespace CancelJobResponse {
193
194
  * <p>These errors are usually caused by a client action, such as using an action or resource on behalf of a user that
194
195
  * doesn't have permissions to use the action or resource, or specifying an identifier that's not valid.</p>
195
196
  */
196
- export interface ClientException extends __SmithyException, $MetadataBearer {
197
- name: "ClientException";
198
- $fault: "client";
199
- message?: string;
197
+ export declare class ClientException extends __BaseException {
198
+ readonly name: "ClientException";
199
+ readonly $fault: "client";
200
+ /**
201
+ * @internal
202
+ */
203
+ constructor(opts: __ExceptionOptionType<ClientException, __BaseException>);
200
204
  }
201
205
  /**
202
206
  * <p>These errors are usually caused by a server issue.</p>
203
207
  */
204
- export interface ServerException extends __SmithyException, $MetadataBearer {
205
- name: "ServerException";
206
- $fault: "server";
207
- message?: string;
208
+ export declare class ServerException extends __BaseException {
209
+ readonly name: "ServerException";
210
+ readonly $fault: "server";
211
+ /**
212
+ * @internal
213
+ */
214
+ constructor(opts: __ExceptionOptionType<ServerException, __BaseException>);
208
215
  }
209
216
  export declare enum CRAllocationStrategy {
210
217
  BEST_FIT = "BEST_FIT",
@@ -3,3 +3,4 @@ export * from "./BatchClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
5
  export * from "./pagination";
6
+ export { BatchServiceException } from "./models/BatchServiceException";
@@ -0,0 +1,6 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
+
3
+ export declare class BatchServiceException 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 { BatchServiceException as __BaseException } from "./BatchServiceException";
2
3
  export declare enum ArrayJobDependency {
3
4
  N_TO_N = "N_TO_N",
4
5
  SEQUENTIAL = "SEQUENTIAL"
@@ -107,16 +108,18 @@ export declare namespace CancelJobResponse {
107
108
  const filterSensitiveLog: (obj: CancelJobResponse) => any;
108
109
  }
109
110
 
110
- export interface ClientException extends __SmithyException, $MetadataBearer {
111
- name: "ClientException";
112
- $fault: "client";
113
- message?: string;
111
+ export declare class ClientException extends __BaseException {
112
+ readonly name: "ClientException";
113
+ readonly $fault: "client";
114
+
115
+ constructor(opts: __ExceptionOptionType<ClientException, __BaseException>);
114
116
  }
115
117
 
116
- export interface ServerException extends __SmithyException, $MetadataBearer {
117
- name: "ServerException";
118
- $fault: "server";
119
- message?: string;
118
+ export declare class ServerException extends __BaseException {
119
+ readonly name: "ServerException";
120
+ readonly $fault: "server";
121
+
122
+ constructor(opts: __ExceptionOptionType<ServerException, __BaseException>);
120
123
  }
121
124
  export declare enum CRAllocationStrategy {
122
125
  BEST_FIT = "BEST_FIT",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-batch",
3
3
  "description": "AWS SDK for JavaScript Batch 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"