@aws-sdk/client-emr-serverless 3.1034.0 → 3.1035.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.
Files changed (47) hide show
  1. package/README.md +42 -0
  2. package/dist-cjs/index.js +103 -0
  3. package/dist-cjs/schemas/schemas_0.js +140 -8
  4. package/dist-es/EMRServerless.js +14 -0
  5. package/dist-es/commands/GetResourceDashboardCommand.js +16 -0
  6. package/dist-es/commands/GetSessionCommand.js +16 -0
  7. package/dist-es/commands/GetSessionEndpointCommand.js +16 -0
  8. package/dist-es/commands/ListSessionsCommand.js +16 -0
  9. package/dist-es/commands/StartSessionCommand.js +16 -0
  10. package/dist-es/commands/TerminateSessionCommand.js +16 -0
  11. package/dist-es/commands/index.js +6 -0
  12. package/dist-es/models/enums.js +13 -0
  13. package/dist-es/pagination/ListSessionsPaginator.js +4 -0
  14. package/dist-es/pagination/index.js +1 -0
  15. package/dist-es/schemas/schemas_0.js +137 -6
  16. package/dist-types/EMRServerless.d.ts +49 -0
  17. package/dist-types/EMRServerlessClient.d.ts +8 -2
  18. package/dist-types/commands/CreateApplicationCommand.d.ts +1 -0
  19. package/dist-types/commands/GetApplicationCommand.d.ts +1 -0
  20. package/dist-types/commands/GetResourceDashboardCommand.d.ts +85 -0
  21. package/dist-types/commands/GetSessionCommand.d.ts +141 -0
  22. package/dist-types/commands/GetSessionEndpointCommand.d.ts +88 -0
  23. package/dist-types/commands/ListSessionsCommand.d.ts +105 -0
  24. package/dist-types/commands/StartSessionCommand.d.ts +117 -0
  25. package/dist-types/commands/TerminateSessionCommand.d.ts +85 -0
  26. package/dist-types/commands/UpdateApplicationCommand.d.ts +2 -0
  27. package/dist-types/commands/index.d.ts +6 -0
  28. package/dist-types/models/enums.d.ts +29 -0
  29. package/dist-types/models/models_0.d.ts +429 -1
  30. package/dist-types/pagination/ListSessionsPaginator.d.ts +7 -0
  31. package/dist-types/pagination/index.d.ts +1 -0
  32. package/dist-types/schemas/schemas_0.d.ts +21 -0
  33. package/dist-types/ts3.4/EMRServerless.d.ts +109 -0
  34. package/dist-types/ts3.4/EMRServerlessClient.d.ts +36 -0
  35. package/dist-types/ts3.4/commands/GetResourceDashboardCommand.d.ts +51 -0
  36. package/dist-types/ts3.4/commands/GetSessionCommand.d.ts +47 -0
  37. package/dist-types/ts3.4/commands/GetSessionEndpointCommand.d.ts +51 -0
  38. package/dist-types/ts3.4/commands/ListSessionsCommand.d.ts +47 -0
  39. package/dist-types/ts3.4/commands/StartSessionCommand.d.ts +47 -0
  40. package/dist-types/ts3.4/commands/TerminateSessionCommand.d.ts +50 -0
  41. package/dist-types/ts3.4/commands/index.d.ts +6 -0
  42. package/dist-types/ts3.4/models/enums.d.ts +15 -0
  43. package/dist-types/ts3.4/models/models_0.d.ts +102 -0
  44. package/dist-types/ts3.4/pagination/ListSessionsPaginator.d.ts +11 -0
  45. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  46. package/dist-types/ts3.4/schemas/schemas_0.d.ts +21 -0
  47. package/package.json +5 -5
@@ -0,0 +1,85 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { EMRServerlessClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EMRServerlessClient";
4
+ import type { GetResourceDashboardRequest, GetResourceDashboardResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link GetResourceDashboardCommand}.
14
+ */
15
+ export interface GetResourceDashboardCommandInput extends GetResourceDashboardRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetResourceDashboardCommand}.
21
+ */
22
+ export interface GetResourceDashboardCommandOutput extends GetResourceDashboardResponse, __MetadataBearer {
23
+ }
24
+ declare const GetResourceDashboardCommand_base: {
25
+ new (input: GetResourceDashboardCommandInput): import("@smithy/smithy-client").CommandImpl<GetResourceDashboardCommandInput, GetResourceDashboardCommandOutput, EMRServerlessClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: GetResourceDashboardCommandInput): import("@smithy/smithy-client").CommandImpl<GetResourceDashboardCommandInput, GetResourceDashboardCommandOutput, EMRServerlessClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Returns a URL that you can use to access the application UIs for a specified resource, such as a session.</p> <p>For resources in a running state, the application UI is a live user interface such as the Spark web UI. For terminated resources, the application UI is a persistent application user interface such as the Spark History Server.</p> <note> <p>The URL is valid for one hour after you generate it. To access the application UI after that hour elapses, you must invoke the API again to generate a new URL.</p> </note>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { EMRServerlessClient, GetResourceDashboardCommand } from "@aws-sdk/client-emr-serverless"; // ES Modules import
35
+ * // const { EMRServerlessClient, GetResourceDashboardCommand } = require("@aws-sdk/client-emr-serverless"); // CommonJS import
36
+ * // import type { EMRServerlessClientConfig } from "@aws-sdk/client-emr-serverless";
37
+ * const config = {}; // type is EMRServerlessClientConfig
38
+ * const client = new EMRServerlessClient(config);
39
+ * const input = { // GetResourceDashboardRequest
40
+ * applicationId: "STRING_VALUE", // required
41
+ * resourceId: "STRING_VALUE", // required
42
+ * resourceType: "STRING_VALUE", // required
43
+ * };
44
+ * const command = new GetResourceDashboardCommand(input);
45
+ * const response = await client.send(command);
46
+ * // { // GetResourceDashboardResponse
47
+ * // url: "STRING_VALUE",
48
+ * // };
49
+ *
50
+ * ```
51
+ *
52
+ * @param GetResourceDashboardCommandInput - {@link GetResourceDashboardCommandInput}
53
+ * @returns {@link GetResourceDashboardCommandOutput}
54
+ * @see {@link GetResourceDashboardCommandInput} for command's `input` shape.
55
+ * @see {@link GetResourceDashboardCommandOutput} for command's `response` shape.
56
+ * @see {@link EMRServerlessClientResolvedConfig | config} for EMRServerlessClient's `config` shape.
57
+ *
58
+ * @throws {@link InternalServerException} (server fault)
59
+ * <p>Request processing failed because of an error or failure with the service.</p>
60
+ *
61
+ * @throws {@link ResourceNotFoundException} (client fault)
62
+ * <p>The specified resource was not found.</p>
63
+ *
64
+ * @throws {@link ValidationException} (client fault)
65
+ * <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p>
66
+ *
67
+ * @throws {@link EMRServerlessServiceException}
68
+ * <p>Base exception class for all service exceptions from EMRServerless service.</p>
69
+ *
70
+ *
71
+ * @public
72
+ */
73
+ export declare class GetResourceDashboardCommand extends GetResourceDashboardCommand_base {
74
+ /** @internal type navigation helper, not in runtime. */
75
+ protected static __types: {
76
+ api: {
77
+ input: GetResourceDashboardRequest;
78
+ output: GetResourceDashboardResponse;
79
+ };
80
+ sdk: {
81
+ input: GetResourceDashboardCommandInput;
82
+ output: GetResourceDashboardCommandOutput;
83
+ };
84
+ };
85
+ }
@@ -0,0 +1,141 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { EMRServerlessClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EMRServerlessClient";
4
+ import type { GetSessionRequest, GetSessionResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link GetSessionCommand}.
14
+ */
15
+ export interface GetSessionCommandInput extends GetSessionRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetSessionCommand}.
21
+ */
22
+ export interface GetSessionCommandOutput extends GetSessionResponse, __MetadataBearer {
23
+ }
24
+ declare const GetSessionCommand_base: {
25
+ new (input: GetSessionCommandInput): import("@smithy/smithy-client").CommandImpl<GetSessionCommandInput, GetSessionCommandOutput, EMRServerlessClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: GetSessionCommandInput): import("@smithy/smithy-client").CommandImpl<GetSessionCommandInput, GetSessionCommandOutput, EMRServerlessClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Displays detailed information about a session.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { EMRServerlessClient, GetSessionCommand } from "@aws-sdk/client-emr-serverless"; // ES Modules import
35
+ * // const { EMRServerlessClient, GetSessionCommand } = require("@aws-sdk/client-emr-serverless"); // CommonJS import
36
+ * // import type { EMRServerlessClientConfig } from "@aws-sdk/client-emr-serverless";
37
+ * const config = {}; // type is EMRServerlessClientConfig
38
+ * const client = new EMRServerlessClient(config);
39
+ * const input = { // GetSessionRequest
40
+ * applicationId: "STRING_VALUE", // required
41
+ * sessionId: "STRING_VALUE", // required
42
+ * };
43
+ * const command = new GetSessionCommand(input);
44
+ * const response = await client.send(command);
45
+ * // { // GetSessionResponse
46
+ * // session: { // Session
47
+ * // applicationId: "STRING_VALUE", // required
48
+ * // sessionId: "STRING_VALUE", // required
49
+ * // arn: "STRING_VALUE", // required
50
+ * // name: "STRING_VALUE",
51
+ * // state: "STRING_VALUE", // required
52
+ * // stateDetails: "STRING_VALUE", // required
53
+ * // releaseLabel: "STRING_VALUE", // required
54
+ * // executionRoleArn: "STRING_VALUE", // required
55
+ * // createdBy: "STRING_VALUE", // required
56
+ * // createdAt: new Date("TIMESTAMP"), // required
57
+ * // updatedAt: new Date("TIMESTAMP"), // required
58
+ * // startedAt: new Date("TIMESTAMP"),
59
+ * // endedAt: new Date("TIMESTAMP"),
60
+ * // idleSince: new Date("TIMESTAMP"),
61
+ * // configurationOverrides: { // SessionConfigurationOverrides
62
+ * // runtimeConfiguration: [ // ConfigurationList
63
+ * // { // Configuration
64
+ * // classification: "STRING_VALUE", // required
65
+ * // properties: { // SensitivePropertiesMap
66
+ * // "<keys>": "STRING_VALUE",
67
+ * // },
68
+ * // configurations: [
69
+ * // {
70
+ * // classification: "STRING_VALUE", // required
71
+ * // properties: {
72
+ * // "<keys>": "STRING_VALUE",
73
+ * // },
74
+ * // configurations: "<ConfigurationList>",
75
+ * // },
76
+ * // ],
77
+ * // },
78
+ * // ],
79
+ * // },
80
+ * // networkConfiguration: { // NetworkConfiguration
81
+ * // subnetIds: [ // SubnetIds
82
+ * // "STRING_VALUE",
83
+ * // ],
84
+ * // securityGroupIds: [ // SecurityGroupIds
85
+ * // "STRING_VALUE",
86
+ * // ],
87
+ * // },
88
+ * // idleTimeoutMinutes: Number("long"),
89
+ * // tags: { // TagMap
90
+ * // "<keys>": "STRING_VALUE",
91
+ * // },
92
+ * // totalResourceUtilization: { // TotalResourceUtilization
93
+ * // vCPUHour: Number("double"),
94
+ * // memoryGBHour: Number("double"),
95
+ * // storageGBHour: Number("double"),
96
+ * // },
97
+ * // billedResourceUtilization: { // ResourceUtilization
98
+ * // vCPUHour: Number("double"),
99
+ * // memoryGBHour: Number("double"),
100
+ * // storageGBHour: Number("double"),
101
+ * // },
102
+ * // totalExecutionDurationSeconds: Number("long"),
103
+ * // },
104
+ * // };
105
+ *
106
+ * ```
107
+ *
108
+ * @param GetSessionCommandInput - {@link GetSessionCommandInput}
109
+ * @returns {@link GetSessionCommandOutput}
110
+ * @see {@link GetSessionCommandInput} for command's `input` shape.
111
+ * @see {@link GetSessionCommandOutput} for command's `response` shape.
112
+ * @see {@link EMRServerlessClientResolvedConfig | config} for EMRServerlessClient's `config` shape.
113
+ *
114
+ * @throws {@link InternalServerException} (server fault)
115
+ * <p>Request processing failed because of an error or failure with the service.</p>
116
+ *
117
+ * @throws {@link ResourceNotFoundException} (client fault)
118
+ * <p>The specified resource was not found.</p>
119
+ *
120
+ * @throws {@link ValidationException} (client fault)
121
+ * <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p>
122
+ *
123
+ * @throws {@link EMRServerlessServiceException}
124
+ * <p>Base exception class for all service exceptions from EMRServerless service.</p>
125
+ *
126
+ *
127
+ * @public
128
+ */
129
+ export declare class GetSessionCommand extends GetSessionCommand_base {
130
+ /** @internal type navigation helper, not in runtime. */
131
+ protected static __types: {
132
+ api: {
133
+ input: GetSessionRequest;
134
+ output: GetSessionResponse;
135
+ };
136
+ sdk: {
137
+ input: GetSessionCommandInput;
138
+ output: GetSessionCommandOutput;
139
+ };
140
+ };
141
+ }
@@ -0,0 +1,88 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { EMRServerlessClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EMRServerlessClient";
4
+ import type { GetSessionEndpointRequest, GetSessionEndpointResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link GetSessionEndpointCommand}.
14
+ */
15
+ export interface GetSessionEndpointCommandInput extends GetSessionEndpointRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetSessionEndpointCommand}.
21
+ */
22
+ export interface GetSessionEndpointCommandOutput extends GetSessionEndpointResponse, __MetadataBearer {
23
+ }
24
+ declare const GetSessionEndpointCommand_base: {
25
+ new (input: GetSessionEndpointCommandInput): import("@smithy/smithy-client").CommandImpl<GetSessionEndpointCommandInput, GetSessionEndpointCommandOutput, EMRServerlessClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: GetSessionEndpointCommandInput): import("@smithy/smithy-client").CommandImpl<GetSessionEndpointCommandInput, GetSessionEndpointCommandOutput, EMRServerlessClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Returns the session endpoint URL and a time-limited authentication token for the specified session. Use the endpoint and token to connect a client to the session. Call this operation again when the authentication token expires to obtain a new token.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { EMRServerlessClient, GetSessionEndpointCommand } from "@aws-sdk/client-emr-serverless"; // ES Modules import
35
+ * // const { EMRServerlessClient, GetSessionEndpointCommand } = require("@aws-sdk/client-emr-serverless"); // CommonJS import
36
+ * // import type { EMRServerlessClientConfig } from "@aws-sdk/client-emr-serverless";
37
+ * const config = {}; // type is EMRServerlessClientConfig
38
+ * const client = new EMRServerlessClient(config);
39
+ * const input = { // GetSessionEndpointRequest
40
+ * applicationId: "STRING_VALUE", // required
41
+ * sessionId: "STRING_VALUE", // required
42
+ * };
43
+ * const command = new GetSessionEndpointCommand(input);
44
+ * const response = await client.send(command);
45
+ * // { // GetSessionEndpointResponse
46
+ * // applicationId: "STRING_VALUE", // required
47
+ * // sessionId: "STRING_VALUE", // required
48
+ * // endpoint: "STRING_VALUE", // required
49
+ * // authToken: "STRING_VALUE", // required
50
+ * // authTokenExpiresAt: new Date("TIMESTAMP"), // required
51
+ * // };
52
+ *
53
+ * ```
54
+ *
55
+ * @param GetSessionEndpointCommandInput - {@link GetSessionEndpointCommandInput}
56
+ * @returns {@link GetSessionEndpointCommandOutput}
57
+ * @see {@link GetSessionEndpointCommandInput} for command's `input` shape.
58
+ * @see {@link GetSessionEndpointCommandOutput} for command's `response` shape.
59
+ * @see {@link EMRServerlessClientResolvedConfig | config} for EMRServerlessClient's `config` shape.
60
+ *
61
+ * @throws {@link InternalServerException} (server fault)
62
+ * <p>Request processing failed because of an error or failure with the service.</p>
63
+ *
64
+ * @throws {@link ResourceNotFoundException} (client fault)
65
+ * <p>The specified resource was not found.</p>
66
+ *
67
+ * @throws {@link ValidationException} (client fault)
68
+ * <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p>
69
+ *
70
+ * @throws {@link EMRServerlessServiceException}
71
+ * <p>Base exception class for all service exceptions from EMRServerless service.</p>
72
+ *
73
+ *
74
+ * @public
75
+ */
76
+ export declare class GetSessionEndpointCommand extends GetSessionEndpointCommand_base {
77
+ /** @internal type navigation helper, not in runtime. */
78
+ protected static __types: {
79
+ api: {
80
+ input: GetSessionEndpointRequest;
81
+ output: GetSessionEndpointResponse;
82
+ };
83
+ sdk: {
84
+ input: GetSessionEndpointCommandInput;
85
+ output: GetSessionEndpointCommandOutput;
86
+ };
87
+ };
88
+ }
@@ -0,0 +1,105 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { EMRServerlessClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EMRServerlessClient";
4
+ import type { ListSessionsRequest, ListSessionsResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ListSessionsCommand}.
14
+ */
15
+ export interface ListSessionsCommandInput extends ListSessionsRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListSessionsCommand}.
21
+ */
22
+ export interface ListSessionsCommandOutput extends ListSessionsResponse, __MetadataBearer {
23
+ }
24
+ declare const ListSessionsCommand_base: {
25
+ new (input: ListSessionsCommandInput): import("@smithy/smithy-client").CommandImpl<ListSessionsCommandInput, ListSessionsCommandOutput, EMRServerlessClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: ListSessionsCommandInput): import("@smithy/smithy-client").CommandImpl<ListSessionsCommandInput, ListSessionsCommandOutput, EMRServerlessClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Lists sessions for the specified application. You can filter sessions by state and creation time.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { EMRServerlessClient, ListSessionsCommand } from "@aws-sdk/client-emr-serverless"; // ES Modules import
35
+ * // const { EMRServerlessClient, ListSessionsCommand } = require("@aws-sdk/client-emr-serverless"); // CommonJS import
36
+ * // import type { EMRServerlessClientConfig } from "@aws-sdk/client-emr-serverless";
37
+ * const config = {}; // type is EMRServerlessClientConfig
38
+ * const client = new EMRServerlessClient(config);
39
+ * const input = { // ListSessionsRequest
40
+ * applicationId: "STRING_VALUE", // required
41
+ * nextToken: "STRING_VALUE",
42
+ * maxResults: Number("int"),
43
+ * states: [ // SessionStateSet
44
+ * "STRING_VALUE",
45
+ * ],
46
+ * createdAtAfter: new Date("TIMESTAMP"),
47
+ * createdAtBefore: new Date("TIMESTAMP"),
48
+ * };
49
+ * const command = new ListSessionsCommand(input);
50
+ * const response = await client.send(command);
51
+ * // { // ListSessionsResponse
52
+ * // sessions: [ // Sessions // required
53
+ * // { // SessionSummary
54
+ * // applicationId: "STRING_VALUE", // required
55
+ * // sessionId: "STRING_VALUE", // required
56
+ * // arn: "STRING_VALUE", // required
57
+ * // name: "STRING_VALUE",
58
+ * // state: "STRING_VALUE", // required
59
+ * // stateDetails: "STRING_VALUE", // required
60
+ * // releaseLabel: "STRING_VALUE", // required
61
+ * // executionRoleArn: "STRING_VALUE", // required
62
+ * // createdBy: "STRING_VALUE", // required
63
+ * // createdAt: new Date("TIMESTAMP"), // required
64
+ * // updatedAt: new Date("TIMESTAMP"), // required
65
+ * // },
66
+ * // ],
67
+ * // nextToken: "STRING_VALUE",
68
+ * // };
69
+ *
70
+ * ```
71
+ *
72
+ * @param ListSessionsCommandInput - {@link ListSessionsCommandInput}
73
+ * @returns {@link ListSessionsCommandOutput}
74
+ * @see {@link ListSessionsCommandInput} for command's `input` shape.
75
+ * @see {@link ListSessionsCommandOutput} for command's `response` shape.
76
+ * @see {@link EMRServerlessClientResolvedConfig | config} for EMRServerlessClient's `config` shape.
77
+ *
78
+ * @throws {@link InternalServerException} (server fault)
79
+ * <p>Request processing failed because of an error or failure with the service.</p>
80
+ *
81
+ * @throws {@link ResourceNotFoundException} (client fault)
82
+ * <p>The specified resource was not found.</p>
83
+ *
84
+ * @throws {@link ValidationException} (client fault)
85
+ * <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p>
86
+ *
87
+ * @throws {@link EMRServerlessServiceException}
88
+ * <p>Base exception class for all service exceptions from EMRServerless service.</p>
89
+ *
90
+ *
91
+ * @public
92
+ */
93
+ export declare class ListSessionsCommand extends ListSessionsCommand_base {
94
+ /** @internal type navigation helper, not in runtime. */
95
+ protected static __types: {
96
+ api: {
97
+ input: ListSessionsRequest;
98
+ output: ListSessionsResponse;
99
+ };
100
+ sdk: {
101
+ input: ListSessionsCommandInput;
102
+ output: ListSessionsCommandOutput;
103
+ };
104
+ };
105
+ }
@@ -0,0 +1,117 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { EMRServerlessClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EMRServerlessClient";
4
+ import type { StartSessionRequest, StartSessionResponse } 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 StartSessionRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link StartSessionCommand}.
21
+ */
22
+ export interface StartSessionCommandOutput extends StartSessionResponse, __MetadataBearer {
23
+ }
24
+ declare const StartSessionCommand_base: {
25
+ new (input: StartSessionCommandInput): import("@smithy/smithy-client").CommandImpl<StartSessionCommandInput, StartSessionCommandOutput, EMRServerlessClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: StartSessionCommandInput): import("@smithy/smithy-client").CommandImpl<StartSessionCommandInput, StartSessionCommandOutput, EMRServerlessClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Creates and starts a new session on the specified application. The application must be in the <code>STARTED</code> state or have <code>AutoStart</code> enabled, and have interactive sessions enabled. This operation is supported for EMR release 7.13.0 and later.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { EMRServerlessClient, StartSessionCommand } from "@aws-sdk/client-emr-serverless"; // ES Modules import
35
+ * // const { EMRServerlessClient, StartSessionCommand } = require("@aws-sdk/client-emr-serverless"); // CommonJS import
36
+ * // import type { EMRServerlessClientConfig } from "@aws-sdk/client-emr-serverless";
37
+ * const config = {}; // type is EMRServerlessClientConfig
38
+ * const client = new EMRServerlessClient(config);
39
+ * const input = { // StartSessionRequest
40
+ * applicationId: "STRING_VALUE", // required
41
+ * clientToken: "STRING_VALUE", // required
42
+ * executionRoleArn: "STRING_VALUE", // required
43
+ * configurationOverrides: { // SessionConfigurationOverrides
44
+ * runtimeConfiguration: [ // ConfigurationList
45
+ * { // Configuration
46
+ * classification: "STRING_VALUE", // required
47
+ * properties: { // SensitivePropertiesMap
48
+ * "<keys>": "STRING_VALUE",
49
+ * },
50
+ * configurations: [
51
+ * {
52
+ * classification: "STRING_VALUE", // required
53
+ * properties: {
54
+ * "<keys>": "STRING_VALUE",
55
+ * },
56
+ * configurations: "<ConfigurationList>",
57
+ * },
58
+ * ],
59
+ * },
60
+ * ],
61
+ * },
62
+ * tags: { // TagMap
63
+ * "<keys>": "STRING_VALUE",
64
+ * },
65
+ * idleTimeoutMinutes: Number("long"),
66
+ * name: "STRING_VALUE",
67
+ * };
68
+ * const command = new StartSessionCommand(input);
69
+ * const response = await client.send(command);
70
+ * // { // StartSessionResponse
71
+ * // applicationId: "STRING_VALUE", // required
72
+ * // sessionId: "STRING_VALUE", // required
73
+ * // arn: "STRING_VALUE", // required
74
+ * // };
75
+ *
76
+ * ```
77
+ *
78
+ * @param StartSessionCommandInput - {@link StartSessionCommandInput}
79
+ * @returns {@link StartSessionCommandOutput}
80
+ * @see {@link StartSessionCommandInput} for command's `input` shape.
81
+ * @see {@link StartSessionCommandOutput} for command's `response` shape.
82
+ * @see {@link EMRServerlessClientResolvedConfig | config} for EMRServerlessClient's `config` shape.
83
+ *
84
+ * @throws {@link ConflictException} (client fault)
85
+ * <p>The request could not be processed because of conflict in the current state of the resource.</p>
86
+ *
87
+ * @throws {@link InternalServerException} (server fault)
88
+ * <p>Request processing failed because of an error or failure with the service.</p>
89
+ *
90
+ * @throws {@link ResourceNotFoundException} (client fault)
91
+ * <p>The specified resource was not found.</p>
92
+ *
93
+ * @throws {@link ServiceQuotaExceededException} (client fault)
94
+ * <p>The maximum number of resources per account has been reached.</p>
95
+ *
96
+ * @throws {@link ValidationException} (client fault)
97
+ * <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p>
98
+ *
99
+ * @throws {@link EMRServerlessServiceException}
100
+ * <p>Base exception class for all service exceptions from EMRServerless service.</p>
101
+ *
102
+ *
103
+ * @public
104
+ */
105
+ export declare class StartSessionCommand extends StartSessionCommand_base {
106
+ /** @internal type navigation helper, not in runtime. */
107
+ protected static __types: {
108
+ api: {
109
+ input: StartSessionRequest;
110
+ output: StartSessionResponse;
111
+ };
112
+ sdk: {
113
+ input: StartSessionCommandInput;
114
+ output: StartSessionCommandOutput;
115
+ };
116
+ };
117
+ }
@@ -0,0 +1,85 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { EMRServerlessClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EMRServerlessClient";
4
+ import type { TerminateSessionRequest, TerminateSessionResponse } 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 TerminateSessionRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link TerminateSessionCommand}.
21
+ */
22
+ export interface TerminateSessionCommandOutput extends TerminateSessionResponse, __MetadataBearer {
23
+ }
24
+ declare const TerminateSessionCommand_base: {
25
+ new (input: TerminateSessionCommandInput): import("@smithy/smithy-client").CommandImpl<TerminateSessionCommandInput, TerminateSessionCommandOutput, EMRServerlessClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: TerminateSessionCommandInput): import("@smithy/smithy-client").CommandImpl<TerminateSessionCommandInput, TerminateSessionCommandOutput, EMRServerlessClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Terminates the specified session. After you terminate a session, it enters the <code>TERMINATING</code> state and then the <code>TERMINATED</code> state. You can still access the Spark History Server for a terminated session through the <code>GetResourceDashboard</code> operation.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { EMRServerlessClient, TerminateSessionCommand } from "@aws-sdk/client-emr-serverless"; // ES Modules import
35
+ * // const { EMRServerlessClient, TerminateSessionCommand } = require("@aws-sdk/client-emr-serverless"); // CommonJS import
36
+ * // import type { EMRServerlessClientConfig } from "@aws-sdk/client-emr-serverless";
37
+ * const config = {}; // type is EMRServerlessClientConfig
38
+ * const client = new EMRServerlessClient(config);
39
+ * const input = { // TerminateSessionRequest
40
+ * applicationId: "STRING_VALUE", // required
41
+ * sessionId: "STRING_VALUE", // required
42
+ * };
43
+ * const command = new TerminateSessionCommand(input);
44
+ * const response = await client.send(command);
45
+ * // { // TerminateSessionResponse
46
+ * // applicationId: "STRING_VALUE", // required
47
+ * // sessionId: "STRING_VALUE", // required
48
+ * // };
49
+ *
50
+ * ```
51
+ *
52
+ * @param TerminateSessionCommandInput - {@link TerminateSessionCommandInput}
53
+ * @returns {@link TerminateSessionCommandOutput}
54
+ * @see {@link TerminateSessionCommandInput} for command's `input` shape.
55
+ * @see {@link TerminateSessionCommandOutput} for command's `response` shape.
56
+ * @see {@link EMRServerlessClientResolvedConfig | config} for EMRServerlessClient's `config` shape.
57
+ *
58
+ * @throws {@link InternalServerException} (server fault)
59
+ * <p>Request processing failed because of an error or failure with the service.</p>
60
+ *
61
+ * @throws {@link ResourceNotFoundException} (client fault)
62
+ * <p>The specified resource was not found.</p>
63
+ *
64
+ * @throws {@link ValidationException} (client fault)
65
+ * <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p>
66
+ *
67
+ * @throws {@link EMRServerlessServiceException}
68
+ * <p>Base exception class for all service exceptions from EMRServerless service.</p>
69
+ *
70
+ *
71
+ * @public
72
+ */
73
+ export declare class TerminateSessionCommand extends TerminateSessionCommand_base {
74
+ /** @internal type navigation helper, not in runtime. */
75
+ protected static __types: {
76
+ api: {
77
+ input: TerminateSessionRequest;
78
+ output: TerminateSessionResponse;
79
+ };
80
+ sdk: {
81
+ input: TerminateSessionCommandInput;
82
+ output: TerminateSessionCommandOutput;
83
+ };
84
+ };
85
+ }
@@ -84,6 +84,7 @@ declare const UpdateApplicationCommand_base: {
84
84
  * interactiveConfiguration: { // InteractiveConfiguration
85
85
  * studioEnabled: true || false,
86
86
  * livyEndpointEnabled: true || false,
87
+ * sessionEnabled: true || false,
87
88
  * },
88
89
  * releaseLabel: "STRING_VALUE",
89
90
  * runtimeConfiguration: [ // ConfigurationList
@@ -255,6 +256,7 @@ declare const UpdateApplicationCommand_base: {
255
256
  * // interactiveConfiguration: { // InteractiveConfiguration
256
257
  * // studioEnabled: true || false,
257
258
  * // livyEndpointEnabled: true || false,
259
+ * // sessionEnabled: true || false,
258
260
  * // },
259
261
  * // schedulerConfiguration: { // SchedulerConfiguration
260
262
  * // queueTimeoutMinutes: Number("int"),
@@ -4,13 +4,19 @@ export * from "./DeleteApplicationCommand";
4
4
  export * from "./GetApplicationCommand";
5
5
  export * from "./GetDashboardForJobRunCommand";
6
6
  export * from "./GetJobRunCommand";
7
+ export * from "./GetResourceDashboardCommand";
8
+ export * from "./GetSessionCommand";
9
+ export * from "./GetSessionEndpointCommand";
7
10
  export * from "./ListApplicationsCommand";
8
11
  export * from "./ListJobRunAttemptsCommand";
9
12
  export * from "./ListJobRunsCommand";
13
+ export * from "./ListSessionsCommand";
10
14
  export * from "./ListTagsForResourceCommand";
11
15
  export * from "./StartApplicationCommand";
12
16
  export * from "./StartJobRunCommand";
17
+ export * from "./StartSessionCommand";
13
18
  export * from "./StopApplicationCommand";
14
19
  export * from "./TagResourceCommand";
20
+ export * from "./TerminateSessionCommand";
15
21
  export * from "./UntagResourceCommand";
16
22
  export * from "./UpdateApplicationCommand";