@aws-sdk/client-emr-serverless 3.180.0 → 3.183.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/CHANGELOG.md +25 -0
  2. package/dist-cjs/EMRServerless.js +15 -0
  3. package/dist-cjs/commands/GetDashboardForJobRunCommand.js +36 -0
  4. package/dist-cjs/commands/index.js +1 -0
  5. package/dist-cjs/models/models_0.js +10 -2
  6. package/dist-cjs/protocols/Aws_restJson1.js +82 -23
  7. package/dist-es/EMRServerless.js +72 -64
  8. package/dist-es/EMRServerlessClient.js +22 -28
  9. package/dist-es/commands/CancelJobRunCommand.js +21 -28
  10. package/dist-es/commands/CreateApplicationCommand.js +21 -28
  11. package/dist-es/commands/DeleteApplicationCommand.js +21 -28
  12. package/dist-es/commands/GetApplicationCommand.js +21 -28
  13. package/dist-es/commands/GetDashboardForJobRunCommand.js +32 -0
  14. package/dist-es/commands/GetJobRunCommand.js +21 -28
  15. package/dist-es/commands/ListApplicationsCommand.js +21 -28
  16. package/dist-es/commands/ListJobRunsCommand.js +21 -28
  17. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  18. package/dist-es/commands/StartApplicationCommand.js +21 -28
  19. package/dist-es/commands/StartJobRunCommand.js +21 -28
  20. package/dist-es/commands/StopApplicationCommand.js +21 -28
  21. package/dist-es/commands/TagResourceCommand.js +21 -28
  22. package/dist-es/commands/UntagResourceCommand.js +21 -28
  23. package/dist-es/commands/UpdateApplicationCommand.js +21 -28
  24. package/dist-es/commands/index.js +1 -0
  25. package/dist-es/endpoints.js +8 -8
  26. package/dist-es/models/EMRServerlessServiceException.js +5 -10
  27. package/dist-es/models/models_0.js +224 -114
  28. package/dist-es/pagination/ListApplicationsPaginator.js +25 -68
  29. package/dist-es/pagination/ListJobRunsPaginator.js +25 -68
  30. package/dist-es/protocols/Aws_restJson1.js +1150 -1455
  31. package/dist-es/runtimeConfig.browser.js +26 -12
  32. package/dist-es/runtimeConfig.js +30 -12
  33. package/dist-es/runtimeConfig.native.js +8 -5
  34. package/dist-es/runtimeConfig.shared.js +8 -11
  35. package/dist-types/EMRServerless.d.ts +7 -0
  36. package/dist-types/EMRServerlessClient.d.ts +3 -2
  37. package/dist-types/commands/GetDashboardForJobRunCommand.d.ts +35 -0
  38. package/dist-types/commands/index.d.ts +1 -0
  39. package/dist-types/models/models_0.d.ts +68 -22
  40. package/dist-types/protocols/Aws_restJson1.d.ts +3 -0
  41. package/dist-types/ts3.4/EMRServerless.d.ts +17 -0
  42. package/dist-types/ts3.4/EMRServerlessClient.d.ts +6 -0
  43. package/dist-types/ts3.4/commands/GetDashboardForJobRunCommand.d.ts +39 -0
  44. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  45. package/dist-types/ts3.4/models/models_0.d.ts +13 -0
  46. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
  47. package/package.json +33 -33
@@ -1,4 +1,3 @@
1
- import { __assign, __awaiter, __generator } from "tslib";
2
1
  import packageInfo from "../package.json";
3
2
  import { Sha256 } from "@aws-crypto/sha256-browser";
4
3
  import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
@@ -12,15 +11,30 @@ import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
12
11
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
13
12
  import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
14
13
  import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-browser";
15
- export var getRuntimeConfig = function (config) {
16
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
17
- var defaultsMode = resolveDefaultsModeConfig(config);
18
- var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
19
- var clientSharedValues = getSharedRuntimeConfig(config);
20
- return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
21
- switch (_a.label) {
22
- case 0: return [4, defaultConfigProvider()];
23
- case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
24
- }
25
- }); }); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
14
+ export const getRuntimeConfig = (config) => {
15
+ const defaultsMode = resolveDefaultsModeConfig(config);
16
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
17
+ const clientSharedValues = getSharedRuntimeConfig(config);
18
+ return {
19
+ ...clientSharedValues,
20
+ ...config,
21
+ runtime: "browser",
22
+ defaultsMode,
23
+ base64Decoder: config?.base64Decoder ?? fromBase64,
24
+ base64Encoder: config?.base64Encoder ?? toBase64,
25
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
26
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
27
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ??
28
+ defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
29
+ maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
30
+ region: config?.region ?? invalidProvider("Region is missing"),
31
+ requestHandler: config?.requestHandler ?? new RequestHandler(defaultConfigProvider),
32
+ retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
33
+ sha256: config?.sha256 ?? Sha256,
34
+ streamCollector: config?.streamCollector ?? streamCollector,
35
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
36
+ useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
37
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
38
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
39
+ };
26
40
  };
@@ -1,4 +1,3 @@
1
- import { __assign, __awaiter, __generator } from "tslib";
2
1
  import packageInfo from "../package.json";
3
2
  import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
4
3
  import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
@@ -15,16 +14,35 @@ import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shar
15
14
  import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
16
15
  import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-node";
17
16
  import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
18
- export var getRuntimeConfig = function (config) {
19
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
17
+ export const getRuntimeConfig = (config) => {
20
18
  emitWarningIfUnsupportedVersion(process.version);
21
- var defaultsMode = resolveDefaultsModeConfig(config);
22
- var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
23
- var clientSharedValues = getSharedRuntimeConfig(config);
24
- return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(__assign(__assign({}, NODE_RETRY_MODE_CONFIG_OPTIONS), { default: function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
25
- switch (_a.label) {
26
- case 0: return [4, defaultConfigProvider()];
27
- case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
28
- }
29
- }); }); } })), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
19
+ const defaultsMode = resolveDefaultsModeConfig(config);
20
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
21
+ const clientSharedValues = getSharedRuntimeConfig(config);
22
+ return {
23
+ ...clientSharedValues,
24
+ ...config,
25
+ runtime: "node",
26
+ defaultsMode,
27
+ base64Decoder: config?.base64Decoder ?? fromBase64,
28
+ base64Encoder: config?.base64Encoder ?? toBase64,
29
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
30
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider),
31
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ??
32
+ defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
33
+ maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
34
+ region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS),
35
+ requestHandler: config?.requestHandler ?? new RequestHandler(defaultConfigProvider),
36
+ retryMode: config?.retryMode ??
37
+ loadNodeConfig({
38
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
39
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
40
+ }),
41
+ sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
42
+ streamCollector: config?.streamCollector ?? streamCollector,
43
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
44
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
45
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
46
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
47
+ };
30
48
  };
@@ -1,8 +1,11 @@
1
- import { __assign } from "tslib";
2
1
  import { Sha256 } from "@aws-crypto/sha256-js";
3
2
  import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
4
- export var getRuntimeConfig = function (config) {
5
- var _a;
6
- var browserDefaults = getBrowserRuntimeConfig(config);
7
- return __assign(__assign(__assign({}, browserDefaults), config), { runtime: "react-native", sha256: (_a = config === null || config === void 0 ? void 0 : config.sha256) !== null && _a !== void 0 ? _a : Sha256 });
3
+ export const getRuntimeConfig = (config) => {
4
+ const browserDefaults = getBrowserRuntimeConfig(config);
5
+ return {
6
+ ...browserDefaults,
7
+ ...config,
8
+ runtime: "react-native",
9
+ sha256: config?.sha256 ?? Sha256,
10
+ };
8
11
  };
@@ -1,13 +1,10 @@
1
1
  import { parseUrl } from "@aws-sdk/url-parser";
2
2
  import { defaultRegionInfoProvider } from "./endpoints";
3
- export var getRuntimeConfig = function (config) {
4
- var _a, _b, _c, _d, _e;
5
- return ({
6
- apiVersion: "2021-07-13",
7
- disableHostPrefix: (_a = config === null || config === void 0 ? void 0 : config.disableHostPrefix) !== null && _a !== void 0 ? _a : false,
8
- logger: (_b = config === null || config === void 0 ? void 0 : config.logger) !== null && _b !== void 0 ? _b : {},
9
- regionInfoProvider: (_c = config === null || config === void 0 ? void 0 : config.regionInfoProvider) !== null && _c !== void 0 ? _c : defaultRegionInfoProvider,
10
- serviceId: (_d = config === null || config === void 0 ? void 0 : config.serviceId) !== null && _d !== void 0 ? _d : "EMR Serverless",
11
- urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : parseUrl,
12
- });
13
- };
3
+ export const getRuntimeConfig = (config) => ({
4
+ apiVersion: "2021-07-13",
5
+ disableHostPrefix: config?.disableHostPrefix ?? false,
6
+ logger: config?.logger ?? {},
7
+ regionInfoProvider: config?.regionInfoProvider ?? defaultRegionInfoProvider,
8
+ serviceId: config?.serviceId ?? "EMR Serverless",
9
+ urlParser: config?.urlParser ?? parseUrl,
10
+ });
@@ -3,6 +3,7 @@ import { CancelJobRunCommandInput, CancelJobRunCommandOutput } from "./commands/
3
3
  import { CreateApplicationCommandInput, CreateApplicationCommandOutput } from "./commands/CreateApplicationCommand";
4
4
  import { DeleteApplicationCommandInput, DeleteApplicationCommandOutput } from "./commands/DeleteApplicationCommand";
5
5
  import { GetApplicationCommandInput, GetApplicationCommandOutput } from "./commands/GetApplicationCommand";
6
+ import { GetDashboardForJobRunCommandInput, GetDashboardForJobRunCommandOutput } from "./commands/GetDashboardForJobRunCommand";
6
7
  import { GetJobRunCommandInput, GetJobRunCommandOutput } from "./commands/GetJobRunCommand";
7
8
  import { ListApplicationsCommandInput, ListApplicationsCommandOutput } from "./commands/ListApplicationsCommand";
8
9
  import { ListJobRunsCommandInput, ListJobRunsCommandOutput } from "./commands/ListJobRunsCommand";
@@ -64,6 +65,12 @@ export declare class EMRServerless extends EMRServerlessClient {
64
65
  getApplication(args: GetApplicationCommandInput, options?: __HttpHandlerOptions): Promise<GetApplicationCommandOutput>;
65
66
  getApplication(args: GetApplicationCommandInput, cb: (err: any, data?: GetApplicationCommandOutput) => void): void;
66
67
  getApplication(args: GetApplicationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetApplicationCommandOutput) => void): void;
68
+ /**
69
+ * <p>Returns a URL to access the job run dashboard.</p>
70
+ */
71
+ getDashboardForJobRun(args: GetDashboardForJobRunCommandInput, options?: __HttpHandlerOptions): Promise<GetDashboardForJobRunCommandOutput>;
72
+ getDashboardForJobRun(args: GetDashboardForJobRunCommandInput, cb: (err: any, data?: GetDashboardForJobRunCommandOutput) => void): void;
73
+ getDashboardForJobRun(args: GetDashboardForJobRunCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetDashboardForJobRunCommandOutput) => void): void;
67
74
  /**
68
75
  * <p>Displays detailed information about a job run.</p>
69
76
  */
@@ -10,6 +10,7 @@ import { CancelJobRunCommandInput, CancelJobRunCommandOutput } from "./commands/
10
10
  import { CreateApplicationCommandInput, CreateApplicationCommandOutput } from "./commands/CreateApplicationCommand";
11
11
  import { DeleteApplicationCommandInput, DeleteApplicationCommandOutput } from "./commands/DeleteApplicationCommand";
12
12
  import { GetApplicationCommandInput, GetApplicationCommandOutput } from "./commands/GetApplicationCommand";
13
+ import { GetDashboardForJobRunCommandInput, GetDashboardForJobRunCommandOutput } from "./commands/GetDashboardForJobRunCommand";
13
14
  import { GetJobRunCommandInput, GetJobRunCommandOutput } from "./commands/GetJobRunCommand";
14
15
  import { ListApplicationsCommandInput, ListApplicationsCommandOutput } from "./commands/ListApplicationsCommand";
15
16
  import { ListJobRunsCommandInput, ListJobRunsCommandOutput } from "./commands/ListJobRunsCommand";
@@ -20,8 +21,8 @@ import { StopApplicationCommandInput, StopApplicationCommandOutput } from "./com
20
21
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
21
22
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
22
23
  import { UpdateApplicationCommandInput, UpdateApplicationCommandOutput } from "./commands/UpdateApplicationCommand";
23
- export declare type ServiceInputTypes = CancelJobRunCommandInput | CreateApplicationCommandInput | DeleteApplicationCommandInput | GetApplicationCommandInput | GetJobRunCommandInput | ListApplicationsCommandInput | ListJobRunsCommandInput | ListTagsForResourceCommandInput | StartApplicationCommandInput | StartJobRunCommandInput | StopApplicationCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateApplicationCommandInput;
24
- export declare type ServiceOutputTypes = CancelJobRunCommandOutput | CreateApplicationCommandOutput | DeleteApplicationCommandOutput | GetApplicationCommandOutput | GetJobRunCommandOutput | ListApplicationsCommandOutput | ListJobRunsCommandOutput | ListTagsForResourceCommandOutput | StartApplicationCommandOutput | StartJobRunCommandOutput | StopApplicationCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateApplicationCommandOutput;
24
+ export declare type ServiceInputTypes = CancelJobRunCommandInput | CreateApplicationCommandInput | DeleteApplicationCommandInput | GetApplicationCommandInput | GetDashboardForJobRunCommandInput | GetJobRunCommandInput | ListApplicationsCommandInput | ListJobRunsCommandInput | ListTagsForResourceCommandInput | StartApplicationCommandInput | StartJobRunCommandInput | StopApplicationCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateApplicationCommandInput;
25
+ export declare type ServiceOutputTypes = CancelJobRunCommandOutput | CreateApplicationCommandOutput | DeleteApplicationCommandOutput | GetApplicationCommandOutput | GetDashboardForJobRunCommandOutput | GetJobRunCommandOutput | ListApplicationsCommandOutput | ListJobRunsCommandOutput | ListTagsForResourceCommandOutput | StartApplicationCommandOutput | StartJobRunCommandOutput | StopApplicationCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateApplicationCommandOutput;
25
26
  export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
26
27
  /**
27
28
  * The HTTP handler to use. Fetch in browser and Https in Nodejs.
@@ -0,0 +1,35 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { EMRServerlessClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EMRServerlessClient";
4
+ import { GetDashboardForJobRunRequest, GetDashboardForJobRunResponse } from "../models/models_0";
5
+ export interface GetDashboardForJobRunCommandInput extends GetDashboardForJobRunRequest {
6
+ }
7
+ export interface GetDashboardForJobRunCommandOutput extends GetDashboardForJobRunResponse, __MetadataBearer {
8
+ }
9
+ /**
10
+ * <p>Returns a URL to access the job run dashboard.</p>
11
+ * @example
12
+ * Use a bare-bones client and the command you need to make an API call.
13
+ * ```javascript
14
+ * import { EMRServerlessClient, GetDashboardForJobRunCommand } from "@aws-sdk/client-emr-serverless"; // ES Modules import
15
+ * // const { EMRServerlessClient, GetDashboardForJobRunCommand } = require("@aws-sdk/client-emr-serverless"); // CommonJS import
16
+ * const client = new EMRServerlessClient(config);
17
+ * const command = new GetDashboardForJobRunCommand(input);
18
+ * const response = await client.send(command);
19
+ * ```
20
+ *
21
+ * @see {@link GetDashboardForJobRunCommandInput} for command's `input` shape.
22
+ * @see {@link GetDashboardForJobRunCommandOutput} for command's `response` shape.
23
+ * @see {@link EMRServerlessClientResolvedConfig | config} for EMRServerlessClient's `config` shape.
24
+ *
25
+ */
26
+ export declare class GetDashboardForJobRunCommand extends $Command<GetDashboardForJobRunCommandInput, GetDashboardForJobRunCommandOutput, EMRServerlessClientResolvedConfig> {
27
+ readonly input: GetDashboardForJobRunCommandInput;
28
+ constructor(input: GetDashboardForJobRunCommandInput);
29
+ /**
30
+ * @internal
31
+ */
32
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: EMRServerlessClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetDashboardForJobRunCommandInput, GetDashboardForJobRunCommandOutput>;
33
+ private serialize;
34
+ private deserialize;
35
+ }
@@ -2,6 +2,7 @@ export * from "./CancelJobRunCommand";
2
2
  export * from "./CreateApplicationCommand";
3
3
  export * from "./DeleteApplicationCommand";
4
4
  export * from "./GetApplicationCommand";
5
+ export * from "./GetDashboardForJobRunCommand";
5
6
  export * from "./GetJobRunCommand";
6
7
  export * from "./ListApplicationsCommand";
7
8
  export * from "./ListJobRunsCommand";
@@ -5,20 +5,24 @@ import { EMRServerlessServiceException as __BaseException } from "./EMRServerles
5
5
  */
6
6
  export interface AutoStartConfig {
7
7
  /**
8
- * <p>Enables the application to automatically start on job submission. Defaults to true.</p>
8
+ * <p>Enables the application to automatically start on job submission. Defaults to
9
+ * true.</p>
9
10
  */
10
11
  enabled?: boolean;
11
12
  }
12
13
  /**
13
- * <p>The configuration for an application to automatically stop after a certain amount of time being idle.</p>
14
+ * <p>The configuration for an application to automatically stop after a certain amount of
15
+ * time being idle.</p>
14
16
  */
15
17
  export interface AutoStopConfig {
16
18
  /**
17
- * <p>Enables the application to automatically stop after a certain amount of time being idle. Defaults to true.</p>
19
+ * <p>Enables the application to automatically stop after a certain amount of time being idle.
20
+ * Defaults to true.</p>
18
21
  */
19
22
  enabled?: boolean;
20
23
  /**
21
- * <p>The amount of idle time in minutes after which your application will automatically stop. Defaults to 15 minutes.</p>
24
+ * <p>The amount of idle time in minutes after which your application will automatically stop.
25
+ * Defaults to 15 minutes.</p>
22
26
  */
23
27
  idleTimeoutMinutes?: number;
24
28
  }
@@ -152,7 +156,8 @@ export interface Application {
152
156
  */
153
157
  autoStartConfiguration?: AutoStartConfig;
154
158
  /**
155
- * <p>The configuration for an application to automatically stop after a certain amount of time being idle.</p>
159
+ * <p>The configuration for an application to automatically stop after a certain amount of
160
+ * time being idle.</p>
156
161
  */
157
162
  autoStopConfiguration?: AutoStopConfig;
158
163
  /**
@@ -250,7 +255,8 @@ export interface CreateApplicationRequest {
250
255
  */
251
256
  autoStartConfiguration?: AutoStartConfig;
252
257
  /**
253
- * <p>The configuration for an application to automatically stop after a certain amount of time being idle.</p>
258
+ * <p>The configuration for an application to automatically stop after a certain amount of
259
+ * time being idle.</p>
254
260
  */
255
261
  autoStopConfiguration?: AutoStopConfig;
256
262
  /**
@@ -335,7 +341,8 @@ export interface ListApplicationsRequest {
335
341
  */
336
342
  maxResults?: number;
337
343
  /**
338
- * <p>An optional filter for application states. Note that if this filter contains multiple states, the resulting list will be grouped by the state.</p>
344
+ * <p>An optional filter for application states. Note that if this filter contains multiple
345
+ * states, the resulting list will be grouped by the state.</p>
339
346
  */
340
347
  states?: (ApplicationState | string)[];
341
348
  }
@@ -402,7 +409,8 @@ export interface UpdateApplicationRequest {
402
409
  */
403
410
  autoStartConfiguration?: AutoStartConfig;
404
411
  /**
405
- * <p>The configuration for an application to automatically stop after a certain amount of time being idle.</p>
412
+ * <p>The configuration for an application to automatically stop after a certain amount of
413
+ * time being idle.</p>
406
414
  */
407
415
  autoStopConfiguration?: AutoStopConfig;
408
416
  /**
@@ -436,6 +444,22 @@ export interface CancelJobRunResponse {
436
444
  */
437
445
  jobRunId: string | undefined;
438
446
  }
447
+ export interface GetDashboardForJobRunRequest {
448
+ /**
449
+ * <p>The ID of the application.</p>
450
+ */
451
+ applicationId: string | undefined;
452
+ /**
453
+ * <p>The ID of the job run.</p>
454
+ */
455
+ jobRunId: string | undefined;
456
+ }
457
+ export interface GetDashboardForJobRunResponse {
458
+ /**
459
+ * <p>The URL to view job run's dashboard.</p>
460
+ */
461
+ url?: string;
462
+ }
439
463
  export interface GetJobRunRequest {
440
464
  /**
441
465
  * <p>The ID of the application on which the job run is submitted.</p>
@@ -451,7 +475,8 @@ export interface GetJobRunRequest {
451
475
  */
452
476
  export interface ManagedPersistenceMonitoringConfiguration {
453
477
  /**
454
- * <p>Enables managed logging and defaults to true. If set to false, managed logging will be turned off.</p>
478
+ * <p>Enables managed logging and defaults to true. If set to false, managed logging will be
479
+ * turned off.</p>
455
480
  */
456
481
  enabled?: boolean;
457
482
  /**
@@ -564,20 +589,23 @@ export declare enum JobRunState {
564
589
  SUCCESS = "SUCCESS"
565
590
  }
566
591
  /**
567
- * <p>The aggregate vCPU, memory, and storage resources used from the time job start executing till the time job is terminated,
568
- * rounded up to the nearest second.</p>
592
+ * <p>The aggregate vCPU, memory, and storage resources used from the time job start executing
593
+ * till the time job is terminated, rounded up to the nearest second.</p>
569
594
  */
570
595
  export interface TotalResourceUtilization {
571
596
  /**
572
- * <p>The aggregated vCPU used per hour from the time job start executing till the time job is terminated.</p>
597
+ * <p>The aggregated vCPU used per hour from the time job start executing till the time job is
598
+ * terminated.</p>
573
599
  */
574
600
  vCPUHour?: number;
575
601
  /**
576
- * <p>The aggregated memory used per hour from the time job start executing till the time job is terminated.</p>
602
+ * <p>The aggregated memory used per hour from the time job start executing till the time job
603
+ * is terminated.</p>
577
604
  */
578
605
  memoryGBHour?: number;
579
606
  /**
580
- * <p>The aggregated storage used per hour from the time job start executing till the time job is terminated.</p>
607
+ * <p>The aggregated storage used per hour from the time job start executing till the time job
608
+ * is terminated.</p>
581
609
  */
582
610
  storageGBHour?: number;
583
611
  }
@@ -603,7 +631,8 @@ export interface ListJobRunsRequest {
603
631
  */
604
632
  createdAtBefore?: Date;
605
633
  /**
606
- * <p>An optional filter for job run states. Note that if this filter contains multiple states, the resulting list will be grouped by the state.</p>
634
+ * <p>An optional filter for job run states. Note that if this filter contains multiple
635
+ * states, the resulting list will be grouped by the state.</p>
607
636
  */
608
637
  states?: (JobRunState | string)[];
609
638
  }
@@ -687,7 +716,9 @@ export interface StartJobRunResponse {
687
716
  }
688
717
  export interface ListTagsForResourceRequest {
689
718
  /**
690
- * <p>The Amazon Resource Name (ARN) that identifies the resource to list the tags for. Currently, the supported resources are Amazon EMR Serverless applications and job runs.</p>
719
+ * <p>The Amazon Resource Name (ARN) that identifies the resource to list the tags for.
720
+ * Currently, the supported resources are Amazon EMR Serverless applications and job
721
+ * runs.</p>
691
722
  */
692
723
  resourceArn: string | undefined;
693
724
  }
@@ -699,7 +730,9 @@ export interface ListTagsForResourceResponse {
699
730
  }
700
731
  export interface TagResourceRequest {
701
732
  /**
702
- * <p>The Amazon Resource Name (ARN) that identifies the resource to list the tags for. Currently, the supported resources are Amazon EMR Serverless applications and job runs.</p>
733
+ * <p>The Amazon Resource Name (ARN) that identifies the resource to list the tags for.
734
+ * Currently, the supported resources are Amazon EMR Serverless applications and job
735
+ * runs.</p>
703
736
  */
704
737
  resourceArn: string | undefined;
705
738
  /**
@@ -711,7 +744,9 @@ export interface TagResourceResponse {
711
744
  }
712
745
  export interface UntagResourceRequest {
713
746
  /**
714
- * <p>The Amazon Resource Name (ARN) that identifies the resource to list the tags for. Currently, the supported resources are Amazon EMR Serverless applications and job runs.</p>
747
+ * <p>The Amazon Resource Name (ARN) that identifies the resource to list the tags for.
748
+ * Currently, the supported resources are Amazon EMR Serverless applications and job
749
+ * runs.</p>
715
750
  */
716
751
  resourceArn: string | undefined;
717
752
  /**
@@ -816,8 +851,8 @@ export interface JobRun {
816
851
  */
817
852
  tags?: Record<string, string>;
818
853
  /**
819
- * <p>The aggregate vCPU, memory, and storage resources used from the time job start executing till the time job is terminated,
820
- * rounded up to the nearest second.</p>
854
+ * <p>The aggregate vCPU, memory, and storage resources used from the time job start executing
855
+ * till the time job is terminated, rounded up to the nearest second.</p>
821
856
  */
822
857
  totalResourceUtilization?: TotalResourceUtilization;
823
858
  /**
@@ -825,7 +860,9 @@ export interface JobRun {
825
860
  */
826
861
  networkConfiguration?: NetworkConfiguration;
827
862
  /**
828
- * <p>The job run total execution duration in seconds. This field is only available for job runs in a <code>COMPLETED</code>, <code>FAILED</code>, or <code>CANCELLED</code> state.</p>
863
+ * <p>The job run total execution duration in seconds. This field is only available for job
864
+ * runs in a <code>COMPLETED</code>, <code>FAILED</code>, or <code>CANCELLED</code>
865
+ * state.</p>
829
866
  */
830
867
  totalExecutionDurationSeconds?: number;
831
868
  }
@@ -856,7 +893,8 @@ export interface StartJobRunRequest {
856
893
  */
857
894
  tags?: Record<string, string>;
858
895
  /**
859
- * <p>The maximum duration for the job run to run. If the job run runs beyond this duration, it will be automatically cancelled.</p>
896
+ * <p>The maximum duration for the job run to run. If the job run runs beyond this duration,
897
+ * it will be automatically cancelled.</p>
860
898
  */
861
899
  executionTimeoutMinutes?: number;
862
900
  /**
@@ -966,6 +1004,14 @@ export declare const CancelJobRunRequestFilterSensitiveLog: (obj: CancelJobRunRe
966
1004
  * @internal
967
1005
  */
968
1006
  export declare const CancelJobRunResponseFilterSensitiveLog: (obj: CancelJobRunResponse) => any;
1007
+ /**
1008
+ * @internal
1009
+ */
1010
+ export declare const GetDashboardForJobRunRequestFilterSensitiveLog: (obj: GetDashboardForJobRunRequest) => any;
1011
+ /**
1012
+ * @internal
1013
+ */
1014
+ export declare const GetDashboardForJobRunResponseFilterSensitiveLog: (obj: GetDashboardForJobRunResponse) => any;
969
1015
  /**
970
1016
  * @internal
971
1017
  */
@@ -4,6 +4,7 @@ import { CancelJobRunCommandInput, CancelJobRunCommandOutput } from "../commands
4
4
  import { CreateApplicationCommandInput, CreateApplicationCommandOutput } from "../commands/CreateApplicationCommand";
5
5
  import { DeleteApplicationCommandInput, DeleteApplicationCommandOutput } from "../commands/DeleteApplicationCommand";
6
6
  import { GetApplicationCommandInput, GetApplicationCommandOutput } from "../commands/GetApplicationCommand";
7
+ import { GetDashboardForJobRunCommandInput, GetDashboardForJobRunCommandOutput } from "../commands/GetDashboardForJobRunCommand";
7
8
  import { GetJobRunCommandInput, GetJobRunCommandOutput } from "../commands/GetJobRunCommand";
8
9
  import { ListApplicationsCommandInput, ListApplicationsCommandOutput } from "../commands/ListApplicationsCommand";
9
10
  import { ListJobRunsCommandInput, ListJobRunsCommandOutput } from "../commands/ListJobRunsCommand";
@@ -18,6 +19,7 @@ export declare const serializeAws_restJson1CancelJobRunCommand: (input: CancelJo
18
19
  export declare const serializeAws_restJson1CreateApplicationCommand: (input: CreateApplicationCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
19
20
  export declare const serializeAws_restJson1DeleteApplicationCommand: (input: DeleteApplicationCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
20
21
  export declare const serializeAws_restJson1GetApplicationCommand: (input: GetApplicationCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
22
+ export declare const serializeAws_restJson1GetDashboardForJobRunCommand: (input: GetDashboardForJobRunCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
21
23
  export declare const serializeAws_restJson1GetJobRunCommand: (input: GetJobRunCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
22
24
  export declare const serializeAws_restJson1ListApplicationsCommand: (input: ListApplicationsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
23
25
  export declare const serializeAws_restJson1ListJobRunsCommand: (input: ListJobRunsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
@@ -32,6 +34,7 @@ export declare const deserializeAws_restJson1CancelJobRunCommand: (output: __Htt
32
34
  export declare const deserializeAws_restJson1CreateApplicationCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreateApplicationCommandOutput>;
33
35
  export declare const deserializeAws_restJson1DeleteApplicationCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteApplicationCommandOutput>;
34
36
  export declare const deserializeAws_restJson1GetApplicationCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetApplicationCommandOutput>;
37
+ export declare const deserializeAws_restJson1GetDashboardForJobRunCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetDashboardForJobRunCommandOutput>;
35
38
  export declare const deserializeAws_restJson1GetJobRunCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetJobRunCommandOutput>;
36
39
  export declare const deserializeAws_restJson1ListApplicationsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListApplicationsCommandOutput>;
37
40
  export declare const deserializeAws_restJson1ListJobRunsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListJobRunsCommandOutput>;
@@ -15,6 +15,10 @@ import {
15
15
  GetApplicationCommandInput,
16
16
  GetApplicationCommandOutput,
17
17
  } from "./commands/GetApplicationCommand";
18
+ import {
19
+ GetDashboardForJobRunCommandInput,
20
+ GetDashboardForJobRunCommandOutput,
21
+ } from "./commands/GetDashboardForJobRunCommand";
18
22
  import {
19
23
  GetJobRunCommandInput,
20
24
  GetJobRunCommandOutput,
@@ -109,6 +113,19 @@ export declare class EMRServerless extends EMRServerlessClient {
109
113
  options: __HttpHandlerOptions,
110
114
  cb: (err: any, data?: GetApplicationCommandOutput) => void
111
115
  ): void;
116
+ getDashboardForJobRun(
117
+ args: GetDashboardForJobRunCommandInput,
118
+ options?: __HttpHandlerOptions
119
+ ): Promise<GetDashboardForJobRunCommandOutput>;
120
+ getDashboardForJobRun(
121
+ args: GetDashboardForJobRunCommandInput,
122
+ cb: (err: any, data?: GetDashboardForJobRunCommandOutput) => void
123
+ ): void;
124
+ getDashboardForJobRun(
125
+ args: GetDashboardForJobRunCommandInput,
126
+ options: __HttpHandlerOptions,
127
+ cb: (err: any, data?: GetDashboardForJobRunCommandOutput) => void
128
+ ): void;
112
129
  getJobRun(
113
130
  args: GetJobRunCommandInput,
114
131
  options?: __HttpHandlerOptions
@@ -58,6 +58,10 @@ import {
58
58
  GetApplicationCommandInput,
59
59
  GetApplicationCommandOutput,
60
60
  } from "./commands/GetApplicationCommand";
61
+ import {
62
+ GetDashboardForJobRunCommandInput,
63
+ GetDashboardForJobRunCommandOutput,
64
+ } from "./commands/GetDashboardForJobRunCommand";
61
65
  import {
62
66
  GetJobRunCommandInput,
63
67
  GetJobRunCommandOutput,
@@ -103,6 +107,7 @@ export declare type ServiceInputTypes =
103
107
  | CreateApplicationCommandInput
104
108
  | DeleteApplicationCommandInput
105
109
  | GetApplicationCommandInput
110
+ | GetDashboardForJobRunCommandInput
106
111
  | GetJobRunCommandInput
107
112
  | ListApplicationsCommandInput
108
113
  | ListJobRunsCommandInput
@@ -118,6 +123,7 @@ export declare type ServiceOutputTypes =
118
123
  | CreateApplicationCommandOutput
119
124
  | DeleteApplicationCommandOutput
120
125
  | GetApplicationCommandOutput
126
+ | GetDashboardForJobRunCommandOutput
121
127
  | GetJobRunCommandOutput
122
128
  | ListApplicationsCommandOutput
123
129
  | ListJobRunsCommandOutput
@@ -0,0 +1,39 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import {
3
+ Handler,
4
+ HttpHandlerOptions as __HttpHandlerOptions,
5
+ MetadataBearer as __MetadataBearer,
6
+ MiddlewareStack,
7
+ } from "@aws-sdk/types";
8
+ import {
9
+ EMRServerlessClientResolvedConfig,
10
+ ServiceInputTypes,
11
+ ServiceOutputTypes,
12
+ } from "../EMRServerlessClient";
13
+ import {
14
+ GetDashboardForJobRunRequest,
15
+ GetDashboardForJobRunResponse,
16
+ } from "../models/models_0";
17
+ export interface GetDashboardForJobRunCommandInput
18
+ extends GetDashboardForJobRunRequest {}
19
+ export interface GetDashboardForJobRunCommandOutput
20
+ extends GetDashboardForJobRunResponse,
21
+ __MetadataBearer {}
22
+ export declare class GetDashboardForJobRunCommand extends $Command<
23
+ GetDashboardForJobRunCommandInput,
24
+ GetDashboardForJobRunCommandOutput,
25
+ EMRServerlessClientResolvedConfig
26
+ > {
27
+ readonly input: GetDashboardForJobRunCommandInput;
28
+ constructor(input: GetDashboardForJobRunCommandInput);
29
+ resolveMiddleware(
30
+ clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
31
+ configuration: EMRServerlessClientResolvedConfig,
32
+ options?: __HttpHandlerOptions
33
+ ): Handler<
34
+ GetDashboardForJobRunCommandInput,
35
+ GetDashboardForJobRunCommandOutput
36
+ >;
37
+ private serialize;
38
+ private deserialize;
39
+ }
@@ -2,6 +2,7 @@ export * from "./CancelJobRunCommand";
2
2
  export * from "./CreateApplicationCommand";
3
3
  export * from "./DeleteApplicationCommand";
4
4
  export * from "./GetApplicationCommand";
5
+ export * from "./GetDashboardForJobRunCommand";
5
6
  export * from "./GetJobRunCommand";
6
7
  export * from "./ListApplicationsCommand";
7
8
  export * from "./ListJobRunsCommand";
@@ -159,6 +159,13 @@ export interface CancelJobRunResponse {
159
159
  applicationId: string | undefined;
160
160
  jobRunId: string | undefined;
161
161
  }
162
+ export interface GetDashboardForJobRunRequest {
163
+ applicationId: string | undefined;
164
+ jobRunId: string | undefined;
165
+ }
166
+ export interface GetDashboardForJobRunResponse {
167
+ url?: string;
168
+ }
162
169
  export interface GetJobRunRequest {
163
170
  applicationId: string | undefined;
164
171
  jobRunId: string | undefined;
@@ -385,6 +392,12 @@ export declare const CancelJobRunRequestFilterSensitiveLog: (
385
392
  export declare const CancelJobRunResponseFilterSensitiveLog: (
386
393
  obj: CancelJobRunResponse
387
394
  ) => any;
395
+ export declare const GetDashboardForJobRunRequestFilterSensitiveLog: (
396
+ obj: GetDashboardForJobRunRequest
397
+ ) => any;
398
+ export declare const GetDashboardForJobRunResponseFilterSensitiveLog: (
399
+ obj: GetDashboardForJobRunResponse
400
+ ) => any;
388
401
  export declare const GetJobRunRequestFilterSensitiveLog: (
389
402
  obj: GetJobRunRequest
390
403
  ) => any;