@aws-sdk/client-emr 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 { EMRServiceException } from "./models/EMRServiceException";
@@ -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 EMR service.
4
+ */
5
+ export declare class EMRServiceException 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 { EMRServiceException as __BaseException } from "./EMRServiceException";
2
3
  export declare enum ActionOnFailure {
3
4
  CANCEL_AND_WAIT = "CANCEL_AND_WAIT",
4
5
  CONTINUE = "CONTINUE",
@@ -263,20 +264,24 @@ export declare namespace AddInstanceFleetOutput {
263
264
  * <p>This exception occurs when there is an internal failure in the Amazon EMR
264
265
  * service.</p>
265
266
  */
266
- export interface InternalServerException extends __SmithyException, $MetadataBearer {
267
- name: "InternalServerException";
268
- $fault: "server";
267
+ export declare class InternalServerException extends __BaseException {
268
+ readonly name: "InternalServerException";
269
+ readonly $fault: "server";
269
270
  /**
270
271
  * <p>The message associated with the exception.</p>
271
272
  */
272
273
  Message?: string;
274
+ /**
275
+ * @internal
276
+ */
277
+ constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
273
278
  }
274
279
  /**
275
280
  * <p>This exception occurs when there is something wrong with user input.</p>
276
281
  */
277
- export interface InvalidRequestException extends __SmithyException, $MetadataBearer {
278
- name: "InvalidRequestException";
279
- $fault: "client";
282
+ export declare class InvalidRequestException extends __BaseException {
283
+ readonly name: "InvalidRequestException";
284
+ readonly $fault: "client";
280
285
  /**
281
286
  * <p>The error code associated with the exception.</p>
282
287
  */
@@ -285,6 +290,10 @@ export interface InvalidRequestException extends __SmithyException, $MetadataBea
285
290
  * <p>The message associated with the exception.</p>
286
291
  */
287
292
  Message?: string;
293
+ /**
294
+ * @internal
295
+ */
296
+ constructor(opts: __ExceptionOptionType<InvalidRequestException, __BaseException>);
288
297
  }
289
298
  /**
290
299
  * <p>The upper and lower EC2 instance limits for an automatic scaling policy. Automatic
@@ -608,9 +617,13 @@ export declare namespace AddInstanceGroupsOutput {
608
617
  * <p>Indicates that an error occurred while processing the request and that the request was
609
618
  * not completed.</p>
610
619
  */
611
- export interface InternalServerError extends __SmithyException, $MetadataBearer {
612
- name: "InternalServerError";
613
- $fault: "server";
620
+ export declare class InternalServerError extends __BaseException {
621
+ readonly name: "InternalServerError";
622
+ readonly $fault: "server";
623
+ /**
624
+ * @internal
625
+ */
626
+ constructor(opts: __ExceptionOptionType<InternalServerError, __BaseException>);
614
627
  }
615
628
  /**
616
629
  * <p>A key-value pair.</p>
@@ -4,3 +4,4 @@ export * from "./commands";
4
4
  export * from "./models";
5
5
  export * from "./pagination";
6
6
  export * from "./waiters";
7
+ export { EMRServiceException } from "./models/EMRServiceException";
@@ -0,0 +1,6 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
+
3
+ export declare class EMRServiceException 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 { EMRServiceException as __BaseException } from "./EMRServiceException";
2
3
  export declare enum ActionOnFailure {
3
4
  CANCEL_AND_WAIT = "CANCEL_AND_WAIT",
4
5
  CONTINUE = "CONTINUE",
@@ -122,20 +123,24 @@ export declare namespace AddInstanceFleetOutput {
122
123
  const filterSensitiveLog: (obj: AddInstanceFleetOutput) => any;
123
124
  }
124
125
 
125
- export interface InternalServerException extends __SmithyException, $MetadataBearer {
126
- name: "InternalServerException";
127
- $fault: "server";
126
+ export declare class InternalServerException extends __BaseException {
127
+ readonly name: "InternalServerException";
128
+ readonly $fault: "server";
128
129
 
129
130
  Message?: string;
131
+
132
+ constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
130
133
  }
131
134
 
132
- export interface InvalidRequestException extends __SmithyException, $MetadataBearer {
133
- name: "InvalidRequestException";
134
- $fault: "client";
135
+ export declare class InvalidRequestException extends __BaseException {
136
+ readonly name: "InvalidRequestException";
137
+ readonly $fault: "client";
135
138
 
136
139
  ErrorCode?: string;
137
140
 
138
141
  Message?: string;
142
+
143
+ constructor(opts: __ExceptionOptionType<InvalidRequestException, __BaseException>);
139
144
  }
140
145
 
141
146
  export interface ScalingConstraints {
@@ -309,9 +314,11 @@ export declare namespace AddInstanceGroupsOutput {
309
314
  const filterSensitiveLog: (obj: AddInstanceGroupsOutput) => any;
310
315
  }
311
316
 
312
- export interface InternalServerError extends __SmithyException, $MetadataBearer {
313
- name: "InternalServerError";
314
- $fault: "server";
317
+ export declare class InternalServerError extends __BaseException {
318
+ readonly name: "InternalServerError";
319
+ readonly $fault: "server";
320
+
321
+ constructor(opts: __ExceptionOptionType<InternalServerError, __BaseException>);
315
322
  }
316
323
 
317
324
  export interface KeyValue {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-emr",
3
3
  "description": "AWS SDK for JavaScript Emr 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,37 +18,37 @@
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
- "@aws-sdk/util-waiter": "3.52.0",
51
+ "@aws-sdk/util-waiter": "3.53.0",
52
52
  "tslib": "^2.3.0"
53
53
  },
54
54
  "devDependencies": {