@aws-sdk/client-keyspaces 3.494.0 → 3.496.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/dist-cjs/Keyspaces.js +1 -39
- package/dist-cjs/KeyspacesClient.js +1 -43
- package/dist-cjs/commands/CreateKeyspaceCommand.js +1 -28
- package/dist-cjs/commands/CreateTableCommand.js +1 -28
- package/dist-cjs/commands/DeleteKeyspaceCommand.js +1 -28
- package/dist-cjs/commands/DeleteTableCommand.js +1 -28
- package/dist-cjs/commands/GetKeyspaceCommand.js +1 -28
- package/dist-cjs/commands/GetTableAutoScalingSettingsCommand.js +1 -28
- package/dist-cjs/commands/GetTableCommand.js +1 -28
- package/dist-cjs/commands/ListKeyspacesCommand.js +1 -28
- package/dist-cjs/commands/ListTablesCommand.js +1 -28
- package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
- package/dist-cjs/commands/RestoreTableCommand.js +1 -28
- package/dist-cjs/commands/TagResourceCommand.js +1 -28
- package/dist-cjs/commands/UntagResourceCommand.js +1 -28
- package/dist-cjs/commands/UpdateTableCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -17
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +1649 -11
- package/dist-cjs/models/KeyspacesServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -118
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListKeyspacesPaginator.js +1 -7
- package/dist-cjs/pagination/ListTablesPaginator.js +1 -7
- package/dist-cjs/pagination/ListTagsForResourcePaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -7
- package/dist-cjs/protocols/Aws_json1_0.js +1 -1064
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
package/dist-cjs/index.js
CHANGED
|
@@ -1,12 +1,1650 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
|
|
21
|
+
// src/index.ts
|
|
22
|
+
var src_exports = {};
|
|
23
|
+
__export(src_exports, {
|
|
24
|
+
AccessDeniedException: () => AccessDeniedException,
|
|
25
|
+
ClientSideTimestampsStatus: () => ClientSideTimestampsStatus,
|
|
26
|
+
ConflictException: () => ConflictException,
|
|
27
|
+
CreateKeyspaceCommand: () => CreateKeyspaceCommand,
|
|
28
|
+
CreateTableCommand: () => CreateTableCommand,
|
|
29
|
+
DeleteKeyspaceCommand: () => DeleteKeyspaceCommand,
|
|
30
|
+
DeleteTableCommand: () => DeleteTableCommand,
|
|
31
|
+
EncryptionType: () => EncryptionType,
|
|
32
|
+
GetKeyspaceCommand: () => GetKeyspaceCommand,
|
|
33
|
+
GetTableAutoScalingSettingsCommand: () => GetTableAutoScalingSettingsCommand,
|
|
34
|
+
GetTableCommand: () => GetTableCommand,
|
|
35
|
+
InternalServerException: () => InternalServerException,
|
|
36
|
+
Keyspaces: () => Keyspaces,
|
|
37
|
+
KeyspacesClient: () => KeyspacesClient,
|
|
38
|
+
KeyspacesServiceException: () => KeyspacesServiceException,
|
|
39
|
+
ListKeyspacesCommand: () => ListKeyspacesCommand,
|
|
40
|
+
ListTablesCommand: () => ListTablesCommand,
|
|
41
|
+
ListTagsForResourceCommand: () => ListTagsForResourceCommand,
|
|
42
|
+
PointInTimeRecoveryStatus: () => PointInTimeRecoveryStatus,
|
|
43
|
+
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
44
|
+
RestoreTableCommand: () => RestoreTableCommand,
|
|
45
|
+
Rs: () => Rs,
|
|
46
|
+
ServiceQuotaExceededException: () => ServiceQuotaExceededException,
|
|
47
|
+
SortOrder: () => SortOrder,
|
|
48
|
+
TableStatus: () => TableStatus,
|
|
49
|
+
TagResourceCommand: () => TagResourceCommand,
|
|
50
|
+
ThroughputMode: () => ThroughputMode,
|
|
51
|
+
TimeToLiveStatus: () => TimeToLiveStatus,
|
|
52
|
+
UntagResourceCommand: () => UntagResourceCommand,
|
|
53
|
+
UpdateTableCommand: () => UpdateTableCommand,
|
|
54
|
+
ValidationException: () => ValidationException,
|
|
55
|
+
__Client: () => import_smithy_client.Client,
|
|
56
|
+
paginateListKeyspaces: () => paginateListKeyspaces,
|
|
57
|
+
paginateListTables: () => paginateListTables,
|
|
58
|
+
paginateListTagsForResource: () => paginateListTagsForResource
|
|
59
|
+
});
|
|
60
|
+
module.exports = __toCommonJS(src_exports);
|
|
61
|
+
|
|
62
|
+
// src/KeyspacesClient.ts
|
|
63
|
+
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
64
|
+
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
65
|
+
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
66
|
+
var import_middleware_signing = require("@aws-sdk/middleware-signing");
|
|
67
|
+
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
68
|
+
var import_config_resolver = require("@smithy/config-resolver");
|
|
69
|
+
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
70
|
+
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
71
|
+
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
// src/endpoint/EndpointParameters.ts
|
|
75
|
+
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
76
|
+
return {
|
|
77
|
+
...options,
|
|
78
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
79
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
80
|
+
defaultSigningName: "cassandra"
|
|
81
|
+
};
|
|
82
|
+
}, "resolveClientEndpointParameters");
|
|
83
|
+
var commonParams = {
|
|
84
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
85
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
86
|
+
Region: { type: "builtInParams", name: "region" },
|
|
87
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
// src/KeyspacesClient.ts
|
|
91
|
+
var import_runtimeConfig = require("././runtimeConfig");
|
|
92
|
+
|
|
93
|
+
// src/runtimeExtensions.ts
|
|
94
|
+
var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
|
|
95
|
+
var import_protocol_http = require("@smithy/protocol-http");
|
|
96
|
+
var import_smithy_client = require("@smithy/smithy-client");
|
|
97
|
+
var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
|
|
98
|
+
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
99
|
+
const extensionConfiguration = {
|
|
100
|
+
...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
|
|
101
|
+
...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
|
|
102
|
+
...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
|
|
103
|
+
};
|
|
104
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
105
|
+
return {
|
|
106
|
+
...runtimeConfig,
|
|
107
|
+
...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
108
|
+
...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
109
|
+
...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
|
|
110
|
+
};
|
|
111
|
+
}, "resolveRuntimeExtensions");
|
|
112
|
+
|
|
113
|
+
// src/KeyspacesClient.ts
|
|
114
|
+
var _KeyspacesClient = class _KeyspacesClient extends import_smithy_client.Client {
|
|
115
|
+
constructor(...[configuration]) {
|
|
116
|
+
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
|
117
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
118
|
+
const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
|
|
119
|
+
const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
|
|
120
|
+
const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
|
|
121
|
+
const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
|
|
122
|
+
const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
|
|
123
|
+
const _config_7 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_6);
|
|
124
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
|
|
125
|
+
super(_config_8);
|
|
126
|
+
this.config = _config_8;
|
|
127
|
+
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
128
|
+
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
|
129
|
+
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
130
|
+
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
131
|
+
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
132
|
+
this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
|
|
133
|
+
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
137
|
+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
138
|
+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
139
|
+
*/
|
|
140
|
+
destroy() {
|
|
141
|
+
super.destroy();
|
|
142
|
+
}
|
|
143
|
+
};
|
|
144
|
+
__name(_KeyspacesClient, "KeyspacesClient");
|
|
145
|
+
var KeyspacesClient = _KeyspacesClient;
|
|
146
|
+
|
|
147
|
+
// src/Keyspaces.ts
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
// src/commands/CreateKeyspaceCommand.ts
|
|
151
|
+
|
|
152
|
+
var import_middleware_serde = require("@smithy/middleware-serde");
|
|
153
|
+
|
|
154
|
+
var import_types = require("@smithy/types");
|
|
155
|
+
|
|
156
|
+
// src/protocols/Aws_json1_0.ts
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
// src/models/KeyspacesServiceException.ts
|
|
161
|
+
|
|
162
|
+
var _KeyspacesServiceException = class _KeyspacesServiceException extends import_smithy_client.ServiceException {
|
|
163
|
+
/**
|
|
164
|
+
* @internal
|
|
165
|
+
*/
|
|
166
|
+
constructor(options) {
|
|
167
|
+
super(options);
|
|
168
|
+
Object.setPrototypeOf(this, _KeyspacesServiceException.prototype);
|
|
169
|
+
}
|
|
170
|
+
};
|
|
171
|
+
__name(_KeyspacesServiceException, "KeyspacesServiceException");
|
|
172
|
+
var KeyspacesServiceException = _KeyspacesServiceException;
|
|
173
|
+
|
|
174
|
+
// src/models/models_0.ts
|
|
175
|
+
var _AccessDeniedException = class _AccessDeniedException extends KeyspacesServiceException {
|
|
176
|
+
/**
|
|
177
|
+
* @internal
|
|
178
|
+
*/
|
|
179
|
+
constructor(opts) {
|
|
180
|
+
super({
|
|
181
|
+
name: "AccessDeniedException",
|
|
182
|
+
$fault: "client",
|
|
183
|
+
...opts
|
|
184
|
+
});
|
|
185
|
+
this.name = "AccessDeniedException";
|
|
186
|
+
this.$fault = "client";
|
|
187
|
+
Object.setPrototypeOf(this, _AccessDeniedException.prototype);
|
|
188
|
+
}
|
|
189
|
+
};
|
|
190
|
+
__name(_AccessDeniedException, "AccessDeniedException");
|
|
191
|
+
var AccessDeniedException = _AccessDeniedException;
|
|
192
|
+
var ThroughputMode = {
|
|
193
|
+
PAY_PER_REQUEST: "PAY_PER_REQUEST",
|
|
194
|
+
PROVISIONED: "PROVISIONED"
|
|
195
|
+
};
|
|
196
|
+
var ClientSideTimestampsStatus = {
|
|
197
|
+
ENABLED: "ENABLED"
|
|
198
|
+
};
|
|
199
|
+
var SortOrder = {
|
|
200
|
+
ASC: "ASC",
|
|
201
|
+
DESC: "DESC"
|
|
202
|
+
};
|
|
203
|
+
var _ConflictException = class _ConflictException extends KeyspacesServiceException {
|
|
204
|
+
/**
|
|
205
|
+
* @internal
|
|
206
|
+
*/
|
|
207
|
+
constructor(opts) {
|
|
208
|
+
super({
|
|
209
|
+
name: "ConflictException",
|
|
210
|
+
$fault: "client",
|
|
211
|
+
...opts
|
|
212
|
+
});
|
|
213
|
+
this.name = "ConflictException";
|
|
214
|
+
this.$fault = "client";
|
|
215
|
+
Object.setPrototypeOf(this, _ConflictException.prototype);
|
|
216
|
+
}
|
|
217
|
+
};
|
|
218
|
+
__name(_ConflictException, "ConflictException");
|
|
219
|
+
var ConflictException = _ConflictException;
|
|
220
|
+
var Rs = {
|
|
221
|
+
MULTI_REGION: "MULTI_REGION",
|
|
222
|
+
SINGLE_REGION: "SINGLE_REGION"
|
|
223
|
+
};
|
|
224
|
+
var _InternalServerException = class _InternalServerException extends KeyspacesServiceException {
|
|
225
|
+
/**
|
|
226
|
+
* @internal
|
|
227
|
+
*/
|
|
228
|
+
constructor(opts) {
|
|
229
|
+
super({
|
|
230
|
+
name: "InternalServerException",
|
|
231
|
+
$fault: "server",
|
|
232
|
+
...opts
|
|
233
|
+
});
|
|
234
|
+
this.name = "InternalServerException";
|
|
235
|
+
this.$fault = "server";
|
|
236
|
+
Object.setPrototypeOf(this, _InternalServerException.prototype);
|
|
237
|
+
}
|
|
238
|
+
};
|
|
239
|
+
__name(_InternalServerException, "InternalServerException");
|
|
240
|
+
var InternalServerException = _InternalServerException;
|
|
241
|
+
var _ServiceQuotaExceededException = class _ServiceQuotaExceededException extends KeyspacesServiceException {
|
|
242
|
+
/**
|
|
243
|
+
* @internal
|
|
244
|
+
*/
|
|
245
|
+
constructor(opts) {
|
|
246
|
+
super({
|
|
247
|
+
name: "ServiceQuotaExceededException",
|
|
248
|
+
$fault: "client",
|
|
249
|
+
...opts
|
|
250
|
+
});
|
|
251
|
+
this.name = "ServiceQuotaExceededException";
|
|
252
|
+
this.$fault = "client";
|
|
253
|
+
Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
|
|
254
|
+
}
|
|
255
|
+
};
|
|
256
|
+
__name(_ServiceQuotaExceededException, "ServiceQuotaExceededException");
|
|
257
|
+
var ServiceQuotaExceededException = _ServiceQuotaExceededException;
|
|
258
|
+
var _ValidationException = class _ValidationException extends KeyspacesServiceException {
|
|
259
|
+
/**
|
|
260
|
+
* @internal
|
|
261
|
+
*/
|
|
262
|
+
constructor(opts) {
|
|
263
|
+
super({
|
|
264
|
+
name: "ValidationException",
|
|
265
|
+
$fault: "client",
|
|
266
|
+
...opts
|
|
267
|
+
});
|
|
268
|
+
this.name = "ValidationException";
|
|
269
|
+
this.$fault = "client";
|
|
270
|
+
Object.setPrototypeOf(this, _ValidationException.prototype);
|
|
271
|
+
}
|
|
272
|
+
};
|
|
273
|
+
__name(_ValidationException, "ValidationException");
|
|
274
|
+
var ValidationException = _ValidationException;
|
|
275
|
+
var EncryptionType = {
|
|
276
|
+
AWS_OWNED_KMS_KEY: "AWS_OWNED_KMS_KEY",
|
|
277
|
+
CUSTOMER_MANAGED_KMS_KEY: "CUSTOMER_MANAGED_KMS_KEY"
|
|
278
|
+
};
|
|
279
|
+
var PointInTimeRecoveryStatus = {
|
|
280
|
+
DISABLED: "DISABLED",
|
|
281
|
+
ENABLED: "ENABLED"
|
|
282
|
+
};
|
|
283
|
+
var TimeToLiveStatus = {
|
|
284
|
+
ENABLED: "ENABLED"
|
|
285
|
+
};
|
|
286
|
+
var _ResourceNotFoundException = class _ResourceNotFoundException extends KeyspacesServiceException {
|
|
287
|
+
/**
|
|
288
|
+
* @internal
|
|
289
|
+
*/
|
|
290
|
+
constructor(opts) {
|
|
291
|
+
super({
|
|
292
|
+
name: "ResourceNotFoundException",
|
|
293
|
+
$fault: "client",
|
|
294
|
+
...opts
|
|
295
|
+
});
|
|
296
|
+
this.name = "ResourceNotFoundException";
|
|
297
|
+
this.$fault = "client";
|
|
298
|
+
Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
|
|
299
|
+
this.resourceArn = opts.resourceArn;
|
|
300
|
+
}
|
|
301
|
+
};
|
|
302
|
+
__name(_ResourceNotFoundException, "ResourceNotFoundException");
|
|
303
|
+
var ResourceNotFoundException = _ResourceNotFoundException;
|
|
304
|
+
var TableStatus = {
|
|
305
|
+
ACTIVE: "ACTIVE",
|
|
306
|
+
CREATING: "CREATING",
|
|
307
|
+
DELETED: "DELETED",
|
|
308
|
+
DELETING: "DELETING",
|
|
309
|
+
INACCESSIBLE_ENCRYPTION_CREDENTIALS: "INACCESSIBLE_ENCRYPTION_CREDENTIALS",
|
|
310
|
+
RESTORING: "RESTORING",
|
|
311
|
+
UPDATING: "UPDATING"
|
|
312
|
+
};
|
|
313
|
+
|
|
314
|
+
// src/protocols/Aws_json1_0.ts
|
|
315
|
+
var se_CreateKeyspaceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
316
|
+
const headers = sharedHeaders("CreateKeyspace");
|
|
317
|
+
let body;
|
|
318
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
319
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
320
|
+
}, "se_CreateKeyspaceCommand");
|
|
321
|
+
var se_CreateTableCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
322
|
+
const headers = sharedHeaders("CreateTable");
|
|
323
|
+
let body;
|
|
324
|
+
body = JSON.stringify(se_CreateTableRequest(input, context));
|
|
325
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
326
|
+
}, "se_CreateTableCommand");
|
|
327
|
+
var se_DeleteKeyspaceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
328
|
+
const headers = sharedHeaders("DeleteKeyspace");
|
|
329
|
+
let body;
|
|
330
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
331
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
332
|
+
}, "se_DeleteKeyspaceCommand");
|
|
333
|
+
var se_DeleteTableCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
334
|
+
const headers = sharedHeaders("DeleteTable");
|
|
335
|
+
let body;
|
|
336
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
337
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
338
|
+
}, "se_DeleteTableCommand");
|
|
339
|
+
var se_GetKeyspaceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
340
|
+
const headers = sharedHeaders("GetKeyspace");
|
|
341
|
+
let body;
|
|
342
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
343
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
344
|
+
}, "se_GetKeyspaceCommand");
|
|
345
|
+
var se_GetTableCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
346
|
+
const headers = sharedHeaders("GetTable");
|
|
347
|
+
let body;
|
|
348
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
349
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
350
|
+
}, "se_GetTableCommand");
|
|
351
|
+
var se_GetTableAutoScalingSettingsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
352
|
+
const headers = sharedHeaders("GetTableAutoScalingSettings");
|
|
353
|
+
let body;
|
|
354
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
355
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
356
|
+
}, "se_GetTableAutoScalingSettingsCommand");
|
|
357
|
+
var se_ListKeyspacesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
358
|
+
const headers = sharedHeaders("ListKeyspaces");
|
|
359
|
+
let body;
|
|
360
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
361
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
362
|
+
}, "se_ListKeyspacesCommand");
|
|
363
|
+
var se_ListTablesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
364
|
+
const headers = sharedHeaders("ListTables");
|
|
365
|
+
let body;
|
|
366
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
367
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
368
|
+
}, "se_ListTablesCommand");
|
|
369
|
+
var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
370
|
+
const headers = sharedHeaders("ListTagsForResource");
|
|
371
|
+
let body;
|
|
372
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
373
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
374
|
+
}, "se_ListTagsForResourceCommand");
|
|
375
|
+
var se_RestoreTableCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
376
|
+
const headers = sharedHeaders("RestoreTable");
|
|
377
|
+
let body;
|
|
378
|
+
body = JSON.stringify(se_RestoreTableRequest(input, context));
|
|
379
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
380
|
+
}, "se_RestoreTableCommand");
|
|
381
|
+
var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
382
|
+
const headers = sharedHeaders("TagResource");
|
|
383
|
+
let body;
|
|
384
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
385
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
386
|
+
}, "se_TagResourceCommand");
|
|
387
|
+
var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
388
|
+
const headers = sharedHeaders("UntagResource");
|
|
389
|
+
let body;
|
|
390
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
391
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
392
|
+
}, "se_UntagResourceCommand");
|
|
393
|
+
var se_UpdateTableCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
394
|
+
const headers = sharedHeaders("UpdateTable");
|
|
395
|
+
let body;
|
|
396
|
+
body = JSON.stringify(se_UpdateTableRequest(input, context));
|
|
397
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
398
|
+
}, "se_UpdateTableCommand");
|
|
399
|
+
var de_CreateKeyspaceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
400
|
+
if (output.statusCode >= 300) {
|
|
401
|
+
return de_CreateKeyspaceCommandError(output, context);
|
|
402
|
+
}
|
|
403
|
+
const data = await parseBody(output.body, context);
|
|
404
|
+
let contents = {};
|
|
405
|
+
contents = (0, import_smithy_client._json)(data);
|
|
406
|
+
const response = {
|
|
407
|
+
$metadata: deserializeMetadata(output),
|
|
408
|
+
...contents
|
|
409
|
+
};
|
|
410
|
+
return response;
|
|
411
|
+
}, "de_CreateKeyspaceCommand");
|
|
412
|
+
var de_CreateKeyspaceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
413
|
+
const parsedOutput = {
|
|
414
|
+
...output,
|
|
415
|
+
body: await parseErrorBody(output.body, context)
|
|
416
|
+
};
|
|
417
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
418
|
+
switch (errorCode) {
|
|
419
|
+
case "AccessDeniedException":
|
|
420
|
+
case "com.amazonaws.keyspaces#AccessDeniedException":
|
|
421
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
422
|
+
case "ConflictException":
|
|
423
|
+
case "com.amazonaws.keyspaces#ConflictException":
|
|
424
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
425
|
+
case "InternalServerException":
|
|
426
|
+
case "com.amazonaws.keyspaces#InternalServerException":
|
|
427
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
428
|
+
case "ServiceQuotaExceededException":
|
|
429
|
+
case "com.amazonaws.keyspaces#ServiceQuotaExceededException":
|
|
430
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
431
|
+
case "ValidationException":
|
|
432
|
+
case "com.amazonaws.keyspaces#ValidationException":
|
|
433
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
434
|
+
default:
|
|
435
|
+
const parsedBody = parsedOutput.body;
|
|
436
|
+
return throwDefaultError({
|
|
437
|
+
output,
|
|
438
|
+
parsedBody,
|
|
439
|
+
errorCode
|
|
440
|
+
});
|
|
441
|
+
}
|
|
442
|
+
}, "de_CreateKeyspaceCommandError");
|
|
443
|
+
var de_CreateTableCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
444
|
+
if (output.statusCode >= 300) {
|
|
445
|
+
return de_CreateTableCommandError(output, context);
|
|
446
|
+
}
|
|
447
|
+
const data = await parseBody(output.body, context);
|
|
448
|
+
let contents = {};
|
|
449
|
+
contents = (0, import_smithy_client._json)(data);
|
|
450
|
+
const response = {
|
|
451
|
+
$metadata: deserializeMetadata(output),
|
|
452
|
+
...contents
|
|
453
|
+
};
|
|
454
|
+
return response;
|
|
455
|
+
}, "de_CreateTableCommand");
|
|
456
|
+
var de_CreateTableCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
457
|
+
const parsedOutput = {
|
|
458
|
+
...output,
|
|
459
|
+
body: await parseErrorBody(output.body, context)
|
|
460
|
+
};
|
|
461
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
462
|
+
switch (errorCode) {
|
|
463
|
+
case "AccessDeniedException":
|
|
464
|
+
case "com.amazonaws.keyspaces#AccessDeniedException":
|
|
465
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
466
|
+
case "ConflictException":
|
|
467
|
+
case "com.amazonaws.keyspaces#ConflictException":
|
|
468
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
469
|
+
case "InternalServerException":
|
|
470
|
+
case "com.amazonaws.keyspaces#InternalServerException":
|
|
471
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
472
|
+
case "ResourceNotFoundException":
|
|
473
|
+
case "com.amazonaws.keyspaces#ResourceNotFoundException":
|
|
474
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
475
|
+
case "ServiceQuotaExceededException":
|
|
476
|
+
case "com.amazonaws.keyspaces#ServiceQuotaExceededException":
|
|
477
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
478
|
+
case "ValidationException":
|
|
479
|
+
case "com.amazonaws.keyspaces#ValidationException":
|
|
480
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
481
|
+
default:
|
|
482
|
+
const parsedBody = parsedOutput.body;
|
|
483
|
+
return throwDefaultError({
|
|
484
|
+
output,
|
|
485
|
+
parsedBody,
|
|
486
|
+
errorCode
|
|
487
|
+
});
|
|
488
|
+
}
|
|
489
|
+
}, "de_CreateTableCommandError");
|
|
490
|
+
var de_DeleteKeyspaceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
491
|
+
if (output.statusCode >= 300) {
|
|
492
|
+
return de_DeleteKeyspaceCommandError(output, context);
|
|
493
|
+
}
|
|
494
|
+
const data = await parseBody(output.body, context);
|
|
495
|
+
let contents = {};
|
|
496
|
+
contents = (0, import_smithy_client._json)(data);
|
|
497
|
+
const response = {
|
|
498
|
+
$metadata: deserializeMetadata(output),
|
|
499
|
+
...contents
|
|
500
|
+
};
|
|
501
|
+
return response;
|
|
502
|
+
}, "de_DeleteKeyspaceCommand");
|
|
503
|
+
var de_DeleteKeyspaceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
504
|
+
const parsedOutput = {
|
|
505
|
+
...output,
|
|
506
|
+
body: await parseErrorBody(output.body, context)
|
|
507
|
+
};
|
|
508
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
509
|
+
switch (errorCode) {
|
|
510
|
+
case "AccessDeniedException":
|
|
511
|
+
case "com.amazonaws.keyspaces#AccessDeniedException":
|
|
512
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
513
|
+
case "ConflictException":
|
|
514
|
+
case "com.amazonaws.keyspaces#ConflictException":
|
|
515
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
516
|
+
case "InternalServerException":
|
|
517
|
+
case "com.amazonaws.keyspaces#InternalServerException":
|
|
518
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
519
|
+
case "ResourceNotFoundException":
|
|
520
|
+
case "com.amazonaws.keyspaces#ResourceNotFoundException":
|
|
521
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
522
|
+
case "ServiceQuotaExceededException":
|
|
523
|
+
case "com.amazonaws.keyspaces#ServiceQuotaExceededException":
|
|
524
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
525
|
+
case "ValidationException":
|
|
526
|
+
case "com.amazonaws.keyspaces#ValidationException":
|
|
527
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
528
|
+
default:
|
|
529
|
+
const parsedBody = parsedOutput.body;
|
|
530
|
+
return throwDefaultError({
|
|
531
|
+
output,
|
|
532
|
+
parsedBody,
|
|
533
|
+
errorCode
|
|
534
|
+
});
|
|
535
|
+
}
|
|
536
|
+
}, "de_DeleteKeyspaceCommandError");
|
|
537
|
+
var de_DeleteTableCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
538
|
+
if (output.statusCode >= 300) {
|
|
539
|
+
return de_DeleteTableCommandError(output, context);
|
|
540
|
+
}
|
|
541
|
+
const data = await parseBody(output.body, context);
|
|
542
|
+
let contents = {};
|
|
543
|
+
contents = (0, import_smithy_client._json)(data);
|
|
544
|
+
const response = {
|
|
545
|
+
$metadata: deserializeMetadata(output),
|
|
546
|
+
...contents
|
|
547
|
+
};
|
|
548
|
+
return response;
|
|
549
|
+
}, "de_DeleteTableCommand");
|
|
550
|
+
var de_DeleteTableCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
551
|
+
const parsedOutput = {
|
|
552
|
+
...output,
|
|
553
|
+
body: await parseErrorBody(output.body, context)
|
|
554
|
+
};
|
|
555
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
556
|
+
switch (errorCode) {
|
|
557
|
+
case "AccessDeniedException":
|
|
558
|
+
case "com.amazonaws.keyspaces#AccessDeniedException":
|
|
559
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
560
|
+
case "ConflictException":
|
|
561
|
+
case "com.amazonaws.keyspaces#ConflictException":
|
|
562
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
563
|
+
case "InternalServerException":
|
|
564
|
+
case "com.amazonaws.keyspaces#InternalServerException":
|
|
565
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
566
|
+
case "ResourceNotFoundException":
|
|
567
|
+
case "com.amazonaws.keyspaces#ResourceNotFoundException":
|
|
568
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
569
|
+
case "ServiceQuotaExceededException":
|
|
570
|
+
case "com.amazonaws.keyspaces#ServiceQuotaExceededException":
|
|
571
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
572
|
+
case "ValidationException":
|
|
573
|
+
case "com.amazonaws.keyspaces#ValidationException":
|
|
574
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
575
|
+
default:
|
|
576
|
+
const parsedBody = parsedOutput.body;
|
|
577
|
+
return throwDefaultError({
|
|
578
|
+
output,
|
|
579
|
+
parsedBody,
|
|
580
|
+
errorCode
|
|
581
|
+
});
|
|
582
|
+
}
|
|
583
|
+
}, "de_DeleteTableCommandError");
|
|
584
|
+
var de_GetKeyspaceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
585
|
+
if (output.statusCode >= 300) {
|
|
586
|
+
return de_GetKeyspaceCommandError(output, context);
|
|
587
|
+
}
|
|
588
|
+
const data = await parseBody(output.body, context);
|
|
589
|
+
let contents = {};
|
|
590
|
+
contents = (0, import_smithy_client._json)(data);
|
|
591
|
+
const response = {
|
|
592
|
+
$metadata: deserializeMetadata(output),
|
|
593
|
+
...contents
|
|
594
|
+
};
|
|
595
|
+
return response;
|
|
596
|
+
}, "de_GetKeyspaceCommand");
|
|
597
|
+
var de_GetKeyspaceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
598
|
+
const parsedOutput = {
|
|
599
|
+
...output,
|
|
600
|
+
body: await parseErrorBody(output.body, context)
|
|
601
|
+
};
|
|
602
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
603
|
+
switch (errorCode) {
|
|
604
|
+
case "AccessDeniedException":
|
|
605
|
+
case "com.amazonaws.keyspaces#AccessDeniedException":
|
|
606
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
607
|
+
case "InternalServerException":
|
|
608
|
+
case "com.amazonaws.keyspaces#InternalServerException":
|
|
609
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
610
|
+
case "ResourceNotFoundException":
|
|
611
|
+
case "com.amazonaws.keyspaces#ResourceNotFoundException":
|
|
612
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
613
|
+
case "ServiceQuotaExceededException":
|
|
614
|
+
case "com.amazonaws.keyspaces#ServiceQuotaExceededException":
|
|
615
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
616
|
+
case "ValidationException":
|
|
617
|
+
case "com.amazonaws.keyspaces#ValidationException":
|
|
618
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
619
|
+
default:
|
|
620
|
+
const parsedBody = parsedOutput.body;
|
|
621
|
+
return throwDefaultError({
|
|
622
|
+
output,
|
|
623
|
+
parsedBody,
|
|
624
|
+
errorCode
|
|
625
|
+
});
|
|
626
|
+
}
|
|
627
|
+
}, "de_GetKeyspaceCommandError");
|
|
628
|
+
var de_GetTableCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
629
|
+
if (output.statusCode >= 300) {
|
|
630
|
+
return de_GetTableCommandError(output, context);
|
|
631
|
+
}
|
|
632
|
+
const data = await parseBody(output.body, context);
|
|
633
|
+
let contents = {};
|
|
634
|
+
contents = de_GetTableResponse(data, context);
|
|
635
|
+
const response = {
|
|
636
|
+
$metadata: deserializeMetadata(output),
|
|
637
|
+
...contents
|
|
638
|
+
};
|
|
639
|
+
return response;
|
|
640
|
+
}, "de_GetTableCommand");
|
|
641
|
+
var de_GetTableCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
642
|
+
const parsedOutput = {
|
|
643
|
+
...output,
|
|
644
|
+
body: await parseErrorBody(output.body, context)
|
|
645
|
+
};
|
|
646
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
647
|
+
switch (errorCode) {
|
|
648
|
+
case "AccessDeniedException":
|
|
649
|
+
case "com.amazonaws.keyspaces#AccessDeniedException":
|
|
650
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
651
|
+
case "InternalServerException":
|
|
652
|
+
case "com.amazonaws.keyspaces#InternalServerException":
|
|
653
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
654
|
+
case "ResourceNotFoundException":
|
|
655
|
+
case "com.amazonaws.keyspaces#ResourceNotFoundException":
|
|
656
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
657
|
+
case "ServiceQuotaExceededException":
|
|
658
|
+
case "com.amazonaws.keyspaces#ServiceQuotaExceededException":
|
|
659
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
660
|
+
case "ValidationException":
|
|
661
|
+
case "com.amazonaws.keyspaces#ValidationException":
|
|
662
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
663
|
+
default:
|
|
664
|
+
const parsedBody = parsedOutput.body;
|
|
665
|
+
return throwDefaultError({
|
|
666
|
+
output,
|
|
667
|
+
parsedBody,
|
|
668
|
+
errorCode
|
|
669
|
+
});
|
|
670
|
+
}
|
|
671
|
+
}, "de_GetTableCommandError");
|
|
672
|
+
var de_GetTableAutoScalingSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
673
|
+
if (output.statusCode >= 300) {
|
|
674
|
+
return de_GetTableAutoScalingSettingsCommandError(output, context);
|
|
675
|
+
}
|
|
676
|
+
const data = await parseBody(output.body, context);
|
|
677
|
+
let contents = {};
|
|
678
|
+
contents = de_GetTableAutoScalingSettingsResponse(data, context);
|
|
679
|
+
const response = {
|
|
680
|
+
$metadata: deserializeMetadata(output),
|
|
681
|
+
...contents
|
|
682
|
+
};
|
|
683
|
+
return response;
|
|
684
|
+
}, "de_GetTableAutoScalingSettingsCommand");
|
|
685
|
+
var de_GetTableAutoScalingSettingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
686
|
+
const parsedOutput = {
|
|
687
|
+
...output,
|
|
688
|
+
body: await parseErrorBody(output.body, context)
|
|
689
|
+
};
|
|
690
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
691
|
+
switch (errorCode) {
|
|
692
|
+
case "AccessDeniedException":
|
|
693
|
+
case "com.amazonaws.keyspaces#AccessDeniedException":
|
|
694
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
695
|
+
case "InternalServerException":
|
|
696
|
+
case "com.amazonaws.keyspaces#InternalServerException":
|
|
697
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
698
|
+
case "ResourceNotFoundException":
|
|
699
|
+
case "com.amazonaws.keyspaces#ResourceNotFoundException":
|
|
700
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
701
|
+
case "ServiceQuotaExceededException":
|
|
702
|
+
case "com.amazonaws.keyspaces#ServiceQuotaExceededException":
|
|
703
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
704
|
+
case "ValidationException":
|
|
705
|
+
case "com.amazonaws.keyspaces#ValidationException":
|
|
706
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
707
|
+
default:
|
|
708
|
+
const parsedBody = parsedOutput.body;
|
|
709
|
+
return throwDefaultError({
|
|
710
|
+
output,
|
|
711
|
+
parsedBody,
|
|
712
|
+
errorCode
|
|
713
|
+
});
|
|
714
|
+
}
|
|
715
|
+
}, "de_GetTableAutoScalingSettingsCommandError");
|
|
716
|
+
var de_ListKeyspacesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
717
|
+
if (output.statusCode >= 300) {
|
|
718
|
+
return de_ListKeyspacesCommandError(output, context);
|
|
719
|
+
}
|
|
720
|
+
const data = await parseBody(output.body, context);
|
|
721
|
+
let contents = {};
|
|
722
|
+
contents = (0, import_smithy_client._json)(data);
|
|
723
|
+
const response = {
|
|
724
|
+
$metadata: deserializeMetadata(output),
|
|
725
|
+
...contents
|
|
726
|
+
};
|
|
727
|
+
return response;
|
|
728
|
+
}, "de_ListKeyspacesCommand");
|
|
729
|
+
var de_ListKeyspacesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
730
|
+
const parsedOutput = {
|
|
731
|
+
...output,
|
|
732
|
+
body: await parseErrorBody(output.body, context)
|
|
733
|
+
};
|
|
734
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
735
|
+
switch (errorCode) {
|
|
736
|
+
case "AccessDeniedException":
|
|
737
|
+
case "com.amazonaws.keyspaces#AccessDeniedException":
|
|
738
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
739
|
+
case "InternalServerException":
|
|
740
|
+
case "com.amazonaws.keyspaces#InternalServerException":
|
|
741
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
742
|
+
case "ResourceNotFoundException":
|
|
743
|
+
case "com.amazonaws.keyspaces#ResourceNotFoundException":
|
|
744
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
745
|
+
case "ServiceQuotaExceededException":
|
|
746
|
+
case "com.amazonaws.keyspaces#ServiceQuotaExceededException":
|
|
747
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
748
|
+
case "ValidationException":
|
|
749
|
+
case "com.amazonaws.keyspaces#ValidationException":
|
|
750
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
751
|
+
default:
|
|
752
|
+
const parsedBody = parsedOutput.body;
|
|
753
|
+
return throwDefaultError({
|
|
754
|
+
output,
|
|
755
|
+
parsedBody,
|
|
756
|
+
errorCode
|
|
757
|
+
});
|
|
758
|
+
}
|
|
759
|
+
}, "de_ListKeyspacesCommandError");
|
|
760
|
+
var de_ListTablesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
761
|
+
if (output.statusCode >= 300) {
|
|
762
|
+
return de_ListTablesCommandError(output, context);
|
|
763
|
+
}
|
|
764
|
+
const data = await parseBody(output.body, context);
|
|
765
|
+
let contents = {};
|
|
766
|
+
contents = (0, import_smithy_client._json)(data);
|
|
767
|
+
const response = {
|
|
768
|
+
$metadata: deserializeMetadata(output),
|
|
769
|
+
...contents
|
|
770
|
+
};
|
|
771
|
+
return response;
|
|
772
|
+
}, "de_ListTablesCommand");
|
|
773
|
+
var de_ListTablesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
774
|
+
const parsedOutput = {
|
|
775
|
+
...output,
|
|
776
|
+
body: await parseErrorBody(output.body, context)
|
|
777
|
+
};
|
|
778
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
779
|
+
switch (errorCode) {
|
|
780
|
+
case "AccessDeniedException":
|
|
781
|
+
case "com.amazonaws.keyspaces#AccessDeniedException":
|
|
782
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
783
|
+
case "InternalServerException":
|
|
784
|
+
case "com.amazonaws.keyspaces#InternalServerException":
|
|
785
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
786
|
+
case "ResourceNotFoundException":
|
|
787
|
+
case "com.amazonaws.keyspaces#ResourceNotFoundException":
|
|
788
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
789
|
+
case "ServiceQuotaExceededException":
|
|
790
|
+
case "com.amazonaws.keyspaces#ServiceQuotaExceededException":
|
|
791
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
792
|
+
case "ValidationException":
|
|
793
|
+
case "com.amazonaws.keyspaces#ValidationException":
|
|
794
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
795
|
+
default:
|
|
796
|
+
const parsedBody = parsedOutput.body;
|
|
797
|
+
return throwDefaultError({
|
|
798
|
+
output,
|
|
799
|
+
parsedBody,
|
|
800
|
+
errorCode
|
|
801
|
+
});
|
|
802
|
+
}
|
|
803
|
+
}, "de_ListTablesCommandError");
|
|
804
|
+
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
805
|
+
if (output.statusCode >= 300) {
|
|
806
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
807
|
+
}
|
|
808
|
+
const data = await parseBody(output.body, context);
|
|
809
|
+
let contents = {};
|
|
810
|
+
contents = (0, import_smithy_client._json)(data);
|
|
811
|
+
const response = {
|
|
812
|
+
$metadata: deserializeMetadata(output),
|
|
813
|
+
...contents
|
|
814
|
+
};
|
|
815
|
+
return response;
|
|
816
|
+
}, "de_ListTagsForResourceCommand");
|
|
817
|
+
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
818
|
+
const parsedOutput = {
|
|
819
|
+
...output,
|
|
820
|
+
body: await parseErrorBody(output.body, context)
|
|
821
|
+
};
|
|
822
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
823
|
+
switch (errorCode) {
|
|
824
|
+
case "AccessDeniedException":
|
|
825
|
+
case "com.amazonaws.keyspaces#AccessDeniedException":
|
|
826
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
827
|
+
case "InternalServerException":
|
|
828
|
+
case "com.amazonaws.keyspaces#InternalServerException":
|
|
829
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
830
|
+
case "ResourceNotFoundException":
|
|
831
|
+
case "com.amazonaws.keyspaces#ResourceNotFoundException":
|
|
832
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
833
|
+
case "ServiceQuotaExceededException":
|
|
834
|
+
case "com.amazonaws.keyspaces#ServiceQuotaExceededException":
|
|
835
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
836
|
+
case "ValidationException":
|
|
837
|
+
case "com.amazonaws.keyspaces#ValidationException":
|
|
838
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
839
|
+
default:
|
|
840
|
+
const parsedBody = parsedOutput.body;
|
|
841
|
+
return throwDefaultError({
|
|
842
|
+
output,
|
|
843
|
+
parsedBody,
|
|
844
|
+
errorCode
|
|
845
|
+
});
|
|
846
|
+
}
|
|
847
|
+
}, "de_ListTagsForResourceCommandError");
|
|
848
|
+
var de_RestoreTableCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
849
|
+
if (output.statusCode >= 300) {
|
|
850
|
+
return de_RestoreTableCommandError(output, context);
|
|
851
|
+
}
|
|
852
|
+
const data = await parseBody(output.body, context);
|
|
853
|
+
let contents = {};
|
|
854
|
+
contents = (0, import_smithy_client._json)(data);
|
|
855
|
+
const response = {
|
|
856
|
+
$metadata: deserializeMetadata(output),
|
|
857
|
+
...contents
|
|
858
|
+
};
|
|
859
|
+
return response;
|
|
860
|
+
}, "de_RestoreTableCommand");
|
|
861
|
+
var de_RestoreTableCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
862
|
+
const parsedOutput = {
|
|
863
|
+
...output,
|
|
864
|
+
body: await parseErrorBody(output.body, context)
|
|
865
|
+
};
|
|
866
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
867
|
+
switch (errorCode) {
|
|
868
|
+
case "AccessDeniedException":
|
|
869
|
+
case "com.amazonaws.keyspaces#AccessDeniedException":
|
|
870
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
871
|
+
case "ConflictException":
|
|
872
|
+
case "com.amazonaws.keyspaces#ConflictException":
|
|
873
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
874
|
+
case "InternalServerException":
|
|
875
|
+
case "com.amazonaws.keyspaces#InternalServerException":
|
|
876
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
877
|
+
case "ResourceNotFoundException":
|
|
878
|
+
case "com.amazonaws.keyspaces#ResourceNotFoundException":
|
|
879
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
880
|
+
case "ServiceQuotaExceededException":
|
|
881
|
+
case "com.amazonaws.keyspaces#ServiceQuotaExceededException":
|
|
882
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
883
|
+
case "ValidationException":
|
|
884
|
+
case "com.amazonaws.keyspaces#ValidationException":
|
|
885
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
886
|
+
default:
|
|
887
|
+
const parsedBody = parsedOutput.body;
|
|
888
|
+
return throwDefaultError({
|
|
889
|
+
output,
|
|
890
|
+
parsedBody,
|
|
891
|
+
errorCode
|
|
892
|
+
});
|
|
893
|
+
}
|
|
894
|
+
}, "de_RestoreTableCommandError");
|
|
895
|
+
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
896
|
+
if (output.statusCode >= 300) {
|
|
897
|
+
return de_TagResourceCommandError(output, context);
|
|
898
|
+
}
|
|
899
|
+
const data = await parseBody(output.body, context);
|
|
900
|
+
let contents = {};
|
|
901
|
+
contents = (0, import_smithy_client._json)(data);
|
|
902
|
+
const response = {
|
|
903
|
+
$metadata: deserializeMetadata(output),
|
|
904
|
+
...contents
|
|
905
|
+
};
|
|
906
|
+
return response;
|
|
907
|
+
}, "de_TagResourceCommand");
|
|
908
|
+
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
909
|
+
const parsedOutput = {
|
|
910
|
+
...output,
|
|
911
|
+
body: await parseErrorBody(output.body, context)
|
|
912
|
+
};
|
|
913
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
914
|
+
switch (errorCode) {
|
|
915
|
+
case "AccessDeniedException":
|
|
916
|
+
case "com.amazonaws.keyspaces#AccessDeniedException":
|
|
917
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
918
|
+
case "InternalServerException":
|
|
919
|
+
case "com.amazonaws.keyspaces#InternalServerException":
|
|
920
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
921
|
+
case "ResourceNotFoundException":
|
|
922
|
+
case "com.amazonaws.keyspaces#ResourceNotFoundException":
|
|
923
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
924
|
+
case "ServiceQuotaExceededException":
|
|
925
|
+
case "com.amazonaws.keyspaces#ServiceQuotaExceededException":
|
|
926
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
927
|
+
case "ValidationException":
|
|
928
|
+
case "com.amazonaws.keyspaces#ValidationException":
|
|
929
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
930
|
+
default:
|
|
931
|
+
const parsedBody = parsedOutput.body;
|
|
932
|
+
return throwDefaultError({
|
|
933
|
+
output,
|
|
934
|
+
parsedBody,
|
|
935
|
+
errorCode
|
|
936
|
+
});
|
|
937
|
+
}
|
|
938
|
+
}, "de_TagResourceCommandError");
|
|
939
|
+
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
940
|
+
if (output.statusCode >= 300) {
|
|
941
|
+
return de_UntagResourceCommandError(output, context);
|
|
942
|
+
}
|
|
943
|
+
const data = await parseBody(output.body, context);
|
|
944
|
+
let contents = {};
|
|
945
|
+
contents = (0, import_smithy_client._json)(data);
|
|
946
|
+
const response = {
|
|
947
|
+
$metadata: deserializeMetadata(output),
|
|
948
|
+
...contents
|
|
949
|
+
};
|
|
950
|
+
return response;
|
|
951
|
+
}, "de_UntagResourceCommand");
|
|
952
|
+
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
953
|
+
const parsedOutput = {
|
|
954
|
+
...output,
|
|
955
|
+
body: await parseErrorBody(output.body, context)
|
|
956
|
+
};
|
|
957
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
958
|
+
switch (errorCode) {
|
|
959
|
+
case "AccessDeniedException":
|
|
960
|
+
case "com.amazonaws.keyspaces#AccessDeniedException":
|
|
961
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
962
|
+
case "ConflictException":
|
|
963
|
+
case "com.amazonaws.keyspaces#ConflictException":
|
|
964
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
965
|
+
case "InternalServerException":
|
|
966
|
+
case "com.amazonaws.keyspaces#InternalServerException":
|
|
967
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
968
|
+
case "ResourceNotFoundException":
|
|
969
|
+
case "com.amazonaws.keyspaces#ResourceNotFoundException":
|
|
970
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
971
|
+
case "ServiceQuotaExceededException":
|
|
972
|
+
case "com.amazonaws.keyspaces#ServiceQuotaExceededException":
|
|
973
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
974
|
+
case "ValidationException":
|
|
975
|
+
case "com.amazonaws.keyspaces#ValidationException":
|
|
976
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
977
|
+
default:
|
|
978
|
+
const parsedBody = parsedOutput.body;
|
|
979
|
+
return throwDefaultError({
|
|
980
|
+
output,
|
|
981
|
+
parsedBody,
|
|
982
|
+
errorCode
|
|
983
|
+
});
|
|
984
|
+
}
|
|
985
|
+
}, "de_UntagResourceCommandError");
|
|
986
|
+
var de_UpdateTableCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
987
|
+
if (output.statusCode >= 300) {
|
|
988
|
+
return de_UpdateTableCommandError(output, context);
|
|
989
|
+
}
|
|
990
|
+
const data = await parseBody(output.body, context);
|
|
991
|
+
let contents = {};
|
|
992
|
+
contents = (0, import_smithy_client._json)(data);
|
|
993
|
+
const response = {
|
|
994
|
+
$metadata: deserializeMetadata(output),
|
|
995
|
+
...contents
|
|
996
|
+
};
|
|
997
|
+
return response;
|
|
998
|
+
}, "de_UpdateTableCommand");
|
|
999
|
+
var de_UpdateTableCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1000
|
+
const parsedOutput = {
|
|
1001
|
+
...output,
|
|
1002
|
+
body: await parseErrorBody(output.body, context)
|
|
1003
|
+
};
|
|
1004
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1005
|
+
switch (errorCode) {
|
|
1006
|
+
case "AccessDeniedException":
|
|
1007
|
+
case "com.amazonaws.keyspaces#AccessDeniedException":
|
|
1008
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1009
|
+
case "ConflictException":
|
|
1010
|
+
case "com.amazonaws.keyspaces#ConflictException":
|
|
1011
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1012
|
+
case "InternalServerException":
|
|
1013
|
+
case "com.amazonaws.keyspaces#InternalServerException":
|
|
1014
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1015
|
+
case "ResourceNotFoundException":
|
|
1016
|
+
case "com.amazonaws.keyspaces#ResourceNotFoundException":
|
|
1017
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1018
|
+
case "ServiceQuotaExceededException":
|
|
1019
|
+
case "com.amazonaws.keyspaces#ServiceQuotaExceededException":
|
|
1020
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1021
|
+
case "ValidationException":
|
|
1022
|
+
case "com.amazonaws.keyspaces#ValidationException":
|
|
1023
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1024
|
+
default:
|
|
1025
|
+
const parsedBody = parsedOutput.body;
|
|
1026
|
+
return throwDefaultError({
|
|
1027
|
+
output,
|
|
1028
|
+
parsedBody,
|
|
1029
|
+
errorCode
|
|
1030
|
+
});
|
|
1031
|
+
}
|
|
1032
|
+
}, "de_UpdateTableCommandError");
|
|
1033
|
+
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1034
|
+
const body = parsedOutput.body;
|
|
1035
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
1036
|
+
const exception = new AccessDeniedException({
|
|
1037
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1038
|
+
...deserialized
|
|
1039
|
+
});
|
|
1040
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1041
|
+
}, "de_AccessDeniedExceptionRes");
|
|
1042
|
+
var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1043
|
+
const body = parsedOutput.body;
|
|
1044
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
1045
|
+
const exception = new ConflictException({
|
|
1046
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1047
|
+
...deserialized
|
|
1048
|
+
});
|
|
1049
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1050
|
+
}, "de_ConflictExceptionRes");
|
|
1051
|
+
var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1052
|
+
const body = parsedOutput.body;
|
|
1053
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
1054
|
+
const exception = new InternalServerException({
|
|
1055
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1056
|
+
...deserialized
|
|
1057
|
+
});
|
|
1058
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1059
|
+
}, "de_InternalServerExceptionRes");
|
|
1060
|
+
var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1061
|
+
const body = parsedOutput.body;
|
|
1062
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
1063
|
+
const exception = new ResourceNotFoundException({
|
|
1064
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1065
|
+
...deserialized
|
|
1066
|
+
});
|
|
1067
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1068
|
+
}, "de_ResourceNotFoundExceptionRes");
|
|
1069
|
+
var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1070
|
+
const body = parsedOutput.body;
|
|
1071
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
1072
|
+
const exception = new ServiceQuotaExceededException({
|
|
1073
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1074
|
+
...deserialized
|
|
1075
|
+
});
|
|
1076
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1077
|
+
}, "de_ServiceQuotaExceededExceptionRes");
|
|
1078
|
+
var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1079
|
+
const body = parsedOutput.body;
|
|
1080
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
1081
|
+
const exception = new ValidationException({
|
|
1082
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1083
|
+
...deserialized
|
|
1084
|
+
});
|
|
1085
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1086
|
+
}, "de_ValidationExceptionRes");
|
|
1087
|
+
var se_AutoScalingPolicy = /* @__PURE__ */ __name((input, context) => {
|
|
1088
|
+
return (0, import_smithy_client.take)(input, {
|
|
1089
|
+
targetTrackingScalingPolicyConfiguration: (_) => se_TargetTrackingScalingPolicyConfiguration(_, context)
|
|
1090
|
+
});
|
|
1091
|
+
}, "se_AutoScalingPolicy");
|
|
1092
|
+
var se_AutoScalingSettings = /* @__PURE__ */ __name((input, context) => {
|
|
1093
|
+
return (0, import_smithy_client.take)(input, {
|
|
1094
|
+
autoScalingDisabled: [],
|
|
1095
|
+
maximumUnits: [],
|
|
1096
|
+
minimumUnits: [],
|
|
1097
|
+
scalingPolicy: (_) => se_AutoScalingPolicy(_, context)
|
|
1098
|
+
});
|
|
1099
|
+
}, "se_AutoScalingSettings");
|
|
1100
|
+
var se_AutoScalingSpecification = /* @__PURE__ */ __name((input, context) => {
|
|
1101
|
+
return (0, import_smithy_client.take)(input, {
|
|
1102
|
+
readCapacityAutoScaling: (_) => se_AutoScalingSettings(_, context),
|
|
1103
|
+
writeCapacityAutoScaling: (_) => se_AutoScalingSettings(_, context)
|
|
1104
|
+
});
|
|
1105
|
+
}, "se_AutoScalingSpecification");
|
|
1106
|
+
var se_CreateTableRequest = /* @__PURE__ */ __name((input, context) => {
|
|
1107
|
+
return (0, import_smithy_client.take)(input, {
|
|
1108
|
+
autoScalingSpecification: (_) => se_AutoScalingSpecification(_, context),
|
|
1109
|
+
capacitySpecification: import_smithy_client._json,
|
|
1110
|
+
clientSideTimestamps: import_smithy_client._json,
|
|
1111
|
+
comment: import_smithy_client._json,
|
|
1112
|
+
defaultTimeToLive: [],
|
|
1113
|
+
encryptionSpecification: import_smithy_client._json,
|
|
1114
|
+
keyspaceName: [],
|
|
1115
|
+
pointInTimeRecovery: import_smithy_client._json,
|
|
1116
|
+
replicaSpecifications: (_) => se_ReplicaSpecificationList(_, context),
|
|
1117
|
+
schemaDefinition: import_smithy_client._json,
|
|
1118
|
+
tableName: [],
|
|
1119
|
+
tags: import_smithy_client._json,
|
|
1120
|
+
ttl: import_smithy_client._json
|
|
1121
|
+
});
|
|
1122
|
+
}, "se_CreateTableRequest");
|
|
1123
|
+
var se_ReplicaSpecification = /* @__PURE__ */ __name((input, context) => {
|
|
1124
|
+
return (0, import_smithy_client.take)(input, {
|
|
1125
|
+
readCapacityAutoScaling: (_) => se_AutoScalingSettings(_, context),
|
|
1126
|
+
readCapacityUnits: [],
|
|
1127
|
+
region: []
|
|
1128
|
+
});
|
|
1129
|
+
}, "se_ReplicaSpecification");
|
|
1130
|
+
var se_ReplicaSpecificationList = /* @__PURE__ */ __name((input, context) => {
|
|
1131
|
+
return input.filter((e) => e != null).map((entry) => {
|
|
1132
|
+
return se_ReplicaSpecification(entry, context);
|
|
1133
|
+
});
|
|
1134
|
+
}, "se_ReplicaSpecificationList");
|
|
1135
|
+
var se_RestoreTableRequest = /* @__PURE__ */ __name((input, context) => {
|
|
1136
|
+
return (0, import_smithy_client.take)(input, {
|
|
1137
|
+
autoScalingSpecification: (_) => se_AutoScalingSpecification(_, context),
|
|
1138
|
+
capacitySpecificationOverride: import_smithy_client._json,
|
|
1139
|
+
encryptionSpecificationOverride: import_smithy_client._json,
|
|
1140
|
+
pointInTimeRecoveryOverride: import_smithy_client._json,
|
|
1141
|
+
replicaSpecifications: (_) => se_ReplicaSpecificationList(_, context),
|
|
1142
|
+
restoreTimestamp: (_) => Math.round(_.getTime() / 1e3),
|
|
1143
|
+
sourceKeyspaceName: [],
|
|
1144
|
+
sourceTableName: [],
|
|
1145
|
+
tagsOverride: import_smithy_client._json,
|
|
1146
|
+
targetKeyspaceName: [],
|
|
1147
|
+
targetTableName: []
|
|
1148
|
+
});
|
|
1149
|
+
}, "se_RestoreTableRequest");
|
|
1150
|
+
var se_TargetTrackingScalingPolicyConfiguration = /* @__PURE__ */ __name((input, context) => {
|
|
1151
|
+
return (0, import_smithy_client.take)(input, {
|
|
1152
|
+
disableScaleIn: [],
|
|
1153
|
+
scaleInCooldown: [],
|
|
1154
|
+
scaleOutCooldown: [],
|
|
1155
|
+
targetValue: import_smithy_client.serializeFloat
|
|
1156
|
+
});
|
|
1157
|
+
}, "se_TargetTrackingScalingPolicyConfiguration");
|
|
1158
|
+
var se_UpdateTableRequest = /* @__PURE__ */ __name((input, context) => {
|
|
1159
|
+
return (0, import_smithy_client.take)(input, {
|
|
1160
|
+
addColumns: import_smithy_client._json,
|
|
1161
|
+
autoScalingSpecification: (_) => se_AutoScalingSpecification(_, context),
|
|
1162
|
+
capacitySpecification: import_smithy_client._json,
|
|
1163
|
+
clientSideTimestamps: import_smithy_client._json,
|
|
1164
|
+
defaultTimeToLive: [],
|
|
1165
|
+
encryptionSpecification: import_smithy_client._json,
|
|
1166
|
+
keyspaceName: [],
|
|
1167
|
+
pointInTimeRecovery: import_smithy_client._json,
|
|
1168
|
+
replicaSpecifications: (_) => se_ReplicaSpecificationList(_, context),
|
|
1169
|
+
tableName: [],
|
|
1170
|
+
ttl: import_smithy_client._json
|
|
1171
|
+
});
|
|
1172
|
+
}, "se_UpdateTableRequest");
|
|
1173
|
+
var de_AutoScalingPolicy = /* @__PURE__ */ __name((output, context) => {
|
|
1174
|
+
return (0, import_smithy_client.take)(output, {
|
|
1175
|
+
targetTrackingScalingPolicyConfiguration: (_) => de_TargetTrackingScalingPolicyConfiguration(_, context)
|
|
1176
|
+
});
|
|
1177
|
+
}, "de_AutoScalingPolicy");
|
|
1178
|
+
var de_AutoScalingSettings = /* @__PURE__ */ __name((output, context) => {
|
|
1179
|
+
return (0, import_smithy_client.take)(output, {
|
|
1180
|
+
autoScalingDisabled: import_smithy_client.expectBoolean,
|
|
1181
|
+
maximumUnits: import_smithy_client.expectLong,
|
|
1182
|
+
minimumUnits: import_smithy_client.expectLong,
|
|
1183
|
+
scalingPolicy: (_) => de_AutoScalingPolicy(_, context)
|
|
1184
|
+
});
|
|
1185
|
+
}, "de_AutoScalingSettings");
|
|
1186
|
+
var de_AutoScalingSpecification = /* @__PURE__ */ __name((output, context) => {
|
|
1187
|
+
return (0, import_smithy_client.take)(output, {
|
|
1188
|
+
readCapacityAutoScaling: (_) => de_AutoScalingSettings(_, context),
|
|
1189
|
+
writeCapacityAutoScaling: (_) => de_AutoScalingSettings(_, context)
|
|
1190
|
+
});
|
|
1191
|
+
}, "de_AutoScalingSpecification");
|
|
1192
|
+
var de_CapacitySpecificationSummary = /* @__PURE__ */ __name((output, context) => {
|
|
1193
|
+
return (0, import_smithy_client.take)(output, {
|
|
1194
|
+
lastUpdateToPayPerRequestTimestamp: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1195
|
+
readCapacityUnits: import_smithy_client.expectLong,
|
|
1196
|
+
throughputMode: import_smithy_client.expectString,
|
|
1197
|
+
writeCapacityUnits: import_smithy_client.expectLong
|
|
1198
|
+
});
|
|
1199
|
+
}, "de_CapacitySpecificationSummary");
|
|
1200
|
+
var de_GetTableAutoScalingSettingsResponse = /* @__PURE__ */ __name((output, context) => {
|
|
1201
|
+
return (0, import_smithy_client.take)(output, {
|
|
1202
|
+
autoScalingSpecification: (_) => de_AutoScalingSpecification(_, context),
|
|
1203
|
+
keyspaceName: import_smithy_client.expectString,
|
|
1204
|
+
replicaSpecifications: (_) => de_ReplicaAutoScalingSpecificationList(_, context),
|
|
1205
|
+
resourceArn: import_smithy_client.expectString,
|
|
1206
|
+
tableName: import_smithy_client.expectString
|
|
1207
|
+
});
|
|
1208
|
+
}, "de_GetTableAutoScalingSettingsResponse");
|
|
1209
|
+
var de_GetTableResponse = /* @__PURE__ */ __name((output, context) => {
|
|
1210
|
+
return (0, import_smithy_client.take)(output, {
|
|
1211
|
+
capacitySpecification: (_) => de_CapacitySpecificationSummary(_, context),
|
|
1212
|
+
clientSideTimestamps: import_smithy_client._json,
|
|
1213
|
+
comment: import_smithy_client._json,
|
|
1214
|
+
creationTimestamp: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1215
|
+
defaultTimeToLive: import_smithy_client.expectInt32,
|
|
1216
|
+
encryptionSpecification: import_smithy_client._json,
|
|
1217
|
+
keyspaceName: import_smithy_client.expectString,
|
|
1218
|
+
pointInTimeRecovery: (_) => de_PointInTimeRecoverySummary(_, context),
|
|
1219
|
+
replicaSpecifications: (_) => de_ReplicaSpecificationSummaryList(_, context),
|
|
1220
|
+
resourceArn: import_smithy_client.expectString,
|
|
1221
|
+
schemaDefinition: import_smithy_client._json,
|
|
1222
|
+
status: import_smithy_client.expectString,
|
|
1223
|
+
tableName: import_smithy_client.expectString,
|
|
1224
|
+
ttl: import_smithy_client._json
|
|
1225
|
+
});
|
|
1226
|
+
}, "de_GetTableResponse");
|
|
1227
|
+
var de_PointInTimeRecoverySummary = /* @__PURE__ */ __name((output, context) => {
|
|
1228
|
+
return (0, import_smithy_client.take)(output, {
|
|
1229
|
+
earliestRestorableTimestamp: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1230
|
+
status: import_smithy_client.expectString
|
|
1231
|
+
});
|
|
1232
|
+
}, "de_PointInTimeRecoverySummary");
|
|
1233
|
+
var de_ReplicaAutoScalingSpecification = /* @__PURE__ */ __name((output, context) => {
|
|
1234
|
+
return (0, import_smithy_client.take)(output, {
|
|
1235
|
+
autoScalingSpecification: (_) => de_AutoScalingSpecification(_, context),
|
|
1236
|
+
region: import_smithy_client.expectString
|
|
1237
|
+
});
|
|
1238
|
+
}, "de_ReplicaAutoScalingSpecification");
|
|
1239
|
+
var de_ReplicaAutoScalingSpecificationList = /* @__PURE__ */ __name((output, context) => {
|
|
1240
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1241
|
+
return de_ReplicaAutoScalingSpecification(entry, context);
|
|
1242
|
+
});
|
|
1243
|
+
return retVal;
|
|
1244
|
+
}, "de_ReplicaAutoScalingSpecificationList");
|
|
1245
|
+
var de_ReplicaSpecificationSummary = /* @__PURE__ */ __name((output, context) => {
|
|
1246
|
+
return (0, import_smithy_client.take)(output, {
|
|
1247
|
+
capacitySpecification: (_) => de_CapacitySpecificationSummary(_, context),
|
|
1248
|
+
region: import_smithy_client.expectString,
|
|
1249
|
+
status: import_smithy_client.expectString
|
|
1250
|
+
});
|
|
1251
|
+
}, "de_ReplicaSpecificationSummary");
|
|
1252
|
+
var de_ReplicaSpecificationSummaryList = /* @__PURE__ */ __name((output, context) => {
|
|
1253
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1254
|
+
return de_ReplicaSpecificationSummary(entry, context);
|
|
1255
|
+
});
|
|
1256
|
+
return retVal;
|
|
1257
|
+
}, "de_ReplicaSpecificationSummaryList");
|
|
1258
|
+
var de_TargetTrackingScalingPolicyConfiguration = /* @__PURE__ */ __name((output, context) => {
|
|
1259
|
+
return (0, import_smithy_client.take)(output, {
|
|
1260
|
+
disableScaleIn: import_smithy_client.expectBoolean,
|
|
1261
|
+
scaleInCooldown: import_smithy_client.expectInt32,
|
|
1262
|
+
scaleOutCooldown: import_smithy_client.expectInt32,
|
|
1263
|
+
targetValue: import_smithy_client.limitedParseDouble
|
|
1264
|
+
});
|
|
1265
|
+
}, "de_TargetTrackingScalingPolicyConfiguration");
|
|
1266
|
+
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
1267
|
+
httpStatusCode: output.statusCode,
|
|
1268
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1269
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1270
|
+
cfId: output.headers["x-amz-cf-id"]
|
|
1271
|
+
}), "deserializeMetadata");
|
|
1272
|
+
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
1273
|
+
var throwDefaultError = (0, import_smithy_client.withBaseException)(KeyspacesServiceException);
|
|
1274
|
+
var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
|
|
1275
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1276
|
+
const contents = {
|
|
1277
|
+
protocol,
|
|
1278
|
+
hostname,
|
|
1279
|
+
port,
|
|
1280
|
+
method: "POST",
|
|
1281
|
+
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
1282
|
+
headers
|
|
1283
|
+
};
|
|
1284
|
+
if (resolvedHostname !== void 0) {
|
|
1285
|
+
contents.hostname = resolvedHostname;
|
|
1286
|
+
}
|
|
1287
|
+
if (body !== void 0) {
|
|
1288
|
+
contents.body = body;
|
|
1289
|
+
}
|
|
1290
|
+
return new import_protocol_http.HttpRequest(contents);
|
|
1291
|
+
}, "buildHttpRpcRequest");
|
|
1292
|
+
function sharedHeaders(operation) {
|
|
1293
|
+
return {
|
|
1294
|
+
"content-type": "application/x-amz-json-1.0",
|
|
1295
|
+
"x-amz-target": `KeyspacesService.${operation}`
|
|
1296
|
+
};
|
|
1297
|
+
}
|
|
1298
|
+
__name(sharedHeaders, "sharedHeaders");
|
|
1299
|
+
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1300
|
+
if (encoded.length) {
|
|
1301
|
+
return JSON.parse(encoded);
|
|
1302
|
+
}
|
|
1303
|
+
return {};
|
|
1304
|
+
}), "parseBody");
|
|
1305
|
+
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
1306
|
+
const value = await parseBody(errorBody, context);
|
|
1307
|
+
value.message = value.message ?? value.Message;
|
|
1308
|
+
return value;
|
|
1309
|
+
}, "parseErrorBody");
|
|
1310
|
+
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
1311
|
+
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
1312
|
+
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
1313
|
+
let cleanValue = rawValue;
|
|
1314
|
+
if (typeof cleanValue === "number") {
|
|
1315
|
+
cleanValue = cleanValue.toString();
|
|
1316
|
+
}
|
|
1317
|
+
if (cleanValue.indexOf(",") >= 0) {
|
|
1318
|
+
cleanValue = cleanValue.split(",")[0];
|
|
1319
|
+
}
|
|
1320
|
+
if (cleanValue.indexOf(":") >= 0) {
|
|
1321
|
+
cleanValue = cleanValue.split(":")[0];
|
|
1322
|
+
}
|
|
1323
|
+
if (cleanValue.indexOf("#") >= 0) {
|
|
1324
|
+
cleanValue = cleanValue.split("#")[1];
|
|
1325
|
+
}
|
|
1326
|
+
return cleanValue;
|
|
1327
|
+
}, "sanitizeErrorCode");
|
|
1328
|
+
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1329
|
+
if (headerKey !== void 0) {
|
|
1330
|
+
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1331
|
+
}
|
|
1332
|
+
if (data.code !== void 0) {
|
|
1333
|
+
return sanitizeErrorCode(data.code);
|
|
1334
|
+
}
|
|
1335
|
+
if (data["__type"] !== void 0) {
|
|
1336
|
+
return sanitizeErrorCode(data["__type"]);
|
|
1337
|
+
}
|
|
1338
|
+
}, "loadRestJsonErrorCode");
|
|
1339
|
+
|
|
1340
|
+
// src/commands/CreateKeyspaceCommand.ts
|
|
1341
|
+
var _CreateKeyspaceCommand = class _CreateKeyspaceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1342
|
+
...commonParams
|
|
1343
|
+
}).m(function(Command, cs, config, o) {
|
|
1344
|
+
return [
|
|
1345
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1346
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1347
|
+
];
|
|
1348
|
+
}).s("KeyspacesService", "CreateKeyspace", {}).n("KeyspacesClient", "CreateKeyspaceCommand").f(void 0, void 0).ser(se_CreateKeyspaceCommand).de(de_CreateKeyspaceCommand).build() {
|
|
1349
|
+
};
|
|
1350
|
+
__name(_CreateKeyspaceCommand, "CreateKeyspaceCommand");
|
|
1351
|
+
var CreateKeyspaceCommand = _CreateKeyspaceCommand;
|
|
1352
|
+
|
|
1353
|
+
// src/commands/CreateTableCommand.ts
|
|
1354
|
+
|
|
1355
|
+
|
|
1356
|
+
|
|
1357
|
+
|
|
1358
|
+
var _CreateTableCommand = class _CreateTableCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1359
|
+
...commonParams
|
|
1360
|
+
}).m(function(Command, cs, config, o) {
|
|
1361
|
+
return [
|
|
1362
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1363
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1364
|
+
];
|
|
1365
|
+
}).s("KeyspacesService", "CreateTable", {}).n("KeyspacesClient", "CreateTableCommand").f(void 0, void 0).ser(se_CreateTableCommand).de(de_CreateTableCommand).build() {
|
|
1366
|
+
};
|
|
1367
|
+
__name(_CreateTableCommand, "CreateTableCommand");
|
|
1368
|
+
var CreateTableCommand = _CreateTableCommand;
|
|
1369
|
+
|
|
1370
|
+
// src/commands/DeleteKeyspaceCommand.ts
|
|
1371
|
+
|
|
1372
|
+
|
|
1373
|
+
|
|
1374
|
+
|
|
1375
|
+
var _DeleteKeyspaceCommand = class _DeleteKeyspaceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1376
|
+
...commonParams
|
|
1377
|
+
}).m(function(Command, cs, config, o) {
|
|
1378
|
+
return [
|
|
1379
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1380
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1381
|
+
];
|
|
1382
|
+
}).s("KeyspacesService", "DeleteKeyspace", {}).n("KeyspacesClient", "DeleteKeyspaceCommand").f(void 0, void 0).ser(se_DeleteKeyspaceCommand).de(de_DeleteKeyspaceCommand).build() {
|
|
1383
|
+
};
|
|
1384
|
+
__name(_DeleteKeyspaceCommand, "DeleteKeyspaceCommand");
|
|
1385
|
+
var DeleteKeyspaceCommand = _DeleteKeyspaceCommand;
|
|
1386
|
+
|
|
1387
|
+
// src/commands/DeleteTableCommand.ts
|
|
1388
|
+
|
|
1389
|
+
|
|
1390
|
+
|
|
1391
|
+
|
|
1392
|
+
var _DeleteTableCommand = class _DeleteTableCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1393
|
+
...commonParams
|
|
1394
|
+
}).m(function(Command, cs, config, o) {
|
|
1395
|
+
return [
|
|
1396
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1397
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1398
|
+
];
|
|
1399
|
+
}).s("KeyspacesService", "DeleteTable", {}).n("KeyspacesClient", "DeleteTableCommand").f(void 0, void 0).ser(se_DeleteTableCommand).de(de_DeleteTableCommand).build() {
|
|
1400
|
+
};
|
|
1401
|
+
__name(_DeleteTableCommand, "DeleteTableCommand");
|
|
1402
|
+
var DeleteTableCommand = _DeleteTableCommand;
|
|
1403
|
+
|
|
1404
|
+
// src/commands/GetKeyspaceCommand.ts
|
|
1405
|
+
|
|
1406
|
+
|
|
1407
|
+
|
|
1408
|
+
|
|
1409
|
+
var _GetKeyspaceCommand = class _GetKeyspaceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1410
|
+
...commonParams
|
|
1411
|
+
}).m(function(Command, cs, config, o) {
|
|
1412
|
+
return [
|
|
1413
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1414
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1415
|
+
];
|
|
1416
|
+
}).s("KeyspacesService", "GetKeyspace", {}).n("KeyspacesClient", "GetKeyspaceCommand").f(void 0, void 0).ser(se_GetKeyspaceCommand).de(de_GetKeyspaceCommand).build() {
|
|
1417
|
+
};
|
|
1418
|
+
__name(_GetKeyspaceCommand, "GetKeyspaceCommand");
|
|
1419
|
+
var GetKeyspaceCommand = _GetKeyspaceCommand;
|
|
1420
|
+
|
|
1421
|
+
// src/commands/GetTableAutoScalingSettingsCommand.ts
|
|
1422
|
+
|
|
1423
|
+
|
|
1424
|
+
|
|
1425
|
+
|
|
1426
|
+
var _GetTableAutoScalingSettingsCommand = class _GetTableAutoScalingSettingsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1427
|
+
...commonParams
|
|
1428
|
+
}).m(function(Command, cs, config, o) {
|
|
1429
|
+
return [
|
|
1430
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1431
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1432
|
+
];
|
|
1433
|
+
}).s("KeyspacesService", "GetTableAutoScalingSettings", {}).n("KeyspacesClient", "GetTableAutoScalingSettingsCommand").f(void 0, void 0).ser(se_GetTableAutoScalingSettingsCommand).de(de_GetTableAutoScalingSettingsCommand).build() {
|
|
1434
|
+
};
|
|
1435
|
+
__name(_GetTableAutoScalingSettingsCommand, "GetTableAutoScalingSettingsCommand");
|
|
1436
|
+
var GetTableAutoScalingSettingsCommand = _GetTableAutoScalingSettingsCommand;
|
|
1437
|
+
|
|
1438
|
+
// src/commands/GetTableCommand.ts
|
|
1439
|
+
|
|
1440
|
+
|
|
1441
|
+
|
|
1442
|
+
|
|
1443
|
+
var _GetTableCommand = class _GetTableCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1444
|
+
...commonParams
|
|
1445
|
+
}).m(function(Command, cs, config, o) {
|
|
1446
|
+
return [
|
|
1447
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1448
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1449
|
+
];
|
|
1450
|
+
}).s("KeyspacesService", "GetTable", {}).n("KeyspacesClient", "GetTableCommand").f(void 0, void 0).ser(se_GetTableCommand).de(de_GetTableCommand).build() {
|
|
1451
|
+
};
|
|
1452
|
+
__name(_GetTableCommand, "GetTableCommand");
|
|
1453
|
+
var GetTableCommand = _GetTableCommand;
|
|
1454
|
+
|
|
1455
|
+
// src/commands/ListKeyspacesCommand.ts
|
|
1456
|
+
|
|
1457
|
+
|
|
1458
|
+
|
|
1459
|
+
|
|
1460
|
+
var _ListKeyspacesCommand = class _ListKeyspacesCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1461
|
+
...commonParams
|
|
1462
|
+
}).m(function(Command, cs, config, o) {
|
|
1463
|
+
return [
|
|
1464
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1465
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1466
|
+
];
|
|
1467
|
+
}).s("KeyspacesService", "ListKeyspaces", {}).n("KeyspacesClient", "ListKeyspacesCommand").f(void 0, void 0).ser(se_ListKeyspacesCommand).de(de_ListKeyspacesCommand).build() {
|
|
1468
|
+
};
|
|
1469
|
+
__name(_ListKeyspacesCommand, "ListKeyspacesCommand");
|
|
1470
|
+
var ListKeyspacesCommand = _ListKeyspacesCommand;
|
|
1471
|
+
|
|
1472
|
+
// src/commands/ListTablesCommand.ts
|
|
1473
|
+
|
|
1474
|
+
|
|
1475
|
+
|
|
1476
|
+
|
|
1477
|
+
var _ListTablesCommand = class _ListTablesCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1478
|
+
...commonParams
|
|
1479
|
+
}).m(function(Command, cs, config, o) {
|
|
1480
|
+
return [
|
|
1481
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1482
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1483
|
+
];
|
|
1484
|
+
}).s("KeyspacesService", "ListTables", {}).n("KeyspacesClient", "ListTablesCommand").f(void 0, void 0).ser(se_ListTablesCommand).de(de_ListTablesCommand).build() {
|
|
1485
|
+
};
|
|
1486
|
+
__name(_ListTablesCommand, "ListTablesCommand");
|
|
1487
|
+
var ListTablesCommand = _ListTablesCommand;
|
|
1488
|
+
|
|
1489
|
+
// src/commands/ListTagsForResourceCommand.ts
|
|
1490
|
+
|
|
1491
|
+
|
|
1492
|
+
|
|
1493
|
+
|
|
1494
|
+
var _ListTagsForResourceCommand = class _ListTagsForResourceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1495
|
+
...commonParams
|
|
1496
|
+
}).m(function(Command, cs, config, o) {
|
|
1497
|
+
return [
|
|
1498
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1499
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1500
|
+
];
|
|
1501
|
+
}).s("KeyspacesService", "ListTagsForResource", {}).n("KeyspacesClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
|
|
1502
|
+
};
|
|
1503
|
+
__name(_ListTagsForResourceCommand, "ListTagsForResourceCommand");
|
|
1504
|
+
var ListTagsForResourceCommand = _ListTagsForResourceCommand;
|
|
1505
|
+
|
|
1506
|
+
// src/commands/RestoreTableCommand.ts
|
|
1507
|
+
|
|
1508
|
+
|
|
1509
|
+
|
|
1510
|
+
|
|
1511
|
+
var _RestoreTableCommand = class _RestoreTableCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1512
|
+
...commonParams
|
|
1513
|
+
}).m(function(Command, cs, config, o) {
|
|
1514
|
+
return [
|
|
1515
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1516
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1517
|
+
];
|
|
1518
|
+
}).s("KeyspacesService", "RestoreTable", {}).n("KeyspacesClient", "RestoreTableCommand").f(void 0, void 0).ser(se_RestoreTableCommand).de(de_RestoreTableCommand).build() {
|
|
1519
|
+
};
|
|
1520
|
+
__name(_RestoreTableCommand, "RestoreTableCommand");
|
|
1521
|
+
var RestoreTableCommand = _RestoreTableCommand;
|
|
1522
|
+
|
|
1523
|
+
// src/commands/TagResourceCommand.ts
|
|
1524
|
+
|
|
1525
|
+
|
|
1526
|
+
|
|
1527
|
+
|
|
1528
|
+
var _TagResourceCommand = class _TagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1529
|
+
...commonParams
|
|
1530
|
+
}).m(function(Command, cs, config, o) {
|
|
1531
|
+
return [
|
|
1532
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1533
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1534
|
+
];
|
|
1535
|
+
}).s("KeyspacesService", "TagResource", {}).n("KeyspacesClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
|
|
1536
|
+
};
|
|
1537
|
+
__name(_TagResourceCommand, "TagResourceCommand");
|
|
1538
|
+
var TagResourceCommand = _TagResourceCommand;
|
|
1539
|
+
|
|
1540
|
+
// src/commands/UntagResourceCommand.ts
|
|
1541
|
+
|
|
1542
|
+
|
|
1543
|
+
|
|
1544
|
+
|
|
1545
|
+
var _UntagResourceCommand = class _UntagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1546
|
+
...commonParams
|
|
1547
|
+
}).m(function(Command, cs, config, o) {
|
|
1548
|
+
return [
|
|
1549
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1550
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1551
|
+
];
|
|
1552
|
+
}).s("KeyspacesService", "UntagResource", {}).n("KeyspacesClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
|
|
1553
|
+
};
|
|
1554
|
+
__name(_UntagResourceCommand, "UntagResourceCommand");
|
|
1555
|
+
var UntagResourceCommand = _UntagResourceCommand;
|
|
1556
|
+
|
|
1557
|
+
// src/commands/UpdateTableCommand.ts
|
|
1558
|
+
|
|
1559
|
+
|
|
1560
|
+
|
|
1561
|
+
|
|
1562
|
+
var _UpdateTableCommand = class _UpdateTableCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1563
|
+
...commonParams
|
|
1564
|
+
}).m(function(Command, cs, config, o) {
|
|
1565
|
+
return [
|
|
1566
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1567
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1568
|
+
];
|
|
1569
|
+
}).s("KeyspacesService", "UpdateTable", {}).n("KeyspacesClient", "UpdateTableCommand").f(void 0, void 0).ser(se_UpdateTableCommand).de(de_UpdateTableCommand).build() {
|
|
1570
|
+
};
|
|
1571
|
+
__name(_UpdateTableCommand, "UpdateTableCommand");
|
|
1572
|
+
var UpdateTableCommand = _UpdateTableCommand;
|
|
1573
|
+
|
|
1574
|
+
// src/Keyspaces.ts
|
|
1575
|
+
var commands = {
|
|
1576
|
+
CreateKeyspaceCommand,
|
|
1577
|
+
CreateTableCommand,
|
|
1578
|
+
DeleteKeyspaceCommand,
|
|
1579
|
+
DeleteTableCommand,
|
|
1580
|
+
GetKeyspaceCommand,
|
|
1581
|
+
GetTableCommand,
|
|
1582
|
+
GetTableAutoScalingSettingsCommand,
|
|
1583
|
+
ListKeyspacesCommand,
|
|
1584
|
+
ListTablesCommand,
|
|
1585
|
+
ListTagsForResourceCommand,
|
|
1586
|
+
RestoreTableCommand,
|
|
1587
|
+
TagResourceCommand,
|
|
1588
|
+
UntagResourceCommand,
|
|
1589
|
+
UpdateTableCommand
|
|
1590
|
+
};
|
|
1591
|
+
var _Keyspaces = class _Keyspaces extends KeyspacesClient {
|
|
1592
|
+
};
|
|
1593
|
+
__name(_Keyspaces, "Keyspaces");
|
|
1594
|
+
var Keyspaces = _Keyspaces;
|
|
1595
|
+
(0, import_smithy_client.createAggregatedClient)(commands, Keyspaces);
|
|
1596
|
+
|
|
1597
|
+
// src/pagination/ListKeyspacesPaginator.ts
|
|
1598
|
+
var import_core = require("@smithy/core");
|
|
1599
|
+
var paginateListKeyspaces = (0, import_core.createPaginator)(KeyspacesClient, ListKeyspacesCommand, "nextToken", "nextToken", "maxResults");
|
|
1600
|
+
|
|
1601
|
+
// src/pagination/ListTablesPaginator.ts
|
|
1602
|
+
|
|
1603
|
+
var paginateListTables = (0, import_core.createPaginator)(KeyspacesClient, ListTablesCommand, "nextToken", "nextToken", "maxResults");
|
|
1604
|
+
|
|
1605
|
+
// src/pagination/ListTagsForResourcePaginator.ts
|
|
1606
|
+
|
|
1607
|
+
var paginateListTagsForResource = (0, import_core.createPaginator)(KeyspacesClient, ListTagsForResourceCommand, "nextToken", "nextToken", "maxResults");
|
|
1608
|
+
|
|
1609
|
+
// src/index.ts
|
|
1610
|
+
var import_util_endpoints = require("@aws-sdk/util-endpoints");
|
|
1611
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
1612
|
+
|
|
1613
|
+
0 && (module.exports = {
|
|
1614
|
+
AccessDeniedException,
|
|
1615
|
+
ClientSideTimestampsStatus,
|
|
1616
|
+
ConflictException,
|
|
1617
|
+
CreateKeyspaceCommand,
|
|
1618
|
+
CreateTableCommand,
|
|
1619
|
+
DeleteKeyspaceCommand,
|
|
1620
|
+
DeleteTableCommand,
|
|
1621
|
+
EncryptionType,
|
|
1622
|
+
GetKeyspaceCommand,
|
|
1623
|
+
GetTableAutoScalingSettingsCommand,
|
|
1624
|
+
GetTableCommand,
|
|
1625
|
+
InternalServerException,
|
|
1626
|
+
Keyspaces,
|
|
1627
|
+
KeyspacesClient,
|
|
1628
|
+
KeyspacesServiceException,
|
|
1629
|
+
ListKeyspacesCommand,
|
|
1630
|
+
ListTablesCommand,
|
|
1631
|
+
ListTagsForResourceCommand,
|
|
1632
|
+
PointInTimeRecoveryStatus,
|
|
1633
|
+
ResourceNotFoundException,
|
|
1634
|
+
RestoreTableCommand,
|
|
1635
|
+
Rs,
|
|
1636
|
+
ServiceQuotaExceededException,
|
|
1637
|
+
SortOrder,
|
|
1638
|
+
TableStatus,
|
|
1639
|
+
TagResourceCommand,
|
|
1640
|
+
ThroughputMode,
|
|
1641
|
+
TimeToLiveStatus,
|
|
1642
|
+
UntagResourceCommand,
|
|
1643
|
+
UpdateTableCommand,
|
|
1644
|
+
ValidationException,
|
|
1645
|
+
__Client,
|
|
1646
|
+
paginateListKeyspaces,
|
|
1647
|
+
paginateListTables,
|
|
1648
|
+
paginateListTagsForResource
|
|
1649
|
+
});
|
|
1650
|
+
|