@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,26 @@
|
|
|
1
|
+
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
|
+
import packageInfo from "../package.json";
|
|
3
|
+
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
4
|
+
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
|
|
5
|
+
import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
|
|
6
|
+
import { invalidProvider } from "@aws-sdk/invalid-dependency";
|
|
7
|
+
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry";
|
|
8
|
+
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser";
|
|
9
|
+
import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
|
|
10
|
+
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
|
|
11
|
+
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
|
|
12
|
+
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
13
|
+
import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
|
|
14
|
+
import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-browser";
|
|
15
|
+
export var getRuntimeConfig = function (config) {
|
|
16
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
17
|
+
var defaultsMode = resolveDefaultsModeConfig(config);
|
|
18
|
+
var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
|
|
19
|
+
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
20
|
+
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
21
|
+
switch (_a.label) {
|
|
22
|
+
case 0: return [4, defaultConfigProvider()];
|
|
23
|
+
case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
|
|
24
|
+
}
|
|
25
|
+
}); }); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
|
|
26
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
|
+
import packageInfo from "../package.json";
|
|
3
|
+
import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
|
|
4
|
+
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
|
|
5
|
+
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
|
6
|
+
import { Hash } from "@aws-sdk/hash-node";
|
|
7
|
+
import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@aws-sdk/middleware-retry";
|
|
8
|
+
import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
|
|
9
|
+
import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler";
|
|
10
|
+
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
|
|
11
|
+
import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
|
|
12
|
+
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
|
|
13
|
+
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
|
|
14
|
+
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
15
|
+
import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
|
|
16
|
+
import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-node";
|
|
17
|
+
export var getRuntimeConfig = function (config) {
|
|
18
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
19
|
+
var defaultsMode = resolveDefaultsModeConfig(config);
|
|
20
|
+
var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
|
|
21
|
+
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
22
|
+
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(__assign(__assign({}, NODE_RETRY_MODE_CONFIG_OPTIONS), { default: function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
23
|
+
switch (_a.label) {
|
|
24
|
+
case 0: return [4, defaultConfigProvider()];
|
|
25
|
+
case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
|
|
26
|
+
}
|
|
27
|
+
}); }); } })), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
|
|
28
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { __assign } from "tslib";
|
|
2
|
+
import { Sha256 } from "@aws-crypto/sha256-js";
|
|
3
|
+
import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
|
|
4
|
+
export var getRuntimeConfig = function (config) {
|
|
5
|
+
var _a;
|
|
6
|
+
var browserDefaults = getBrowserRuntimeConfig(config);
|
|
7
|
+
return __assign(__assign(__assign({}, browserDefaults), config), { runtime: "react-native", sha256: (_a = config === null || config === void 0 ? void 0 : config.sha256) !== null && _a !== void 0 ? _a : Sha256 });
|
|
8
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { parseUrl } from "@aws-sdk/url-parser";
|
|
2
|
+
import { defaultRegionInfoProvider } from "./endpoints";
|
|
3
|
+
export var getRuntimeConfig = function (config) {
|
|
4
|
+
var _a, _b, _c, _d, _e;
|
|
5
|
+
return ({
|
|
6
|
+
apiVersion: "2022-02-10",
|
|
7
|
+
disableHostPrefix: (_a = config === null || config === void 0 ? void 0 : config.disableHostPrefix) !== null && _a !== void 0 ? _a : false,
|
|
8
|
+
logger: (_b = config === null || config === void 0 ? void 0 : config.logger) !== null && _b !== void 0 ? _b : {},
|
|
9
|
+
regionInfoProvider: (_c = config === null || config === void 0 ? void 0 : config.regionInfoProvider) !== null && _c !== void 0 ? _c : defaultRegionInfoProvider,
|
|
10
|
+
serviceId: (_d = config === null || config === void 0 ? void 0 : config.serviceId) !== null && _d !== void 0 ? _d : "Keyspaces",
|
|
11
|
+
urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : parseUrl,
|
|
12
|
+
});
|
|
13
|
+
};
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
|
|
2
|
+
import { CreateKeyspaceCommandInput, CreateKeyspaceCommandOutput } from "./commands/CreateKeyspaceCommand";
|
|
3
|
+
import { CreateTableCommandInput, CreateTableCommandOutput } from "./commands/CreateTableCommand";
|
|
4
|
+
import { DeleteKeyspaceCommandInput, DeleteKeyspaceCommandOutput } from "./commands/DeleteKeyspaceCommand";
|
|
5
|
+
import { DeleteTableCommandInput, DeleteTableCommandOutput } from "./commands/DeleteTableCommand";
|
|
6
|
+
import { GetKeyspaceCommandInput, GetKeyspaceCommandOutput } from "./commands/GetKeyspaceCommand";
|
|
7
|
+
import { GetTableCommandInput, GetTableCommandOutput } from "./commands/GetTableCommand";
|
|
8
|
+
import { ListKeyspacesCommandInput, ListKeyspacesCommandOutput } from "./commands/ListKeyspacesCommand";
|
|
9
|
+
import { ListTablesCommandInput, ListTablesCommandOutput } from "./commands/ListTablesCommand";
|
|
10
|
+
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
11
|
+
import { RestoreTableCommandInput, RestoreTableCommandOutput } from "./commands/RestoreTableCommand";
|
|
12
|
+
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
13
|
+
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
14
|
+
import { UpdateTableCommandInput, UpdateTableCommandOutput } from "./commands/UpdateTableCommand";
|
|
15
|
+
import { KeyspacesClient } from "./KeyspacesClient";
|
|
16
|
+
/**
|
|
17
|
+
* <p>Amazon Keyspaces (for Apache Cassandra) is a scalable,
|
|
18
|
+
* highly available, and managed Apache Cassandra-compatible database service. Amazon Keyspaces makes it easy to migrate,
|
|
19
|
+
* run, and scale Cassandra workloads in the Amazon Web Services Cloud. With just a few clicks on the Amazon Web Services Management Console or a few lines of code,
|
|
20
|
+
* you can create keyspaces and tables in Amazon Keyspaces, without deploying any infrastructure or installing software. </p>
|
|
21
|
+
*
|
|
22
|
+
* <p>In addition to supporting Cassandra Query Language (CQL) requests via open-source Cassandra drivers,
|
|
23
|
+
* Amazon Keyspaces supports data definition language (DDL) operations to manage keyspaces and tables using the Amazon Web Services SDK and CLI. This API reference describes
|
|
24
|
+
* the supported DDL operations in detail. </p>
|
|
25
|
+
*
|
|
26
|
+
* <p>For the list of all supported CQL APIs, see <a href="https://docs.aws.amazon.com/keyspaces/latest/devguide/cassandra-apis.html">Supported Cassandra APIs, operations, and data types
|
|
27
|
+
* in Amazon Keyspaces</a> in the <i>Amazon Keyspaces Developer
|
|
28
|
+
* Guide</i>.</p>
|
|
29
|
+
*
|
|
30
|
+
* <p>To learn how Amazon Keyspaces API actions are tracked in CloudTrail, see <a href="https://docs.aws.amazon.com/keyspaces/latest/devguide/logging-using-cloudtrail.html#service-name-info-in-cloudtrail">Amazon Keyspaces information in CloudTrail</a> in the <i>Amazon Keyspaces Developer
|
|
31
|
+
* Guide</i>.</p>
|
|
32
|
+
*
|
|
33
|
+
* <p>For more information about Amazon Web Services APIs, for example how to implement retry logic or how to sign Amazon Web Services API requests, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-apis.html">Amazon Web Services APIs</a> in the <i>General Reference</i>. </p>
|
|
34
|
+
*/
|
|
35
|
+
export declare class Keyspaces extends KeyspacesClient {
|
|
36
|
+
/**
|
|
37
|
+
* <p>The <code>CreateKeyspace</code> operation adds a new keyspace to your account. In an Amazon Web Services account, keyspace names
|
|
38
|
+
* must be unique within each Region. </p>
|
|
39
|
+
* <p>
|
|
40
|
+
* <code>CreateKeyspace</code> is an asynchronous operation. You can monitor the creation status of the new keyspace
|
|
41
|
+
* by using the <code>GetKeyspace</code> operation. </p>
|
|
42
|
+
* <p>For more information, see <a href="https://docs.aws.amazon.com/keyspaces/latest/devguide/working-with-keyspaces.html#keyspaces-create">Creating keyspaces</a> in the <i>Amazon Keyspaces Developer
|
|
43
|
+
* Guide</i>.</p>
|
|
44
|
+
*/
|
|
45
|
+
createKeyspace(args: CreateKeyspaceCommandInput, options?: __HttpHandlerOptions): Promise<CreateKeyspaceCommandOutput>;
|
|
46
|
+
createKeyspace(args: CreateKeyspaceCommandInput, cb: (err: any, data?: CreateKeyspaceCommandOutput) => void): void;
|
|
47
|
+
createKeyspace(args: CreateKeyspaceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateKeyspaceCommandOutput) => void): void;
|
|
48
|
+
/**
|
|
49
|
+
* <p>The <code>CreateTable</code> operation adds a new table to the specified keyspace. Within a keyspace, table names
|
|
50
|
+
* must be unique. </p>
|
|
51
|
+
* <p>
|
|
52
|
+
* <code>CreateTable</code> is an asynchronous operation. When the request is received, the status of the table is set to <code>CREATING</code>.
|
|
53
|
+
* You can monitor the creation status of the new table by using the <code>GetTable</code>
|
|
54
|
+
* operation, which returns the current <code>status</code> of the table. You can start using a table when the status is <code>ACTIVE</code>. </p>
|
|
55
|
+
* <p>For more information, see <a href="https://docs.aws.amazon.com/keyspaces/latest/devguide/working-with-tables.html#tables-create">Creating tables</a> in the <i>Amazon Keyspaces Developer
|
|
56
|
+
* Guide</i>.</p>
|
|
57
|
+
*/
|
|
58
|
+
createTable(args: CreateTableCommandInput, options?: __HttpHandlerOptions): Promise<CreateTableCommandOutput>;
|
|
59
|
+
createTable(args: CreateTableCommandInput, cb: (err: any, data?: CreateTableCommandOutput) => void): void;
|
|
60
|
+
createTable(args: CreateTableCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateTableCommandOutput) => void): void;
|
|
61
|
+
/**
|
|
62
|
+
* <p>The <code>DeleteKeyspace</code> operation deletes a keyspace and all of its tables. </p>
|
|
63
|
+
*/
|
|
64
|
+
deleteKeyspace(args: DeleteKeyspaceCommandInput, options?: __HttpHandlerOptions): Promise<DeleteKeyspaceCommandOutput>;
|
|
65
|
+
deleteKeyspace(args: DeleteKeyspaceCommandInput, cb: (err: any, data?: DeleteKeyspaceCommandOutput) => void): void;
|
|
66
|
+
deleteKeyspace(args: DeleteKeyspaceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteKeyspaceCommandOutput) => void): void;
|
|
67
|
+
/**
|
|
68
|
+
* <p>
|
|
69
|
+
* The <code>DeleteTable</code> operation deletes a table and all of its data. After a <code>DeleteTable</code> request is received,
|
|
70
|
+
* the specified table is in the <code>DELETING</code> state until Amazon Keyspaces completes the deletion. If the table
|
|
71
|
+
* is in the <code>ACTIVE</code> state, you can delete it. If a table is either in the <code>CREATING</code> or <code>UPDATING</code> states, then
|
|
72
|
+
* Amazon Keyspaces returns a <code>ResourceInUseException</code>. If the specified table does not exist, Amazon Keyspaces returns
|
|
73
|
+
* a <code>ResourceNotFoundException</code>. If the table is already in the <code>DELETING</code> state, no error is returned.</p>
|
|
74
|
+
*/
|
|
75
|
+
deleteTable(args: DeleteTableCommandInput, options?: __HttpHandlerOptions): Promise<DeleteTableCommandOutput>;
|
|
76
|
+
deleteTable(args: DeleteTableCommandInput, cb: (err: any, data?: DeleteTableCommandOutput) => void): void;
|
|
77
|
+
deleteTable(args: DeleteTableCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteTableCommandOutput) => void): void;
|
|
78
|
+
/**
|
|
79
|
+
* <p>Returns the name and the Amazon Resource Name (ARN) of the specified table.</p>
|
|
80
|
+
*/
|
|
81
|
+
getKeyspace(args: GetKeyspaceCommandInput, options?: __HttpHandlerOptions): Promise<GetKeyspaceCommandOutput>;
|
|
82
|
+
getKeyspace(args: GetKeyspaceCommandInput, cb: (err: any, data?: GetKeyspaceCommandOutput) => void): void;
|
|
83
|
+
getKeyspace(args: GetKeyspaceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetKeyspaceCommandOutput) => void): void;
|
|
84
|
+
/**
|
|
85
|
+
* <p>Returns information about the table, including the table's name and current status, the keyspace name,
|
|
86
|
+
* configuration settings, and metadata.</p>
|
|
87
|
+
* <p>To read table metadata using <code>GetTable</code>, <code>Select</code> action
|
|
88
|
+
* permissions for the table and system tables are required to complete the operation.</p>
|
|
89
|
+
*/
|
|
90
|
+
getTable(args: GetTableCommandInput, options?: __HttpHandlerOptions): Promise<GetTableCommandOutput>;
|
|
91
|
+
getTable(args: GetTableCommandInput, cb: (err: any, data?: GetTableCommandOutput) => void): void;
|
|
92
|
+
getTable(args: GetTableCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetTableCommandOutput) => void): void;
|
|
93
|
+
/**
|
|
94
|
+
* <p>Returns a list of keyspaces.</p>
|
|
95
|
+
*/
|
|
96
|
+
listKeyspaces(args: ListKeyspacesCommandInput, options?: __HttpHandlerOptions): Promise<ListKeyspacesCommandOutput>;
|
|
97
|
+
listKeyspaces(args: ListKeyspacesCommandInput, cb: (err: any, data?: ListKeyspacesCommandOutput) => void): void;
|
|
98
|
+
listKeyspaces(args: ListKeyspacesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListKeyspacesCommandOutput) => void): void;
|
|
99
|
+
/**
|
|
100
|
+
* <p>Returns a list of tables for a specified keyspace.</p>
|
|
101
|
+
*/
|
|
102
|
+
listTables(args: ListTablesCommandInput, options?: __HttpHandlerOptions): Promise<ListTablesCommandOutput>;
|
|
103
|
+
listTables(args: ListTablesCommandInput, cb: (err: any, data?: ListTablesCommandOutput) => void): void;
|
|
104
|
+
listTables(args: ListTablesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTablesCommandOutput) => void): void;
|
|
105
|
+
/**
|
|
106
|
+
* <p>Returns a list of all tags associated with the specified Amazon Keyspaces resource.</p>
|
|
107
|
+
*/
|
|
108
|
+
listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
|
|
109
|
+
listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
110
|
+
listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
111
|
+
/**
|
|
112
|
+
* <p>Restores the specified table to the specified point in time within the
|
|
113
|
+
* <code>earliest_restorable_timestamp</code> and the current time. For more information about restore points, see
|
|
114
|
+
* <a href="https://docs.aws.amazon.com/keyspaces/latest/devguide/PointInTimeRecovery_HowItWorks.html#howitworks_backup_window">
|
|
115
|
+
* Time window for PITR continuous backups</a> in the <i>Amazon Keyspaces Developer Guide</i>.
|
|
116
|
+
* </p>
|
|
117
|
+
* <p>
|
|
118
|
+
* Any number of users can execute up to 4 concurrent restores (any type of restore) in a given account.</p>
|
|
119
|
+
* <p>When you restore using point in time recovery, Amazon Keyspaces restores your source table's schema and data to the state
|
|
120
|
+
* based on the selected timestamp <code>(day:hour:minute:second)</code> to a new table. The Time to Live (TTL) settings
|
|
121
|
+
* are also restored to the state based on the selected timestamp.</p>
|
|
122
|
+
* <p>In addition to the table's schema, data, and TTL settings, <code>RestoreTable</code> restores the capacity mode, encryption, and
|
|
123
|
+
* point-in-time recovery settings from the source table.
|
|
124
|
+
* Unlike the table's schema data and TTL settings, which are restored based on the selected timestamp,
|
|
125
|
+
* these settings are always restored based on the table's settings as of the current time or when the table was deleted.</p>
|
|
126
|
+
* <p>You can also overwrite these settings during restore:</p>
|
|
127
|
+
* <ul>
|
|
128
|
+
* <li>
|
|
129
|
+
* <p>Read/write capacity mode</p>
|
|
130
|
+
* </li>
|
|
131
|
+
* <li>
|
|
132
|
+
* <p>Provisioned throughput capacity settings</p>
|
|
133
|
+
* </li>
|
|
134
|
+
* <li>
|
|
135
|
+
* <p>Point-in-time (PITR) settings</p>
|
|
136
|
+
* </li>
|
|
137
|
+
* <li>
|
|
138
|
+
* <p>Tags</p>
|
|
139
|
+
* </li>
|
|
140
|
+
* </ul>
|
|
141
|
+
* <p>For more information, see <a href="https://docs.aws.amazon.com/keyspaces/latest/devguide/PointInTimeRecovery_HowItWorks.html#howitworks_backup_settings">PITR restore settings</a> in the <i>Amazon Keyspaces Developer
|
|
142
|
+
* Guide</i>.</p>
|
|
143
|
+
* <p>The following settings are not restored, and you must configure them manually for the
|
|
144
|
+
* new table. </p>
|
|
145
|
+
* <ul>
|
|
146
|
+
* <li>
|
|
147
|
+
* <p>Automatic scaling policies (for tables that use provisioned capacity
|
|
148
|
+
* mode)</p>
|
|
149
|
+
* </li>
|
|
150
|
+
* <li>
|
|
151
|
+
* <p>Identity and Access Management (IAM) policies</p>
|
|
152
|
+
* </li>
|
|
153
|
+
* <li>
|
|
154
|
+
* <p>Amazon CloudWatch metrics and alarms</p>
|
|
155
|
+
* </li>
|
|
156
|
+
* </ul>
|
|
157
|
+
*/
|
|
158
|
+
restoreTable(args: RestoreTableCommandInput, options?: __HttpHandlerOptions): Promise<RestoreTableCommandOutput>;
|
|
159
|
+
restoreTable(args: RestoreTableCommandInput, cb: (err: any, data?: RestoreTableCommandOutput) => void): void;
|
|
160
|
+
restoreTable(args: RestoreTableCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RestoreTableCommandOutput) => void): void;
|
|
161
|
+
/**
|
|
162
|
+
* <p>Associates a set of tags with a Amazon Keyspaces resource. You can then
|
|
163
|
+
* activate these user-defined tags so that they appear on the Cost Management Console for cost allocation tracking.
|
|
164
|
+
* For more information, see <a href="https://docs.aws.amazon.com/keyspaces/latest/devguide/tagging-keyspaces.html">Adding tags and labels to Amazon Keyspaces resources</a> in the <i>Amazon Keyspaces Developer
|
|
165
|
+
* Guide</i>.</p>
|
|
166
|
+
* <p>For IAM policy examples that show how to control access to Amazon Keyspaces resources based on tags,
|
|
167
|
+
* see <a href="https://docs.aws.amazon.com/keyspaces/latest/devguide/security_iam_id-based-policy-examples-tags">Amazon Keyspaces resource access based on tags</a>
|
|
168
|
+
* in the <i>Amazon Keyspaces Developer Guide</i>.</p>
|
|
169
|
+
*/
|
|
170
|
+
tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
|
|
171
|
+
tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
|
|
172
|
+
tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
|
|
173
|
+
/**
|
|
174
|
+
* <p>Removes the association of tags from a Amazon Keyspaces resource.</p>
|
|
175
|
+
*/
|
|
176
|
+
untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
|
|
177
|
+
untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
178
|
+
untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
179
|
+
/**
|
|
180
|
+
* <p>Adds new columns to the table or updates one of the table's settings, for example
|
|
181
|
+
* capacity mode, encryption, point-in-time recovery, or ttl settings.
|
|
182
|
+
* Note that you can only update one specific table setting per update operation.</p>
|
|
183
|
+
*/
|
|
184
|
+
updateTable(args: UpdateTableCommandInput, options?: __HttpHandlerOptions): Promise<UpdateTableCommandOutput>;
|
|
185
|
+
updateTable(args: UpdateTableCommandInput, cb: (err: any, data?: UpdateTableCommandOutput) => void): void;
|
|
186
|
+
updateTable(args: UpdateTableCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateTableCommandOutput) => void): void;
|
|
187
|
+
}
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
import { EndpointsInputConfig, EndpointsResolvedConfig, RegionInputConfig, RegionResolvedConfig } from "@aws-sdk/config-resolver";
|
|
2
|
+
import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
|
|
3
|
+
import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry";
|
|
4
|
+
import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
|
|
5
|
+
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
6
|
+
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
7
|
+
import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
8
|
+
import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
9
|
+
import { CreateKeyspaceCommandInput, CreateKeyspaceCommandOutput } from "./commands/CreateKeyspaceCommand";
|
|
10
|
+
import { CreateTableCommandInput, CreateTableCommandOutput } from "./commands/CreateTableCommand";
|
|
11
|
+
import { DeleteKeyspaceCommandInput, DeleteKeyspaceCommandOutput } from "./commands/DeleteKeyspaceCommand";
|
|
12
|
+
import { DeleteTableCommandInput, DeleteTableCommandOutput } from "./commands/DeleteTableCommand";
|
|
13
|
+
import { GetKeyspaceCommandInput, GetKeyspaceCommandOutput } from "./commands/GetKeyspaceCommand";
|
|
14
|
+
import { GetTableCommandInput, GetTableCommandOutput } from "./commands/GetTableCommand";
|
|
15
|
+
import { ListKeyspacesCommandInput, ListKeyspacesCommandOutput } from "./commands/ListKeyspacesCommand";
|
|
16
|
+
import { ListTablesCommandInput, ListTablesCommandOutput } from "./commands/ListTablesCommand";
|
|
17
|
+
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
18
|
+
import { RestoreTableCommandInput, RestoreTableCommandOutput } from "./commands/RestoreTableCommand";
|
|
19
|
+
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
20
|
+
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
21
|
+
import { UpdateTableCommandInput, UpdateTableCommandOutput } from "./commands/UpdateTableCommand";
|
|
22
|
+
export declare type ServiceInputTypes = CreateKeyspaceCommandInput | CreateTableCommandInput | DeleteKeyspaceCommandInput | DeleteTableCommandInput | GetKeyspaceCommandInput | GetTableCommandInput | ListKeyspacesCommandInput | ListTablesCommandInput | ListTagsForResourceCommandInput | RestoreTableCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateTableCommandInput;
|
|
23
|
+
export declare type ServiceOutputTypes = CreateKeyspaceCommandOutput | CreateTableCommandOutput | DeleteKeyspaceCommandOutput | DeleteTableCommandOutput | GetKeyspaceCommandOutput | GetTableCommandOutput | ListKeyspacesCommandOutput | ListTablesCommandOutput | ListTagsForResourceCommandOutput | RestoreTableCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateTableCommandOutput;
|
|
24
|
+
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
25
|
+
/**
|
|
26
|
+
* The HTTP handler to use. Fetch in browser and Https in Nodejs.
|
|
27
|
+
*/
|
|
28
|
+
requestHandler?: __HttpHandler;
|
|
29
|
+
/**
|
|
30
|
+
* A constructor for a class implementing the {@link __Hash} interface
|
|
31
|
+
* that computes the SHA-256 HMAC or checksum of a string or binary buffer.
|
|
32
|
+
* @internal
|
|
33
|
+
*/
|
|
34
|
+
sha256?: __HashConstructor;
|
|
35
|
+
/**
|
|
36
|
+
* The function that will be used to convert strings into HTTP endpoints.
|
|
37
|
+
* @internal
|
|
38
|
+
*/
|
|
39
|
+
urlParser?: __UrlParser;
|
|
40
|
+
/**
|
|
41
|
+
* A function that can calculate the length of a request body.
|
|
42
|
+
* @internal
|
|
43
|
+
*/
|
|
44
|
+
bodyLengthChecker?: __BodyLengthCalculator;
|
|
45
|
+
/**
|
|
46
|
+
* A function that converts a stream into an array of bytes.
|
|
47
|
+
* @internal
|
|
48
|
+
*/
|
|
49
|
+
streamCollector?: __StreamCollector;
|
|
50
|
+
/**
|
|
51
|
+
* The function that will be used to convert a base64-encoded string to a byte array.
|
|
52
|
+
* @internal
|
|
53
|
+
*/
|
|
54
|
+
base64Decoder?: __Decoder;
|
|
55
|
+
/**
|
|
56
|
+
* The function that will be used to convert binary data to a base64-encoded string.
|
|
57
|
+
* @internal
|
|
58
|
+
*/
|
|
59
|
+
base64Encoder?: __Encoder;
|
|
60
|
+
/**
|
|
61
|
+
* The function that will be used to convert a UTF8-encoded string to a byte array.
|
|
62
|
+
* @internal
|
|
63
|
+
*/
|
|
64
|
+
utf8Decoder?: __Decoder;
|
|
65
|
+
/**
|
|
66
|
+
* The function that will be used to convert binary data to a UTF-8 encoded string.
|
|
67
|
+
* @internal
|
|
68
|
+
*/
|
|
69
|
+
utf8Encoder?: __Encoder;
|
|
70
|
+
/**
|
|
71
|
+
* The runtime environment.
|
|
72
|
+
* @internal
|
|
73
|
+
*/
|
|
74
|
+
runtime?: string;
|
|
75
|
+
/**
|
|
76
|
+
* Disable dyanamically changing the endpoint of the client based on the hostPrefix
|
|
77
|
+
* trait of an operation.
|
|
78
|
+
*/
|
|
79
|
+
disableHostPrefix?: boolean;
|
|
80
|
+
/**
|
|
81
|
+
* Value for how many times a request will be made at most in case of retry.
|
|
82
|
+
*/
|
|
83
|
+
maxAttempts?: number | __Provider<number>;
|
|
84
|
+
/**
|
|
85
|
+
* Specifies which retry algorithm to use.
|
|
86
|
+
*/
|
|
87
|
+
retryMode?: string | __Provider<string>;
|
|
88
|
+
/**
|
|
89
|
+
* Optional logger for logging debug/info/warn/error.
|
|
90
|
+
*/
|
|
91
|
+
logger?: __Logger;
|
|
92
|
+
/**
|
|
93
|
+
* Enables IPv6/IPv4 dualstack endpoint.
|
|
94
|
+
*/
|
|
95
|
+
useDualstackEndpoint?: boolean | __Provider<boolean>;
|
|
96
|
+
/**
|
|
97
|
+
* Enables FIPS compatible endpoints.
|
|
98
|
+
*/
|
|
99
|
+
useFipsEndpoint?: boolean | __Provider<boolean>;
|
|
100
|
+
/**
|
|
101
|
+
* Unique service identifier.
|
|
102
|
+
* @internal
|
|
103
|
+
*/
|
|
104
|
+
serviceId?: string;
|
|
105
|
+
/**
|
|
106
|
+
* The AWS region to which this client will send requests
|
|
107
|
+
*/
|
|
108
|
+
region?: string | __Provider<string>;
|
|
109
|
+
/**
|
|
110
|
+
* Default credentials provider; Not available in browser runtime.
|
|
111
|
+
* @internal
|
|
112
|
+
*/
|
|
113
|
+
credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
|
|
114
|
+
/**
|
|
115
|
+
* Fetch related hostname, signing name or signing region with given region.
|
|
116
|
+
* @internal
|
|
117
|
+
*/
|
|
118
|
+
regionInfoProvider?: RegionInfoProvider;
|
|
119
|
+
/**
|
|
120
|
+
* The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
|
|
121
|
+
* @internal
|
|
122
|
+
*/
|
|
123
|
+
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
124
|
+
/**
|
|
125
|
+
* The {@link DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
|
|
126
|
+
*/
|
|
127
|
+
defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
|
|
128
|
+
}
|
|
129
|
+
declare type KeyspacesClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
|
|
130
|
+
/**
|
|
131
|
+
* The configuration interface of KeyspacesClient class constructor that set the region, credentials and other options.
|
|
132
|
+
*/
|
|
133
|
+
export interface KeyspacesClientConfig extends KeyspacesClientConfigType {
|
|
134
|
+
}
|
|
135
|
+
declare type KeyspacesClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RegionResolvedConfig & EndpointsResolvedConfig & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & UserAgentResolvedConfig;
|
|
136
|
+
/**
|
|
137
|
+
* The resolved configuration interface of KeyspacesClient class. This is resolved and normalized from the {@link KeyspacesClientConfig | constructor configuration interface}.
|
|
138
|
+
*/
|
|
139
|
+
export interface KeyspacesClientResolvedConfig extends KeyspacesClientResolvedConfigType {
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* <p>Amazon Keyspaces (for Apache Cassandra) is a scalable,
|
|
143
|
+
* highly available, and managed Apache Cassandra-compatible database service. Amazon Keyspaces makes it easy to migrate,
|
|
144
|
+
* run, and scale Cassandra workloads in the Amazon Web Services Cloud. With just a few clicks on the Amazon Web Services Management Console or a few lines of code,
|
|
145
|
+
* you can create keyspaces and tables in Amazon Keyspaces, without deploying any infrastructure or installing software. </p>
|
|
146
|
+
*
|
|
147
|
+
* <p>In addition to supporting Cassandra Query Language (CQL) requests via open-source Cassandra drivers,
|
|
148
|
+
* Amazon Keyspaces supports data definition language (DDL) operations to manage keyspaces and tables using the Amazon Web Services SDK and CLI. This API reference describes
|
|
149
|
+
* the supported DDL operations in detail. </p>
|
|
150
|
+
*
|
|
151
|
+
* <p>For the list of all supported CQL APIs, see <a href="https://docs.aws.amazon.com/keyspaces/latest/devguide/cassandra-apis.html">Supported Cassandra APIs, operations, and data types
|
|
152
|
+
* in Amazon Keyspaces</a> in the <i>Amazon Keyspaces Developer
|
|
153
|
+
* Guide</i>.</p>
|
|
154
|
+
*
|
|
155
|
+
* <p>To learn how Amazon Keyspaces API actions are tracked in CloudTrail, see <a href="https://docs.aws.amazon.com/keyspaces/latest/devguide/logging-using-cloudtrail.html#service-name-info-in-cloudtrail">Amazon Keyspaces information in CloudTrail</a> in the <i>Amazon Keyspaces Developer
|
|
156
|
+
* Guide</i>.</p>
|
|
157
|
+
*
|
|
158
|
+
* <p>For more information about Amazon Web Services APIs, for example how to implement retry logic or how to sign Amazon Web Services API requests, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-apis.html">Amazon Web Services APIs</a> in the <i>General Reference</i>. </p>
|
|
159
|
+
*/
|
|
160
|
+
export declare class KeyspacesClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, KeyspacesClientResolvedConfig> {
|
|
161
|
+
/**
|
|
162
|
+
* The resolved configuration of KeyspacesClient class. This is resolved and normalized from the {@link KeyspacesClientConfig | constructor configuration interface}.
|
|
163
|
+
*/
|
|
164
|
+
readonly config: KeyspacesClientResolvedConfig;
|
|
165
|
+
constructor(configuration: KeyspacesClientConfig);
|
|
166
|
+
/**
|
|
167
|
+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
168
|
+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
169
|
+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
170
|
+
*/
|
|
171
|
+
destroy(): void;
|
|
172
|
+
}
|
|
173
|
+
export {};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
3
|
+
import { KeyspacesClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../KeyspacesClient";
|
|
4
|
+
import { CreateKeyspaceRequest, CreateKeyspaceResponse } from "../models/models_0";
|
|
5
|
+
export interface CreateKeyspaceCommandInput extends CreateKeyspaceRequest {
|
|
6
|
+
}
|
|
7
|
+
export interface CreateKeyspaceCommandOutput extends CreateKeyspaceResponse, __MetadataBearer {
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* <p>The <code>CreateKeyspace</code> operation adds a new keyspace to your account. In an Amazon Web Services account, keyspace names
|
|
11
|
+
* must be unique within each Region. </p>
|
|
12
|
+
* <p>
|
|
13
|
+
* <code>CreateKeyspace</code> is an asynchronous operation. You can monitor the creation status of the new keyspace
|
|
14
|
+
* by using the <code>GetKeyspace</code> operation. </p>
|
|
15
|
+
* <p>For more information, see <a href="https://docs.aws.amazon.com/keyspaces/latest/devguide/working-with-keyspaces.html#keyspaces-create">Creating keyspaces</a> in the <i>Amazon Keyspaces Developer
|
|
16
|
+
* Guide</i>.</p>
|
|
17
|
+
* @example
|
|
18
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
19
|
+
* ```javascript
|
|
20
|
+
* import { KeyspacesClient, CreateKeyspaceCommand } from "@aws-sdk/client-keyspaces"; // ES Modules import
|
|
21
|
+
* // const { KeyspacesClient, CreateKeyspaceCommand } = require("@aws-sdk/client-keyspaces"); // CommonJS import
|
|
22
|
+
* const client = new KeyspacesClient(config);
|
|
23
|
+
* const command = new CreateKeyspaceCommand(input);
|
|
24
|
+
* const response = await client.send(command);
|
|
25
|
+
* ```
|
|
26
|
+
*
|
|
27
|
+
* @see {@link CreateKeyspaceCommandInput} for command's `input` shape.
|
|
28
|
+
* @see {@link CreateKeyspaceCommandOutput} for command's `response` shape.
|
|
29
|
+
* @see {@link KeyspacesClientResolvedConfig | config} for KeyspacesClient's `config` shape.
|
|
30
|
+
*
|
|
31
|
+
*/
|
|
32
|
+
export declare class CreateKeyspaceCommand extends $Command<CreateKeyspaceCommandInput, CreateKeyspaceCommandOutput, KeyspacesClientResolvedConfig> {
|
|
33
|
+
readonly input: CreateKeyspaceCommandInput;
|
|
34
|
+
constructor(input: CreateKeyspaceCommandInput);
|
|
35
|
+
/**
|
|
36
|
+
* @internal
|
|
37
|
+
*/
|
|
38
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: KeyspacesClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateKeyspaceCommandInput, CreateKeyspaceCommandOutput>;
|
|
39
|
+
private serialize;
|
|
40
|
+
private deserialize;
|
|
41
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
3
|
+
import { KeyspacesClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../KeyspacesClient";
|
|
4
|
+
import { CreateTableRequest, CreateTableResponse } from "../models/models_0";
|
|
5
|
+
export interface CreateTableCommandInput extends CreateTableRequest {
|
|
6
|
+
}
|
|
7
|
+
export interface CreateTableCommandOutput extends CreateTableResponse, __MetadataBearer {
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* <p>The <code>CreateTable</code> operation adds a new table to the specified keyspace. Within a keyspace, table names
|
|
11
|
+
* must be unique. </p>
|
|
12
|
+
* <p>
|
|
13
|
+
* <code>CreateTable</code> is an asynchronous operation. When the request is received, the status of the table is set to <code>CREATING</code>.
|
|
14
|
+
* You can monitor the creation status of the new table by using the <code>GetTable</code>
|
|
15
|
+
* operation, which returns the current <code>status</code> of the table. You can start using a table when the status is <code>ACTIVE</code>. </p>
|
|
16
|
+
* <p>For more information, see <a href="https://docs.aws.amazon.com/keyspaces/latest/devguide/working-with-tables.html#tables-create">Creating tables</a> in the <i>Amazon Keyspaces Developer
|
|
17
|
+
* Guide</i>.</p>
|
|
18
|
+
* @example
|
|
19
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
20
|
+
* ```javascript
|
|
21
|
+
* import { KeyspacesClient, CreateTableCommand } from "@aws-sdk/client-keyspaces"; // ES Modules import
|
|
22
|
+
* // const { KeyspacesClient, CreateTableCommand } = require("@aws-sdk/client-keyspaces"); // CommonJS import
|
|
23
|
+
* const client = new KeyspacesClient(config);
|
|
24
|
+
* const command = new CreateTableCommand(input);
|
|
25
|
+
* const response = await client.send(command);
|
|
26
|
+
* ```
|
|
27
|
+
*
|
|
28
|
+
* @see {@link CreateTableCommandInput} for command's `input` shape.
|
|
29
|
+
* @see {@link CreateTableCommandOutput} for command's `response` shape.
|
|
30
|
+
* @see {@link KeyspacesClientResolvedConfig | config} for KeyspacesClient's `config` shape.
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
export declare class CreateTableCommand extends $Command<CreateTableCommandInput, CreateTableCommandOutput, KeyspacesClientResolvedConfig> {
|
|
34
|
+
readonly input: CreateTableCommandInput;
|
|
35
|
+
constructor(input: CreateTableCommandInput);
|
|
36
|
+
/**
|
|
37
|
+
* @internal
|
|
38
|
+
*/
|
|
39
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: KeyspacesClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateTableCommandInput, CreateTableCommandOutput>;
|
|
40
|
+
private serialize;
|
|
41
|
+
private deserialize;
|
|
42
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
3
|
+
import { KeyspacesClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../KeyspacesClient";
|
|
4
|
+
import { DeleteKeyspaceRequest, DeleteKeyspaceResponse } from "../models/models_0";
|
|
5
|
+
export interface DeleteKeyspaceCommandInput extends DeleteKeyspaceRequest {
|
|
6
|
+
}
|
|
7
|
+
export interface DeleteKeyspaceCommandOutput extends DeleteKeyspaceResponse, __MetadataBearer {
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* <p>The <code>DeleteKeyspace</code> operation deletes a keyspace and all of its tables. </p>
|
|
11
|
+
* @example
|
|
12
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
13
|
+
* ```javascript
|
|
14
|
+
* import { KeyspacesClient, DeleteKeyspaceCommand } from "@aws-sdk/client-keyspaces"; // ES Modules import
|
|
15
|
+
* // const { KeyspacesClient, DeleteKeyspaceCommand } = require("@aws-sdk/client-keyspaces"); // CommonJS import
|
|
16
|
+
* const client = new KeyspacesClient(config);
|
|
17
|
+
* const command = new DeleteKeyspaceCommand(input);
|
|
18
|
+
* const response = await client.send(command);
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
* @see {@link DeleteKeyspaceCommandInput} for command's `input` shape.
|
|
22
|
+
* @see {@link DeleteKeyspaceCommandOutput} for command's `response` shape.
|
|
23
|
+
* @see {@link KeyspacesClientResolvedConfig | config} for KeyspacesClient's `config` shape.
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
export declare class DeleteKeyspaceCommand extends $Command<DeleteKeyspaceCommandInput, DeleteKeyspaceCommandOutput, KeyspacesClientResolvedConfig> {
|
|
27
|
+
readonly input: DeleteKeyspaceCommandInput;
|
|
28
|
+
constructor(input: DeleteKeyspaceCommandInput);
|
|
29
|
+
/**
|
|
30
|
+
* @internal
|
|
31
|
+
*/
|
|
32
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: KeyspacesClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeleteKeyspaceCommandInput, DeleteKeyspaceCommandOutput>;
|
|
33
|
+
private serialize;
|
|
34
|
+
private deserialize;
|
|
35
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
3
|
+
import { KeyspacesClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../KeyspacesClient";
|
|
4
|
+
import { DeleteTableRequest, DeleteTableResponse } from "../models/models_0";
|
|
5
|
+
export interface DeleteTableCommandInput extends DeleteTableRequest {
|
|
6
|
+
}
|
|
7
|
+
export interface DeleteTableCommandOutput extends DeleteTableResponse, __MetadataBearer {
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* <p>
|
|
11
|
+
* The <code>DeleteTable</code> operation deletes a table and all of its data. After a <code>DeleteTable</code> request is received,
|
|
12
|
+
* the specified table is in the <code>DELETING</code> state until Amazon Keyspaces completes the deletion. If the table
|
|
13
|
+
* is in the <code>ACTIVE</code> state, you can delete it. If a table is either in the <code>CREATING</code> or <code>UPDATING</code> states, then
|
|
14
|
+
* Amazon Keyspaces returns a <code>ResourceInUseException</code>. If the specified table does not exist, Amazon Keyspaces returns
|
|
15
|
+
* a <code>ResourceNotFoundException</code>. If the table is already in the <code>DELETING</code> state, no error is returned.</p>
|
|
16
|
+
* @example
|
|
17
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
18
|
+
* ```javascript
|
|
19
|
+
* import { KeyspacesClient, DeleteTableCommand } from "@aws-sdk/client-keyspaces"; // ES Modules import
|
|
20
|
+
* // const { KeyspacesClient, DeleteTableCommand } = require("@aws-sdk/client-keyspaces"); // CommonJS import
|
|
21
|
+
* const client = new KeyspacesClient(config);
|
|
22
|
+
* const command = new DeleteTableCommand(input);
|
|
23
|
+
* const response = await client.send(command);
|
|
24
|
+
* ```
|
|
25
|
+
*
|
|
26
|
+
* @see {@link DeleteTableCommandInput} for command's `input` shape.
|
|
27
|
+
* @see {@link DeleteTableCommandOutput} for command's `response` shape.
|
|
28
|
+
* @see {@link KeyspacesClientResolvedConfig | config} for KeyspacesClient's `config` shape.
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
export declare class DeleteTableCommand extends $Command<DeleteTableCommandInput, DeleteTableCommandOutput, KeyspacesClientResolvedConfig> {
|
|
32
|
+
readonly input: DeleteTableCommandInput;
|
|
33
|
+
constructor(input: DeleteTableCommandInput);
|
|
34
|
+
/**
|
|
35
|
+
* @internal
|
|
36
|
+
*/
|
|
37
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: KeyspacesClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeleteTableCommandInput, DeleteTableCommandOutput>;
|
|
38
|
+
private serialize;
|
|
39
|
+
private deserialize;
|
|
40
|
+
}
|