@aws-sdk/client-emr 3.481.0 → 3.484.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/README.md +8 -0
- package/dist-cjs/EMR.js +2 -0
- package/dist-cjs/commands/SetKeepJobFlowAliveWhenNoStepsCommand.js +28 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/protocols/Aws_json1_1.js +40 -3
- package/dist-es/EMR.js +2 -0
- package/dist-es/commands/SetKeepJobFlowAliveWhenNoStepsCommand.js +24 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/protocols/Aws_json1_1.js +35 -0
- package/dist-types/EMR.d.ts +7 -0
- package/dist-types/EMRClient.d.ts +3 -2
- package/dist-types/commands/SetKeepJobFlowAliveWhenNoStepsCommand.d.ts +66 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +17 -0
- package/dist-types/protocols/Aws_json1_1.d.ts +9 -0
- package/dist-types/ts3.4/EMR.d.ts +17 -0
- package/dist-types/ts3.4/EMRClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/SetKeepJobFlowAliveWhenNoStepsCommand.d.ts +26 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +4 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +12 -0
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -580,6 +580,14 @@ RunJobFlow
|
|
|
580
580
|
|
|
581
581
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/emr/command/RunJobFlowCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-emr/Interface/RunJobFlowCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-emr/Interface/RunJobFlowCommandOutput/)
|
|
582
582
|
|
|
583
|
+
</details>
|
|
584
|
+
<details>
|
|
585
|
+
<summary>
|
|
586
|
+
SetKeepJobFlowAliveWhenNoSteps
|
|
587
|
+
</summary>
|
|
588
|
+
|
|
589
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/emr/command/SetKeepJobFlowAliveWhenNoStepsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-emr/Interface/SetKeepJobFlowAliveWhenNoStepsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-emr/Interface/SetKeepJobFlowAliveWhenNoStepsCommandOutput/)
|
|
590
|
+
|
|
583
591
|
</details>
|
|
584
592
|
<details>
|
|
585
593
|
<summary>
|
package/dist-cjs/EMR.js
CHANGED
|
@@ -49,6 +49,7 @@ const RemoveAutoTerminationPolicyCommand_1 = require("./commands/RemoveAutoTermi
|
|
|
49
49
|
const RemoveManagedScalingPolicyCommand_1 = require("./commands/RemoveManagedScalingPolicyCommand");
|
|
50
50
|
const RemoveTagsCommand_1 = require("./commands/RemoveTagsCommand");
|
|
51
51
|
const RunJobFlowCommand_1 = require("./commands/RunJobFlowCommand");
|
|
52
|
+
const SetKeepJobFlowAliveWhenNoStepsCommand_1 = require("./commands/SetKeepJobFlowAliveWhenNoStepsCommand");
|
|
52
53
|
const SetTerminationProtectionCommand_1 = require("./commands/SetTerminationProtectionCommand");
|
|
53
54
|
const SetVisibleToAllUsersCommand_1 = require("./commands/SetVisibleToAllUsersCommand");
|
|
54
55
|
const StartNotebookExecutionCommand_1 = require("./commands/StartNotebookExecutionCommand");
|
|
@@ -105,6 +106,7 @@ const commands = {
|
|
|
105
106
|
RemoveManagedScalingPolicyCommand: RemoveManagedScalingPolicyCommand_1.RemoveManagedScalingPolicyCommand,
|
|
106
107
|
RemoveTagsCommand: RemoveTagsCommand_1.RemoveTagsCommand,
|
|
107
108
|
RunJobFlowCommand: RunJobFlowCommand_1.RunJobFlowCommand,
|
|
109
|
+
SetKeepJobFlowAliveWhenNoStepsCommand: SetKeepJobFlowAliveWhenNoStepsCommand_1.SetKeepJobFlowAliveWhenNoStepsCommand,
|
|
108
110
|
SetTerminationProtectionCommand: SetTerminationProtectionCommand_1.SetTerminationProtectionCommand,
|
|
109
111
|
SetVisibleToAllUsersCommand: SetVisibleToAllUsersCommand_1.SetVisibleToAllUsersCommand,
|
|
110
112
|
StartNotebookExecutionCommand: StartNotebookExecutionCommand_1.StartNotebookExecutionCommand,
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SetKeepJobFlowAliveWhenNoStepsCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const EndpointParameters_1 = require("../endpoint/EndpointParameters");
|
|
9
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
10
|
+
class SetKeepJobFlowAliveWhenNoStepsCommand extends smithy_client_1.Command
|
|
11
|
+
.classBuilder()
|
|
12
|
+
.ep({
|
|
13
|
+
...EndpointParameters_1.commonParams,
|
|
14
|
+
})
|
|
15
|
+
.m(function (Command, cs, config, o) {
|
|
16
|
+
return [
|
|
17
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
18
|
+
(0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
19
|
+
];
|
|
20
|
+
})
|
|
21
|
+
.s("ElasticMapReduce", "SetKeepJobFlowAliveWhenNoSteps", {})
|
|
22
|
+
.n("EMRClient", "SetKeepJobFlowAliveWhenNoStepsCommand")
|
|
23
|
+
.f(void 0, void 0)
|
|
24
|
+
.ser(Aws_json1_1_1.se_SetKeepJobFlowAliveWhenNoStepsCommand)
|
|
25
|
+
.de(Aws_json1_1_1.de_SetKeepJobFlowAliveWhenNoStepsCommand)
|
|
26
|
+
.build() {
|
|
27
|
+
}
|
|
28
|
+
exports.SetKeepJobFlowAliveWhenNoStepsCommand = SetKeepJobFlowAliveWhenNoStepsCommand;
|
|
@@ -48,6 +48,7 @@ tslib_1.__exportStar(require("./RemoveAutoTerminationPolicyCommand"), exports);
|
|
|
48
48
|
tslib_1.__exportStar(require("./RemoveManagedScalingPolicyCommand"), exports);
|
|
49
49
|
tslib_1.__exportStar(require("./RemoveTagsCommand"), exports);
|
|
50
50
|
tslib_1.__exportStar(require("./RunJobFlowCommand"), exports);
|
|
51
|
+
tslib_1.__exportStar(require("./SetKeepJobFlowAliveWhenNoStepsCommand"), exports);
|
|
51
52
|
tslib_1.__exportStar(require("./SetTerminationProtectionCommand"), exports);
|
|
52
53
|
tslib_1.__exportStar(require("./SetVisibleToAllUsersCommand"), exports);
|
|
53
54
|
tslib_1.__exportStar(require("./StartNotebookExecutionCommand"), exports);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.de_UpdateStudioSessionMappingCommand = exports.de_UpdateStudioCommand = exports.de_TerminateJobFlowsCommand = exports.de_StopNotebookExecutionCommand = exports.de_StartNotebookExecutionCommand = exports.de_SetVisibleToAllUsersCommand = exports.de_SetTerminationProtectionCommand = exports.de_RunJobFlowCommand = void 0;
|
|
3
|
+
exports.se_SetVisibleToAllUsersCommand = exports.se_SetTerminationProtectionCommand = exports.se_SetKeepJobFlowAliveWhenNoStepsCommand = exports.se_RunJobFlowCommand = exports.se_RemoveTagsCommand = exports.se_RemoveManagedScalingPolicyCommand = exports.se_RemoveAutoTerminationPolicyCommand = exports.se_RemoveAutoScalingPolicyCommand = exports.se_PutManagedScalingPolicyCommand = exports.se_PutBlockPublicAccessConfigurationCommand = exports.se_PutAutoTerminationPolicyCommand = exports.se_PutAutoScalingPolicyCommand = exports.se_ModifyInstanceGroupsCommand = exports.se_ModifyInstanceFleetCommand = exports.se_ModifyClusterCommand = exports.se_ListSupportedInstanceTypesCommand = exports.se_ListStudioSessionMappingsCommand = exports.se_ListStudiosCommand = exports.se_ListStepsCommand = exports.se_ListSecurityConfigurationsCommand = exports.se_ListReleaseLabelsCommand = exports.se_ListNotebookExecutionsCommand = exports.se_ListInstancesCommand = exports.se_ListInstanceGroupsCommand = exports.se_ListInstanceFleetsCommand = exports.se_ListClustersCommand = exports.se_ListBootstrapActionsCommand = exports.se_GetStudioSessionMappingCommand = exports.se_GetManagedScalingPolicyCommand = exports.se_GetClusterSessionCredentialsCommand = exports.se_GetBlockPublicAccessConfigurationCommand = exports.se_GetAutoTerminationPolicyCommand = exports.se_DescribeStudioCommand = exports.se_DescribeStepCommand = exports.se_DescribeSecurityConfigurationCommand = exports.se_DescribeReleaseLabelCommand = exports.se_DescribeNotebookExecutionCommand = exports.se_DescribeJobFlowsCommand = exports.se_DescribeClusterCommand = exports.se_DeleteStudioSessionMappingCommand = exports.se_DeleteStudioCommand = exports.se_DeleteSecurityConfigurationCommand = exports.se_CreateStudioSessionMappingCommand = exports.se_CreateStudioCommand = exports.se_CreateSecurityConfigurationCommand = exports.se_CancelStepsCommand = exports.se_AddTagsCommand = exports.se_AddJobFlowStepsCommand = exports.se_AddInstanceGroupsCommand = exports.se_AddInstanceFleetCommand = void 0;
|
|
4
|
+
exports.de_RemoveManagedScalingPolicyCommand = exports.de_RemoveAutoTerminationPolicyCommand = exports.de_RemoveAutoScalingPolicyCommand = exports.de_PutManagedScalingPolicyCommand = exports.de_PutBlockPublicAccessConfigurationCommand = exports.de_PutAutoTerminationPolicyCommand = exports.de_PutAutoScalingPolicyCommand = exports.de_ModifyInstanceGroupsCommand = exports.de_ModifyInstanceFleetCommand = exports.de_ModifyClusterCommand = exports.de_ListSupportedInstanceTypesCommand = exports.de_ListStudioSessionMappingsCommand = exports.de_ListStudiosCommand = exports.de_ListStepsCommand = exports.de_ListSecurityConfigurationsCommand = exports.de_ListReleaseLabelsCommand = exports.de_ListNotebookExecutionsCommand = exports.de_ListInstancesCommand = exports.de_ListInstanceGroupsCommand = exports.de_ListInstanceFleetsCommand = exports.de_ListClustersCommand = exports.de_ListBootstrapActionsCommand = exports.de_GetStudioSessionMappingCommand = exports.de_GetManagedScalingPolicyCommand = exports.de_GetClusterSessionCredentialsCommand = exports.de_GetBlockPublicAccessConfigurationCommand = exports.de_GetAutoTerminationPolicyCommand = exports.de_DescribeStudioCommand = exports.de_DescribeStepCommand = exports.de_DescribeSecurityConfigurationCommand = exports.de_DescribeReleaseLabelCommand = exports.de_DescribeNotebookExecutionCommand = exports.de_DescribeJobFlowsCommand = exports.de_DescribeClusterCommand = exports.de_DeleteStudioSessionMappingCommand = exports.de_DeleteStudioCommand = exports.de_DeleteSecurityConfigurationCommand = exports.de_CreateStudioSessionMappingCommand = exports.de_CreateStudioCommand = exports.de_CreateSecurityConfigurationCommand = exports.de_CancelStepsCommand = exports.de_AddTagsCommand = exports.de_AddJobFlowStepsCommand = exports.de_AddInstanceGroupsCommand = exports.de_AddInstanceFleetCommand = exports.se_UpdateStudioSessionMappingCommand = exports.se_UpdateStudioCommand = exports.se_TerminateJobFlowsCommand = exports.se_StopNotebookExecutionCommand = exports.se_StartNotebookExecutionCommand = void 0;
|
|
5
|
+
exports.de_UpdateStudioSessionMappingCommand = exports.de_UpdateStudioCommand = exports.de_TerminateJobFlowsCommand = exports.de_StopNotebookExecutionCommand = exports.de_StartNotebookExecutionCommand = exports.de_SetVisibleToAllUsersCommand = exports.de_SetTerminationProtectionCommand = exports.de_SetKeepJobFlowAliveWhenNoStepsCommand = exports.de_RunJobFlowCommand = exports.de_RemoveTagsCommand = void 0;
|
|
6
6
|
const core_1 = require("@aws-sdk/core");
|
|
7
7
|
const protocol_http_1 = require("@smithy/protocol-http");
|
|
8
8
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
@@ -337,6 +337,13 @@ const se_RunJobFlowCommand = async (input, context) => {
|
|
|
337
337
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
338
338
|
};
|
|
339
339
|
exports.se_RunJobFlowCommand = se_RunJobFlowCommand;
|
|
340
|
+
const se_SetKeepJobFlowAliveWhenNoStepsCommand = async (input, context) => {
|
|
341
|
+
const headers = sharedHeaders("SetKeepJobFlowAliveWhenNoSteps");
|
|
342
|
+
let body;
|
|
343
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
344
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
345
|
+
};
|
|
346
|
+
exports.se_SetKeepJobFlowAliveWhenNoStepsCommand = se_SetKeepJobFlowAliveWhenNoStepsCommand;
|
|
340
347
|
const se_SetTerminationProtectionCommand = async (input, context) => {
|
|
341
348
|
const headers = sharedHeaders("SetTerminationProtection");
|
|
342
349
|
let body;
|
|
@@ -1976,6 +1983,36 @@ const de_RunJobFlowCommandError = async (output, context) => {
|
|
|
1976
1983
|
});
|
|
1977
1984
|
}
|
|
1978
1985
|
};
|
|
1986
|
+
const de_SetKeepJobFlowAliveWhenNoStepsCommand = async (output, context) => {
|
|
1987
|
+
if (output.statusCode >= 300) {
|
|
1988
|
+
return de_SetKeepJobFlowAliveWhenNoStepsCommandError(output, context);
|
|
1989
|
+
}
|
|
1990
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1991
|
+
const response = {
|
|
1992
|
+
$metadata: deserializeMetadata(output),
|
|
1993
|
+
};
|
|
1994
|
+
return response;
|
|
1995
|
+
};
|
|
1996
|
+
exports.de_SetKeepJobFlowAliveWhenNoStepsCommand = de_SetKeepJobFlowAliveWhenNoStepsCommand;
|
|
1997
|
+
const de_SetKeepJobFlowAliveWhenNoStepsCommandError = async (output, context) => {
|
|
1998
|
+
const parsedOutput = {
|
|
1999
|
+
...output,
|
|
2000
|
+
body: await parseErrorBody(output.body, context),
|
|
2001
|
+
};
|
|
2002
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2003
|
+
switch (errorCode) {
|
|
2004
|
+
case "InternalServerError":
|
|
2005
|
+
case "com.amazonaws.emr#InternalServerError":
|
|
2006
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2007
|
+
default:
|
|
2008
|
+
const parsedBody = parsedOutput.body;
|
|
2009
|
+
return throwDefaultError({
|
|
2010
|
+
output,
|
|
2011
|
+
parsedBody,
|
|
2012
|
+
errorCode,
|
|
2013
|
+
});
|
|
2014
|
+
}
|
|
2015
|
+
};
|
|
1979
2016
|
const de_SetTerminationProtectionCommand = async (output, context) => {
|
|
1980
2017
|
if (output.statusCode >= 300) {
|
|
1981
2018
|
return de_SetTerminationProtectionCommandError(output, context);
|
package/dist-es/EMR.js
CHANGED
|
@@ -46,6 +46,7 @@ import { RemoveAutoTerminationPolicyCommand, } from "./commands/RemoveAutoTermin
|
|
|
46
46
|
import { RemoveManagedScalingPolicyCommand, } from "./commands/RemoveManagedScalingPolicyCommand";
|
|
47
47
|
import { RemoveTagsCommand } from "./commands/RemoveTagsCommand";
|
|
48
48
|
import { RunJobFlowCommand } from "./commands/RunJobFlowCommand";
|
|
49
|
+
import { SetKeepJobFlowAliveWhenNoStepsCommand, } from "./commands/SetKeepJobFlowAliveWhenNoStepsCommand";
|
|
49
50
|
import { SetTerminationProtectionCommand, } from "./commands/SetTerminationProtectionCommand";
|
|
50
51
|
import { SetVisibleToAllUsersCommand, } from "./commands/SetVisibleToAllUsersCommand";
|
|
51
52
|
import { StartNotebookExecutionCommand, } from "./commands/StartNotebookExecutionCommand";
|
|
@@ -102,6 +103,7 @@ const commands = {
|
|
|
102
103
|
RemoveManagedScalingPolicyCommand,
|
|
103
104
|
RemoveTagsCommand,
|
|
104
105
|
RunJobFlowCommand,
|
|
106
|
+
SetKeepJobFlowAliveWhenNoStepsCommand,
|
|
105
107
|
SetTerminationProtectionCommand,
|
|
106
108
|
SetVisibleToAllUsersCommand,
|
|
107
109
|
StartNotebookExecutionCommand,
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_SetKeepJobFlowAliveWhenNoStepsCommand, se_SetKeepJobFlowAliveWhenNoStepsCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class SetKeepJobFlowAliveWhenNoStepsCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("ElasticMapReduce", "SetKeepJobFlowAliveWhenNoSteps", {})
|
|
19
|
+
.n("EMRClient", "SetKeepJobFlowAliveWhenNoStepsCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_SetKeepJobFlowAliveWhenNoStepsCommand)
|
|
22
|
+
.de(de_SetKeepJobFlowAliveWhenNoStepsCommand)
|
|
23
|
+
.build() {
|
|
24
|
+
}
|
|
@@ -45,6 +45,7 @@ export * from "./RemoveAutoTerminationPolicyCommand";
|
|
|
45
45
|
export * from "./RemoveManagedScalingPolicyCommand";
|
|
46
46
|
export * from "./RemoveTagsCommand";
|
|
47
47
|
export * from "./RunJobFlowCommand";
|
|
48
|
+
export * from "./SetKeepJobFlowAliveWhenNoStepsCommand";
|
|
48
49
|
export * from "./SetTerminationProtectionCommand";
|
|
49
50
|
export * from "./SetVisibleToAllUsersCommand";
|
|
50
51
|
export * from "./StartNotebookExecutionCommand";
|
|
@@ -285,6 +285,12 @@ export const se_RunJobFlowCommand = async (input, context) => {
|
|
|
285
285
|
body = JSON.stringify(se_RunJobFlowInput(input, context));
|
|
286
286
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
287
287
|
};
|
|
288
|
+
export const se_SetKeepJobFlowAliveWhenNoStepsCommand = async (input, context) => {
|
|
289
|
+
const headers = sharedHeaders("SetKeepJobFlowAliveWhenNoSteps");
|
|
290
|
+
let body;
|
|
291
|
+
body = JSON.stringify(_json(input));
|
|
292
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
293
|
+
};
|
|
288
294
|
export const se_SetTerminationProtectionCommand = async (input, context) => {
|
|
289
295
|
const headers = sharedHeaders("SetTerminationProtection");
|
|
290
296
|
let body;
|
|
@@ -1870,6 +1876,35 @@ const de_RunJobFlowCommandError = async (output, context) => {
|
|
|
1870
1876
|
});
|
|
1871
1877
|
}
|
|
1872
1878
|
};
|
|
1879
|
+
export const de_SetKeepJobFlowAliveWhenNoStepsCommand = async (output, context) => {
|
|
1880
|
+
if (output.statusCode >= 300) {
|
|
1881
|
+
return de_SetKeepJobFlowAliveWhenNoStepsCommandError(output, context);
|
|
1882
|
+
}
|
|
1883
|
+
await collectBody(output.body, context);
|
|
1884
|
+
const response = {
|
|
1885
|
+
$metadata: deserializeMetadata(output),
|
|
1886
|
+
};
|
|
1887
|
+
return response;
|
|
1888
|
+
};
|
|
1889
|
+
const de_SetKeepJobFlowAliveWhenNoStepsCommandError = async (output, context) => {
|
|
1890
|
+
const parsedOutput = {
|
|
1891
|
+
...output,
|
|
1892
|
+
body: await parseErrorBody(output.body, context),
|
|
1893
|
+
};
|
|
1894
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1895
|
+
switch (errorCode) {
|
|
1896
|
+
case "InternalServerError":
|
|
1897
|
+
case "com.amazonaws.emr#InternalServerError":
|
|
1898
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1899
|
+
default:
|
|
1900
|
+
const parsedBody = parsedOutput.body;
|
|
1901
|
+
return throwDefaultError({
|
|
1902
|
+
output,
|
|
1903
|
+
parsedBody,
|
|
1904
|
+
errorCode,
|
|
1905
|
+
});
|
|
1906
|
+
}
|
|
1907
|
+
};
|
|
1873
1908
|
export const de_SetTerminationProtectionCommand = async (output, context) => {
|
|
1874
1909
|
if (output.statusCode >= 300) {
|
|
1875
1910
|
return de_SetTerminationProtectionCommandError(output, context);
|
package/dist-types/EMR.d.ts
CHANGED
|
@@ -46,6 +46,7 @@ import { RemoveAutoTerminationPolicyCommandInput, RemoveAutoTerminationPolicyCom
|
|
|
46
46
|
import { RemoveManagedScalingPolicyCommandInput, RemoveManagedScalingPolicyCommandOutput } from "./commands/RemoveManagedScalingPolicyCommand";
|
|
47
47
|
import { RemoveTagsCommandInput, RemoveTagsCommandOutput } from "./commands/RemoveTagsCommand";
|
|
48
48
|
import { RunJobFlowCommandInput, RunJobFlowCommandOutput } from "./commands/RunJobFlowCommand";
|
|
49
|
+
import { SetKeepJobFlowAliveWhenNoStepsCommandInput, SetKeepJobFlowAliveWhenNoStepsCommandOutput } from "./commands/SetKeepJobFlowAliveWhenNoStepsCommand";
|
|
49
50
|
import { SetTerminationProtectionCommandInput, SetTerminationProtectionCommandOutput } from "./commands/SetTerminationProtectionCommand";
|
|
50
51
|
import { SetVisibleToAllUsersCommandInput, SetVisibleToAllUsersCommandOutput } from "./commands/SetVisibleToAllUsersCommand";
|
|
51
52
|
import { StartNotebookExecutionCommandInput, StartNotebookExecutionCommandOutput } from "./commands/StartNotebookExecutionCommand";
|
|
@@ -337,6 +338,12 @@ export interface EMR {
|
|
|
337
338
|
runJobFlow(args: RunJobFlowCommandInput, options?: __HttpHandlerOptions): Promise<RunJobFlowCommandOutput>;
|
|
338
339
|
runJobFlow(args: RunJobFlowCommandInput, cb: (err: any, data?: RunJobFlowCommandOutput) => void): void;
|
|
339
340
|
runJobFlow(args: RunJobFlowCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RunJobFlowCommandOutput) => void): void;
|
|
341
|
+
/**
|
|
342
|
+
* @see {@link SetKeepJobFlowAliveWhenNoStepsCommand}
|
|
343
|
+
*/
|
|
344
|
+
setKeepJobFlowAliveWhenNoSteps(args: SetKeepJobFlowAliveWhenNoStepsCommandInput, options?: __HttpHandlerOptions): Promise<SetKeepJobFlowAliveWhenNoStepsCommandOutput>;
|
|
345
|
+
setKeepJobFlowAliveWhenNoSteps(args: SetKeepJobFlowAliveWhenNoStepsCommandInput, cb: (err: any, data?: SetKeepJobFlowAliveWhenNoStepsCommandOutput) => void): void;
|
|
346
|
+
setKeepJobFlowAliveWhenNoSteps(args: SetKeepJobFlowAliveWhenNoStepsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SetKeepJobFlowAliveWhenNoStepsCommandOutput) => void): void;
|
|
340
347
|
/**
|
|
341
348
|
* @see {@link SetTerminationProtectionCommand}
|
|
342
349
|
*/
|
|
@@ -55,6 +55,7 @@ import { RemoveAutoTerminationPolicyCommandInput, RemoveAutoTerminationPolicyCom
|
|
|
55
55
|
import { RemoveManagedScalingPolicyCommandInput, RemoveManagedScalingPolicyCommandOutput } from "./commands/RemoveManagedScalingPolicyCommand";
|
|
56
56
|
import { RemoveTagsCommandInput, RemoveTagsCommandOutput } from "./commands/RemoveTagsCommand";
|
|
57
57
|
import { RunJobFlowCommandInput, RunJobFlowCommandOutput } from "./commands/RunJobFlowCommand";
|
|
58
|
+
import { SetKeepJobFlowAliveWhenNoStepsCommandInput, SetKeepJobFlowAliveWhenNoStepsCommandOutput } from "./commands/SetKeepJobFlowAliveWhenNoStepsCommand";
|
|
58
59
|
import { SetTerminationProtectionCommandInput, SetTerminationProtectionCommandOutput } from "./commands/SetTerminationProtectionCommand";
|
|
59
60
|
import { SetVisibleToAllUsersCommandInput, SetVisibleToAllUsersCommandOutput } from "./commands/SetVisibleToAllUsersCommand";
|
|
60
61
|
import { StartNotebookExecutionCommandInput, StartNotebookExecutionCommandOutput } from "./commands/StartNotebookExecutionCommand";
|
|
@@ -68,11 +69,11 @@ export { __Client };
|
|
|
68
69
|
/**
|
|
69
70
|
* @public
|
|
70
71
|
*/
|
|
71
|
-
export type ServiceInputTypes = AddInstanceFleetCommandInput | AddInstanceGroupsCommandInput | AddJobFlowStepsCommandInput | AddTagsCommandInput | CancelStepsCommandInput | CreateSecurityConfigurationCommandInput | CreateStudioCommandInput | CreateStudioSessionMappingCommandInput | DeleteSecurityConfigurationCommandInput | DeleteStudioCommandInput | DeleteStudioSessionMappingCommandInput | DescribeClusterCommandInput | DescribeJobFlowsCommandInput | DescribeNotebookExecutionCommandInput | DescribeReleaseLabelCommandInput | DescribeSecurityConfigurationCommandInput | DescribeStepCommandInput | DescribeStudioCommandInput | GetAutoTerminationPolicyCommandInput | GetBlockPublicAccessConfigurationCommandInput | GetClusterSessionCredentialsCommandInput | GetManagedScalingPolicyCommandInput | GetStudioSessionMappingCommandInput | ListBootstrapActionsCommandInput | ListClustersCommandInput | ListInstanceFleetsCommandInput | ListInstanceGroupsCommandInput | ListInstancesCommandInput | ListNotebookExecutionsCommandInput | ListReleaseLabelsCommandInput | ListSecurityConfigurationsCommandInput | ListStepsCommandInput | ListStudioSessionMappingsCommandInput | ListStudiosCommandInput | ListSupportedInstanceTypesCommandInput | ModifyClusterCommandInput | ModifyInstanceFleetCommandInput | ModifyInstanceGroupsCommandInput | PutAutoScalingPolicyCommandInput | PutAutoTerminationPolicyCommandInput | PutBlockPublicAccessConfigurationCommandInput | PutManagedScalingPolicyCommandInput | RemoveAutoScalingPolicyCommandInput | RemoveAutoTerminationPolicyCommandInput | RemoveManagedScalingPolicyCommandInput | RemoveTagsCommandInput | RunJobFlowCommandInput | SetTerminationProtectionCommandInput | SetVisibleToAllUsersCommandInput | StartNotebookExecutionCommandInput | StopNotebookExecutionCommandInput | TerminateJobFlowsCommandInput | UpdateStudioCommandInput | UpdateStudioSessionMappingCommandInput;
|
|
72
|
+
export type ServiceInputTypes = AddInstanceFleetCommandInput | AddInstanceGroupsCommandInput | AddJobFlowStepsCommandInput | AddTagsCommandInput | CancelStepsCommandInput | CreateSecurityConfigurationCommandInput | CreateStudioCommandInput | CreateStudioSessionMappingCommandInput | DeleteSecurityConfigurationCommandInput | DeleteStudioCommandInput | DeleteStudioSessionMappingCommandInput | DescribeClusterCommandInput | DescribeJobFlowsCommandInput | DescribeNotebookExecutionCommandInput | DescribeReleaseLabelCommandInput | DescribeSecurityConfigurationCommandInput | DescribeStepCommandInput | DescribeStudioCommandInput | GetAutoTerminationPolicyCommandInput | GetBlockPublicAccessConfigurationCommandInput | GetClusterSessionCredentialsCommandInput | GetManagedScalingPolicyCommandInput | GetStudioSessionMappingCommandInput | ListBootstrapActionsCommandInput | ListClustersCommandInput | ListInstanceFleetsCommandInput | ListInstanceGroupsCommandInput | ListInstancesCommandInput | ListNotebookExecutionsCommandInput | ListReleaseLabelsCommandInput | ListSecurityConfigurationsCommandInput | ListStepsCommandInput | ListStudioSessionMappingsCommandInput | ListStudiosCommandInput | ListSupportedInstanceTypesCommandInput | ModifyClusterCommandInput | ModifyInstanceFleetCommandInput | ModifyInstanceGroupsCommandInput | PutAutoScalingPolicyCommandInput | PutAutoTerminationPolicyCommandInput | PutBlockPublicAccessConfigurationCommandInput | PutManagedScalingPolicyCommandInput | RemoveAutoScalingPolicyCommandInput | RemoveAutoTerminationPolicyCommandInput | RemoveManagedScalingPolicyCommandInput | RemoveTagsCommandInput | RunJobFlowCommandInput | SetKeepJobFlowAliveWhenNoStepsCommandInput | SetTerminationProtectionCommandInput | SetVisibleToAllUsersCommandInput | StartNotebookExecutionCommandInput | StopNotebookExecutionCommandInput | TerminateJobFlowsCommandInput | UpdateStudioCommandInput | UpdateStudioSessionMappingCommandInput;
|
|
72
73
|
/**
|
|
73
74
|
* @public
|
|
74
75
|
*/
|
|
75
|
-
export type ServiceOutputTypes = AddInstanceFleetCommandOutput | AddInstanceGroupsCommandOutput | AddJobFlowStepsCommandOutput | AddTagsCommandOutput | CancelStepsCommandOutput | CreateSecurityConfigurationCommandOutput | CreateStudioCommandOutput | CreateStudioSessionMappingCommandOutput | DeleteSecurityConfigurationCommandOutput | DeleteStudioCommandOutput | DeleteStudioSessionMappingCommandOutput | DescribeClusterCommandOutput | DescribeJobFlowsCommandOutput | DescribeNotebookExecutionCommandOutput | DescribeReleaseLabelCommandOutput | DescribeSecurityConfigurationCommandOutput | DescribeStepCommandOutput | DescribeStudioCommandOutput | GetAutoTerminationPolicyCommandOutput | GetBlockPublicAccessConfigurationCommandOutput | GetClusterSessionCredentialsCommandOutput | GetManagedScalingPolicyCommandOutput | GetStudioSessionMappingCommandOutput | ListBootstrapActionsCommandOutput | ListClustersCommandOutput | ListInstanceFleetsCommandOutput | ListInstanceGroupsCommandOutput | ListInstancesCommandOutput | ListNotebookExecutionsCommandOutput | ListReleaseLabelsCommandOutput | ListSecurityConfigurationsCommandOutput | ListStepsCommandOutput | ListStudioSessionMappingsCommandOutput | ListStudiosCommandOutput | ListSupportedInstanceTypesCommandOutput | ModifyClusterCommandOutput | ModifyInstanceFleetCommandOutput | ModifyInstanceGroupsCommandOutput | PutAutoScalingPolicyCommandOutput | PutAutoTerminationPolicyCommandOutput | PutBlockPublicAccessConfigurationCommandOutput | PutManagedScalingPolicyCommandOutput | RemoveAutoScalingPolicyCommandOutput | RemoveAutoTerminationPolicyCommandOutput | RemoveManagedScalingPolicyCommandOutput | RemoveTagsCommandOutput | RunJobFlowCommandOutput | SetTerminationProtectionCommandOutput | SetVisibleToAllUsersCommandOutput | StartNotebookExecutionCommandOutput | StopNotebookExecutionCommandOutput | TerminateJobFlowsCommandOutput | UpdateStudioCommandOutput | UpdateStudioSessionMappingCommandOutput;
|
|
76
|
+
export type ServiceOutputTypes = AddInstanceFleetCommandOutput | AddInstanceGroupsCommandOutput | AddJobFlowStepsCommandOutput | AddTagsCommandOutput | CancelStepsCommandOutput | CreateSecurityConfigurationCommandOutput | CreateStudioCommandOutput | CreateStudioSessionMappingCommandOutput | DeleteSecurityConfigurationCommandOutput | DeleteStudioCommandOutput | DeleteStudioSessionMappingCommandOutput | DescribeClusterCommandOutput | DescribeJobFlowsCommandOutput | DescribeNotebookExecutionCommandOutput | DescribeReleaseLabelCommandOutput | DescribeSecurityConfigurationCommandOutput | DescribeStepCommandOutput | DescribeStudioCommandOutput | GetAutoTerminationPolicyCommandOutput | GetBlockPublicAccessConfigurationCommandOutput | GetClusterSessionCredentialsCommandOutput | GetManagedScalingPolicyCommandOutput | GetStudioSessionMappingCommandOutput | ListBootstrapActionsCommandOutput | ListClustersCommandOutput | ListInstanceFleetsCommandOutput | ListInstanceGroupsCommandOutput | ListInstancesCommandOutput | ListNotebookExecutionsCommandOutput | ListReleaseLabelsCommandOutput | ListSecurityConfigurationsCommandOutput | ListStepsCommandOutput | ListStudioSessionMappingsCommandOutput | ListStudiosCommandOutput | ListSupportedInstanceTypesCommandOutput | ModifyClusterCommandOutput | ModifyInstanceFleetCommandOutput | ModifyInstanceGroupsCommandOutput | PutAutoScalingPolicyCommandOutput | PutAutoTerminationPolicyCommandOutput | PutBlockPublicAccessConfigurationCommandOutput | PutManagedScalingPolicyCommandOutput | RemoveAutoScalingPolicyCommandOutput | RemoveAutoTerminationPolicyCommandOutput | RemoveManagedScalingPolicyCommandOutput | RemoveTagsCommandOutput | RunJobFlowCommandOutput | SetKeepJobFlowAliveWhenNoStepsCommandOutput | SetTerminationProtectionCommandOutput | SetVisibleToAllUsersCommandOutput | StartNotebookExecutionCommandOutput | StopNotebookExecutionCommandOutput | TerminateJobFlowsCommandOutput | UpdateStudioCommandOutput | UpdateStudioSessionMappingCommandOutput;
|
|
76
77
|
/**
|
|
77
78
|
* @public
|
|
78
79
|
*/
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { EMRClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EMRClient";
|
|
4
|
+
import { SetKeepJobFlowAliveWhenNoStepsInput } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export { __MetadataBearer, $Command };
|
|
9
|
+
/**
|
|
10
|
+
* @public
|
|
11
|
+
*
|
|
12
|
+
* The input for {@link SetKeepJobFlowAliveWhenNoStepsCommand}.
|
|
13
|
+
*/
|
|
14
|
+
export interface SetKeepJobFlowAliveWhenNoStepsCommandInput extends SetKeepJobFlowAliveWhenNoStepsInput {
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* @public
|
|
18
|
+
*
|
|
19
|
+
* The output of {@link SetKeepJobFlowAliveWhenNoStepsCommand}.
|
|
20
|
+
*/
|
|
21
|
+
export interface SetKeepJobFlowAliveWhenNoStepsCommandOutput extends __MetadataBearer {
|
|
22
|
+
}
|
|
23
|
+
declare const SetKeepJobFlowAliveWhenNoStepsCommand_base: {
|
|
24
|
+
new (input: SetKeepJobFlowAliveWhenNoStepsCommandInput): import("@smithy/smithy-client").CommandImpl<SetKeepJobFlowAliveWhenNoStepsCommandInput, SetKeepJobFlowAliveWhenNoStepsCommandOutput, EMRClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* @public
|
|
29
|
+
* <p>You can use the <code>SetKeepJobFlowAliveWhenNoSteps</code> to configure a cluster (job flow) to terminate after the step execution, i.e., all your
|
|
30
|
+
* steps are executed. If you want a transient cluster that shuts down after the last of the current executing steps are completed,
|
|
31
|
+
* you can configure <code>SetKeepJobFlowAliveWhenNoSteps</code> to false. If you want a long running cluster, configure <code>SetKeepJobFlowAliveWhenNoSteps</code> to true.</p>
|
|
32
|
+
* <p>For more information, see <a href="https://docs.aws.amazon.com/emr/latest/ManagementGuide/UsingEMR_TerminationProtection.html">Managing Cluster Termination</a> in the <i>Amazon EMR Management Guide</i>.</p>
|
|
33
|
+
* @example
|
|
34
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
35
|
+
* ```javascript
|
|
36
|
+
* import { EMRClient, SetKeepJobFlowAliveWhenNoStepsCommand } from "@aws-sdk/client-emr"; // ES Modules import
|
|
37
|
+
* // const { EMRClient, SetKeepJobFlowAliveWhenNoStepsCommand } = require("@aws-sdk/client-emr"); // CommonJS import
|
|
38
|
+
* const client = new EMRClient(config);
|
|
39
|
+
* const input = { // SetKeepJobFlowAliveWhenNoStepsInput
|
|
40
|
+
* JobFlowIds: [ // XmlStringList // required
|
|
41
|
+
* "STRING_VALUE",
|
|
42
|
+
* ],
|
|
43
|
+
* KeepJobFlowAliveWhenNoSteps: true || false, // required
|
|
44
|
+
* };
|
|
45
|
+
* const command = new SetKeepJobFlowAliveWhenNoStepsCommand(input);
|
|
46
|
+
* const response = await client.send(command);
|
|
47
|
+
* // {};
|
|
48
|
+
*
|
|
49
|
+
* ```
|
|
50
|
+
*
|
|
51
|
+
* @param SetKeepJobFlowAliveWhenNoStepsCommandInput - {@link SetKeepJobFlowAliveWhenNoStepsCommandInput}
|
|
52
|
+
* @returns {@link SetKeepJobFlowAliveWhenNoStepsCommandOutput}
|
|
53
|
+
* @see {@link SetKeepJobFlowAliveWhenNoStepsCommandInput} for command's `input` shape.
|
|
54
|
+
* @see {@link SetKeepJobFlowAliveWhenNoStepsCommandOutput} for command's `response` shape.
|
|
55
|
+
* @see {@link EMRClientResolvedConfig | config} for EMRClient's `config` shape.
|
|
56
|
+
*
|
|
57
|
+
* @throws {@link InternalServerError} (server fault)
|
|
58
|
+
* <p>Indicates that an error occurred while processing the request and that the request was
|
|
59
|
+
* not completed.</p>
|
|
60
|
+
*
|
|
61
|
+
* @throws {@link EMRServiceException}
|
|
62
|
+
* <p>Base exception class for all service exceptions from EMR service.</p>
|
|
63
|
+
*
|
|
64
|
+
*/
|
|
65
|
+
export declare class SetKeepJobFlowAliveWhenNoStepsCommand extends SetKeepJobFlowAliveWhenNoStepsCommand_base {
|
|
66
|
+
}
|
|
@@ -45,6 +45,7 @@ export * from "./RemoveAutoTerminationPolicyCommand";
|
|
|
45
45
|
export * from "./RemoveManagedScalingPolicyCommand";
|
|
46
46
|
export * from "./RemoveTagsCommand";
|
|
47
47
|
export * from "./RunJobFlowCommand";
|
|
48
|
+
export * from "./SetKeepJobFlowAliveWhenNoStepsCommand";
|
|
48
49
|
export * from "./SetTerminationProtectionCommand";
|
|
49
50
|
export * from "./SetVisibleToAllUsersCommand";
|
|
50
51
|
export * from "./StartNotebookExecutionCommand";
|
|
@@ -5067,6 +5067,23 @@ export interface RunJobFlowOutput {
|
|
|
5067
5067
|
*/
|
|
5068
5068
|
ClusterArn?: string;
|
|
5069
5069
|
}
|
|
5070
|
+
/**
|
|
5071
|
+
* @public
|
|
5072
|
+
*/
|
|
5073
|
+
export interface SetKeepJobFlowAliveWhenNoStepsInput {
|
|
5074
|
+
/**
|
|
5075
|
+
* @public
|
|
5076
|
+
* <p>A list of strings that uniquely identify the clusters to protect. This identifier is returned by
|
|
5077
|
+
* <a href="https://docs.aws.amazon.com/emr/latest/APIReference/API_RunJobFlow.html">RunJobFlow</a> and can also
|
|
5078
|
+
* be obtained from <a href="https://docs.aws.amazon.com/emr/latest/APIReference/API_DescribeJobFlows.html">DescribeJobFlows</a>.</p>
|
|
5079
|
+
*/
|
|
5080
|
+
JobFlowIds: string[] | undefined;
|
|
5081
|
+
/**
|
|
5082
|
+
* @public
|
|
5083
|
+
* <p>A Boolean that indicates whether to terminate the cluster after all steps are executed.</p>
|
|
5084
|
+
*/
|
|
5085
|
+
KeepJobFlowAliveWhenNoSteps: boolean | undefined;
|
|
5086
|
+
}
|
|
5070
5087
|
/**
|
|
5071
5088
|
* @public
|
|
5072
5089
|
* <p> The input argument to the <a>TerminationProtection</a> operation. </p>
|
|
@@ -47,6 +47,7 @@ import { RemoveAutoTerminationPolicyCommandInput, RemoveAutoTerminationPolicyCom
|
|
|
47
47
|
import { RemoveManagedScalingPolicyCommandInput, RemoveManagedScalingPolicyCommandOutput } from "../commands/RemoveManagedScalingPolicyCommand";
|
|
48
48
|
import { RemoveTagsCommandInput, RemoveTagsCommandOutput } from "../commands/RemoveTagsCommand";
|
|
49
49
|
import { RunJobFlowCommandInput, RunJobFlowCommandOutput } from "../commands/RunJobFlowCommand";
|
|
50
|
+
import { SetKeepJobFlowAliveWhenNoStepsCommandInput, SetKeepJobFlowAliveWhenNoStepsCommandOutput } from "../commands/SetKeepJobFlowAliveWhenNoStepsCommand";
|
|
50
51
|
import { SetTerminationProtectionCommandInput, SetTerminationProtectionCommandOutput } from "../commands/SetTerminationProtectionCommand";
|
|
51
52
|
import { SetVisibleToAllUsersCommandInput, SetVisibleToAllUsersCommandOutput } from "../commands/SetVisibleToAllUsersCommand";
|
|
52
53
|
import { StartNotebookExecutionCommandInput, StartNotebookExecutionCommandOutput } from "../commands/StartNotebookExecutionCommand";
|
|
@@ -242,6 +243,10 @@ export declare const se_RemoveTagsCommand: (input: RemoveTagsCommandInput, conte
|
|
|
242
243
|
* serializeAws_json1_1RunJobFlowCommand
|
|
243
244
|
*/
|
|
244
245
|
export declare const se_RunJobFlowCommand: (input: RunJobFlowCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
246
|
+
/**
|
|
247
|
+
* serializeAws_json1_1SetKeepJobFlowAliveWhenNoStepsCommand
|
|
248
|
+
*/
|
|
249
|
+
export declare const se_SetKeepJobFlowAliveWhenNoStepsCommand: (input: SetKeepJobFlowAliveWhenNoStepsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
245
250
|
/**
|
|
246
251
|
* serializeAws_json1_1SetTerminationProtectionCommand
|
|
247
252
|
*/
|
|
@@ -458,6 +463,10 @@ export declare const de_RemoveTagsCommand: (output: __HttpResponse, context: __S
|
|
|
458
463
|
* deserializeAws_json1_1RunJobFlowCommand
|
|
459
464
|
*/
|
|
460
465
|
export declare const de_RunJobFlowCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<RunJobFlowCommandOutput>;
|
|
466
|
+
/**
|
|
467
|
+
* deserializeAws_json1_1SetKeepJobFlowAliveWhenNoStepsCommand
|
|
468
|
+
*/
|
|
469
|
+
export declare const de_SetKeepJobFlowAliveWhenNoStepsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<SetKeepJobFlowAliveWhenNoStepsCommandOutput>;
|
|
461
470
|
/**
|
|
462
471
|
* deserializeAws_json1_1SetTerminationProtectionCommand
|
|
463
472
|
*/
|
|
@@ -187,6 +187,10 @@ import {
|
|
|
187
187
|
RunJobFlowCommandInput,
|
|
188
188
|
RunJobFlowCommandOutput,
|
|
189
189
|
} from "./commands/RunJobFlowCommand";
|
|
190
|
+
import {
|
|
191
|
+
SetKeepJobFlowAliveWhenNoStepsCommandInput,
|
|
192
|
+
SetKeepJobFlowAliveWhenNoStepsCommandOutput,
|
|
193
|
+
} from "./commands/SetKeepJobFlowAliveWhenNoStepsCommand";
|
|
190
194
|
import {
|
|
191
195
|
SetTerminationProtectionCommandInput,
|
|
192
196
|
SetTerminationProtectionCommandOutput,
|
|
@@ -840,6 +844,19 @@ export interface EMR {
|
|
|
840
844
|
options: __HttpHandlerOptions,
|
|
841
845
|
cb: (err: any, data?: RunJobFlowCommandOutput) => void
|
|
842
846
|
): void;
|
|
847
|
+
setKeepJobFlowAliveWhenNoSteps(
|
|
848
|
+
args: SetKeepJobFlowAliveWhenNoStepsCommandInput,
|
|
849
|
+
options?: __HttpHandlerOptions
|
|
850
|
+
): Promise<SetKeepJobFlowAliveWhenNoStepsCommandOutput>;
|
|
851
|
+
setKeepJobFlowAliveWhenNoSteps(
|
|
852
|
+
args: SetKeepJobFlowAliveWhenNoStepsCommandInput,
|
|
853
|
+
cb: (err: any, data?: SetKeepJobFlowAliveWhenNoStepsCommandOutput) => void
|
|
854
|
+
): void;
|
|
855
|
+
setKeepJobFlowAliveWhenNoSteps(
|
|
856
|
+
args: SetKeepJobFlowAliveWhenNoStepsCommandInput,
|
|
857
|
+
options: __HttpHandlerOptions,
|
|
858
|
+
cb: (err: any, data?: SetKeepJobFlowAliveWhenNoStepsCommandOutput) => void
|
|
859
|
+
): void;
|
|
843
860
|
setTerminationProtection(
|
|
844
861
|
args: SetTerminationProtectionCommandInput,
|
|
845
862
|
options?: __HttpHandlerOptions
|
|
@@ -233,6 +233,10 @@ import {
|
|
|
233
233
|
RunJobFlowCommandInput,
|
|
234
234
|
RunJobFlowCommandOutput,
|
|
235
235
|
} from "./commands/RunJobFlowCommand";
|
|
236
|
+
import {
|
|
237
|
+
SetKeepJobFlowAliveWhenNoStepsCommandInput,
|
|
238
|
+
SetKeepJobFlowAliveWhenNoStepsCommandOutput,
|
|
239
|
+
} from "./commands/SetKeepJobFlowAliveWhenNoStepsCommand";
|
|
236
240
|
import {
|
|
237
241
|
SetTerminationProtectionCommandInput,
|
|
238
242
|
SetTerminationProtectionCommandOutput,
|
|
@@ -316,6 +320,7 @@ export type ServiceInputTypes =
|
|
|
316
320
|
| RemoveManagedScalingPolicyCommandInput
|
|
317
321
|
| RemoveTagsCommandInput
|
|
318
322
|
| RunJobFlowCommandInput
|
|
323
|
+
| SetKeepJobFlowAliveWhenNoStepsCommandInput
|
|
319
324
|
| SetTerminationProtectionCommandInput
|
|
320
325
|
| SetVisibleToAllUsersCommandInput
|
|
321
326
|
| StartNotebookExecutionCommandInput
|
|
@@ -371,6 +376,7 @@ export type ServiceOutputTypes =
|
|
|
371
376
|
| RemoveManagedScalingPolicyCommandOutput
|
|
372
377
|
| RemoveTagsCommandOutput
|
|
373
378
|
| RunJobFlowCommandOutput
|
|
379
|
+
| SetKeepJobFlowAliveWhenNoStepsCommandOutput
|
|
374
380
|
| SetTerminationProtectionCommandOutput
|
|
375
381
|
| SetVisibleToAllUsersCommandOutput
|
|
376
382
|
| StartNotebookExecutionCommandOutput
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import {
|
|
4
|
+
EMRClientResolvedConfig,
|
|
5
|
+
ServiceInputTypes,
|
|
6
|
+
ServiceOutputTypes,
|
|
7
|
+
} from "../EMRClient";
|
|
8
|
+
import { SetKeepJobFlowAliveWhenNoStepsInput } from "../models/models_0";
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
export interface SetKeepJobFlowAliveWhenNoStepsCommandInput
|
|
11
|
+
extends SetKeepJobFlowAliveWhenNoStepsInput {}
|
|
12
|
+
export interface SetKeepJobFlowAliveWhenNoStepsCommandOutput
|
|
13
|
+
extends __MetadataBearer {}
|
|
14
|
+
declare const SetKeepJobFlowAliveWhenNoStepsCommand_base: {
|
|
15
|
+
new (
|
|
16
|
+
input: SetKeepJobFlowAliveWhenNoStepsCommandInput
|
|
17
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
18
|
+
SetKeepJobFlowAliveWhenNoStepsCommandInput,
|
|
19
|
+
SetKeepJobFlowAliveWhenNoStepsCommandOutput,
|
|
20
|
+
EMRClientResolvedConfig,
|
|
21
|
+
ServiceInputTypes,
|
|
22
|
+
ServiceOutputTypes
|
|
23
|
+
>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
export declare class SetKeepJobFlowAliveWhenNoStepsCommand extends SetKeepJobFlowAliveWhenNoStepsCommand_base {}
|
|
@@ -45,6 +45,7 @@ export * from "./RemoveAutoTerminationPolicyCommand";
|
|
|
45
45
|
export * from "./RemoveManagedScalingPolicyCommand";
|
|
46
46
|
export * from "./RemoveTagsCommand";
|
|
47
47
|
export * from "./RunJobFlowCommand";
|
|
48
|
+
export * from "./SetKeepJobFlowAliveWhenNoStepsCommand";
|
|
48
49
|
export * from "./SetTerminationProtectionCommand";
|
|
49
50
|
export * from "./SetVisibleToAllUsersCommand";
|
|
50
51
|
export * from "./StartNotebookExecutionCommand";
|
|
@@ -1242,6 +1242,10 @@ export interface RunJobFlowOutput {
|
|
|
1242
1242
|
JobFlowId?: string;
|
|
1243
1243
|
ClusterArn?: string;
|
|
1244
1244
|
}
|
|
1245
|
+
export interface SetKeepJobFlowAliveWhenNoStepsInput {
|
|
1246
|
+
JobFlowIds: string[] | undefined;
|
|
1247
|
+
KeepJobFlowAliveWhenNoSteps: boolean | undefined;
|
|
1248
|
+
}
|
|
1245
1249
|
export interface SetTerminationProtectionInput {
|
|
1246
1250
|
JobFlowIds: string[] | undefined;
|
|
1247
1251
|
TerminationProtected: boolean | undefined;
|
|
@@ -191,6 +191,10 @@ import {
|
|
|
191
191
|
RunJobFlowCommandInput,
|
|
192
192
|
RunJobFlowCommandOutput,
|
|
193
193
|
} from "../commands/RunJobFlowCommand";
|
|
194
|
+
import {
|
|
195
|
+
SetKeepJobFlowAliveWhenNoStepsCommandInput,
|
|
196
|
+
SetKeepJobFlowAliveWhenNoStepsCommandOutput,
|
|
197
|
+
} from "../commands/SetKeepJobFlowAliveWhenNoStepsCommand";
|
|
194
198
|
import {
|
|
195
199
|
SetTerminationProtectionCommandInput,
|
|
196
200
|
SetTerminationProtectionCommandOutput,
|
|
@@ -407,6 +411,10 @@ export declare const se_RunJobFlowCommand: (
|
|
|
407
411
|
input: RunJobFlowCommandInput,
|
|
408
412
|
context: __SerdeContext
|
|
409
413
|
) => Promise<__HttpRequest>;
|
|
414
|
+
export declare const se_SetKeepJobFlowAliveWhenNoStepsCommand: (
|
|
415
|
+
input: SetKeepJobFlowAliveWhenNoStepsCommandInput,
|
|
416
|
+
context: __SerdeContext
|
|
417
|
+
) => Promise<__HttpRequest>;
|
|
410
418
|
export declare const se_SetTerminationProtectionCommand: (
|
|
411
419
|
input: SetTerminationProtectionCommandInput,
|
|
412
420
|
context: __SerdeContext
|
|
@@ -623,6 +631,10 @@ export declare const de_RunJobFlowCommand: (
|
|
|
623
631
|
output: __HttpResponse,
|
|
624
632
|
context: __SerdeContext
|
|
625
633
|
) => Promise<RunJobFlowCommandOutput>;
|
|
634
|
+
export declare const de_SetKeepJobFlowAliveWhenNoStepsCommand: (
|
|
635
|
+
output: __HttpResponse,
|
|
636
|
+
context: __SerdeContext
|
|
637
|
+
) => Promise<SetKeepJobFlowAliveWhenNoStepsCommandOutput>;
|
|
626
638
|
export declare const de_SetTerminationProtectionCommand: (
|
|
627
639
|
output: __HttpResponse,
|
|
628
640
|
context: __SerdeContext
|
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.
|
|
4
|
+
"version": "3.484.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",
|
|
@@ -20,20 +20,20 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.484.0",
|
|
24
24
|
"@aws-sdk/core": "3.481.0",
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.484.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.468.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.468.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.468.0",
|
|
29
29
|
"@aws-sdk/middleware-signing": "3.468.0",
|
|
30
30
|
"@aws-sdk/middleware-user-agent": "3.478.0",
|
|
31
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
31
|
+
"@aws-sdk/region-config-resolver": "3.484.0",
|
|
32
32
|
"@aws-sdk/types": "3.468.0",
|
|
33
33
|
"@aws-sdk/util-endpoints": "3.478.0",
|
|
34
34
|
"@aws-sdk/util-user-agent-browser": "3.468.0",
|
|
35
35
|
"@aws-sdk/util-user-agent-node": "3.470.0",
|
|
36
|
-
"@smithy/config-resolver": "^2.0.
|
|
36
|
+
"@smithy/config-resolver": "^2.0.22",
|
|
37
37
|
"@smithy/core": "^1.2.1",
|
|
38
38
|
"@smithy/fetch-http-handler": "^2.3.1",
|
|
39
39
|
"@smithy/hash-node": "^2.0.17",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"@smithy/util-body-length-browser": "^2.0.1",
|
|
54
54
|
"@smithy/util-body-length-node": "^2.1.0",
|
|
55
55
|
"@smithy/util-defaults-mode-browser": "^2.0.23",
|
|
56
|
-
"@smithy/util-defaults-mode-node": "^2.0.
|
|
56
|
+
"@smithy/util-defaults-mode-node": "^2.0.31",
|
|
57
57
|
"@smithy/util-endpoints": "^1.0.7",
|
|
58
58
|
"@smithy/util-retry": "^2.0.8",
|
|
59
59
|
"@smithy/util-utf8": "^2.0.2",
|