@aws-sdk/client-keyspaces 3.54.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 +219 -0
- package/dist-cjs/Keyspaces.js +202 -0
- package/dist-cjs/KeyspacesClient.js +35 -0
- package/dist-cjs/commands/CreateKeyspaceCommand.js +36 -0
- package/dist-cjs/commands/CreateTableCommand.js +36 -0
- package/dist-cjs/commands/DeleteKeyspaceCommand.js +36 -0
- package/dist-cjs/commands/DeleteTableCommand.js +36 -0
- package/dist-cjs/commands/GetKeyspaceCommand.js +36 -0
- package/dist-cjs/commands/GetTableCommand.js +36 -0
- package/dist-cjs/commands/ListKeyspacesCommand.js +36 -0
- package/dist-cjs/commands/ListTablesCommand.js +36 -0
- package/dist-cjs/commands/ListTagsForResourceCommand.js +36 -0
- package/dist-cjs/commands/RestoreTableCommand.js +36 -0
- package/dist-cjs/commands/TagResourceCommand.js +36 -0
- package/dist-cjs/commands/UntagResourceCommand.js +36 -0
- package/dist-cjs/commands/UpdateTableCommand.js +36 -0
- package/dist-cjs/commands/index.js +16 -0
- package/dist-cjs/endpoints.js +131 -0
- package/dist-cjs/index.js +11 -0
- package/dist-cjs/models/KeyspacesServiceException.js +11 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +364 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListKeyspacesPaginator.js +35 -0
- package/dist-cjs/pagination/ListTablesPaginator.js +35 -0
- package/dist-cjs/pagination/ListTagsForResourcePaginator.js +35 -0
- package/dist-cjs/pagination/index.js +7 -0
- package/dist-cjs/protocols/Aws_json1_0.js +1455 -0
- package/dist-cjs/runtimeConfig.browser.js +45 -0
- package/dist-cjs/runtimeConfig.js +50 -0
- package/dist-cjs/runtimeConfig.native.js +16 -0
- package/dist-cjs/runtimeConfig.shared.js +17 -0
- package/dist-es/Keyspaces.js +205 -0
- package/dist-es/KeyspacesClient.js +37 -0
- package/dist-es/commands/CreateKeyspaceCommand.js +39 -0
- package/dist-es/commands/CreateTableCommand.js +39 -0
- package/dist-es/commands/DeleteKeyspaceCommand.js +39 -0
- package/dist-es/commands/DeleteTableCommand.js +39 -0
- package/dist-es/commands/GetKeyspaceCommand.js +39 -0
- package/dist-es/commands/GetTableCommand.js +39 -0
- package/dist-es/commands/ListKeyspacesCommand.js +39 -0
- package/dist-es/commands/ListTablesCommand.js +39 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +39 -0
- package/dist-es/commands/RestoreTableCommand.js +39 -0
- package/dist-es/commands/TagResourceCommand.js +39 -0
- package/dist-es/commands/UntagResourceCommand.js +39 -0
- package/dist-es/commands/UpdateTableCommand.js +39 -0
- package/dist-es/commands/index.js +13 -0
- package/dist-es/endpoints.js +127 -0
- package/dist-es/index.js +6 -0
- package/dist-es/models/KeyspacesServiceException.js +12 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +273 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListKeyspacesPaginator.js +74 -0
- package/dist-es/pagination/ListTablesPaginator.js +74 -0
- package/dist-es/pagination/ListTagsForResourcePaginator.js +74 -0
- package/dist-es/pagination/index.js +4 -0
- package/dist-es/protocols/Aws_json1_0.js +1627 -0
- package/dist-es/runtimeConfig.browser.js +26 -0
- package/dist-es/runtimeConfig.js +28 -0
- package/dist-es/runtimeConfig.native.js +8 -0
- package/dist-es/runtimeConfig.shared.js +13 -0
- package/dist-types/Keyspaces.d.ts +187 -0
- package/dist-types/KeyspacesClient.d.ts +173 -0
- package/dist-types/commands/CreateKeyspaceCommand.d.ts +41 -0
- package/dist-types/commands/CreateTableCommand.d.ts +42 -0
- package/dist-types/commands/DeleteKeyspaceCommand.d.ts +35 -0
- package/dist-types/commands/DeleteTableCommand.d.ts +40 -0
- package/dist-types/commands/GetKeyspaceCommand.d.ts +35 -0
- package/dist-types/commands/GetTableCommand.d.ts +38 -0
- package/dist-types/commands/ListKeyspacesCommand.d.ts +35 -0
- package/dist-types/commands/ListTablesCommand.d.ts +35 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +35 -0
- package/dist-types/commands/RestoreTableCommand.d.ts +79 -0
- package/dist-types/commands/TagResourceCommand.d.ts +41 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +35 -0
- package/dist-types/commands/UpdateTableCommand.d.ts +37 -0
- package/dist-types/commands/index.d.ts +13 -0
- package/dist-types/endpoints.d.ts +2 -0
- package/dist-types/index.d.ts +6 -0
- package/dist-types/models/KeyspacesServiceException.d.ts +10 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +1307 -0
- package/dist-types/pagination/Interfaces.d.ts +6 -0
- package/dist-types/pagination/ListKeyspacesPaginator.d.ts +4 -0
- package/dist-types/pagination/ListTablesPaginator.d.ts +4 -0
- package/dist-types/pagination/ListTagsForResourcePaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +4 -0
- package/dist-types/protocols/Aws_json1_0.d.ts +41 -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/Keyspaces.d.ts +70 -0
- package/dist-types/ts3.4/KeyspacesClient.d.ts +86 -0
- package/dist-types/ts3.4/commands/CreateKeyspaceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateTableCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteKeyspaceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteTableCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetKeyspaceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetTableCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListKeyspacesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListTablesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/RestoreTableCommand.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/UpdateTableCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +13 -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/KeyspacesServiceException.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 +539 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListKeyspacesPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListTablesPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListTagsForResourcePaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +4 -0
- package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +41 -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 +93 -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 = util_defaults_mode_browser_1.resolveDefaultsModeConfig(config);
|
|
21
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
22
|
+
const clientSharedValues = 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 : 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 : 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,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_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 getRuntimeConfig = (config) => {
|
|
21
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
22
|
+
const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config);
|
|
23
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
24
|
+
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
25
|
+
return {
|
|
26
|
+
...clientSharedValues,
|
|
27
|
+
...config,
|
|
28
|
+
runtime: "node",
|
|
29
|
+
defaultsMode,
|
|
30
|
+
base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
|
|
31
|
+
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
|
|
32
|
+
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
|
|
33
|
+
credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : client_sts_1.decorateDefaultCredentialProvider(credential_provider_node_1.defaultProvider),
|
|
34
|
+
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_node_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
35
|
+
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : node_config_provider_1.loadConfig(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
36
|
+
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : node_config_provider_1.loadConfig(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
37
|
+
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
|
|
38
|
+
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : 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: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
|
|
43
|
+
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
|
|
44
|
+
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
45
|
+
useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
|
46
|
+
utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.fromUtf8,
|
|
47
|
+
utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.toUtf8,
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
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 = 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: "2022-02-10",
|
|
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 : "Keyspaces",
|
|
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,205 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { CreateKeyspaceCommand, } from "./commands/CreateKeyspaceCommand";
|
|
3
|
+
import { CreateTableCommand } from "./commands/CreateTableCommand";
|
|
4
|
+
import { DeleteKeyspaceCommand, } from "./commands/DeleteKeyspaceCommand";
|
|
5
|
+
import { DeleteTableCommand } from "./commands/DeleteTableCommand";
|
|
6
|
+
import { GetKeyspaceCommand } from "./commands/GetKeyspaceCommand";
|
|
7
|
+
import { GetTableCommand } from "./commands/GetTableCommand";
|
|
8
|
+
import { ListKeyspacesCommand, } from "./commands/ListKeyspacesCommand";
|
|
9
|
+
import { ListTablesCommand } from "./commands/ListTablesCommand";
|
|
10
|
+
import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
|
|
11
|
+
import { RestoreTableCommand, } from "./commands/RestoreTableCommand";
|
|
12
|
+
import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
13
|
+
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
14
|
+
import { UpdateTableCommand } from "./commands/UpdateTableCommand";
|
|
15
|
+
import { KeyspacesClient } from "./KeyspacesClient";
|
|
16
|
+
var Keyspaces = (function (_super) {
|
|
17
|
+
__extends(Keyspaces, _super);
|
|
18
|
+
function Keyspaces() {
|
|
19
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
20
|
+
}
|
|
21
|
+
Keyspaces.prototype.createKeyspace = function (args, optionsOrCb, cb) {
|
|
22
|
+
var command = new CreateKeyspaceCommand(args);
|
|
23
|
+
if (typeof optionsOrCb === "function") {
|
|
24
|
+
this.send(command, optionsOrCb);
|
|
25
|
+
}
|
|
26
|
+
else if (typeof cb === "function") {
|
|
27
|
+
if (typeof optionsOrCb !== "object")
|
|
28
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
29
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
30
|
+
}
|
|
31
|
+
else {
|
|
32
|
+
return this.send(command, optionsOrCb);
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
Keyspaces.prototype.createTable = function (args, optionsOrCb, cb) {
|
|
36
|
+
var command = new CreateTableCommand(args);
|
|
37
|
+
if (typeof optionsOrCb === "function") {
|
|
38
|
+
this.send(command, optionsOrCb);
|
|
39
|
+
}
|
|
40
|
+
else if (typeof cb === "function") {
|
|
41
|
+
if (typeof optionsOrCb !== "object")
|
|
42
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
43
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
return this.send(command, optionsOrCb);
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
Keyspaces.prototype.deleteKeyspace = function (args, optionsOrCb, cb) {
|
|
50
|
+
var command = new DeleteKeyspaceCommand(args);
|
|
51
|
+
if (typeof optionsOrCb === "function") {
|
|
52
|
+
this.send(command, optionsOrCb);
|
|
53
|
+
}
|
|
54
|
+
else if (typeof cb === "function") {
|
|
55
|
+
if (typeof optionsOrCb !== "object")
|
|
56
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
57
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
58
|
+
}
|
|
59
|
+
else {
|
|
60
|
+
return this.send(command, optionsOrCb);
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
Keyspaces.prototype.deleteTable = function (args, optionsOrCb, cb) {
|
|
64
|
+
var command = new DeleteTableCommand(args);
|
|
65
|
+
if (typeof optionsOrCb === "function") {
|
|
66
|
+
this.send(command, optionsOrCb);
|
|
67
|
+
}
|
|
68
|
+
else if (typeof cb === "function") {
|
|
69
|
+
if (typeof optionsOrCb !== "object")
|
|
70
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
71
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
72
|
+
}
|
|
73
|
+
else {
|
|
74
|
+
return this.send(command, optionsOrCb);
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
Keyspaces.prototype.getKeyspace = function (args, optionsOrCb, cb) {
|
|
78
|
+
var command = new GetKeyspaceCommand(args);
|
|
79
|
+
if (typeof optionsOrCb === "function") {
|
|
80
|
+
this.send(command, optionsOrCb);
|
|
81
|
+
}
|
|
82
|
+
else if (typeof cb === "function") {
|
|
83
|
+
if (typeof optionsOrCb !== "object")
|
|
84
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
85
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
86
|
+
}
|
|
87
|
+
else {
|
|
88
|
+
return this.send(command, optionsOrCb);
|
|
89
|
+
}
|
|
90
|
+
};
|
|
91
|
+
Keyspaces.prototype.getTable = function (args, optionsOrCb, cb) {
|
|
92
|
+
var command = new GetTableCommand(args);
|
|
93
|
+
if (typeof optionsOrCb === "function") {
|
|
94
|
+
this.send(command, optionsOrCb);
|
|
95
|
+
}
|
|
96
|
+
else if (typeof cb === "function") {
|
|
97
|
+
if (typeof optionsOrCb !== "object")
|
|
98
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
99
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
100
|
+
}
|
|
101
|
+
else {
|
|
102
|
+
return this.send(command, optionsOrCb);
|
|
103
|
+
}
|
|
104
|
+
};
|
|
105
|
+
Keyspaces.prototype.listKeyspaces = function (args, optionsOrCb, cb) {
|
|
106
|
+
var command = new ListKeyspacesCommand(args);
|
|
107
|
+
if (typeof optionsOrCb === "function") {
|
|
108
|
+
this.send(command, optionsOrCb);
|
|
109
|
+
}
|
|
110
|
+
else if (typeof cb === "function") {
|
|
111
|
+
if (typeof optionsOrCb !== "object")
|
|
112
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
113
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
114
|
+
}
|
|
115
|
+
else {
|
|
116
|
+
return this.send(command, optionsOrCb);
|
|
117
|
+
}
|
|
118
|
+
};
|
|
119
|
+
Keyspaces.prototype.listTables = function (args, optionsOrCb, cb) {
|
|
120
|
+
var command = new ListTablesCommand(args);
|
|
121
|
+
if (typeof optionsOrCb === "function") {
|
|
122
|
+
this.send(command, optionsOrCb);
|
|
123
|
+
}
|
|
124
|
+
else if (typeof cb === "function") {
|
|
125
|
+
if (typeof optionsOrCb !== "object")
|
|
126
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
127
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
128
|
+
}
|
|
129
|
+
else {
|
|
130
|
+
return this.send(command, optionsOrCb);
|
|
131
|
+
}
|
|
132
|
+
};
|
|
133
|
+
Keyspaces.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
|
|
134
|
+
var command = new ListTagsForResourceCommand(args);
|
|
135
|
+
if (typeof optionsOrCb === "function") {
|
|
136
|
+
this.send(command, optionsOrCb);
|
|
137
|
+
}
|
|
138
|
+
else if (typeof cb === "function") {
|
|
139
|
+
if (typeof optionsOrCb !== "object")
|
|
140
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
141
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
142
|
+
}
|
|
143
|
+
else {
|
|
144
|
+
return this.send(command, optionsOrCb);
|
|
145
|
+
}
|
|
146
|
+
};
|
|
147
|
+
Keyspaces.prototype.restoreTable = function (args, optionsOrCb, cb) {
|
|
148
|
+
var command = new RestoreTableCommand(args);
|
|
149
|
+
if (typeof optionsOrCb === "function") {
|
|
150
|
+
this.send(command, optionsOrCb);
|
|
151
|
+
}
|
|
152
|
+
else if (typeof cb === "function") {
|
|
153
|
+
if (typeof optionsOrCb !== "object")
|
|
154
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
155
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
156
|
+
}
|
|
157
|
+
else {
|
|
158
|
+
return this.send(command, optionsOrCb);
|
|
159
|
+
}
|
|
160
|
+
};
|
|
161
|
+
Keyspaces.prototype.tagResource = function (args, optionsOrCb, cb) {
|
|
162
|
+
var command = new TagResourceCommand(args);
|
|
163
|
+
if (typeof optionsOrCb === "function") {
|
|
164
|
+
this.send(command, optionsOrCb);
|
|
165
|
+
}
|
|
166
|
+
else if (typeof cb === "function") {
|
|
167
|
+
if (typeof optionsOrCb !== "object")
|
|
168
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
169
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
170
|
+
}
|
|
171
|
+
else {
|
|
172
|
+
return this.send(command, optionsOrCb);
|
|
173
|
+
}
|
|
174
|
+
};
|
|
175
|
+
Keyspaces.prototype.untagResource = function (args, optionsOrCb, cb) {
|
|
176
|
+
var command = new UntagResourceCommand(args);
|
|
177
|
+
if (typeof optionsOrCb === "function") {
|
|
178
|
+
this.send(command, optionsOrCb);
|
|
179
|
+
}
|
|
180
|
+
else if (typeof cb === "function") {
|
|
181
|
+
if (typeof optionsOrCb !== "object")
|
|
182
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
183
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
184
|
+
}
|
|
185
|
+
else {
|
|
186
|
+
return this.send(command, optionsOrCb);
|
|
187
|
+
}
|
|
188
|
+
};
|
|
189
|
+
Keyspaces.prototype.updateTable = function (args, optionsOrCb, cb) {
|
|
190
|
+
var command = new UpdateTableCommand(args);
|
|
191
|
+
if (typeof optionsOrCb === "function") {
|
|
192
|
+
this.send(command, optionsOrCb);
|
|
193
|
+
}
|
|
194
|
+
else if (typeof cb === "function") {
|
|
195
|
+
if (typeof optionsOrCb !== "object")
|
|
196
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
197
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
198
|
+
}
|
|
199
|
+
else {
|
|
200
|
+
return this.send(command, optionsOrCb);
|
|
201
|
+
}
|
|
202
|
+
};
|
|
203
|
+
return Keyspaces;
|
|
204
|
+
}(KeyspacesClient));
|
|
205
|
+
export { Keyspaces };
|
|
@@ -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 KeyspacesClient = (function (_super) {
|
|
12
|
+
__extends(KeyspacesClient, _super);
|
|
13
|
+
function KeyspacesClient(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
|
+
KeyspacesClient.prototype.destroy = function () {
|
|
33
|
+
_super.prototype.destroy.call(this);
|
|
34
|
+
};
|
|
35
|
+
return KeyspacesClient;
|
|
36
|
+
}(__Client));
|
|
37
|
+
export { KeyspacesClient };
|
|
@@ -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 { CreateKeyspaceRequest, CreateKeyspaceResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_0CreateKeyspaceCommand, serializeAws_json1_0CreateKeyspaceCommand, } from "../protocols/Aws_json1_0";
|
|
6
|
+
var CreateKeyspaceCommand = (function (_super) {
|
|
7
|
+
__extends(CreateKeyspaceCommand, _super);
|
|
8
|
+
function CreateKeyspaceCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
CreateKeyspaceCommand.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 = "KeyspacesClient";
|
|
18
|
+
var commandName = "CreateKeyspaceCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: CreateKeyspaceRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: CreateKeyspaceResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
CreateKeyspaceCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_json1_0CreateKeyspaceCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
CreateKeyspaceCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_json1_0CreateKeyspaceCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return CreateKeyspaceCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { CreateKeyspaceCommand };
|
|
@@ -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 { CreateTableRequest, CreateTableResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_0CreateTableCommand, serializeAws_json1_0CreateTableCommand, } from "../protocols/Aws_json1_0";
|
|
6
|
+
var CreateTableCommand = (function (_super) {
|
|
7
|
+
__extends(CreateTableCommand, _super);
|
|
8
|
+
function CreateTableCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
CreateTableCommand.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 = "KeyspacesClient";
|
|
18
|
+
var commandName = "CreateTableCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: CreateTableRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: CreateTableResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
CreateTableCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_json1_0CreateTableCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
CreateTableCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_json1_0CreateTableCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return CreateTableCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { CreateTableCommand };
|
|
@@ -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 { DeleteKeyspaceRequest, DeleteKeyspaceResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_0DeleteKeyspaceCommand, serializeAws_json1_0DeleteKeyspaceCommand, } from "../protocols/Aws_json1_0";
|
|
6
|
+
var DeleteKeyspaceCommand = (function (_super) {
|
|
7
|
+
__extends(DeleteKeyspaceCommand, _super);
|
|
8
|
+
function DeleteKeyspaceCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
DeleteKeyspaceCommand.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 = "KeyspacesClient";
|
|
18
|
+
var commandName = "DeleteKeyspaceCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: DeleteKeyspaceRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: DeleteKeyspaceResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
DeleteKeyspaceCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_json1_0DeleteKeyspaceCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
DeleteKeyspaceCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_json1_0DeleteKeyspaceCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return DeleteKeyspaceCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { DeleteKeyspaceCommand };
|
|
@@ -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 { DeleteTableRequest, DeleteTableResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_0DeleteTableCommand, serializeAws_json1_0DeleteTableCommand, } from "../protocols/Aws_json1_0";
|
|
6
|
+
var DeleteTableCommand = (function (_super) {
|
|
7
|
+
__extends(DeleteTableCommand, _super);
|
|
8
|
+
function DeleteTableCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
DeleteTableCommand.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 = "KeyspacesClient";
|
|
18
|
+
var commandName = "DeleteTableCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: DeleteTableRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: DeleteTableResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
DeleteTableCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_json1_0DeleteTableCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
DeleteTableCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_json1_0DeleteTableCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return DeleteTableCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { DeleteTableCommand };
|
|
@@ -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 { GetKeyspaceRequest, GetKeyspaceResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_0GetKeyspaceCommand, serializeAws_json1_0GetKeyspaceCommand, } from "../protocols/Aws_json1_0";
|
|
6
|
+
var GetKeyspaceCommand = (function (_super) {
|
|
7
|
+
__extends(GetKeyspaceCommand, _super);
|
|
8
|
+
function GetKeyspaceCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
GetKeyspaceCommand.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 = "KeyspacesClient";
|
|
18
|
+
var commandName = "GetKeyspaceCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: GetKeyspaceRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: GetKeyspaceResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
GetKeyspaceCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_json1_0GetKeyspaceCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
GetKeyspaceCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_json1_0GetKeyspaceCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return GetKeyspaceCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { GetKeyspaceCommand };
|
|
@@ -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 { GetTableRequest, GetTableResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_0GetTableCommand, serializeAws_json1_0GetTableCommand } from "../protocols/Aws_json1_0";
|
|
6
|
+
var GetTableCommand = (function (_super) {
|
|
7
|
+
__extends(GetTableCommand, _super);
|
|
8
|
+
function GetTableCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
GetTableCommand.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 = "KeyspacesClient";
|
|
18
|
+
var commandName = "GetTableCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: GetTableRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: GetTableResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
GetTableCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_json1_0GetTableCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
GetTableCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_json1_0GetTableCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return GetTableCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { GetTableCommand };
|