@aws-sdk/client-emr-serverless 3.821.0 → 3.825.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.
package/dist-cjs/index.js CHANGED
@@ -450,8 +450,11 @@ var se_CancelJobRunCommand = /* @__PURE__ */ __name(async (input, context) => {
450
450
  b.bp("/applications/{applicationId}/jobruns/{jobRunId}");
451
451
  b.p("applicationId", () => input.applicationId, "{applicationId}", false);
452
452
  b.p("jobRunId", () => input.jobRunId, "{jobRunId}", false);
453
+ const query = (0, import_smithy_client.map)({
454
+ [_sGPIS]: [() => input.shutdownGracePeriodInSeconds !== void 0, () => input[_sGPIS].toString()]
455
+ });
453
456
  let body;
454
- b.m("DELETE").h(headers).b(body);
457
+ b.m("DELETE").h(headers).q(query).b(body);
455
458
  return b.build();
456
459
  }, "se_CancelJobRunCommand");
457
460
  var se_CreateApplicationCommand = /* @__PURE__ */ __name(async (input, context) => {
@@ -1185,6 +1188,7 @@ var _m = "mode";
1185
1188
  var _mR = "maxResults";
1186
1189
  var _nT = "nextToken";
1187
1190
  var _s = "states";
1191
+ var _sGPIS = "shutdownGracePeriodInSeconds";
1188
1192
  var _tK = "tagKeys";
1189
1193
 
1190
1194
  // src/commands/CancelJobRunCommand.ts
@@ -10,8 +10,11 @@ export const se_CancelJobRunCommand = async (input, context) => {
10
10
  b.bp("/applications/{applicationId}/jobruns/{jobRunId}");
11
11
  b.p("applicationId", () => input.applicationId, "{applicationId}", false);
12
12
  b.p("jobRunId", () => input.jobRunId, "{jobRunId}", false);
13
+ const query = map({
14
+ [_sGPIS]: [() => input.shutdownGracePeriodInSeconds !== void 0, () => input[_sGPIS].toString()],
15
+ });
13
16
  let body;
14
- b.m("DELETE").h(headers).b(body);
17
+ b.m("DELETE").h(headers).q(query).b(body);
15
18
  return b.build();
16
19
  };
17
20
  export const se_CreateApplicationCommand = async (input, context) => {
@@ -748,4 +751,5 @@ const _m = "mode";
748
751
  const _mR = "maxResults";
749
752
  const _nT = "nextToken";
750
753
  const _s = "states";
754
+ const _sGPIS = "shutdownGracePeriodInSeconds";
751
755
  const _tK = "tagKeys";
@@ -37,6 +37,7 @@ declare const CancelJobRunCommand_base: {
37
37
  * const input = { // CancelJobRunRequest
38
38
  * applicationId: "STRING_VALUE", // required
39
39
  * jobRunId: "STRING_VALUE", // required
40
+ * shutdownGracePeriodInSeconds: Number("int"),
40
41
  * };
41
42
  * const command = new CancelJobRunCommand(input);
42
43
  * const response = await client.send(command);
@@ -556,6 +556,11 @@ export interface CancelJobRunRequest {
556
556
  * @public
557
557
  */
558
558
  jobRunId: string | undefined;
559
+ /**
560
+ * The duration (in seconds) to wait before forcefully terminating the job after cancellation is requested.
561
+ * @public
562
+ */
563
+ shutdownGracePeriodInSeconds?: number | undefined;
559
564
  }
560
565
  /**
561
566
  * @public
@@ -168,6 +168,7 @@ export interface StopApplicationResponse {}
168
168
  export interface CancelJobRunRequest {
169
169
  applicationId: string | undefined;
170
170
  jobRunId: string | undefined;
171
+ shutdownGracePeriodInSeconds?: number | undefined;
171
172
  }
172
173
  export interface CancelJobRunResponse {
173
174
  applicationId: string | undefined;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-emr-serverless",
3
3
  "description": "AWS SDK for JavaScript Emr Serverless Client for Node.js, Browser and React Native",
4
- "version": "3.821.0",
4
+ "version": "3.825.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-emr-serverless",
@@ -20,38 +20,38 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/core": "3.821.0",
24
- "@aws-sdk/credential-provider-node": "3.821.0",
23
+ "@aws-sdk/core": "3.825.0",
24
+ "@aws-sdk/credential-provider-node": "3.825.0",
25
25
  "@aws-sdk/middleware-host-header": "3.821.0",
26
26
  "@aws-sdk/middleware-logger": "3.821.0",
27
27
  "@aws-sdk/middleware-recursion-detection": "3.821.0",
28
- "@aws-sdk/middleware-user-agent": "3.821.0",
28
+ "@aws-sdk/middleware-user-agent": "3.825.0",
29
29
  "@aws-sdk/region-config-resolver": "3.821.0",
30
30
  "@aws-sdk/types": "3.821.0",
31
31
  "@aws-sdk/util-endpoints": "3.821.0",
32
32
  "@aws-sdk/util-user-agent-browser": "3.821.0",
33
- "@aws-sdk/util-user-agent-node": "3.821.0",
33
+ "@aws-sdk/util-user-agent-node": "3.825.0",
34
34
  "@smithy/config-resolver": "^4.1.4",
35
- "@smithy/core": "^3.5.1",
35
+ "@smithy/core": "^3.5.2",
36
36
  "@smithy/fetch-http-handler": "^5.0.4",
37
37
  "@smithy/hash-node": "^4.0.4",
38
38
  "@smithy/invalid-dependency": "^4.0.4",
39
39
  "@smithy/middleware-content-length": "^4.0.4",
40
- "@smithy/middleware-endpoint": "^4.1.9",
41
- "@smithy/middleware-retry": "^4.1.10",
40
+ "@smithy/middleware-endpoint": "^4.1.10",
41
+ "@smithy/middleware-retry": "^4.1.11",
42
42
  "@smithy/middleware-serde": "^4.0.8",
43
43
  "@smithy/middleware-stack": "^4.0.4",
44
44
  "@smithy/node-config-provider": "^4.1.3",
45
45
  "@smithy/node-http-handler": "^4.0.6",
46
46
  "@smithy/protocol-http": "^5.1.2",
47
- "@smithy/smithy-client": "^4.4.1",
47
+ "@smithy/smithy-client": "^4.4.2",
48
48
  "@smithy/types": "^4.3.1",
49
49
  "@smithy/url-parser": "^4.0.4",
50
50
  "@smithy/util-base64": "^4.0.0",
51
51
  "@smithy/util-body-length-browser": "^4.0.0",
52
52
  "@smithy/util-body-length-node": "^4.0.0",
53
- "@smithy/util-defaults-mode-browser": "^4.0.17",
54
- "@smithy/util-defaults-mode-node": "^4.0.17",
53
+ "@smithy/util-defaults-mode-browser": "^4.0.18",
54
+ "@smithy/util-defaults-mode-node": "^4.0.18",
55
55
  "@smithy/util-endpoints": "^3.0.6",
56
56
  "@smithy/util-middleware": "^4.0.4",
57
57
  "@smithy/util-retry": "^4.0.5",