@aws-sdk/client-keyspaces 3.693.0 → 3.699.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -0
- package/dist-cjs/index.js +44 -0
- package/dist-es/Keyspaces.js +2 -0
- package/dist-es/commands/UpdateKeyspaceCommand.js +22 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +6 -0
- package/dist-es/protocols/Aws_json1_0.js +19 -0
- package/dist-types/Keyspaces.d.ts +7 -0
- package/dist-types/KeyspacesClient.d.ts +3 -2
- package/dist-types/commands/CreateTypeCommand.d.ts +2 -0
- package/dist-types/commands/DeleteTypeCommand.d.ts +2 -0
- package/dist-types/commands/GetKeyspaceCommand.d.ts +9 -1
- package/dist-types/commands/GetTypeCommand.d.ts +2 -1
- package/dist-types/commands/ListTypesCommand.d.ts +2 -1
- package/dist-types/commands/UpdateKeyspaceCommand.d.ts +110 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +100 -1
- package/dist-types/protocols/Aws_json1_0.d.ts +9 -0
- package/dist-types/ts3.4/Keyspaces.d.ts +17 -0
- package/dist-types/ts3.4/KeyspacesClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/UpdateKeyspaceCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +22 -0
- package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +12 -0
- package/package.json +35 -35
package/README.md
CHANGED
|
@@ -351,6 +351,14 @@ UntagResource
|
|
|
351
351
|
|
|
352
352
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/keyspaces/command/UntagResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-keyspaces/Interface/UntagResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-keyspaces/Interface/UntagResourceCommandOutput/)
|
|
353
353
|
|
|
354
|
+
</details>
|
|
355
|
+
<details>
|
|
356
|
+
<summary>
|
|
357
|
+
UpdateKeyspace
|
|
358
|
+
</summary>
|
|
359
|
+
|
|
360
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/keyspaces/command/UpdateKeyspaceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-keyspaces/Interface/UpdateKeyspaceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-keyspaces/Interface/UpdateKeyspaceCommandOutput/)
|
|
361
|
+
|
|
354
362
|
</details>
|
|
355
363
|
<details>
|
|
356
364
|
<summary>
|
package/dist-cjs/index.js
CHANGED
|
@@ -36,6 +36,7 @@ __export(src_exports, {
|
|
|
36
36
|
GetTableCommand: () => GetTableCommand,
|
|
37
37
|
GetTypeCommand: () => GetTypeCommand,
|
|
38
38
|
InternalServerException: () => InternalServerException,
|
|
39
|
+
KeyspaceStatus: () => KeyspaceStatus,
|
|
39
40
|
Keyspaces: () => Keyspaces,
|
|
40
41
|
KeyspacesClient: () => KeyspacesClient,
|
|
41
42
|
KeyspacesServiceException: () => KeyspacesServiceException,
|
|
@@ -55,6 +56,7 @@ __export(src_exports, {
|
|
|
55
56
|
TimeToLiveStatus: () => TimeToLiveStatus,
|
|
56
57
|
TypeStatus: () => TypeStatus,
|
|
57
58
|
UntagResourceCommand: () => UntagResourceCommand,
|
|
59
|
+
UpdateKeyspaceCommand: () => UpdateKeyspaceCommand,
|
|
58
60
|
UpdateTableCommand: () => UpdateTableCommand,
|
|
59
61
|
ValidationException: () => ValidationException,
|
|
60
62
|
__Client: () => import_smithy_client.Client,
|
|
@@ -359,6 +361,12 @@ var _ResourceNotFoundException = class _ResourceNotFoundException extends Keyspa
|
|
|
359
361
|
};
|
|
360
362
|
__name(_ResourceNotFoundException, "ResourceNotFoundException");
|
|
361
363
|
var ResourceNotFoundException = _ResourceNotFoundException;
|
|
364
|
+
var KeyspaceStatus = {
|
|
365
|
+
ACTIVE: "ACTIVE",
|
|
366
|
+
CREATING: "CREATING",
|
|
367
|
+
DELETING: "DELETING",
|
|
368
|
+
UPDATING: "UPDATING"
|
|
369
|
+
};
|
|
362
370
|
var TableStatus = {
|
|
363
371
|
ACTIVE: "ACTIVE",
|
|
364
372
|
CREATING: "CREATING",
|
|
@@ -478,6 +486,12 @@ var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
478
486
|
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
479
487
|
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
480
488
|
}, "se_UntagResourceCommand");
|
|
489
|
+
var se_UpdateKeyspaceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
490
|
+
const headers = sharedHeaders("UpdateKeyspace");
|
|
491
|
+
let body;
|
|
492
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
493
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
494
|
+
}, "se_UpdateKeyspaceCommand");
|
|
481
495
|
var se_UpdateTableCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
482
496
|
const headers = sharedHeaders("UpdateTable");
|
|
483
497
|
let body;
|
|
@@ -705,6 +719,19 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
705
719
|
};
|
|
706
720
|
return response;
|
|
707
721
|
}, "de_UntagResourceCommand");
|
|
722
|
+
var de_UpdateKeyspaceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
723
|
+
if (output.statusCode >= 300) {
|
|
724
|
+
return de_CommandError(output, context);
|
|
725
|
+
}
|
|
726
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
727
|
+
let contents = {};
|
|
728
|
+
contents = (0, import_smithy_client._json)(data);
|
|
729
|
+
const response = {
|
|
730
|
+
$metadata: deserializeMetadata(output),
|
|
731
|
+
...contents
|
|
732
|
+
};
|
|
733
|
+
return response;
|
|
734
|
+
}, "de_UpdateKeyspaceCommand");
|
|
708
735
|
var de_UpdateTableCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
709
736
|
if (output.statusCode >= 300) {
|
|
710
737
|
return de_CommandError(output, context);
|
|
@@ -1266,6 +1293,20 @@ var _UntagResourceCommand = class _UntagResourceCommand extends import_smithy_cl
|
|
|
1266
1293
|
__name(_UntagResourceCommand, "UntagResourceCommand");
|
|
1267
1294
|
var UntagResourceCommand = _UntagResourceCommand;
|
|
1268
1295
|
|
|
1296
|
+
// src/commands/UpdateKeyspaceCommand.ts
|
|
1297
|
+
|
|
1298
|
+
|
|
1299
|
+
|
|
1300
|
+
var _UpdateKeyspaceCommand = class _UpdateKeyspaceCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1301
|
+
return [
|
|
1302
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1303
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1304
|
+
];
|
|
1305
|
+
}).s("KeyspacesService", "UpdateKeyspace", {}).n("KeyspacesClient", "UpdateKeyspaceCommand").f(void 0, void 0).ser(se_UpdateKeyspaceCommand).de(de_UpdateKeyspaceCommand).build() {
|
|
1306
|
+
};
|
|
1307
|
+
__name(_UpdateKeyspaceCommand, "UpdateKeyspaceCommand");
|
|
1308
|
+
var UpdateKeyspaceCommand = _UpdateKeyspaceCommand;
|
|
1309
|
+
|
|
1269
1310
|
// src/commands/UpdateTableCommand.ts
|
|
1270
1311
|
|
|
1271
1312
|
|
|
@@ -1299,6 +1340,7 @@ var commands = {
|
|
|
1299
1340
|
RestoreTableCommand,
|
|
1300
1341
|
TagResourceCommand,
|
|
1301
1342
|
UntagResourceCommand,
|
|
1343
|
+
UpdateKeyspaceCommand,
|
|
1302
1344
|
UpdateTableCommand
|
|
1303
1345
|
};
|
|
1304
1346
|
var _Keyspaces = class _Keyspaces extends KeyspacesClient {
|
|
@@ -1347,6 +1389,7 @@ var paginateListTypes = (0, import_core.createPaginator)(KeyspacesClient, ListTy
|
|
|
1347
1389
|
RestoreTableCommand,
|
|
1348
1390
|
TagResourceCommand,
|
|
1349
1391
|
UntagResourceCommand,
|
|
1392
|
+
UpdateKeyspaceCommand,
|
|
1350
1393
|
UpdateTableCommand,
|
|
1351
1394
|
paginateListKeyspaces,
|
|
1352
1395
|
paginateListTables,
|
|
@@ -1365,6 +1408,7 @@ var paginateListTypes = (0, import_core.createPaginator)(KeyspacesClient, ListTy
|
|
|
1365
1408
|
PointInTimeRecoveryStatus,
|
|
1366
1409
|
TimeToLiveStatus,
|
|
1367
1410
|
ResourceNotFoundException,
|
|
1411
|
+
KeyspaceStatus,
|
|
1368
1412
|
TableStatus,
|
|
1369
1413
|
TypeStatus
|
|
1370
1414
|
});
|
package/dist-es/Keyspaces.js
CHANGED
|
@@ -16,6 +16,7 @@ import { ListTypesCommand } from "./commands/ListTypesCommand";
|
|
|
16
16
|
import { RestoreTableCommand, } from "./commands/RestoreTableCommand";
|
|
17
17
|
import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
18
18
|
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
19
|
+
import { UpdateKeyspaceCommand, } from "./commands/UpdateKeyspaceCommand";
|
|
19
20
|
import { UpdateTableCommand } from "./commands/UpdateTableCommand";
|
|
20
21
|
import { KeyspacesClient } from "./KeyspacesClient";
|
|
21
22
|
const commands = {
|
|
@@ -36,6 +37,7 @@ const commands = {
|
|
|
36
37
|
RestoreTableCommand,
|
|
37
38
|
TagResourceCommand,
|
|
38
39
|
UntagResourceCommand,
|
|
40
|
+
UpdateKeyspaceCommand,
|
|
39
41
|
UpdateTableCommand,
|
|
40
42
|
};
|
|
41
43
|
export class Keyspaces extends KeyspacesClient {
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_UpdateKeyspaceCommand, se_UpdateKeyspaceCommand } from "../protocols/Aws_json1_0";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class UpdateKeyspaceCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep(commonParams)
|
|
10
|
+
.m(function (Command, cs, config, o) {
|
|
11
|
+
return [
|
|
12
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
+
];
|
|
15
|
+
})
|
|
16
|
+
.s("KeyspacesService", "UpdateKeyspace", {})
|
|
17
|
+
.n("KeyspacesClient", "UpdateKeyspaceCommand")
|
|
18
|
+
.f(void 0, void 0)
|
|
19
|
+
.ser(se_UpdateKeyspaceCommand)
|
|
20
|
+
.de(de_UpdateKeyspaceCommand)
|
|
21
|
+
.build() {
|
|
22
|
+
}
|
|
@@ -98,6 +98,12 @@ export class ResourceNotFoundException extends __BaseException {
|
|
|
98
98
|
this.resourceArn = opts.resourceArn;
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
|
+
export const KeyspaceStatus = {
|
|
102
|
+
ACTIVE: "ACTIVE",
|
|
103
|
+
CREATING: "CREATING",
|
|
104
|
+
DELETING: "DELETING",
|
|
105
|
+
UPDATING: "UPDATING",
|
|
106
|
+
};
|
|
101
107
|
export const TableStatus = {
|
|
102
108
|
ACTIVE: "ACTIVE",
|
|
103
109
|
CREATING: "CREATING",
|
|
@@ -105,6 +105,12 @@ export const se_UntagResourceCommand = async (input, context) => {
|
|
|
105
105
|
body = JSON.stringify(_json(input));
|
|
106
106
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
107
107
|
};
|
|
108
|
+
export const se_UpdateKeyspaceCommand = async (input, context) => {
|
|
109
|
+
const headers = sharedHeaders("UpdateKeyspace");
|
|
110
|
+
let body;
|
|
111
|
+
body = JSON.stringify(_json(input));
|
|
112
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
113
|
+
};
|
|
108
114
|
export const se_UpdateTableCommand = async (input, context) => {
|
|
109
115
|
const headers = sharedHeaders("UpdateTable");
|
|
110
116
|
let body;
|
|
@@ -332,6 +338,19 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
332
338
|
};
|
|
333
339
|
return response;
|
|
334
340
|
};
|
|
341
|
+
export const de_UpdateKeyspaceCommand = async (output, context) => {
|
|
342
|
+
if (output.statusCode >= 300) {
|
|
343
|
+
return de_CommandError(output, context);
|
|
344
|
+
}
|
|
345
|
+
const data = await parseBody(output.body, context);
|
|
346
|
+
let contents = {};
|
|
347
|
+
contents = _json(data);
|
|
348
|
+
const response = {
|
|
349
|
+
$metadata: deserializeMetadata(output),
|
|
350
|
+
...contents,
|
|
351
|
+
};
|
|
352
|
+
return response;
|
|
353
|
+
};
|
|
335
354
|
export const de_UpdateTableCommand = async (output, context) => {
|
|
336
355
|
if (output.statusCode >= 300) {
|
|
337
356
|
return de_CommandError(output, context);
|
|
@@ -16,6 +16,7 @@ import { ListTypesCommandInput, ListTypesCommandOutput } from "./commands/ListTy
|
|
|
16
16
|
import { RestoreTableCommandInput, RestoreTableCommandOutput } from "./commands/RestoreTableCommand";
|
|
17
17
|
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
18
18
|
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
19
|
+
import { UpdateKeyspaceCommandInput, UpdateKeyspaceCommandOutput } from "./commands/UpdateKeyspaceCommand";
|
|
19
20
|
import { UpdateTableCommandInput, UpdateTableCommandOutput } from "./commands/UpdateTableCommand";
|
|
20
21
|
import { KeyspacesClient } from "./KeyspacesClient";
|
|
21
22
|
export interface Keyspaces {
|
|
@@ -122,6 +123,12 @@ export interface Keyspaces {
|
|
|
122
123
|
untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
|
|
123
124
|
untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
124
125
|
untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
126
|
+
/**
|
|
127
|
+
* @see {@link UpdateKeyspaceCommand}
|
|
128
|
+
*/
|
|
129
|
+
updateKeyspace(args: UpdateKeyspaceCommandInput, options?: __HttpHandlerOptions): Promise<UpdateKeyspaceCommandOutput>;
|
|
130
|
+
updateKeyspace(args: UpdateKeyspaceCommandInput, cb: (err: any, data?: UpdateKeyspaceCommandOutput) => void): void;
|
|
131
|
+
updateKeyspace(args: UpdateKeyspaceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateKeyspaceCommandOutput) => void): void;
|
|
125
132
|
/**
|
|
126
133
|
* @see {@link UpdateTableCommand}
|
|
127
134
|
*/
|
|
@@ -24,6 +24,7 @@ import { ListTypesCommandInput, ListTypesCommandOutput } from "./commands/ListTy
|
|
|
24
24
|
import { RestoreTableCommandInput, RestoreTableCommandOutput } from "./commands/RestoreTableCommand";
|
|
25
25
|
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
26
26
|
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
27
|
+
import { UpdateKeyspaceCommandInput, UpdateKeyspaceCommandOutput } from "./commands/UpdateKeyspaceCommand";
|
|
27
28
|
import { UpdateTableCommandInput, UpdateTableCommandOutput } from "./commands/UpdateTableCommand";
|
|
28
29
|
import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
|
|
29
30
|
import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
|
|
@@ -31,11 +32,11 @@ export { __Client };
|
|
|
31
32
|
/**
|
|
32
33
|
* @public
|
|
33
34
|
*/
|
|
34
|
-
export type ServiceInputTypes = CreateKeyspaceCommandInput | CreateTableCommandInput | CreateTypeCommandInput | DeleteKeyspaceCommandInput | DeleteTableCommandInput | DeleteTypeCommandInput | GetKeyspaceCommandInput | GetTableAutoScalingSettingsCommandInput | GetTableCommandInput | GetTypeCommandInput | ListKeyspacesCommandInput | ListTablesCommandInput | ListTagsForResourceCommandInput | ListTypesCommandInput | RestoreTableCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateTableCommandInput;
|
|
35
|
+
export type ServiceInputTypes = CreateKeyspaceCommandInput | CreateTableCommandInput | CreateTypeCommandInput | DeleteKeyspaceCommandInput | DeleteTableCommandInput | DeleteTypeCommandInput | GetKeyspaceCommandInput | GetTableAutoScalingSettingsCommandInput | GetTableCommandInput | GetTypeCommandInput | ListKeyspacesCommandInput | ListTablesCommandInput | ListTagsForResourceCommandInput | ListTypesCommandInput | RestoreTableCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateKeyspaceCommandInput | UpdateTableCommandInput;
|
|
35
36
|
/**
|
|
36
37
|
* @public
|
|
37
38
|
*/
|
|
38
|
-
export type ServiceOutputTypes = CreateKeyspaceCommandOutput | CreateTableCommandOutput | CreateTypeCommandOutput | DeleteKeyspaceCommandOutput | DeleteTableCommandOutput | DeleteTypeCommandOutput | GetKeyspaceCommandOutput | GetTableAutoScalingSettingsCommandOutput | GetTableCommandOutput | GetTypeCommandOutput | ListKeyspacesCommandOutput | ListTablesCommandOutput | ListTagsForResourceCommandOutput | ListTypesCommandOutput | RestoreTableCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateTableCommandOutput;
|
|
39
|
+
export type ServiceOutputTypes = CreateKeyspaceCommandOutput | CreateTableCommandOutput | CreateTypeCommandOutput | DeleteKeyspaceCommandOutput | DeleteTableCommandOutput | DeleteTypeCommandOutput | GetKeyspaceCommandOutput | GetTableAutoScalingSettingsCommandOutput | GetTableCommandOutput | GetTypeCommandOutput | ListKeyspacesCommandOutput | ListTablesCommandOutput | ListTagsForResourceCommandOutput | ListTypesCommandOutput | RestoreTableCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateKeyspaceCommandOutput | UpdateTableCommandOutput;
|
|
39
40
|
/**
|
|
40
41
|
* @public
|
|
41
42
|
*/
|
|
@@ -30,6 +30,8 @@ declare const CreateTypeCommand_base: {
|
|
|
30
30
|
* <p>
|
|
31
31
|
* The <code>CreateType</code> operation creates a new user-defined type in the specified keyspace.
|
|
32
32
|
* </p>
|
|
33
|
+
* <p>To configure the required permissions, see <a href="https://docs.aws.amazon.com/keyspaces/latest/devguide/configure-udt-permissions.html#udt-permissions-create">Permissions to create a UDT</a>
|
|
34
|
+
* in the <i>Amazon Keyspaces Developer Guide</i>.</p>
|
|
33
35
|
* <p>For more information, see <a href="https://docs.aws.amazon.com/keyspaces/latest/devguide/udts.html">User-defined types (UDTs)</a> in the <i>Amazon Keyspaces Developer
|
|
34
36
|
* Guide</i>. </p>
|
|
35
37
|
* @example
|
|
@@ -31,6 +31,8 @@ declare const DeleteTypeCommand_base: {
|
|
|
31
31
|
* The <code>DeleteType</code> operation deletes a user-defined type (UDT). You can only delete a type that is not used in a table
|
|
32
32
|
* or another UDT.
|
|
33
33
|
* </p>
|
|
34
|
+
* <p>To configure the required permissions, see <a href="https://docs.aws.amazon.com/keyspaces/latest/devguide/configure-udt-permissions.html#udt-permissions-drop">Permissions to delete a UDT</a>
|
|
35
|
+
* in the <i>Amazon Keyspaces Developer Guide</i>.</p>
|
|
34
36
|
* @example
|
|
35
37
|
* Use a bare-bones client and the command you need to make an API call.
|
|
36
38
|
* ```javascript
|
|
@@ -27,7 +27,8 @@ declare const GetKeyspaceCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <p>Returns the name
|
|
30
|
+
* <p>Returns the name of the specified keyspace, the Amazon Resource Name (ARN), the replication strategy, the Amazon Web Services Regions of
|
|
31
|
+
* a multi-Region keyspace, and the status of newly added Regions after an <code>UpdateKeyspace</code> operation.</p>
|
|
31
32
|
* @example
|
|
32
33
|
* Use a bare-bones client and the command you need to make an API call.
|
|
33
34
|
* ```javascript
|
|
@@ -46,6 +47,13 @@ declare const GetKeyspaceCommand_base: {
|
|
|
46
47
|
* // replicationRegions: [ // RegionList
|
|
47
48
|
* // "STRING_VALUE",
|
|
48
49
|
* // ],
|
|
50
|
+
* // replicationGroupStatuses: [ // ReplicationGroupStatusList
|
|
51
|
+
* // { // ReplicationGroupStatus
|
|
52
|
+
* // region: "STRING_VALUE", // required
|
|
53
|
+
* // keyspaceStatus: "STRING_VALUE", // required
|
|
54
|
+
* // tablesReplicationProgress: "STRING_VALUE",
|
|
55
|
+
* // },
|
|
56
|
+
* // ],
|
|
49
57
|
* // };
|
|
50
58
|
*
|
|
51
59
|
* ```
|
|
@@ -33,7 +33,8 @@ declare const GetTypeCommand_base: {
|
|
|
33
33
|
* </p>
|
|
34
34
|
* <p>To read keyspace metadata using <code>GetType</code>, the
|
|
35
35
|
* IAM principal needs <code>Select</code> action
|
|
36
|
-
* permissions for the system keyspace
|
|
36
|
+
* permissions for the system keyspace. To configure the required permissions, see <a href="https://docs.aws.amazon.com/keyspaces/latest/devguide/configure-udt-permissions.html#udt-permissions-view">Permissions to view a UDT</a>
|
|
37
|
+
* in the <i>Amazon Keyspaces Developer Guide</i>.</p>
|
|
37
38
|
* @example
|
|
38
39
|
* Use a bare-bones client and the command you need to make an API call.
|
|
39
40
|
* ```javascript
|
|
@@ -32,7 +32,8 @@ declare const ListTypesCommand_base: {
|
|
|
32
32
|
* </p>
|
|
33
33
|
* <p>To read keyspace metadata using <code>ListTypes</code>, the
|
|
34
34
|
* IAM principal needs <code>Select</code> action
|
|
35
|
-
* permissions for the system keyspace
|
|
35
|
+
* permissions for the system keyspace. To configure the required permissions, see <a href="https://docs.aws.amazon.com/keyspaces/latest/devguide/configure-udt-permissions.html#udt-permissions-view">Permissions to view a UDT</a>
|
|
36
|
+
* in the <i>Amazon Keyspaces Developer Guide</i>.</p>
|
|
36
37
|
* @example
|
|
37
38
|
* Use a bare-bones client and the command you need to make an API call.
|
|
38
39
|
* ```javascript
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { KeyspacesClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../KeyspacesClient";
|
|
4
|
+
import { UpdateKeyspaceRequest, UpdateKeyspaceResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link UpdateKeyspaceCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface UpdateKeyspaceCommandInput extends UpdateKeyspaceRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link UpdateKeyspaceCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface UpdateKeyspaceCommandOutput extends UpdateKeyspaceResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const UpdateKeyspaceCommand_base: {
|
|
25
|
+
new (input: UpdateKeyspaceCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateKeyspaceCommandInput, UpdateKeyspaceCommandOutput, KeyspacesClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: UpdateKeyspaceCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateKeyspaceCommandInput, UpdateKeyspaceCommandOutput, KeyspacesClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>
|
|
31
|
+
* Adds a new Amazon Web Services Region to the keyspace. You can add a new Region to a keyspace that is either a single or a multi-Region keyspace.
|
|
32
|
+
* The new replica Region is applied to all tables in the keyspace. For more information, see <a href="https://docs.aws.amazon.com/keyspaces/latest/devguide/keyspaces-multi-region-add-replica.html">Add an Amazon Web Services Region to a keyspace in Amazon Keyspaces</a> in the <i>Amazon Keyspaces Developer
|
|
33
|
+
* Guide</i>.
|
|
34
|
+
* </p>
|
|
35
|
+
* <p>To change a single-Region to a multi-Region keyspace, you have to enable client-side timestamps
|
|
36
|
+
* for all tables in the keyspace. For more information, see
|
|
37
|
+
* <a href="https://docs.aws.amazon.com/keyspaces/latest/devguide/client-side-timestamps.html">Client-side timestamps in Amazon Keyspaces</a> in the <i>Amazon Keyspaces Developer
|
|
38
|
+
* Guide</i>.</p>
|
|
39
|
+
* @example
|
|
40
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
41
|
+
* ```javascript
|
|
42
|
+
* import { KeyspacesClient, UpdateKeyspaceCommand } from "@aws-sdk/client-keyspaces"; // ES Modules import
|
|
43
|
+
* // const { KeyspacesClient, UpdateKeyspaceCommand } = require("@aws-sdk/client-keyspaces"); // CommonJS import
|
|
44
|
+
* const client = new KeyspacesClient(config);
|
|
45
|
+
* const input = { // UpdateKeyspaceRequest
|
|
46
|
+
* keyspaceName: "STRING_VALUE", // required
|
|
47
|
+
* replicationSpecification: { // ReplicationSpecification
|
|
48
|
+
* replicationStrategy: "STRING_VALUE", // required
|
|
49
|
+
* regionList: [ // RegionList
|
|
50
|
+
* "STRING_VALUE",
|
|
51
|
+
* ],
|
|
52
|
+
* },
|
|
53
|
+
* clientSideTimestamps: { // ClientSideTimestamps
|
|
54
|
+
* status: "STRING_VALUE", // required
|
|
55
|
+
* },
|
|
56
|
+
* };
|
|
57
|
+
* const command = new UpdateKeyspaceCommand(input);
|
|
58
|
+
* const response = await client.send(command);
|
|
59
|
+
* // { // UpdateKeyspaceResponse
|
|
60
|
+
* // resourceArn: "STRING_VALUE", // required
|
|
61
|
+
* // };
|
|
62
|
+
*
|
|
63
|
+
* ```
|
|
64
|
+
*
|
|
65
|
+
* @param UpdateKeyspaceCommandInput - {@link UpdateKeyspaceCommandInput}
|
|
66
|
+
* @returns {@link UpdateKeyspaceCommandOutput}
|
|
67
|
+
* @see {@link UpdateKeyspaceCommandInput} for command's `input` shape.
|
|
68
|
+
* @see {@link UpdateKeyspaceCommandOutput} for command's `response` shape.
|
|
69
|
+
* @see {@link KeyspacesClientResolvedConfig | config} for KeyspacesClient's `config` shape.
|
|
70
|
+
*
|
|
71
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
72
|
+
* <p>You don't have sufficient access permissions to perform this action. </p>
|
|
73
|
+
*
|
|
74
|
+
* @throws {@link ConflictException} (client fault)
|
|
75
|
+
* <p>Amazon Keyspaces couldn't complete the requested action. This error may occur if you try to
|
|
76
|
+
* perform an action and the same or a different action is already
|
|
77
|
+
* in progress, or if you try to create a resource that already exists. </p>
|
|
78
|
+
*
|
|
79
|
+
* @throws {@link InternalServerException} (server fault)
|
|
80
|
+
* <p>Amazon Keyspaces was unable to fully process this request because of an internal server error.</p>
|
|
81
|
+
*
|
|
82
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
83
|
+
* <p>The operation tried to access a keyspace, table, or type that doesn't exist. The resource might not be specified correctly,
|
|
84
|
+
* or its status might not be <code>ACTIVE</code>.</p>
|
|
85
|
+
*
|
|
86
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
87
|
+
* <p>The operation exceeded the service quota for this resource. For more information on service quotas, see <a href="https://docs.aws.amazon.com/keyspaces/latest/devguide/quotas.html">Quotas</a> in the <i>Amazon Keyspaces Developer
|
|
88
|
+
* Guide</i>.</p>
|
|
89
|
+
*
|
|
90
|
+
* @throws {@link ValidationException} (client fault)
|
|
91
|
+
* <p>The operation failed due to an invalid or malformed request.</p>
|
|
92
|
+
*
|
|
93
|
+
* @throws {@link KeyspacesServiceException}
|
|
94
|
+
* <p>Base exception class for all service exceptions from Keyspaces service.</p>
|
|
95
|
+
*
|
|
96
|
+
* @public
|
|
97
|
+
*/
|
|
98
|
+
export declare class UpdateKeyspaceCommand extends UpdateKeyspaceCommand_base {
|
|
99
|
+
/** @internal type navigation helper, not in runtime. */
|
|
100
|
+
protected static __types: {
|
|
101
|
+
api: {
|
|
102
|
+
input: UpdateKeyspaceRequest;
|
|
103
|
+
output: UpdateKeyspaceResponse;
|
|
104
|
+
};
|
|
105
|
+
sdk: {
|
|
106
|
+
input: UpdateKeyspaceCommandInput;
|
|
107
|
+
output: UpdateKeyspaceCommandOutput;
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
}
|
|
@@ -980,7 +980,7 @@ export declare class ResourceNotFoundException extends __BaseException {
|
|
|
980
980
|
readonly name: "ResourceNotFoundException";
|
|
981
981
|
readonly $fault: "client";
|
|
982
982
|
/**
|
|
983
|
-
* <p>The unique identifier in the format of Amazon Resource Name (ARN) for the resource
|
|
983
|
+
* <p>The unique identifier in the format of Amazon Resource Name (ARN) for the resource couldn’t be found.</p>
|
|
984
984
|
* @public
|
|
985
985
|
*/
|
|
986
986
|
resourceArn?: string | undefined;
|
|
@@ -1151,6 +1151,50 @@ export interface GetKeyspaceRequest {
|
|
|
1151
1151
|
*/
|
|
1152
1152
|
keyspaceName: string | undefined;
|
|
1153
1153
|
}
|
|
1154
|
+
/**
|
|
1155
|
+
* @public
|
|
1156
|
+
* @enum
|
|
1157
|
+
*/
|
|
1158
|
+
export declare const KeyspaceStatus: {
|
|
1159
|
+
readonly ACTIVE: "ACTIVE";
|
|
1160
|
+
readonly CREATING: "CREATING";
|
|
1161
|
+
readonly DELETING: "DELETING";
|
|
1162
|
+
readonly UPDATING: "UPDATING";
|
|
1163
|
+
};
|
|
1164
|
+
/**
|
|
1165
|
+
* @public
|
|
1166
|
+
*/
|
|
1167
|
+
export type KeyspaceStatus = (typeof KeyspaceStatus)[keyof typeof KeyspaceStatus];
|
|
1168
|
+
/**
|
|
1169
|
+
* <p>
|
|
1170
|
+
* This shows the summary status of the keyspace after a new Amazon Web Services Region was added.
|
|
1171
|
+
* </p>
|
|
1172
|
+
* @public
|
|
1173
|
+
*/
|
|
1174
|
+
export interface ReplicationGroupStatus {
|
|
1175
|
+
/**
|
|
1176
|
+
* <p>
|
|
1177
|
+
* The name of the Region that was added to the keyspace.
|
|
1178
|
+
* </p>
|
|
1179
|
+
* @public
|
|
1180
|
+
*/
|
|
1181
|
+
region: string | undefined;
|
|
1182
|
+
/**
|
|
1183
|
+
* <p>
|
|
1184
|
+
* The status of the keyspace.
|
|
1185
|
+
* </p>
|
|
1186
|
+
* @public
|
|
1187
|
+
*/
|
|
1188
|
+
keyspaceStatus: KeyspaceStatus | undefined;
|
|
1189
|
+
/**
|
|
1190
|
+
* <p>
|
|
1191
|
+
* This shows the replication progress of tables in the keyspace. The value is expressed as a percentage of the newly replicated tables
|
|
1192
|
+
* with status <code>Active</code> compared to the total number of tables in the keyspace.
|
|
1193
|
+
* </p>
|
|
1194
|
+
* @public
|
|
1195
|
+
*/
|
|
1196
|
+
tablesReplicationProgress?: string | undefined;
|
|
1197
|
+
}
|
|
1154
1198
|
/**
|
|
1155
1199
|
* @public
|
|
1156
1200
|
*/
|
|
@@ -1179,6 +1223,13 @@ export interface GetKeyspaceResponse {
|
|
|
1179
1223
|
* @public
|
|
1180
1224
|
*/
|
|
1181
1225
|
replicationRegions?: string[] | undefined;
|
|
1226
|
+
/**
|
|
1227
|
+
* <p>
|
|
1228
|
+
* A list of all Regions the keyspace is replicated in after the update keyspace operation and their status.
|
|
1229
|
+
* </p>
|
|
1230
|
+
* @public
|
|
1231
|
+
*/
|
|
1232
|
+
replicationGroupStatuses?: ReplicationGroupStatus[] | undefined;
|
|
1182
1233
|
}
|
|
1183
1234
|
/**
|
|
1184
1235
|
* @public
|
|
@@ -1885,6 +1936,54 @@ export interface UntagResourceRequest {
|
|
|
1885
1936
|
*/
|
|
1886
1937
|
export interface UntagResourceResponse {
|
|
1887
1938
|
}
|
|
1939
|
+
/**
|
|
1940
|
+
* @public
|
|
1941
|
+
*/
|
|
1942
|
+
export interface UpdateKeyspaceRequest {
|
|
1943
|
+
/**
|
|
1944
|
+
* <p>
|
|
1945
|
+
* The name of the keyspace.
|
|
1946
|
+
* </p>
|
|
1947
|
+
* @public
|
|
1948
|
+
*/
|
|
1949
|
+
keyspaceName: string | undefined;
|
|
1950
|
+
/**
|
|
1951
|
+
* <p>
|
|
1952
|
+
* The replication specification of the keyspace includes:</p>
|
|
1953
|
+
* <ul>
|
|
1954
|
+
* <li>
|
|
1955
|
+
* <p>
|
|
1956
|
+
* <code>regionList</code> - up to six Amazon Web Services Regions where the keyspace is replicated in.</p>
|
|
1957
|
+
* </li>
|
|
1958
|
+
* <li>
|
|
1959
|
+
* <p>
|
|
1960
|
+
* <code>replicationStrategy</code> - the required value is <code>SINGLE_REGION</code> or
|
|
1961
|
+
* <code>MULTI_REGION</code>.</p>
|
|
1962
|
+
* </li>
|
|
1963
|
+
* </ul>
|
|
1964
|
+
* @public
|
|
1965
|
+
*/
|
|
1966
|
+
replicationSpecification: ReplicationSpecification | undefined;
|
|
1967
|
+
/**
|
|
1968
|
+
* <p>The client-side timestamp setting of the table.</p>
|
|
1969
|
+
* <p>For more information, see <a href="https://docs.aws.amazon.com/keyspaces/latest/devguide/client-side-timestamps-how-it-works.html">How it works: Amazon Keyspaces client-side timestamps</a> in the <i>Amazon Keyspaces Developer
|
|
1970
|
+
* Guide</i>.</p>
|
|
1971
|
+
* @public
|
|
1972
|
+
*/
|
|
1973
|
+
clientSideTimestamps?: ClientSideTimestamps | undefined;
|
|
1974
|
+
}
|
|
1975
|
+
/**
|
|
1976
|
+
* @public
|
|
1977
|
+
*/
|
|
1978
|
+
export interface UpdateKeyspaceResponse {
|
|
1979
|
+
/**
|
|
1980
|
+
* <p>
|
|
1981
|
+
* The unique identifier of the keyspace in the format of an Amazon Resource Name (ARN).
|
|
1982
|
+
* </p>
|
|
1983
|
+
* @public
|
|
1984
|
+
*/
|
|
1985
|
+
resourceArn: string | undefined;
|
|
1986
|
+
}
|
|
1888
1987
|
/**
|
|
1889
1988
|
* @public
|
|
1890
1989
|
*/
|
|
@@ -17,6 +17,7 @@ import { ListTypesCommandInput, ListTypesCommandOutput } from "../commands/ListT
|
|
|
17
17
|
import { RestoreTableCommandInput, RestoreTableCommandOutput } from "../commands/RestoreTableCommand";
|
|
18
18
|
import { TagResourceCommandInput, TagResourceCommandOutput } from "../commands/TagResourceCommand";
|
|
19
19
|
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "../commands/UntagResourceCommand";
|
|
20
|
+
import { UpdateKeyspaceCommandInput, UpdateKeyspaceCommandOutput } from "../commands/UpdateKeyspaceCommand";
|
|
20
21
|
import { UpdateTableCommandInput, UpdateTableCommandOutput } from "../commands/UpdateTableCommand";
|
|
21
22
|
/**
|
|
22
23
|
* serializeAws_json1_0CreateKeyspaceCommand
|
|
@@ -86,6 +87,10 @@ export declare const se_TagResourceCommand: (input: TagResourceCommandInput, con
|
|
|
86
87
|
* serializeAws_json1_0UntagResourceCommand
|
|
87
88
|
*/
|
|
88
89
|
export declare const se_UntagResourceCommand: (input: UntagResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
90
|
+
/**
|
|
91
|
+
* serializeAws_json1_0UpdateKeyspaceCommand
|
|
92
|
+
*/
|
|
93
|
+
export declare const se_UpdateKeyspaceCommand: (input: UpdateKeyspaceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
89
94
|
/**
|
|
90
95
|
* serializeAws_json1_0UpdateTableCommand
|
|
91
96
|
*/
|
|
@@ -158,6 +163,10 @@ export declare const de_TagResourceCommand: (output: __HttpResponse, context: __
|
|
|
158
163
|
* deserializeAws_json1_0UntagResourceCommand
|
|
159
164
|
*/
|
|
160
165
|
export declare const de_UntagResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UntagResourceCommandOutput>;
|
|
166
|
+
/**
|
|
167
|
+
* deserializeAws_json1_0UpdateKeyspaceCommand
|
|
168
|
+
*/
|
|
169
|
+
export declare const de_UpdateKeyspaceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateKeyspaceCommandOutput>;
|
|
161
170
|
/**
|
|
162
171
|
* deserializeAws_json1_0UpdateTableCommand
|
|
163
172
|
*/
|
|
@@ -67,6 +67,10 @@ import {
|
|
|
67
67
|
UntagResourceCommandInput,
|
|
68
68
|
UntagResourceCommandOutput,
|
|
69
69
|
} from "./commands/UntagResourceCommand";
|
|
70
|
+
import {
|
|
71
|
+
UpdateKeyspaceCommandInput,
|
|
72
|
+
UpdateKeyspaceCommandOutput,
|
|
73
|
+
} from "./commands/UpdateKeyspaceCommand";
|
|
70
74
|
import {
|
|
71
75
|
UpdateTableCommandInput,
|
|
72
76
|
UpdateTableCommandOutput,
|
|
@@ -295,6 +299,19 @@ export interface Keyspaces {
|
|
|
295
299
|
options: __HttpHandlerOptions,
|
|
296
300
|
cb: (err: any, data?: UntagResourceCommandOutput) => void
|
|
297
301
|
): void;
|
|
302
|
+
updateKeyspace(
|
|
303
|
+
args: UpdateKeyspaceCommandInput,
|
|
304
|
+
options?: __HttpHandlerOptions
|
|
305
|
+
): Promise<UpdateKeyspaceCommandOutput>;
|
|
306
|
+
updateKeyspace(
|
|
307
|
+
args: UpdateKeyspaceCommandInput,
|
|
308
|
+
cb: (err: any, data?: UpdateKeyspaceCommandOutput) => void
|
|
309
|
+
): void;
|
|
310
|
+
updateKeyspace(
|
|
311
|
+
args: UpdateKeyspaceCommandInput,
|
|
312
|
+
options: __HttpHandlerOptions,
|
|
313
|
+
cb: (err: any, data?: UpdateKeyspaceCommandOutput) => void
|
|
314
|
+
): void;
|
|
298
315
|
updateTable(
|
|
299
316
|
args: UpdateTableCommandInput,
|
|
300
317
|
options?: __HttpHandlerOptions
|
|
@@ -113,6 +113,10 @@ import {
|
|
|
113
113
|
UntagResourceCommandInput,
|
|
114
114
|
UntagResourceCommandOutput,
|
|
115
115
|
} from "./commands/UntagResourceCommand";
|
|
116
|
+
import {
|
|
117
|
+
UpdateKeyspaceCommandInput,
|
|
118
|
+
UpdateKeyspaceCommandOutput,
|
|
119
|
+
} from "./commands/UpdateKeyspaceCommand";
|
|
116
120
|
import {
|
|
117
121
|
UpdateTableCommandInput,
|
|
118
122
|
UpdateTableCommandOutput,
|
|
@@ -142,6 +146,7 @@ export type ServiceInputTypes =
|
|
|
142
146
|
| RestoreTableCommandInput
|
|
143
147
|
| TagResourceCommandInput
|
|
144
148
|
| UntagResourceCommandInput
|
|
149
|
+
| UpdateKeyspaceCommandInput
|
|
145
150
|
| UpdateTableCommandInput;
|
|
146
151
|
export type ServiceOutputTypes =
|
|
147
152
|
| CreateKeyspaceCommandOutput
|
|
@@ -161,6 +166,7 @@ export type ServiceOutputTypes =
|
|
|
161
166
|
| RestoreTableCommandOutput
|
|
162
167
|
| TagResourceCommandOutput
|
|
163
168
|
| UntagResourceCommandOutput
|
|
169
|
+
| UpdateKeyspaceCommandOutput
|
|
164
170
|
| UpdateTableCommandOutput;
|
|
165
171
|
export interface ClientDefaults
|
|
166
172
|
extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import {
|
|
4
|
+
KeyspacesClientResolvedConfig,
|
|
5
|
+
ServiceInputTypes,
|
|
6
|
+
ServiceOutputTypes,
|
|
7
|
+
} from "../KeyspacesClient";
|
|
8
|
+
import {
|
|
9
|
+
UpdateKeyspaceRequest,
|
|
10
|
+
UpdateKeyspaceResponse,
|
|
11
|
+
} from "../models/models_0";
|
|
12
|
+
export { __MetadataBearer };
|
|
13
|
+
export { $Command };
|
|
14
|
+
export interface UpdateKeyspaceCommandInput extends UpdateKeyspaceRequest {}
|
|
15
|
+
export interface UpdateKeyspaceCommandOutput
|
|
16
|
+
extends UpdateKeyspaceResponse,
|
|
17
|
+
__MetadataBearer {}
|
|
18
|
+
declare const UpdateKeyspaceCommand_base: {
|
|
19
|
+
new (
|
|
20
|
+
input: UpdateKeyspaceCommandInput
|
|
21
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
22
|
+
UpdateKeyspaceCommandInput,
|
|
23
|
+
UpdateKeyspaceCommandOutput,
|
|
24
|
+
KeyspacesClientResolvedConfig,
|
|
25
|
+
ServiceInputTypes,
|
|
26
|
+
ServiceOutputTypes
|
|
27
|
+
>;
|
|
28
|
+
new (
|
|
29
|
+
__0_0: UpdateKeyspaceCommandInput
|
|
30
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
31
|
+
UpdateKeyspaceCommandInput,
|
|
32
|
+
UpdateKeyspaceCommandOutput,
|
|
33
|
+
KeyspacesClientResolvedConfig,
|
|
34
|
+
ServiceInputTypes,
|
|
35
|
+
ServiceOutputTypes
|
|
36
|
+
>;
|
|
37
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
38
|
+
};
|
|
39
|
+
export declare class UpdateKeyspaceCommand extends UpdateKeyspaceCommand_base {
|
|
40
|
+
protected static __types: {
|
|
41
|
+
api: {
|
|
42
|
+
input: UpdateKeyspaceRequest;
|
|
43
|
+
output: UpdateKeyspaceResponse;
|
|
44
|
+
};
|
|
45
|
+
sdk: {
|
|
46
|
+
input: UpdateKeyspaceCommandInput;
|
|
47
|
+
output: UpdateKeyspaceCommandOutput;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -219,11 +219,25 @@ export interface DeleteTypeResponse {
|
|
|
219
219
|
export interface GetKeyspaceRequest {
|
|
220
220
|
keyspaceName: string | undefined;
|
|
221
221
|
}
|
|
222
|
+
export declare const KeyspaceStatus: {
|
|
223
|
+
readonly ACTIVE: "ACTIVE";
|
|
224
|
+
readonly CREATING: "CREATING";
|
|
225
|
+
readonly DELETING: "DELETING";
|
|
226
|
+
readonly UPDATING: "UPDATING";
|
|
227
|
+
};
|
|
228
|
+
export type KeyspaceStatus =
|
|
229
|
+
(typeof KeyspaceStatus)[keyof typeof KeyspaceStatus];
|
|
230
|
+
export interface ReplicationGroupStatus {
|
|
231
|
+
region: string | undefined;
|
|
232
|
+
keyspaceStatus: KeyspaceStatus | undefined;
|
|
233
|
+
tablesReplicationProgress?: string | undefined;
|
|
234
|
+
}
|
|
222
235
|
export interface GetKeyspaceResponse {
|
|
223
236
|
keyspaceName: string | undefined;
|
|
224
237
|
resourceArn: string | undefined;
|
|
225
238
|
replicationStrategy: Rs | undefined;
|
|
226
239
|
replicationRegions?: string[] | undefined;
|
|
240
|
+
replicationGroupStatuses?: ReplicationGroupStatus[] | undefined;
|
|
227
241
|
}
|
|
228
242
|
export interface GetTableRequest {
|
|
229
243
|
keyspaceName: string | undefined;
|
|
@@ -373,6 +387,14 @@ export interface UntagResourceRequest {
|
|
|
373
387
|
tags: Tag[] | undefined;
|
|
374
388
|
}
|
|
375
389
|
export interface UntagResourceResponse {}
|
|
390
|
+
export interface UpdateKeyspaceRequest {
|
|
391
|
+
keyspaceName: string | undefined;
|
|
392
|
+
replicationSpecification: ReplicationSpecification | undefined;
|
|
393
|
+
clientSideTimestamps?: ClientSideTimestamps | undefined;
|
|
394
|
+
}
|
|
395
|
+
export interface UpdateKeyspaceResponse {
|
|
396
|
+
resourceArn: string | undefined;
|
|
397
|
+
}
|
|
376
398
|
export interface UpdateTableRequest {
|
|
377
399
|
keyspaceName: string | undefined;
|
|
378
400
|
tableName: string | undefined;
|
|
@@ -71,6 +71,10 @@ import {
|
|
|
71
71
|
UntagResourceCommandInput,
|
|
72
72
|
UntagResourceCommandOutput,
|
|
73
73
|
} from "../commands/UntagResourceCommand";
|
|
74
|
+
import {
|
|
75
|
+
UpdateKeyspaceCommandInput,
|
|
76
|
+
UpdateKeyspaceCommandOutput,
|
|
77
|
+
} from "../commands/UpdateKeyspaceCommand";
|
|
74
78
|
import {
|
|
75
79
|
UpdateTableCommandInput,
|
|
76
80
|
UpdateTableCommandOutput,
|
|
@@ -143,6 +147,10 @@ export declare const se_UntagResourceCommand: (
|
|
|
143
147
|
input: UntagResourceCommandInput,
|
|
144
148
|
context: __SerdeContext
|
|
145
149
|
) => Promise<__HttpRequest>;
|
|
150
|
+
export declare const se_UpdateKeyspaceCommand: (
|
|
151
|
+
input: UpdateKeyspaceCommandInput,
|
|
152
|
+
context: __SerdeContext
|
|
153
|
+
) => Promise<__HttpRequest>;
|
|
146
154
|
export declare const se_UpdateTableCommand: (
|
|
147
155
|
input: UpdateTableCommandInput,
|
|
148
156
|
context: __SerdeContext
|
|
@@ -215,6 +223,10 @@ export declare const de_UntagResourceCommand: (
|
|
|
215
223
|
output: __HttpResponse,
|
|
216
224
|
context: __SerdeContext
|
|
217
225
|
) => Promise<UntagResourceCommandOutput>;
|
|
226
|
+
export declare const de_UpdateKeyspaceCommand: (
|
|
227
|
+
output: __HttpResponse,
|
|
228
|
+
context: __SerdeContext
|
|
229
|
+
) => Promise<UpdateKeyspaceCommandOutput>;
|
|
218
230
|
export declare const de_UpdateTableCommand: (
|
|
219
231
|
output: __HttpResponse,
|
|
220
232
|
context: __SerdeContext
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-keyspaces",
|
|
3
3
|
"description": "AWS SDK for JavaScript Keyspaces Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.699.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-keyspaces",
|
|
@@ -20,43 +20,43 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
|
-
"@aws-sdk/client-sso-oidc": "3.
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
-
"@aws-sdk/core": "3.
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
27
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
28
|
-
"@aws-sdk/middleware-logger": "3.
|
|
29
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
30
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
31
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
32
|
-
"@aws-sdk/types": "3.
|
|
33
|
-
"@aws-sdk/util-endpoints": "3.
|
|
34
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
35
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
36
|
-
"@smithy/config-resolver": "^3.0.
|
|
37
|
-
"@smithy/core": "^2.5.
|
|
38
|
-
"@smithy/fetch-http-handler": "^4.1.
|
|
39
|
-
"@smithy/hash-node": "^3.0.
|
|
40
|
-
"@smithy/invalid-dependency": "^3.0.
|
|
41
|
-
"@smithy/middleware-content-length": "^3.0.
|
|
42
|
-
"@smithy/middleware-endpoint": "^3.2.
|
|
43
|
-
"@smithy/middleware-retry": "^3.0.
|
|
44
|
-
"@smithy/middleware-serde": "^3.0.
|
|
45
|
-
"@smithy/middleware-stack": "^3.0.
|
|
46
|
-
"@smithy/node-config-provider": "^3.1.
|
|
47
|
-
"@smithy/node-http-handler": "^3.3.
|
|
48
|
-
"@smithy/protocol-http": "^4.1.
|
|
49
|
-
"@smithy/smithy-client": "^3.4.
|
|
50
|
-
"@smithy/types": "^3.7.
|
|
51
|
-
"@smithy/url-parser": "^3.0.
|
|
23
|
+
"@aws-sdk/client-sso-oidc": "3.699.0",
|
|
24
|
+
"@aws-sdk/client-sts": "3.699.0",
|
|
25
|
+
"@aws-sdk/core": "3.696.0",
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.699.0",
|
|
27
|
+
"@aws-sdk/middleware-host-header": "3.696.0",
|
|
28
|
+
"@aws-sdk/middleware-logger": "3.696.0",
|
|
29
|
+
"@aws-sdk/middleware-recursion-detection": "3.696.0",
|
|
30
|
+
"@aws-sdk/middleware-user-agent": "3.696.0",
|
|
31
|
+
"@aws-sdk/region-config-resolver": "3.696.0",
|
|
32
|
+
"@aws-sdk/types": "3.696.0",
|
|
33
|
+
"@aws-sdk/util-endpoints": "3.696.0",
|
|
34
|
+
"@aws-sdk/util-user-agent-browser": "3.696.0",
|
|
35
|
+
"@aws-sdk/util-user-agent-node": "3.696.0",
|
|
36
|
+
"@smithy/config-resolver": "^3.0.12",
|
|
37
|
+
"@smithy/core": "^2.5.3",
|
|
38
|
+
"@smithy/fetch-http-handler": "^4.1.1",
|
|
39
|
+
"@smithy/hash-node": "^3.0.10",
|
|
40
|
+
"@smithy/invalid-dependency": "^3.0.10",
|
|
41
|
+
"@smithy/middleware-content-length": "^3.0.12",
|
|
42
|
+
"@smithy/middleware-endpoint": "^3.2.3",
|
|
43
|
+
"@smithy/middleware-retry": "^3.0.27",
|
|
44
|
+
"@smithy/middleware-serde": "^3.0.10",
|
|
45
|
+
"@smithy/middleware-stack": "^3.0.10",
|
|
46
|
+
"@smithy/node-config-provider": "^3.1.11",
|
|
47
|
+
"@smithy/node-http-handler": "^3.3.1",
|
|
48
|
+
"@smithy/protocol-http": "^4.1.7",
|
|
49
|
+
"@smithy/smithy-client": "^3.4.4",
|
|
50
|
+
"@smithy/types": "^3.7.1",
|
|
51
|
+
"@smithy/url-parser": "^3.0.10",
|
|
52
52
|
"@smithy/util-base64": "^3.0.0",
|
|
53
53
|
"@smithy/util-body-length-browser": "^3.0.0",
|
|
54
54
|
"@smithy/util-body-length-node": "^3.0.0",
|
|
55
|
-
"@smithy/util-defaults-mode-browser": "^3.0.
|
|
56
|
-
"@smithy/util-defaults-mode-node": "^3.0.
|
|
57
|
-
"@smithy/util-endpoints": "^2.1.
|
|
58
|
-
"@smithy/util-middleware": "^3.0.
|
|
59
|
-
"@smithy/util-retry": "^3.0.
|
|
55
|
+
"@smithy/util-defaults-mode-browser": "^3.0.27",
|
|
56
|
+
"@smithy/util-defaults-mode-node": "^3.0.27",
|
|
57
|
+
"@smithy/util-endpoints": "^2.1.6",
|
|
58
|
+
"@smithy/util-middleware": "^3.0.10",
|
|
59
|
+
"@smithy/util-retry": "^3.0.10",
|
|
60
60
|
"@smithy/util-utf8": "^3.0.0",
|
|
61
61
|
"tslib": "^2.6.2"
|
|
62
62
|
},
|