@aws-sdk/client-emr 3.1060.0 → 3.1062.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 +35 -0
- package/dist-cjs/index.js +85 -0
- package/dist-cjs/schemas/schemas_0.js +178 -32
- package/dist-es/EMR.js +12 -0
- package/dist-es/commands/GetSessionCommand.js +16 -0
- package/dist-es/commands/GetSessionEndpointCommand.js +16 -0
- package/dist-es/commands/ListSessionsCommand.js +16 -0
- package/dist-es/commands/StartSessionCommand.js +16 -0
- package/dist-es/commands/TerminateSessionCommand.js +16 -0
- package/dist-es/commands/index.js +5 -0
- package/dist-es/models/enums.js +10 -0
- package/dist-es/pagination/ListSessionsPaginator.js +4 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/schemas/schemas_0.js +171 -26
- package/dist-types/EMR.d.ts +42 -0
- package/dist-types/EMRClient.d.ts +7 -2
- package/dist-types/commands/AddTagsCommand.d.ts +1 -0
- package/dist-types/commands/DescribeClusterCommand.d.ts +1 -0
- package/dist-types/commands/GetSessionCommand.d.ts +155 -0
- package/dist-types/commands/GetSessionEndpointCommand.d.ts +92 -0
- package/dist-types/commands/ListSessionsCommand.d.ts +162 -0
- package/dist-types/commands/RemoveTagsCommand.d.ts +1 -0
- package/dist-types/commands/RunJobFlowCommand.d.ts +1 -0
- package/dist-types/commands/StartSessionCommand.d.ts +141 -0
- package/dist-types/commands/TerminateSessionCommand.d.ts +86 -0
- package/dist-types/commands/index.d.ts +5 -0
- package/dist-types/models/enums.d.ts +18 -0
- package/dist-types/models/models_0.d.ts +473 -7
- package/dist-types/pagination/ListSessionsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +21 -0
- package/dist-types/ts3.4/EMR.d.ts +92 -0
- package/dist-types/ts3.4/EMRClient.d.ts +30 -0
- package/dist-types/ts3.4/commands/GetSessionCommand.d.ts +49 -0
- package/dist-types/ts3.4/commands/GetSessionEndpointCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/ListSessionsCommand.d.ts +49 -0
- package/dist-types/ts3.4/commands/StartSessionCommand.d.ts +49 -0
- package/dist-types/ts3.4/commands/TerminateSessionCommand.d.ts +52 -0
- package/dist-types/ts3.4/commands/index.d.ts +5 -0
- package/dist-types/ts3.4/models/enums.d.ts +11 -0
- package/dist-types/ts3.4/models/models_0.d.ts +108 -0
- package/dist-types/ts3.4/pagination/ListSessionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +21 -0
- package/package.json +2 -2
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import type { EMRClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EMRClient";
|
|
4
|
+
import type { StartSessionInput, StartSessionOutput } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link StartSessionCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface StartSessionCommandInput extends StartSessionInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link StartSessionCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface StartSessionCommandOutput extends StartSessionOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const StartSessionCommand_base: {
|
|
25
|
+
new (input: StartSessionCommandInput): import("@smithy/core/client").CommandImpl<StartSessionCommandInput, StartSessionCommandOutput, EMRClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: StartSessionCommandInput): import("@smithy/core/client").CommandImpl<StartSessionCommandInput, StartSessionCommandOutput, EMRClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): {
|
|
28
|
+
[x: string]: unknown;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* <p>Creates and starts a new Spark Connect session on the specified cluster. The cluster must be in the <code>RUNNING</code> or <code>WAITING</code> state and have sessions enabled. This operation is supported in Amazon EMR Spark 8.0.0 and later.</p>
|
|
33
|
+
* @example
|
|
34
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
35
|
+
* ```javascript
|
|
36
|
+
* import { EMRClient, StartSessionCommand } from "@aws-sdk/client-emr"; // ES Modules import
|
|
37
|
+
* // const { EMRClient, StartSessionCommand } = require("@aws-sdk/client-emr"); // CommonJS import
|
|
38
|
+
* // import type { EMRClientConfig } from "@aws-sdk/client-emr";
|
|
39
|
+
* const config = {}; // type is EMRClientConfig
|
|
40
|
+
* const client = new EMRClient(config);
|
|
41
|
+
* const input = { // StartSessionInput
|
|
42
|
+
* Name: "STRING_VALUE",
|
|
43
|
+
* ClusterId: "STRING_VALUE", // required
|
|
44
|
+
* ExecutionRoleArn: "STRING_VALUE",
|
|
45
|
+
* EngineConfigurations: [ // ConfigurationList
|
|
46
|
+
* { // Configuration
|
|
47
|
+
* Classification: "STRING_VALUE",
|
|
48
|
+
* Configurations: [
|
|
49
|
+
* {
|
|
50
|
+
* Classification: "STRING_VALUE",
|
|
51
|
+
* Configurations: "<ConfigurationList>",
|
|
52
|
+
* Properties: { // StringMap
|
|
53
|
+
* "<keys>": "STRING_VALUE",
|
|
54
|
+
* },
|
|
55
|
+
* },
|
|
56
|
+
* ],
|
|
57
|
+
* Properties: {
|
|
58
|
+
* "<keys>": "STRING_VALUE",
|
|
59
|
+
* },
|
|
60
|
+
* },
|
|
61
|
+
* ],
|
|
62
|
+
* MonitoringConfiguration: { // SessionMonitoringConfiguration
|
|
63
|
+
* CloudWatchLoggingConfiguration: { // SessionCloudWatchLoggingConfiguration
|
|
64
|
+
* Enabled: true || false,
|
|
65
|
+
* LogGroup: "STRING_VALUE",
|
|
66
|
+
* LogStreamNamePrefix: "STRING_VALUE",
|
|
67
|
+
* EncryptionKeyArn: "STRING_VALUE",
|
|
68
|
+
* LogTypes: { // LogTypesMap
|
|
69
|
+
* "<keys>": [ // XmlStringList
|
|
70
|
+
* "STRING_VALUE",
|
|
71
|
+
* ],
|
|
72
|
+
* },
|
|
73
|
+
* },
|
|
74
|
+
* ManagedLoggingConfiguration: { // SessionManagedLoggingConfiguration
|
|
75
|
+
* Enabled: true || false,
|
|
76
|
+
* EncryptionKeyArn: "STRING_VALUE",
|
|
77
|
+
* },
|
|
78
|
+
* S3LoggingConfiguration: { // SessionS3LoggingConfiguration
|
|
79
|
+
* Enabled: true || false,
|
|
80
|
+
* LogUri: "STRING_VALUE",
|
|
81
|
+
* EncryptionKeyArn: "STRING_VALUE",
|
|
82
|
+
* LogTypes: {
|
|
83
|
+
* "<keys>": [
|
|
84
|
+
* "STRING_VALUE",
|
|
85
|
+
* ],
|
|
86
|
+
* },
|
|
87
|
+
* },
|
|
88
|
+
* },
|
|
89
|
+
* SessionIdleTimeoutInMinutes: Number("long"),
|
|
90
|
+
* ClientRequestToken: "STRING_VALUE",
|
|
91
|
+
* Tags: [ // TagList
|
|
92
|
+
* { // Tag
|
|
93
|
+
* Key: "STRING_VALUE",
|
|
94
|
+
* Value: "STRING_VALUE",
|
|
95
|
+
* },
|
|
96
|
+
* ],
|
|
97
|
+
* };
|
|
98
|
+
* const command = new StartSessionCommand(input);
|
|
99
|
+
* const response = await client.send(command);
|
|
100
|
+
* // { // StartSessionOutput
|
|
101
|
+
* // Id: "STRING_VALUE", // required
|
|
102
|
+
* // ClusterId: "STRING_VALUE",
|
|
103
|
+
* // Arn: "STRING_VALUE",
|
|
104
|
+
* // AccountId: "STRING_VALUE",
|
|
105
|
+
* // State: "SUBMITTED" || "STARTING" || "STARTED" || "IDLE" || "BUSY" || "TERMINATING" || "TERMINATED" || "FAILED",
|
|
106
|
+
* // };
|
|
107
|
+
*
|
|
108
|
+
* ```
|
|
109
|
+
*
|
|
110
|
+
* @param StartSessionCommandInput - {@link StartSessionCommandInput}
|
|
111
|
+
* @returns {@link StartSessionCommandOutput}
|
|
112
|
+
* @see {@link StartSessionCommandInput} for command's `input` shape.
|
|
113
|
+
* @see {@link StartSessionCommandOutput} for command's `response` shape.
|
|
114
|
+
* @see {@link EMRClientResolvedConfig | config} for EMRClient's `config` shape.
|
|
115
|
+
*
|
|
116
|
+
* @throws {@link InternalServerException} (server fault)
|
|
117
|
+
* <p>This exception occurs when there is an internal failure in the Amazon EMR
|
|
118
|
+
* service.</p>
|
|
119
|
+
*
|
|
120
|
+
* @throws {@link InvalidRequestException} (client fault)
|
|
121
|
+
* <p>This exception occurs when there is something wrong with user input.</p>
|
|
122
|
+
*
|
|
123
|
+
* @throws {@link EMRServiceException}
|
|
124
|
+
* <p>Base exception class for all service exceptions from EMR service.</p>
|
|
125
|
+
*
|
|
126
|
+
*
|
|
127
|
+
* @public
|
|
128
|
+
*/
|
|
129
|
+
export declare class StartSessionCommand extends StartSessionCommand_base {
|
|
130
|
+
/** @internal type navigation helper, not in runtime. */
|
|
131
|
+
protected static __types: {
|
|
132
|
+
api: {
|
|
133
|
+
input: StartSessionInput;
|
|
134
|
+
output: StartSessionOutput;
|
|
135
|
+
};
|
|
136
|
+
sdk: {
|
|
137
|
+
input: StartSessionCommandInput;
|
|
138
|
+
output: StartSessionCommandOutput;
|
|
139
|
+
};
|
|
140
|
+
};
|
|
141
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import type { EMRClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EMRClient";
|
|
4
|
+
import type { TerminateSessionInput, TerminateSessionOutput } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link TerminateSessionCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface TerminateSessionCommandInput extends TerminateSessionInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link TerminateSessionCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface TerminateSessionCommandOutput extends TerminateSessionOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const TerminateSessionCommand_base: {
|
|
25
|
+
new (input: TerminateSessionCommandInput): import("@smithy/core/client").CommandImpl<TerminateSessionCommandInput, TerminateSessionCommandOutput, EMRClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: TerminateSessionCommandInput): import("@smithy/core/client").CommandImpl<TerminateSessionCommandInput, TerminateSessionCommandOutput, EMRClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): {
|
|
28
|
+
[x: string]: unknown;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* <p>Terminates an active session. After you call this operation, the session enters the <code>TERMINATING</code> state and then transitions to <code>TERMINATED</code>.</p>
|
|
33
|
+
* @example
|
|
34
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
35
|
+
* ```javascript
|
|
36
|
+
* import { EMRClient, TerminateSessionCommand } from "@aws-sdk/client-emr"; // ES Modules import
|
|
37
|
+
* // const { EMRClient, TerminateSessionCommand } = require("@aws-sdk/client-emr"); // CommonJS import
|
|
38
|
+
* // import type { EMRClientConfig } from "@aws-sdk/client-emr";
|
|
39
|
+
* const config = {}; // type is EMRClientConfig
|
|
40
|
+
* const client = new EMRClient(config);
|
|
41
|
+
* const input = { // TerminateSessionInput
|
|
42
|
+
* ClusterId: "STRING_VALUE", // required
|
|
43
|
+
* SessionId: "STRING_VALUE", // required
|
|
44
|
+
* };
|
|
45
|
+
* const command = new TerminateSessionCommand(input);
|
|
46
|
+
* const response = await client.send(command);
|
|
47
|
+
* // { // TerminateSessionOutput
|
|
48
|
+
* // ClusterId: "STRING_VALUE", // required
|
|
49
|
+
* // SessionId: "STRING_VALUE", // required
|
|
50
|
+
* // State: "SUBMITTED" || "STARTING" || "STARTED" || "IDLE" || "BUSY" || "TERMINATING" || "TERMINATED" || "FAILED", // required
|
|
51
|
+
* // };
|
|
52
|
+
*
|
|
53
|
+
* ```
|
|
54
|
+
*
|
|
55
|
+
* @param TerminateSessionCommandInput - {@link TerminateSessionCommandInput}
|
|
56
|
+
* @returns {@link TerminateSessionCommandOutput}
|
|
57
|
+
* @see {@link TerminateSessionCommandInput} for command's `input` shape.
|
|
58
|
+
* @see {@link TerminateSessionCommandOutput} for command's `response` shape.
|
|
59
|
+
* @see {@link EMRClientResolvedConfig | config} for EMRClient's `config` shape.
|
|
60
|
+
*
|
|
61
|
+
* @throws {@link InternalServerException} (server fault)
|
|
62
|
+
* <p>This exception occurs when there is an internal failure in the Amazon EMR
|
|
63
|
+
* service.</p>
|
|
64
|
+
*
|
|
65
|
+
* @throws {@link InvalidRequestException} (client fault)
|
|
66
|
+
* <p>This exception occurs when there is something wrong with user input.</p>
|
|
67
|
+
*
|
|
68
|
+
* @throws {@link EMRServiceException}
|
|
69
|
+
* <p>Base exception class for all service exceptions from EMR service.</p>
|
|
70
|
+
*
|
|
71
|
+
*
|
|
72
|
+
* @public
|
|
73
|
+
*/
|
|
74
|
+
export declare class TerminateSessionCommand extends TerminateSessionCommand_base {
|
|
75
|
+
/** @internal type navigation helper, not in runtime. */
|
|
76
|
+
protected static __types: {
|
|
77
|
+
api: {
|
|
78
|
+
input: TerminateSessionInput;
|
|
79
|
+
output: TerminateSessionOutput;
|
|
80
|
+
};
|
|
81
|
+
sdk: {
|
|
82
|
+
input: TerminateSessionCommandInput;
|
|
83
|
+
output: TerminateSessionCommandOutput;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
}
|
|
@@ -24,6 +24,8 @@ export * from "./GetClusterSessionCredentialsCommand";
|
|
|
24
24
|
export * from "./GetManagedScalingPolicyCommand";
|
|
25
25
|
export * from "./GetOnClusterAppUIPresignedURLCommand";
|
|
26
26
|
export * from "./GetPersistentAppUIPresignedURLCommand";
|
|
27
|
+
export * from "./GetSessionCommand";
|
|
28
|
+
export * from "./GetSessionEndpointCommand";
|
|
27
29
|
export * from "./GetStudioSessionMappingCommand";
|
|
28
30
|
export * from "./ListBootstrapActionsCommand";
|
|
29
31
|
export * from "./ListClustersCommand";
|
|
@@ -33,6 +35,7 @@ export * from "./ListInstancesCommand";
|
|
|
33
35
|
export * from "./ListNotebookExecutionsCommand";
|
|
34
36
|
export * from "./ListReleaseLabelsCommand";
|
|
35
37
|
export * from "./ListSecurityConfigurationsCommand";
|
|
38
|
+
export * from "./ListSessionsCommand";
|
|
36
39
|
export * from "./ListStepsCommand";
|
|
37
40
|
export * from "./ListStudioSessionMappingsCommand";
|
|
38
41
|
export * from "./ListStudiosCommand";
|
|
@@ -54,7 +57,9 @@ export * from "./SetTerminationProtectionCommand";
|
|
|
54
57
|
export * from "./SetUnhealthyNodeReplacementCommand";
|
|
55
58
|
export * from "./SetVisibleToAllUsersCommand";
|
|
56
59
|
export * from "./StartNotebookExecutionCommand";
|
|
60
|
+
export * from "./StartSessionCommand";
|
|
57
61
|
export * from "./StopNotebookExecutionCommand";
|
|
58
62
|
export * from "./TerminateJobFlowsCommand";
|
|
63
|
+
export * from "./TerminateSessionCommand";
|
|
59
64
|
export * from "./UpdateStudioCommand";
|
|
60
65
|
export * from "./UpdateStudioSessionMappingCommand";
|
|
@@ -584,6 +584,24 @@ export declare const OnClusterAppUIType: {
|
|
|
584
584
|
* @public
|
|
585
585
|
*/
|
|
586
586
|
export type OnClusterAppUIType = (typeof OnClusterAppUIType)[keyof typeof OnClusterAppUIType];
|
|
587
|
+
/**
|
|
588
|
+
* @public
|
|
589
|
+
* @enum
|
|
590
|
+
*/
|
|
591
|
+
export declare const SessionState: {
|
|
592
|
+
readonly BUSY: "BUSY";
|
|
593
|
+
readonly FAILED: "FAILED";
|
|
594
|
+
readonly IDLE: "IDLE";
|
|
595
|
+
readonly STARTED: "STARTED";
|
|
596
|
+
readonly STARTING: "STARTING";
|
|
597
|
+
readonly SUBMITTED: "SUBMITTED";
|
|
598
|
+
readonly TERMINATED: "TERMINATED";
|
|
599
|
+
readonly TERMINATING: "TERMINATING";
|
|
600
|
+
};
|
|
601
|
+
/**
|
|
602
|
+
* @public
|
|
603
|
+
*/
|
|
604
|
+
export type SessionState = (typeof SessionState)[keyof typeof SessionState];
|
|
587
605
|
/**
|
|
588
606
|
* @public
|
|
589
607
|
* @enum
|