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