@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.
- package/CHANGELOG.md +25 -0
- package/dist-cjs/EMRServerless.js +15 -0
- package/dist-cjs/commands/GetDashboardForJobRunCommand.js +36 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/models/models_0.js +10 -2
- package/dist-cjs/protocols/Aws_restJson1.js +82 -23
- package/dist-es/EMRServerless.js +72 -64
- package/dist-es/EMRServerlessClient.js +22 -28
- package/dist-es/commands/CancelJobRunCommand.js +21 -28
- package/dist-es/commands/CreateApplicationCommand.js +21 -28
- package/dist-es/commands/DeleteApplicationCommand.js +21 -28
- package/dist-es/commands/GetApplicationCommand.js +21 -28
- package/dist-es/commands/GetDashboardForJobRunCommand.js +32 -0
- package/dist-es/commands/GetJobRunCommand.js +21 -28
- package/dist-es/commands/ListApplicationsCommand.js +21 -28
- package/dist-es/commands/ListJobRunsCommand.js +21 -28
- package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
- package/dist-es/commands/StartApplicationCommand.js +21 -28
- package/dist-es/commands/StartJobRunCommand.js +21 -28
- package/dist-es/commands/StopApplicationCommand.js +21 -28
- package/dist-es/commands/TagResourceCommand.js +21 -28
- package/dist-es/commands/UntagResourceCommand.js +21 -28
- package/dist-es/commands/UpdateApplicationCommand.js +21 -28
- package/dist-es/commands/index.js +1 -0
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/EMRServerlessServiceException.js +5 -10
- package/dist-es/models/models_0.js +224 -114
- package/dist-es/pagination/ListApplicationsPaginator.js +25 -68
- package/dist-es/pagination/ListJobRunsPaginator.js +25 -68
- package/dist-es/protocols/Aws_restJson1.js +1150 -1455
- package/dist-es/runtimeConfig.browser.js +26 -12
- package/dist-es/runtimeConfig.js +30 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/dist-types/EMRServerless.d.ts +7 -0
- package/dist-types/EMRServerlessClient.d.ts +3 -2
- package/dist-types/commands/GetDashboardForJobRunCommand.d.ts +35 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +68 -22
- package/dist-types/protocols/Aws_restJson1.d.ts +3 -0
- package/dist-types/ts3.4/EMRServerless.d.ts +17 -0
- package/dist-types/ts3.4/EMRServerlessClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/GetDashboardForJobRunCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +13 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
- 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
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
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
|
};
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -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
|
|
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
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
return
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
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
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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
|
|
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
|
|
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.
|
|
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.
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
568
|
-
*
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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.
|
|
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.
|
|
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.
|
|
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
|
|
820
|
-
*
|
|
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
|
|
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,
|
|
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;
|