@aws-sdk/client-scheduler 3.208.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/LICENSE +201 -0
- package/README.md +209 -0
- package/dist-cjs/Scheduler.js +187 -0
- package/dist-cjs/SchedulerClient.js +40 -0
- package/dist-cjs/commands/CreateScheduleCommand.js +46 -0
- package/dist-cjs/commands/CreateScheduleGroupCommand.js +46 -0
- package/dist-cjs/commands/DeleteScheduleCommand.js +46 -0
- package/dist-cjs/commands/DeleteScheduleGroupCommand.js +46 -0
- package/dist-cjs/commands/GetScheduleCommand.js +46 -0
- package/dist-cjs/commands/GetScheduleGroupCommand.js +46 -0
- package/dist-cjs/commands/ListScheduleGroupsCommand.js +46 -0
- package/dist-cjs/commands/ListSchedulesCommand.js +46 -0
- package/dist-cjs/commands/ListTagsForResourceCommand.js +46 -0
- package/dist-cjs/commands/TagResourceCommand.js +46 -0
- package/dist-cjs/commands/UntagResourceCommand.js +46 -0
- package/dist-cjs/commands/UpdateScheduleCommand.js +46 -0
- package/dist-cjs/commands/index.js +15 -0
- package/dist-cjs/endpoint/EndpointParameters.js +12 -0
- package/dist-cjs/endpoint/endpointResolver.js +12 -0
- package/dist-cjs/endpoint/ruleset.js +312 -0
- package/dist-cjs/index.js +11 -0
- package/dist-cjs/models/SchedulerServiceException.js +11 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +302 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListScheduleGroupsPaginator.js +36 -0
- package/dist-cjs/pagination/ListSchedulesPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +6 -0
- package/dist-cjs/protocols/Aws_restJson1.js +1494 -0
- package/dist-cjs/runtimeConfig.browser.js +42 -0
- package/dist-cjs/runtimeConfig.js +50 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +17 -0
- package/dist-es/Scheduler.js +183 -0
- package/dist-es/SchedulerClient.js +36 -0
- package/dist-es/commands/CreateScheduleCommand.js +42 -0
- package/dist-es/commands/CreateScheduleGroupCommand.js +42 -0
- package/dist-es/commands/DeleteScheduleCommand.js +42 -0
- package/dist-es/commands/DeleteScheduleGroupCommand.js +42 -0
- package/dist-es/commands/GetScheduleCommand.js +42 -0
- package/dist-es/commands/GetScheduleGroupCommand.js +42 -0
- package/dist-es/commands/ListScheduleGroupsCommand.js +42 -0
- package/dist-es/commands/ListSchedulesCommand.js +42 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +42 -0
- package/dist-es/commands/TagResourceCommand.js +42 -0
- package/dist-es/commands/UntagResourceCommand.js +42 -0
- package/dist-es/commands/UpdateScheduleCommand.js +42 -0
- package/dist-es/commands/index.js +12 -0
- package/dist-es/endpoint/EndpointParameters.js +8 -0
- package/dist-es/endpoint/endpointResolver.js +8 -0
- package/dist-es/endpoint/ruleset.js +309 -0
- package/dist-es/index.js +6 -0
- package/dist-es/models/SchedulerServiceException.js +7 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +249 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListScheduleGroupsPaginator.js +32 -0
- package/dist-es/pagination/ListSchedulesPaginator.js +32 -0
- package/dist-es/pagination/index.js +3 -0
- package/dist-es/protocols/Aws_restJson1.js +1467 -0
- package/dist-es/runtimeConfig.browser.js +37 -0
- package/dist-es/runtimeConfig.js +45 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +13 -0
- package/dist-types/Scheduler.d.ts +111 -0
- package/dist-types/SchedulerClient.d.ts +157 -0
- package/dist-types/commands/CreateScheduleCommand.d.ts +37 -0
- package/dist-types/commands/CreateScheduleGroupCommand.d.ts +37 -0
- package/dist-types/commands/DeleteScheduleCommand.d.ts +37 -0
- package/dist-types/commands/DeleteScheduleGroupCommand.d.ts +45 -0
- package/dist-types/commands/GetScheduleCommand.d.ts +37 -0
- package/dist-types/commands/GetScheduleGroupCommand.d.ts +37 -0
- package/dist-types/commands/ListScheduleGroupsCommand.d.ts +37 -0
- package/dist-types/commands/ListSchedulesCommand.d.ts +37 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +37 -0
- package/dist-types/commands/TagResourceCommand.d.ts +37 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +37 -0
- package/dist-types/commands/UpdateScheduleCommand.d.ts +45 -0
- package/dist-types/commands/index.d.ts +12 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +19 -0
- package/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/index.d.ts +6 -0
- package/dist-types/models/SchedulerServiceException.d.ts +10 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +1148 -0
- package/dist-types/pagination/Interfaces.d.ts +6 -0
- package/dist-types/pagination/ListScheduleGroupsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListSchedulesPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +3 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +38 -0
- package/dist-types/runtimeConfig.browser.d.ts +42 -0
- package/dist-types/runtimeConfig.d.ts +42 -0
- package/dist-types/runtimeConfig.native.d.ts +41 -0
- package/dist-types/runtimeConfig.shared.d.ts +17 -0
- package/dist-types/ts3.4/Scheduler.d.ts +208 -0
- package/dist-types/ts3.4/SchedulerClient.d.ts +183 -0
- package/dist-types/ts3.4/commands/CreateScheduleCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/CreateScheduleGroupCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DeleteScheduleCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/DeleteScheduleGroupCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetScheduleCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/GetScheduleGroupCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/ListScheduleGroupsCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListSchedulesCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/UpdateScheduleCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/index.d.ts +12 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +34 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/index.d.ts +6 -0
- package/dist-types/ts3.4/models/SchedulerServiceException.d.ts +7 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +423 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +7 -0
- package/dist-types/ts3.4/pagination/ListScheduleGroupsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListSchedulesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +3 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +149 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +86 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +86 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +75 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +17 -0
- package/package.json +105 -0
|
@@ -0,0 +1,42 @@
|
|
|
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_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
|
|
12
|
+
const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
|
|
13
|
+
const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
|
|
14
|
+
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
15
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
16
|
+
const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
|
|
17
|
+
const getRuntimeConfig = (config) => {
|
|
18
|
+
const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
|
|
19
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
20
|
+
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
21
|
+
return {
|
|
22
|
+
...clientSharedValues,
|
|
23
|
+
...config,
|
|
24
|
+
runtime: "browser",
|
|
25
|
+
defaultsMode,
|
|
26
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_browser_1.calculateBodyLength,
|
|
27
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
28
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
29
|
+
(0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
30
|
+
maxAttempts: config?.maxAttempts ?? middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
31
|
+
region: config?.region ?? (0, invalid_dependency_1.invalidProvider)("Region is missing"),
|
|
32
|
+
requestHandler: config?.requestHandler ?? new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
|
|
33
|
+
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
|
|
34
|
+
sha256: config?.sha256 ?? sha256_browser_1.Sha256,
|
|
35
|
+
streamCollector: config?.streamCollector ?? fetch_http_handler_1.streamCollector,
|
|
36
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
37
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
|
|
38
|
+
utf8Decoder: config?.utf8Decoder ?? util_utf8_browser_1.fromUtf8,
|
|
39
|
+
utf8Encoder: config?.utf8Encoder ?? util_utf8_browser_1.toUtf8,
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -0,0 +1,50 @@
|
|
|
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_body_length_node_1 = require("@aws-sdk/util-body-length-node");
|
|
14
|
+
const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
|
|
15
|
+
const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
|
|
16
|
+
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
17
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
18
|
+
const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
|
|
19
|
+
const smithy_client_2 = require("@aws-sdk/smithy-client");
|
|
20
|
+
const getRuntimeConfig = (config) => {
|
|
21
|
+
(0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
|
|
22
|
+
const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
|
|
23
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
24
|
+
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
25
|
+
return {
|
|
26
|
+
...clientSharedValues,
|
|
27
|
+
...config,
|
|
28
|
+
runtime: "node",
|
|
29
|
+
defaultsMode,
|
|
30
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
|
|
31
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider),
|
|
32
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
33
|
+
(0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
34
|
+
maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
35
|
+
region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
36
|
+
requestHandler: config?.requestHandler ?? new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
|
|
37
|
+
retryMode: config?.retryMode ??
|
|
38
|
+
(0, node_config_provider_1.loadConfig)({
|
|
39
|
+
...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
40
|
+
default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
|
|
41
|
+
}),
|
|
42
|
+
sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
|
|
43
|
+
streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
|
|
44
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
45
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
|
46
|
+
utf8Decoder: config?.utf8Decoder ?? util_utf8_node_1.fromUtf8,
|
|
47
|
+
utf8Encoder: config?.utf8Encoder ?? util_utf8_node_1.toUtf8,
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
|
|
8
|
+
return {
|
|
9
|
+
...browserDefaults,
|
|
10
|
+
...config,
|
|
11
|
+
runtime: "react-native",
|
|
12
|
+
sha256: config?.sha256 ?? sha256_js_1.Sha256,
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
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 util_base64_1 = require("@aws-sdk/util-base64");
|
|
6
|
+
const endpointResolver_1 = require("./endpoint/endpointResolver");
|
|
7
|
+
const getRuntimeConfig = (config) => ({
|
|
8
|
+
apiVersion: "2021-06-30",
|
|
9
|
+
base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,
|
|
10
|
+
base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
|
|
11
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
12
|
+
endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
|
|
13
|
+
logger: config?.logger ?? {},
|
|
14
|
+
serviceId: config?.serviceId ?? "Scheduler",
|
|
15
|
+
urlParser: config?.urlParser ?? url_parser_1.parseUrl,
|
|
16
|
+
});
|
|
17
|
+
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
import { CreateScheduleCommand, } from "./commands/CreateScheduleCommand";
|
|
2
|
+
import { CreateScheduleGroupCommand, } from "./commands/CreateScheduleGroupCommand";
|
|
3
|
+
import { DeleteScheduleCommand, } from "./commands/DeleteScheduleCommand";
|
|
4
|
+
import { DeleteScheduleGroupCommand, } from "./commands/DeleteScheduleGroupCommand";
|
|
5
|
+
import { GetScheduleCommand } from "./commands/GetScheduleCommand";
|
|
6
|
+
import { GetScheduleGroupCommand, } from "./commands/GetScheduleGroupCommand";
|
|
7
|
+
import { ListScheduleGroupsCommand, } from "./commands/ListScheduleGroupsCommand";
|
|
8
|
+
import { ListSchedulesCommand, } from "./commands/ListSchedulesCommand";
|
|
9
|
+
import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
|
|
10
|
+
import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
11
|
+
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
12
|
+
import { UpdateScheduleCommand, } from "./commands/UpdateScheduleCommand";
|
|
13
|
+
import { SchedulerClient } from "./SchedulerClient";
|
|
14
|
+
export class Scheduler extends SchedulerClient {
|
|
15
|
+
createSchedule(args, optionsOrCb, cb) {
|
|
16
|
+
const command = new CreateScheduleCommand(args);
|
|
17
|
+
if (typeof optionsOrCb === "function") {
|
|
18
|
+
this.send(command, optionsOrCb);
|
|
19
|
+
}
|
|
20
|
+
else if (typeof cb === "function") {
|
|
21
|
+
if (typeof optionsOrCb !== "object")
|
|
22
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
23
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
24
|
+
}
|
|
25
|
+
else {
|
|
26
|
+
return this.send(command, optionsOrCb);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
createScheduleGroup(args, optionsOrCb, cb) {
|
|
30
|
+
const command = new CreateScheduleGroupCommand(args);
|
|
31
|
+
if (typeof optionsOrCb === "function") {
|
|
32
|
+
this.send(command, optionsOrCb);
|
|
33
|
+
}
|
|
34
|
+
else if (typeof cb === "function") {
|
|
35
|
+
if (typeof optionsOrCb !== "object")
|
|
36
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
37
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
38
|
+
}
|
|
39
|
+
else {
|
|
40
|
+
return this.send(command, optionsOrCb);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
deleteSchedule(args, optionsOrCb, cb) {
|
|
44
|
+
const command = new DeleteScheduleCommand(args);
|
|
45
|
+
if (typeof optionsOrCb === "function") {
|
|
46
|
+
this.send(command, optionsOrCb);
|
|
47
|
+
}
|
|
48
|
+
else if (typeof cb === "function") {
|
|
49
|
+
if (typeof optionsOrCb !== "object")
|
|
50
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
51
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
52
|
+
}
|
|
53
|
+
else {
|
|
54
|
+
return this.send(command, optionsOrCb);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
deleteScheduleGroup(args, optionsOrCb, cb) {
|
|
58
|
+
const command = new DeleteScheduleGroupCommand(args);
|
|
59
|
+
if (typeof optionsOrCb === "function") {
|
|
60
|
+
this.send(command, optionsOrCb);
|
|
61
|
+
}
|
|
62
|
+
else if (typeof cb === "function") {
|
|
63
|
+
if (typeof optionsOrCb !== "object")
|
|
64
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
65
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
66
|
+
}
|
|
67
|
+
else {
|
|
68
|
+
return this.send(command, optionsOrCb);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
getSchedule(args, optionsOrCb, cb) {
|
|
72
|
+
const command = new GetScheduleCommand(args);
|
|
73
|
+
if (typeof optionsOrCb === "function") {
|
|
74
|
+
this.send(command, optionsOrCb);
|
|
75
|
+
}
|
|
76
|
+
else if (typeof cb === "function") {
|
|
77
|
+
if (typeof optionsOrCb !== "object")
|
|
78
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
79
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
80
|
+
}
|
|
81
|
+
else {
|
|
82
|
+
return this.send(command, optionsOrCb);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
getScheduleGroup(args, optionsOrCb, cb) {
|
|
86
|
+
const command = new GetScheduleGroupCommand(args);
|
|
87
|
+
if (typeof optionsOrCb === "function") {
|
|
88
|
+
this.send(command, optionsOrCb);
|
|
89
|
+
}
|
|
90
|
+
else if (typeof cb === "function") {
|
|
91
|
+
if (typeof optionsOrCb !== "object")
|
|
92
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
93
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
94
|
+
}
|
|
95
|
+
else {
|
|
96
|
+
return this.send(command, optionsOrCb);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
listScheduleGroups(args, optionsOrCb, cb) {
|
|
100
|
+
const command = new ListScheduleGroupsCommand(args);
|
|
101
|
+
if (typeof optionsOrCb === "function") {
|
|
102
|
+
this.send(command, optionsOrCb);
|
|
103
|
+
}
|
|
104
|
+
else if (typeof cb === "function") {
|
|
105
|
+
if (typeof optionsOrCb !== "object")
|
|
106
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
107
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
108
|
+
}
|
|
109
|
+
else {
|
|
110
|
+
return this.send(command, optionsOrCb);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
listSchedules(args, optionsOrCb, cb) {
|
|
114
|
+
const command = new ListSchedulesCommand(args);
|
|
115
|
+
if (typeof optionsOrCb === "function") {
|
|
116
|
+
this.send(command, optionsOrCb);
|
|
117
|
+
}
|
|
118
|
+
else if (typeof cb === "function") {
|
|
119
|
+
if (typeof optionsOrCb !== "object")
|
|
120
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
121
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
122
|
+
}
|
|
123
|
+
else {
|
|
124
|
+
return this.send(command, optionsOrCb);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
listTagsForResource(args, optionsOrCb, cb) {
|
|
128
|
+
const command = new ListTagsForResourceCommand(args);
|
|
129
|
+
if (typeof optionsOrCb === "function") {
|
|
130
|
+
this.send(command, optionsOrCb);
|
|
131
|
+
}
|
|
132
|
+
else if (typeof cb === "function") {
|
|
133
|
+
if (typeof optionsOrCb !== "object")
|
|
134
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
135
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
136
|
+
}
|
|
137
|
+
else {
|
|
138
|
+
return this.send(command, optionsOrCb);
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
tagResource(args, optionsOrCb, cb) {
|
|
142
|
+
const command = new TagResourceCommand(args);
|
|
143
|
+
if (typeof optionsOrCb === "function") {
|
|
144
|
+
this.send(command, optionsOrCb);
|
|
145
|
+
}
|
|
146
|
+
else if (typeof cb === "function") {
|
|
147
|
+
if (typeof optionsOrCb !== "object")
|
|
148
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
149
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
150
|
+
}
|
|
151
|
+
else {
|
|
152
|
+
return this.send(command, optionsOrCb);
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
untagResource(args, optionsOrCb, cb) {
|
|
156
|
+
const command = new UntagResourceCommand(args);
|
|
157
|
+
if (typeof optionsOrCb === "function") {
|
|
158
|
+
this.send(command, optionsOrCb);
|
|
159
|
+
}
|
|
160
|
+
else if (typeof cb === "function") {
|
|
161
|
+
if (typeof optionsOrCb !== "object")
|
|
162
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
163
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
164
|
+
}
|
|
165
|
+
else {
|
|
166
|
+
return this.send(command, optionsOrCb);
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
updateSchedule(args, optionsOrCb, cb) {
|
|
170
|
+
const command = new UpdateScheduleCommand(args);
|
|
171
|
+
if (typeof optionsOrCb === "function") {
|
|
172
|
+
this.send(command, optionsOrCb);
|
|
173
|
+
}
|
|
174
|
+
else if (typeof cb === "function") {
|
|
175
|
+
if (typeof optionsOrCb !== "object")
|
|
176
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
177
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
178
|
+
}
|
|
179
|
+
else {
|
|
180
|
+
return this.send(command, optionsOrCb);
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { resolveRegionConfig } from "@aws-sdk/config-resolver";
|
|
2
|
+
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
|
|
3
|
+
import { resolveEndpointConfig } from "@aws-sdk/middleware-endpoint";
|
|
4
|
+
import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
|
|
5
|
+
import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
|
|
6
|
+
import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detection";
|
|
7
|
+
import { getRetryPlugin, resolveRetryConfig } from "@aws-sdk/middleware-retry";
|
|
8
|
+
import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-signing";
|
|
9
|
+
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
10
|
+
import { Client as __Client, } from "@aws-sdk/smithy-client";
|
|
11
|
+
import { resolveClientEndpointParameters, } from "./endpoint/EndpointParameters";
|
|
12
|
+
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
13
|
+
export class SchedulerClient extends __Client {
|
|
14
|
+
constructor(configuration) {
|
|
15
|
+
const _config_0 = __getRuntimeConfig(configuration);
|
|
16
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
17
|
+
const _config_2 = resolveRegionConfig(_config_1);
|
|
18
|
+
const _config_3 = resolveEndpointConfig(_config_2);
|
|
19
|
+
const _config_4 = resolveRetryConfig(_config_3);
|
|
20
|
+
const _config_5 = resolveHostHeaderConfig(_config_4);
|
|
21
|
+
const _config_6 = resolveAwsAuthConfig(_config_5);
|
|
22
|
+
const _config_7 = resolveUserAgentConfig(_config_6);
|
|
23
|
+
super(_config_7);
|
|
24
|
+
this.config = _config_7;
|
|
25
|
+
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
26
|
+
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
27
|
+
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
28
|
+
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
29
|
+
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
30
|
+
this.middlewareStack.use(getAwsAuthPlugin(this.config));
|
|
31
|
+
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
32
|
+
}
|
|
33
|
+
destroy() {
|
|
34
|
+
super.destroy();
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { CreateScheduleInputFilterSensitiveLog, CreateScheduleOutputFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1CreateScheduleCommand, serializeAws_restJson1CreateScheduleCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export class CreateScheduleCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, CreateScheduleCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "SchedulerClient";
|
|
25
|
+
const commandName = "CreateScheduleCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: CreateScheduleInputFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: CreateScheduleOutputFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_restJson1CreateScheduleCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_restJson1CreateScheduleCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { CreateScheduleGroupInputFilterSensitiveLog, CreateScheduleGroupOutputFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1CreateScheduleGroupCommand, serializeAws_restJson1CreateScheduleGroupCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export class CreateScheduleGroupCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, CreateScheduleGroupCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "SchedulerClient";
|
|
25
|
+
const commandName = "CreateScheduleGroupCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: CreateScheduleGroupInputFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: CreateScheduleGroupOutputFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_restJson1CreateScheduleGroupCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_restJson1CreateScheduleGroupCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { DeleteScheduleInputFilterSensitiveLog, DeleteScheduleOutputFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1DeleteScheduleCommand, serializeAws_restJson1DeleteScheduleCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export class DeleteScheduleCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, DeleteScheduleCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "SchedulerClient";
|
|
25
|
+
const commandName = "DeleteScheduleCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: DeleteScheduleInputFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: DeleteScheduleOutputFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_restJson1DeleteScheduleCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_restJson1DeleteScheduleCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { DeleteScheduleGroupInputFilterSensitiveLog, DeleteScheduleGroupOutputFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1DeleteScheduleGroupCommand, serializeAws_restJson1DeleteScheduleGroupCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export class DeleteScheduleGroupCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, DeleteScheduleGroupCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "SchedulerClient";
|
|
25
|
+
const commandName = "DeleteScheduleGroupCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: DeleteScheduleGroupInputFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: DeleteScheduleGroupOutputFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_restJson1DeleteScheduleGroupCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_restJson1DeleteScheduleGroupCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { GetScheduleInputFilterSensitiveLog, GetScheduleOutputFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1GetScheduleCommand, serializeAws_restJson1GetScheduleCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export class GetScheduleCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, GetScheduleCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "SchedulerClient";
|
|
25
|
+
const commandName = "GetScheduleCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: GetScheduleInputFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: GetScheduleOutputFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_restJson1GetScheduleCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_restJson1GetScheduleCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { GetScheduleGroupInputFilterSensitiveLog, GetScheduleGroupOutputFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1GetScheduleGroupCommand, serializeAws_restJson1GetScheduleGroupCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export class GetScheduleGroupCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, GetScheduleGroupCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "SchedulerClient";
|
|
25
|
+
const commandName = "GetScheduleGroupCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: GetScheduleGroupInputFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: GetScheduleGroupOutputFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_restJson1GetScheduleGroupCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_restJson1GetScheduleGroupCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { ListScheduleGroupsInputFilterSensitiveLog, ListScheduleGroupsOutputFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1ListScheduleGroupsCommand, serializeAws_restJson1ListScheduleGroupsCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export class ListScheduleGroupsCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, ListScheduleGroupsCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "SchedulerClient";
|
|
25
|
+
const commandName = "ListScheduleGroupsCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: ListScheduleGroupsInputFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: ListScheduleGroupsOutputFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_restJson1ListScheduleGroupsCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_restJson1ListScheduleGroupsCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|