@aws-sdk/client-emr-serverless 3.100.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 +11 -0
- package/LICENSE +201 -0
- package/README.md +226 -0
- package/dist-cjs/EMRServerless.js +217 -0
- package/dist-cjs/EMRServerlessClient.js +35 -0
- package/dist-cjs/commands/CancelJobRunCommand.js +36 -0
- package/dist-cjs/commands/CreateApplicationCommand.js +36 -0
- package/dist-cjs/commands/DeleteApplicationCommand.js +36 -0
- package/dist-cjs/commands/GetApplicationCommand.js +36 -0
- package/dist-cjs/commands/GetJobRunCommand.js +36 -0
- package/dist-cjs/commands/ListApplicationsCommand.js +36 -0
- package/dist-cjs/commands/ListJobRunsCommand.js +36 -0
- package/dist-cjs/commands/ListTagsForResourceCommand.js +36 -0
- package/dist-cjs/commands/StartApplicationCommand.js +36 -0
- package/dist-cjs/commands/StartJobRunCommand.js +36 -0
- package/dist-cjs/commands/StopApplicationCommand.js +36 -0
- package/dist-cjs/commands/TagResourceCommand.js +36 -0
- package/dist-cjs/commands/UntagResourceCommand.js +36 -0
- package/dist-cjs/commands/UpdateApplicationCommand.js +36 -0
- package/dist-cjs/commands/index.js +17 -0
- package/dist-cjs/endpoints.js +150 -0
- package/dist-cjs/index.js +11 -0
- package/dist-cjs/models/EMRServerlessServiceException.js +11 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +408 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListApplicationsPaginator.js +36 -0
- package/dist-cjs/pagination/ListJobRunsPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +6 -0
- package/dist-cjs/protocols/Aws_restJson1.js +1724 -0
- package/dist-cjs/runtimeConfig.browser.js +45 -0
- package/dist-cjs/runtimeConfig.js +52 -0
- package/dist-cjs/runtimeConfig.native.js +16 -0
- package/dist-cjs/runtimeConfig.shared.js +17 -0
- package/dist-es/EMRServerless.js +220 -0
- package/dist-es/EMRServerlessClient.js +37 -0
- package/dist-es/commands/CancelJobRunCommand.js +39 -0
- package/dist-es/commands/CreateApplicationCommand.js +39 -0
- package/dist-es/commands/DeleteApplicationCommand.js +39 -0
- package/dist-es/commands/GetApplicationCommand.js +39 -0
- package/dist-es/commands/GetJobRunCommand.js +39 -0
- package/dist-es/commands/ListApplicationsCommand.js +39 -0
- package/dist-es/commands/ListJobRunsCommand.js +39 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +39 -0
- package/dist-es/commands/StartApplicationCommand.js +39 -0
- package/dist-es/commands/StartJobRunCommand.js +39 -0
- package/dist-es/commands/StopApplicationCommand.js +39 -0
- package/dist-es/commands/TagResourceCommand.js +39 -0
- package/dist-es/commands/UntagResourceCommand.js +39 -0
- package/dist-es/commands/UpdateApplicationCommand.js +39 -0
- package/dist-es/commands/index.js +14 -0
- package/dist-es/endpoints.js +146 -0
- package/dist-es/index.js +6 -0
- package/dist-es/models/EMRServerlessServiceException.js +12 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +295 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListApplicationsPaginator.js +75 -0
- package/dist-es/pagination/ListJobRunsPaginator.js +75 -0
- package/dist-es/pagination/index.js +3 -0
- package/dist-es/protocols/Aws_restJson1.js +1994 -0
- package/dist-es/runtimeConfig.browser.js +26 -0
- package/dist-es/runtimeConfig.js +30 -0
- package/dist-es/runtimeConfig.native.js +8 -0
- package/dist-es/runtimeConfig.shared.js +13 -0
- package/dist-types/EMRServerless.d.ts +133 -0
- package/dist-types/EMRServerlessClient.d.ts +179 -0
- package/dist-types/commands/CancelJobRunCommand.d.ts +35 -0
- package/dist-types/commands/CreateApplicationCommand.d.ts +35 -0
- package/dist-types/commands/DeleteApplicationCommand.d.ts +36 -0
- package/dist-types/commands/GetApplicationCommand.d.ts +35 -0
- package/dist-types/commands/GetJobRunCommand.d.ts +35 -0
- package/dist-types/commands/ListApplicationsCommand.d.ts +35 -0
- package/dist-types/commands/ListJobRunsCommand.d.ts +35 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +35 -0
- package/dist-types/commands/StartApplicationCommand.d.ts +35 -0
- package/dist-types/commands/StartJobRunCommand.d.ts +35 -0
- package/dist-types/commands/StopApplicationCommand.d.ts +36 -0
- package/dist-types/commands/TagResourceCommand.d.ts +39 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +35 -0
- package/dist-types/commands/UpdateApplicationCommand.d.ts +36 -0
- package/dist-types/commands/index.d.ts +14 -0
- package/dist-types/endpoints.d.ts +2 -0
- package/dist-types/index.d.ts +6 -0
- package/dist-types/models/EMRServerlessServiceException.d.ts +10 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +1172 -0
- package/dist-types/pagination/Interfaces.d.ts +6 -0
- package/dist-types/pagination/ListApplicationsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListJobRunsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +3 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +44 -0
- package/dist-types/runtimeConfig.browser.d.ts +40 -0
- package/dist-types/runtimeConfig.d.ts +40 -0
- package/dist-types/runtimeConfig.native.d.ts +39 -0
- package/dist-types/runtimeConfig.shared.d.ts +13 -0
- package/dist-types/ts3.4/EMRServerless.d.ts +75 -0
- package/dist-types/ts3.4/EMRServerlessClient.d.ts +87 -0
- package/dist-types/ts3.4/commands/CancelJobRunCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateApplicationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteApplicationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetApplicationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetJobRunCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListApplicationsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListJobRunsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/StartApplicationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/StartJobRunCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/StopApplicationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateApplicationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +14 -0
- package/dist-types/ts3.4/endpoints.d.ts +2 -0
- package/dist-types/ts3.4/index.d.ts +6 -0
- package/dist-types/ts3.4/models/EMRServerlessServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +700 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListApplicationsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListJobRunsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +3 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +44 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +38 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +38 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +37 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +11 -0
- package/package.json +95 -0
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getRuntimeConfig = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const package_json_1 = tslib_1.__importDefault(require("../package.json"));
|
|
6
|
+
const sha256_browser_1 = require("@aws-crypto/sha256-browser");
|
|
7
|
+
const config_resolver_1 = require("@aws-sdk/config-resolver");
|
|
8
|
+
const fetch_http_handler_1 = require("@aws-sdk/fetch-http-handler");
|
|
9
|
+
const invalid_dependency_1 = require("@aws-sdk/invalid-dependency");
|
|
10
|
+
const middleware_retry_1 = require("@aws-sdk/middleware-retry");
|
|
11
|
+
const util_base64_browser_1 = require("@aws-sdk/util-base64-browser");
|
|
12
|
+
const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
|
|
13
|
+
const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
|
|
14
|
+
const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
|
|
15
|
+
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
16
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
17
|
+
const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
|
|
18
|
+
const getRuntimeConfig = (config) => {
|
|
19
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
20
|
+
const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
|
|
21
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
22
|
+
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
23
|
+
return {
|
|
24
|
+
...clientSharedValues,
|
|
25
|
+
...config,
|
|
26
|
+
runtime: "browser",
|
|
27
|
+
defaultsMode,
|
|
28
|
+
base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_browser_1.fromBase64,
|
|
29
|
+
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
|
|
30
|
+
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
|
|
31
|
+
credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
32
|
+
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
33
|
+
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
34
|
+
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, invalid_dependency_1.invalidProvider)("Region is missing"),
|
|
35
|
+
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
|
|
36
|
+
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
|
|
37
|
+
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
|
|
38
|
+
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : fetch_http_handler_1.streamCollector,
|
|
39
|
+
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
40
|
+
useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
|
|
41
|
+
utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_browser_1.fromUtf8,
|
|
42
|
+
utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_browser_1.toUtf8,
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getRuntimeConfig = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const package_json_1 = tslib_1.__importDefault(require("../package.json"));
|
|
6
|
+
const client_sts_1 = require("@aws-sdk/client-sts");
|
|
7
|
+
const config_resolver_1 = require("@aws-sdk/config-resolver");
|
|
8
|
+
const credential_provider_node_1 = require("@aws-sdk/credential-provider-node");
|
|
9
|
+
const hash_node_1 = require("@aws-sdk/hash-node");
|
|
10
|
+
const middleware_retry_1 = require("@aws-sdk/middleware-retry");
|
|
11
|
+
const node_config_provider_1 = require("@aws-sdk/node-config-provider");
|
|
12
|
+
const node_http_handler_1 = require("@aws-sdk/node-http-handler");
|
|
13
|
+
const util_base64_node_1 = require("@aws-sdk/util-base64-node");
|
|
14
|
+
const util_body_length_node_1 = require("@aws-sdk/util-body-length-node");
|
|
15
|
+
const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
|
|
16
|
+
const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
|
|
17
|
+
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
18
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
19
|
+
const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
|
|
20
|
+
const smithy_client_2 = require("@aws-sdk/smithy-client");
|
|
21
|
+
const getRuntimeConfig = (config) => {
|
|
22
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
23
|
+
(0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
|
|
24
|
+
const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
|
|
25
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
26
|
+
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
27
|
+
return {
|
|
28
|
+
...clientSharedValues,
|
|
29
|
+
...config,
|
|
30
|
+
runtime: "node",
|
|
31
|
+
defaultsMode,
|
|
32
|
+
base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
|
|
33
|
+
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
|
|
34
|
+
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
|
|
35
|
+
credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider),
|
|
36
|
+
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
37
|
+
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
38
|
+
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
39
|
+
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
|
|
40
|
+
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (0, node_config_provider_1.loadConfig)({
|
|
41
|
+
...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
42
|
+
default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
|
|
43
|
+
}),
|
|
44
|
+
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
|
|
45
|
+
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
|
|
46
|
+
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
47
|
+
useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
|
48
|
+
utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.fromUtf8,
|
|
49
|
+
utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.toUtf8,
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getRuntimeConfig = void 0;
|
|
4
|
+
const sha256_js_1 = require("@aws-crypto/sha256-js");
|
|
5
|
+
const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
|
|
6
|
+
const getRuntimeConfig = (config) => {
|
|
7
|
+
var _a;
|
|
8
|
+
const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
|
|
9
|
+
return {
|
|
10
|
+
...browserDefaults,
|
|
11
|
+
...config,
|
|
12
|
+
runtime: "react-native",
|
|
13
|
+
sha256: (_a = config === null || config === void 0 ? void 0 : config.sha256) !== null && _a !== void 0 ? _a : sha256_js_1.Sha256,
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getRuntimeConfig = void 0;
|
|
4
|
+
const url_parser_1 = require("@aws-sdk/url-parser");
|
|
5
|
+
const endpoints_1 = require("./endpoints");
|
|
6
|
+
const getRuntimeConfig = (config) => {
|
|
7
|
+
var _a, _b, _c, _d, _e;
|
|
8
|
+
return ({
|
|
9
|
+
apiVersion: "2021-07-13",
|
|
10
|
+
disableHostPrefix: (_a = config === null || config === void 0 ? void 0 : config.disableHostPrefix) !== null && _a !== void 0 ? _a : false,
|
|
11
|
+
logger: (_b = config === null || config === void 0 ? void 0 : config.logger) !== null && _b !== void 0 ? _b : {},
|
|
12
|
+
regionInfoProvider: (_c = config === null || config === void 0 ? void 0 : config.regionInfoProvider) !== null && _c !== void 0 ? _c : endpoints_1.defaultRegionInfoProvider,
|
|
13
|
+
serviceId: (_d = config === null || config === void 0 ? void 0 : config.serviceId) !== null && _d !== void 0 ? _d : "EMR Serverless",
|
|
14
|
+
urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : url_parser_1.parseUrl,
|
|
15
|
+
});
|
|
16
|
+
};
|
|
17
|
+
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { CancelJobRunCommand, } from "./commands/CancelJobRunCommand";
|
|
3
|
+
import { CreateApplicationCommand, } from "./commands/CreateApplicationCommand";
|
|
4
|
+
import { DeleteApplicationCommand, } from "./commands/DeleteApplicationCommand";
|
|
5
|
+
import { GetApplicationCommand, } from "./commands/GetApplicationCommand";
|
|
6
|
+
import { GetJobRunCommand } from "./commands/GetJobRunCommand";
|
|
7
|
+
import { ListApplicationsCommand, } from "./commands/ListApplicationsCommand";
|
|
8
|
+
import { ListJobRunsCommand } from "./commands/ListJobRunsCommand";
|
|
9
|
+
import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
|
|
10
|
+
import { StartApplicationCommand, } from "./commands/StartApplicationCommand";
|
|
11
|
+
import { StartJobRunCommand } from "./commands/StartJobRunCommand";
|
|
12
|
+
import { StopApplicationCommand, } from "./commands/StopApplicationCommand";
|
|
13
|
+
import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
14
|
+
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
15
|
+
import { UpdateApplicationCommand, } from "./commands/UpdateApplicationCommand";
|
|
16
|
+
import { EMRServerlessClient } from "./EMRServerlessClient";
|
|
17
|
+
var EMRServerless = (function (_super) {
|
|
18
|
+
__extends(EMRServerless, _super);
|
|
19
|
+
function EMRServerless() {
|
|
20
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
21
|
+
}
|
|
22
|
+
EMRServerless.prototype.cancelJobRun = function (args, optionsOrCb, cb) {
|
|
23
|
+
var command = new CancelJobRunCommand(args);
|
|
24
|
+
if (typeof optionsOrCb === "function") {
|
|
25
|
+
this.send(command, optionsOrCb);
|
|
26
|
+
}
|
|
27
|
+
else if (typeof cb === "function") {
|
|
28
|
+
if (typeof optionsOrCb !== "object")
|
|
29
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
30
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
31
|
+
}
|
|
32
|
+
else {
|
|
33
|
+
return this.send(command, optionsOrCb);
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
EMRServerless.prototype.createApplication = function (args, optionsOrCb, cb) {
|
|
37
|
+
var command = new CreateApplicationCommand(args);
|
|
38
|
+
if (typeof optionsOrCb === "function") {
|
|
39
|
+
this.send(command, optionsOrCb);
|
|
40
|
+
}
|
|
41
|
+
else if (typeof cb === "function") {
|
|
42
|
+
if (typeof optionsOrCb !== "object")
|
|
43
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
44
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
45
|
+
}
|
|
46
|
+
else {
|
|
47
|
+
return this.send(command, optionsOrCb);
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
EMRServerless.prototype.deleteApplication = function (args, optionsOrCb, cb) {
|
|
51
|
+
var command = new DeleteApplicationCommand(args);
|
|
52
|
+
if (typeof optionsOrCb === "function") {
|
|
53
|
+
this.send(command, optionsOrCb);
|
|
54
|
+
}
|
|
55
|
+
else if (typeof cb === "function") {
|
|
56
|
+
if (typeof optionsOrCb !== "object")
|
|
57
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
58
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
59
|
+
}
|
|
60
|
+
else {
|
|
61
|
+
return this.send(command, optionsOrCb);
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
EMRServerless.prototype.getApplication = function (args, optionsOrCb, cb) {
|
|
65
|
+
var command = new GetApplicationCommand(args);
|
|
66
|
+
if (typeof optionsOrCb === "function") {
|
|
67
|
+
this.send(command, optionsOrCb);
|
|
68
|
+
}
|
|
69
|
+
else if (typeof cb === "function") {
|
|
70
|
+
if (typeof optionsOrCb !== "object")
|
|
71
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
72
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
73
|
+
}
|
|
74
|
+
else {
|
|
75
|
+
return this.send(command, optionsOrCb);
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
EMRServerless.prototype.getJobRun = function (args, optionsOrCb, cb) {
|
|
79
|
+
var command = new GetJobRunCommand(args);
|
|
80
|
+
if (typeof optionsOrCb === "function") {
|
|
81
|
+
this.send(command, optionsOrCb);
|
|
82
|
+
}
|
|
83
|
+
else if (typeof cb === "function") {
|
|
84
|
+
if (typeof optionsOrCb !== "object")
|
|
85
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
86
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
87
|
+
}
|
|
88
|
+
else {
|
|
89
|
+
return this.send(command, optionsOrCb);
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
EMRServerless.prototype.listApplications = function (args, optionsOrCb, cb) {
|
|
93
|
+
var command = new ListApplicationsCommand(args);
|
|
94
|
+
if (typeof optionsOrCb === "function") {
|
|
95
|
+
this.send(command, optionsOrCb);
|
|
96
|
+
}
|
|
97
|
+
else if (typeof cb === "function") {
|
|
98
|
+
if (typeof optionsOrCb !== "object")
|
|
99
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
100
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
101
|
+
}
|
|
102
|
+
else {
|
|
103
|
+
return this.send(command, optionsOrCb);
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
EMRServerless.prototype.listJobRuns = function (args, optionsOrCb, cb) {
|
|
107
|
+
var command = new ListJobRunsCommand(args);
|
|
108
|
+
if (typeof optionsOrCb === "function") {
|
|
109
|
+
this.send(command, optionsOrCb);
|
|
110
|
+
}
|
|
111
|
+
else if (typeof cb === "function") {
|
|
112
|
+
if (typeof optionsOrCb !== "object")
|
|
113
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
114
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
115
|
+
}
|
|
116
|
+
else {
|
|
117
|
+
return this.send(command, optionsOrCb);
|
|
118
|
+
}
|
|
119
|
+
};
|
|
120
|
+
EMRServerless.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
|
|
121
|
+
var command = new ListTagsForResourceCommand(args);
|
|
122
|
+
if (typeof optionsOrCb === "function") {
|
|
123
|
+
this.send(command, optionsOrCb);
|
|
124
|
+
}
|
|
125
|
+
else if (typeof cb === "function") {
|
|
126
|
+
if (typeof optionsOrCb !== "object")
|
|
127
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
128
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
129
|
+
}
|
|
130
|
+
else {
|
|
131
|
+
return this.send(command, optionsOrCb);
|
|
132
|
+
}
|
|
133
|
+
};
|
|
134
|
+
EMRServerless.prototype.startApplication = function (args, optionsOrCb, cb) {
|
|
135
|
+
var command = new StartApplicationCommand(args);
|
|
136
|
+
if (typeof optionsOrCb === "function") {
|
|
137
|
+
this.send(command, optionsOrCb);
|
|
138
|
+
}
|
|
139
|
+
else if (typeof cb === "function") {
|
|
140
|
+
if (typeof optionsOrCb !== "object")
|
|
141
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
142
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
143
|
+
}
|
|
144
|
+
else {
|
|
145
|
+
return this.send(command, optionsOrCb);
|
|
146
|
+
}
|
|
147
|
+
};
|
|
148
|
+
EMRServerless.prototype.startJobRun = function (args, optionsOrCb, cb) {
|
|
149
|
+
var command = new StartJobRunCommand(args);
|
|
150
|
+
if (typeof optionsOrCb === "function") {
|
|
151
|
+
this.send(command, optionsOrCb);
|
|
152
|
+
}
|
|
153
|
+
else if (typeof cb === "function") {
|
|
154
|
+
if (typeof optionsOrCb !== "object")
|
|
155
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
156
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
157
|
+
}
|
|
158
|
+
else {
|
|
159
|
+
return this.send(command, optionsOrCb);
|
|
160
|
+
}
|
|
161
|
+
};
|
|
162
|
+
EMRServerless.prototype.stopApplication = function (args, optionsOrCb, cb) {
|
|
163
|
+
var command = new StopApplicationCommand(args);
|
|
164
|
+
if (typeof optionsOrCb === "function") {
|
|
165
|
+
this.send(command, optionsOrCb);
|
|
166
|
+
}
|
|
167
|
+
else if (typeof cb === "function") {
|
|
168
|
+
if (typeof optionsOrCb !== "object")
|
|
169
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
170
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
171
|
+
}
|
|
172
|
+
else {
|
|
173
|
+
return this.send(command, optionsOrCb);
|
|
174
|
+
}
|
|
175
|
+
};
|
|
176
|
+
EMRServerless.prototype.tagResource = function (args, optionsOrCb, cb) {
|
|
177
|
+
var command = new TagResourceCommand(args);
|
|
178
|
+
if (typeof optionsOrCb === "function") {
|
|
179
|
+
this.send(command, optionsOrCb);
|
|
180
|
+
}
|
|
181
|
+
else if (typeof cb === "function") {
|
|
182
|
+
if (typeof optionsOrCb !== "object")
|
|
183
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
184
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
185
|
+
}
|
|
186
|
+
else {
|
|
187
|
+
return this.send(command, optionsOrCb);
|
|
188
|
+
}
|
|
189
|
+
};
|
|
190
|
+
EMRServerless.prototype.untagResource = function (args, optionsOrCb, cb) {
|
|
191
|
+
var command = new UntagResourceCommand(args);
|
|
192
|
+
if (typeof optionsOrCb === "function") {
|
|
193
|
+
this.send(command, optionsOrCb);
|
|
194
|
+
}
|
|
195
|
+
else if (typeof cb === "function") {
|
|
196
|
+
if (typeof optionsOrCb !== "object")
|
|
197
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
198
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
199
|
+
}
|
|
200
|
+
else {
|
|
201
|
+
return this.send(command, optionsOrCb);
|
|
202
|
+
}
|
|
203
|
+
};
|
|
204
|
+
EMRServerless.prototype.updateApplication = function (args, optionsOrCb, cb) {
|
|
205
|
+
var command = new UpdateApplicationCommand(args);
|
|
206
|
+
if (typeof optionsOrCb === "function") {
|
|
207
|
+
this.send(command, optionsOrCb);
|
|
208
|
+
}
|
|
209
|
+
else if (typeof cb === "function") {
|
|
210
|
+
if (typeof optionsOrCb !== "object")
|
|
211
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
212
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
213
|
+
}
|
|
214
|
+
else {
|
|
215
|
+
return this.send(command, optionsOrCb);
|
|
216
|
+
}
|
|
217
|
+
};
|
|
218
|
+
return EMRServerless;
|
|
219
|
+
}(EMRServerlessClient));
|
|
220
|
+
export { EMRServerless };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
|
|
3
|
+
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
|
|
4
|
+
import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
|
|
5
|
+
import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
|
|
6
|
+
import { getRetryPlugin, resolveRetryConfig } from "@aws-sdk/middleware-retry";
|
|
7
|
+
import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-signing";
|
|
8
|
+
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
9
|
+
import { Client as __Client, } from "@aws-sdk/smithy-client";
|
|
10
|
+
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
11
|
+
var EMRServerlessClient = (function (_super) {
|
|
12
|
+
__extends(EMRServerlessClient, _super);
|
|
13
|
+
function EMRServerlessClient(configuration) {
|
|
14
|
+
var _this = this;
|
|
15
|
+
var _config_0 = __getRuntimeConfig(configuration);
|
|
16
|
+
var _config_1 = resolveRegionConfig(_config_0);
|
|
17
|
+
var _config_2 = resolveEndpointsConfig(_config_1);
|
|
18
|
+
var _config_3 = resolveRetryConfig(_config_2);
|
|
19
|
+
var _config_4 = resolveHostHeaderConfig(_config_3);
|
|
20
|
+
var _config_5 = resolveAwsAuthConfig(_config_4);
|
|
21
|
+
var _config_6 = resolveUserAgentConfig(_config_5);
|
|
22
|
+
_this = _super.call(this, _config_6) || this;
|
|
23
|
+
_this.config = _config_6;
|
|
24
|
+
_this.middlewareStack.use(getRetryPlugin(_this.config));
|
|
25
|
+
_this.middlewareStack.use(getContentLengthPlugin(_this.config));
|
|
26
|
+
_this.middlewareStack.use(getHostHeaderPlugin(_this.config));
|
|
27
|
+
_this.middlewareStack.use(getLoggerPlugin(_this.config));
|
|
28
|
+
_this.middlewareStack.use(getAwsAuthPlugin(_this.config));
|
|
29
|
+
_this.middlewareStack.use(getUserAgentPlugin(_this.config));
|
|
30
|
+
return _this;
|
|
31
|
+
}
|
|
32
|
+
EMRServerlessClient.prototype.destroy = function () {
|
|
33
|
+
_super.prototype.destroy.call(this);
|
|
34
|
+
};
|
|
35
|
+
return EMRServerlessClient;
|
|
36
|
+
}(__Client));
|
|
37
|
+
export { EMRServerlessClient };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { CancelJobRunRequest, CancelJobRunResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1CancelJobRunCommand, serializeAws_restJson1CancelJobRunCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var CancelJobRunCommand = (function (_super) {
|
|
7
|
+
__extends(CancelJobRunCommand, _super);
|
|
8
|
+
function CancelJobRunCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
CancelJobRunCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "EMRServerlessClient";
|
|
18
|
+
var commandName = "CancelJobRunCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: CancelJobRunRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: CancelJobRunResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
CancelJobRunCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1CancelJobRunCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
CancelJobRunCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1CancelJobRunCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return CancelJobRunCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { CancelJobRunCommand };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { CreateApplicationRequest, CreateApplicationResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1CreateApplicationCommand, serializeAws_restJson1CreateApplicationCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var CreateApplicationCommand = (function (_super) {
|
|
7
|
+
__extends(CreateApplicationCommand, _super);
|
|
8
|
+
function CreateApplicationCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
CreateApplicationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "EMRServerlessClient";
|
|
18
|
+
var commandName = "CreateApplicationCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: CreateApplicationRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: CreateApplicationResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
CreateApplicationCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1CreateApplicationCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
CreateApplicationCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1CreateApplicationCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return CreateApplicationCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { CreateApplicationCommand };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { DeleteApplicationRequest, DeleteApplicationResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1DeleteApplicationCommand, serializeAws_restJson1DeleteApplicationCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var DeleteApplicationCommand = (function (_super) {
|
|
7
|
+
__extends(DeleteApplicationCommand, _super);
|
|
8
|
+
function DeleteApplicationCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
DeleteApplicationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "EMRServerlessClient";
|
|
18
|
+
var commandName = "DeleteApplicationCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: DeleteApplicationRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: DeleteApplicationResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
DeleteApplicationCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1DeleteApplicationCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
DeleteApplicationCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1DeleteApplicationCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return DeleteApplicationCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { DeleteApplicationCommand };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { GetApplicationRequest, GetApplicationResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1GetApplicationCommand, serializeAws_restJson1GetApplicationCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var GetApplicationCommand = (function (_super) {
|
|
7
|
+
__extends(GetApplicationCommand, _super);
|
|
8
|
+
function GetApplicationCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
GetApplicationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "EMRServerlessClient";
|
|
18
|
+
var commandName = "GetApplicationCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: GetApplicationRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: GetApplicationResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
GetApplicationCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1GetApplicationCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
GetApplicationCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1GetApplicationCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return GetApplicationCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { GetApplicationCommand };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { GetJobRunRequest, GetJobRunResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1GetJobRunCommand, serializeAws_restJson1GetJobRunCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var GetJobRunCommand = (function (_super) {
|
|
7
|
+
__extends(GetJobRunCommand, _super);
|
|
8
|
+
function GetJobRunCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
GetJobRunCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "EMRServerlessClient";
|
|
18
|
+
var commandName = "GetJobRunCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: GetJobRunRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: GetJobRunResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
GetJobRunCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1GetJobRunCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
GetJobRunCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1GetJobRunCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return GetJobRunCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { GetJobRunCommand };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { ListApplicationsRequest, ListApplicationsResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1ListApplicationsCommand, serializeAws_restJson1ListApplicationsCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var ListApplicationsCommand = (function (_super) {
|
|
7
|
+
__extends(ListApplicationsCommand, _super);
|
|
8
|
+
function ListApplicationsCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
ListApplicationsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "EMRServerlessClient";
|
|
18
|
+
var commandName = "ListApplicationsCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: ListApplicationsRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: ListApplicationsResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
ListApplicationsCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1ListApplicationsCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
ListApplicationsCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1ListApplicationsCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return ListApplicationsCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { ListApplicationsCommand };
|