@aws-sdk/client-arc-zonal-shift 3.219.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 +219 -0
- package/dist-cjs/ARCZonalShift.js +97 -0
- package/dist-cjs/ARCZonalShiftClient.js +40 -0
- package/dist-cjs/commands/CancelZonalShiftCommand.js +46 -0
- package/dist-cjs/commands/GetManagedResourceCommand.js +46 -0
- package/dist-cjs/commands/ListManagedResourcesCommand.js +46 -0
- package/dist-cjs/commands/ListZonalShiftsCommand.js +46 -0
- package/dist-cjs/commands/StartZonalShiftCommand.js +46 -0
- package/dist-cjs/commands/UpdateZonalShiftCommand.js +46 -0
- package/dist-cjs/commands/index.js +9 -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/ARCZonalShiftServiceException.js +11 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +164 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListManagedResourcesPaginator.js +36 -0
- package/dist-cjs/pagination/ListZonalShiftsPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +6 -0
- package/dist-cjs/protocols/Aws_restJson1.js +703 -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 +18 -0
- package/dist-es/ARCZonalShift.js +93 -0
- package/dist-es/ARCZonalShiftClient.js +36 -0
- package/dist-es/commands/CancelZonalShiftCommand.js +42 -0
- package/dist-es/commands/GetManagedResourceCommand.js +42 -0
- package/dist-es/commands/ListManagedResourcesCommand.js +42 -0
- package/dist-es/commands/ListZonalShiftsCommand.js +42 -0
- package/dist-es/commands/StartZonalShiftCommand.js +42 -0
- package/dist-es/commands/UpdateZonalShiftCommand.js +42 -0
- package/dist-es/commands/index.js +6 -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/ARCZonalShiftServiceException.js +7 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +142 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListManagedResourcesPaginator.js +32 -0
- package/dist-es/pagination/ListZonalShiftsPaginator.js +32 -0
- package/dist-es/pagination/index.js +3 -0
- package/dist-es/protocols/Aws_restJson1.js +688 -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 +14 -0
- package/dist-types/ARCZonalShift.d.ts +77 -0
- package/dist-types/ARCZonalShiftClient.d.ts +161 -0
- package/dist-types/commands/CancelZonalShiftCommand.d.ts +37 -0
- package/dist-types/commands/GetManagedResourceCommand.d.ts +39 -0
- package/dist-types/commands/ListManagedResourcesCommand.d.ts +39 -0
- package/dist-types/commands/ListZonalShiftsCommand.d.ts +37 -0
- package/dist-types/commands/StartZonalShiftCommand.d.ts +46 -0
- package/dist-types/commands/UpdateZonalShiftCommand.d.ts +38 -0
- package/dist-types/commands/index.d.ts +6 -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/ARCZonalShiftServiceException.d.ts +10 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +503 -0
- package/dist-types/pagination/Interfaces.d.ts +6 -0
- package/dist-types/pagination/ListManagedResourcesPaginator.d.ts +4 -0
- package/dist-types/pagination/ListZonalShiftsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +3 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +20 -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 +16 -0
- package/dist-types/ts3.4/ARCZonalShift.d.ts +106 -0
- package/dist-types/ts3.4/ARCZonalShiftClient.d.ts +148 -0
- package/dist-types/ts3.4/commands/CancelZonalShiftCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/GetManagedResourceCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListManagedResourcesCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListZonalShiftsCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/StartZonalShiftCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/UpdateZonalShiftCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/index.d.ts +6 -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/ARCZonalShiftServiceException.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 +177 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +7 -0
- package/dist-types/ts3.4/pagination/ListManagedResourcesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListZonalShiftsPaginator.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 +77 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +88 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +88 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +77 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +16 -0
- package/package.json +101 -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,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getRuntimeConfig = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
5
|
+
const url_parser_1 = require("@aws-sdk/url-parser");
|
|
6
|
+
const util_base64_1 = require("@aws-sdk/util-base64");
|
|
7
|
+
const endpointResolver_1 = require("./endpoint/endpointResolver");
|
|
8
|
+
const getRuntimeConfig = (config) => ({
|
|
9
|
+
apiVersion: "2022-10-30",
|
|
10
|
+
base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,
|
|
11
|
+
base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
|
|
12
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
13
|
+
endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
|
|
14
|
+
logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
|
|
15
|
+
serviceId: config?.serviceId ?? "ARC Zonal Shift",
|
|
16
|
+
urlParser: config?.urlParser ?? url_parser_1.parseUrl,
|
|
17
|
+
});
|
|
18
|
+
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { ARCZonalShiftClient } from "./ARCZonalShiftClient";
|
|
2
|
+
import { CancelZonalShiftCommand, } from "./commands/CancelZonalShiftCommand";
|
|
3
|
+
import { GetManagedResourceCommand, } from "./commands/GetManagedResourceCommand";
|
|
4
|
+
import { ListManagedResourcesCommand, } from "./commands/ListManagedResourcesCommand";
|
|
5
|
+
import { ListZonalShiftsCommand, } from "./commands/ListZonalShiftsCommand";
|
|
6
|
+
import { StartZonalShiftCommand, } from "./commands/StartZonalShiftCommand";
|
|
7
|
+
import { UpdateZonalShiftCommand, } from "./commands/UpdateZonalShiftCommand";
|
|
8
|
+
export class ARCZonalShift extends ARCZonalShiftClient {
|
|
9
|
+
cancelZonalShift(args, optionsOrCb, cb) {
|
|
10
|
+
const command = new CancelZonalShiftCommand(args);
|
|
11
|
+
if (typeof optionsOrCb === "function") {
|
|
12
|
+
this.send(command, optionsOrCb);
|
|
13
|
+
}
|
|
14
|
+
else if (typeof cb === "function") {
|
|
15
|
+
if (typeof optionsOrCb !== "object")
|
|
16
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
17
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
return this.send(command, optionsOrCb);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
getManagedResource(args, optionsOrCb, cb) {
|
|
24
|
+
const command = new GetManagedResourceCommand(args);
|
|
25
|
+
if (typeof optionsOrCb === "function") {
|
|
26
|
+
this.send(command, optionsOrCb);
|
|
27
|
+
}
|
|
28
|
+
else if (typeof cb === "function") {
|
|
29
|
+
if (typeof optionsOrCb !== "object")
|
|
30
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
31
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
32
|
+
}
|
|
33
|
+
else {
|
|
34
|
+
return this.send(command, optionsOrCb);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
listManagedResources(args, optionsOrCb, cb) {
|
|
38
|
+
const command = new ListManagedResourcesCommand(args);
|
|
39
|
+
if (typeof optionsOrCb === "function") {
|
|
40
|
+
this.send(command, optionsOrCb);
|
|
41
|
+
}
|
|
42
|
+
else if (typeof cb === "function") {
|
|
43
|
+
if (typeof optionsOrCb !== "object")
|
|
44
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
45
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
46
|
+
}
|
|
47
|
+
else {
|
|
48
|
+
return this.send(command, optionsOrCb);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
listZonalShifts(args, optionsOrCb, cb) {
|
|
52
|
+
const command = new ListZonalShiftsCommand(args);
|
|
53
|
+
if (typeof optionsOrCb === "function") {
|
|
54
|
+
this.send(command, optionsOrCb);
|
|
55
|
+
}
|
|
56
|
+
else if (typeof cb === "function") {
|
|
57
|
+
if (typeof optionsOrCb !== "object")
|
|
58
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
59
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
60
|
+
}
|
|
61
|
+
else {
|
|
62
|
+
return this.send(command, optionsOrCb);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
startZonalShift(args, optionsOrCb, cb) {
|
|
66
|
+
const command = new StartZonalShiftCommand(args);
|
|
67
|
+
if (typeof optionsOrCb === "function") {
|
|
68
|
+
this.send(command, optionsOrCb);
|
|
69
|
+
}
|
|
70
|
+
else if (typeof cb === "function") {
|
|
71
|
+
if (typeof optionsOrCb !== "object")
|
|
72
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
73
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
74
|
+
}
|
|
75
|
+
else {
|
|
76
|
+
return this.send(command, optionsOrCb);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
updateZonalShift(args, optionsOrCb, cb) {
|
|
80
|
+
const command = new UpdateZonalShiftCommand(args);
|
|
81
|
+
if (typeof optionsOrCb === "function") {
|
|
82
|
+
this.send(command, optionsOrCb);
|
|
83
|
+
}
|
|
84
|
+
else if (typeof cb === "function") {
|
|
85
|
+
if (typeof optionsOrCb !== "object")
|
|
86
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
87
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
88
|
+
}
|
|
89
|
+
else {
|
|
90
|
+
return this.send(command, optionsOrCb);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
@@ -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 ARCZonalShiftClient 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 { CancelZonalShiftRequestFilterSensitiveLog, ZonalShiftFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1CancelZonalShiftCommand, serializeAws_restJson1CancelZonalShiftCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export class CancelZonalShiftCommand 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, CancelZonalShiftCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "ARCZonalShiftClient";
|
|
25
|
+
const commandName = "CancelZonalShiftCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: CancelZonalShiftRequestFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: ZonalShiftFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_restJson1CancelZonalShiftCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_restJson1CancelZonalShiftCommand(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 { GetManagedResourceRequestFilterSensitiveLog, GetManagedResourceResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1GetManagedResourceCommand, serializeAws_restJson1GetManagedResourceCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export class GetManagedResourceCommand 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, GetManagedResourceCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "ARCZonalShiftClient";
|
|
25
|
+
const commandName = "GetManagedResourceCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: GetManagedResourceRequestFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: GetManagedResourceResponseFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_restJson1GetManagedResourceCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_restJson1GetManagedResourceCommand(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 { ListManagedResourcesRequestFilterSensitiveLog, ListManagedResourcesResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1ListManagedResourcesCommand, serializeAws_restJson1ListManagedResourcesCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export class ListManagedResourcesCommand 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, ListManagedResourcesCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "ARCZonalShiftClient";
|
|
25
|
+
const commandName = "ListManagedResourcesCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: ListManagedResourcesRequestFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: ListManagedResourcesResponseFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_restJson1ListManagedResourcesCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_restJson1ListManagedResourcesCommand(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 { ListZonalShiftsRequestFilterSensitiveLog, ListZonalShiftsResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1ListZonalShiftsCommand, serializeAws_restJson1ListZonalShiftsCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export class ListZonalShiftsCommand 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, ListZonalShiftsCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "ARCZonalShiftClient";
|
|
25
|
+
const commandName = "ListZonalShiftsCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: ListZonalShiftsRequestFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: ListZonalShiftsResponseFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_restJson1ListZonalShiftsCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_restJson1ListZonalShiftsCommand(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 { StartZonalShiftRequestFilterSensitiveLog, ZonalShiftFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1StartZonalShiftCommand, serializeAws_restJson1StartZonalShiftCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export class StartZonalShiftCommand 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, StartZonalShiftCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "ARCZonalShiftClient";
|
|
25
|
+
const commandName = "StartZonalShiftCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: StartZonalShiftRequestFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: ZonalShiftFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_restJson1StartZonalShiftCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_restJson1StartZonalShiftCommand(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 { UpdateZonalShiftRequestFilterSensitiveLog, ZonalShiftFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1UpdateZonalShiftCommand, serializeAws_restJson1UpdateZonalShiftCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export class UpdateZonalShiftCommand 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, UpdateZonalShiftCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "ARCZonalShiftClient";
|
|
25
|
+
const commandName = "UpdateZonalShiftCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: UpdateZonalShiftRequestFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: ZonalShiftFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_restJson1UpdateZonalShiftCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_restJson1UpdateZonalShiftCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export * from "./CancelZonalShiftCommand";
|
|
2
|
+
export * from "./GetManagedResourceCommand";
|
|
3
|
+
export * from "./ListManagedResourcesCommand";
|
|
4
|
+
export * from "./ListZonalShiftsCommand";
|
|
5
|
+
export * from "./StartZonalShiftCommand";
|
|
6
|
+
export * from "./UpdateZonalShiftCommand";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { resolveEndpoint } from "@aws-sdk/util-endpoints";
|
|
2
|
+
import { ruleSet } from "./ruleset";
|
|
3
|
+
export const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
4
|
+
return resolveEndpoint(ruleSet, {
|
|
5
|
+
endpointParams: endpointParams,
|
|
6
|
+
logger: context.logger,
|
|
7
|
+
});
|
|
8
|
+
};
|