@aws-sdk/client-keyspaces 3.315.0 → 3.316.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.
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Keyspaces = void 0;
4
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
4
5
  const CreateKeyspaceCommand_1 = require("./commands/CreateKeyspaceCommand");
5
6
  const CreateTableCommand_1 = require("./commands/CreateTableCommand");
6
7
  const DeleteKeyspaceCommand_1 = require("./commands/DeleteKeyspaceCommand");
@@ -15,188 +16,22 @@ const TagResourceCommand_1 = require("./commands/TagResourceCommand");
15
16
  const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
16
17
  const UpdateTableCommand_1 = require("./commands/UpdateTableCommand");
17
18
  const KeyspacesClient_1 = require("./KeyspacesClient");
19
+ const commands = {
20
+ CreateKeyspaceCommand: CreateKeyspaceCommand_1.CreateKeyspaceCommand,
21
+ CreateTableCommand: CreateTableCommand_1.CreateTableCommand,
22
+ DeleteKeyspaceCommand: DeleteKeyspaceCommand_1.DeleteKeyspaceCommand,
23
+ DeleteTableCommand: DeleteTableCommand_1.DeleteTableCommand,
24
+ GetKeyspaceCommand: GetKeyspaceCommand_1.GetKeyspaceCommand,
25
+ GetTableCommand: GetTableCommand_1.GetTableCommand,
26
+ ListKeyspacesCommand: ListKeyspacesCommand_1.ListKeyspacesCommand,
27
+ ListTablesCommand: ListTablesCommand_1.ListTablesCommand,
28
+ ListTagsForResourceCommand: ListTagsForResourceCommand_1.ListTagsForResourceCommand,
29
+ RestoreTableCommand: RestoreTableCommand_1.RestoreTableCommand,
30
+ TagResourceCommand: TagResourceCommand_1.TagResourceCommand,
31
+ UntagResourceCommand: UntagResourceCommand_1.UntagResourceCommand,
32
+ UpdateTableCommand: UpdateTableCommand_1.UpdateTableCommand,
33
+ };
18
34
  class Keyspaces extends KeyspacesClient_1.KeyspacesClient {
19
- createKeyspace(args, optionsOrCb, cb) {
20
- const command = new CreateKeyspaceCommand_1.CreateKeyspaceCommand(args);
21
- if (typeof optionsOrCb === "function") {
22
- this.send(command, optionsOrCb);
23
- }
24
- else if (typeof cb === "function") {
25
- if (typeof optionsOrCb !== "object")
26
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
27
- this.send(command, optionsOrCb || {}, cb);
28
- }
29
- else {
30
- return this.send(command, optionsOrCb);
31
- }
32
- }
33
- createTable(args, optionsOrCb, cb) {
34
- const command = new CreateTableCommand_1.CreateTableCommand(args);
35
- if (typeof optionsOrCb === "function") {
36
- this.send(command, optionsOrCb);
37
- }
38
- else if (typeof cb === "function") {
39
- if (typeof optionsOrCb !== "object")
40
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
41
- this.send(command, optionsOrCb || {}, cb);
42
- }
43
- else {
44
- return this.send(command, optionsOrCb);
45
- }
46
- }
47
- deleteKeyspace(args, optionsOrCb, cb) {
48
- const command = new DeleteKeyspaceCommand_1.DeleteKeyspaceCommand(args);
49
- if (typeof optionsOrCb === "function") {
50
- this.send(command, optionsOrCb);
51
- }
52
- else if (typeof cb === "function") {
53
- if (typeof optionsOrCb !== "object")
54
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
55
- this.send(command, optionsOrCb || {}, cb);
56
- }
57
- else {
58
- return this.send(command, optionsOrCb);
59
- }
60
- }
61
- deleteTable(args, optionsOrCb, cb) {
62
- const command = new DeleteTableCommand_1.DeleteTableCommand(args);
63
- if (typeof optionsOrCb === "function") {
64
- this.send(command, optionsOrCb);
65
- }
66
- else if (typeof cb === "function") {
67
- if (typeof optionsOrCb !== "object")
68
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
69
- this.send(command, optionsOrCb || {}, cb);
70
- }
71
- else {
72
- return this.send(command, optionsOrCb);
73
- }
74
- }
75
- getKeyspace(args, optionsOrCb, cb) {
76
- const command = new GetKeyspaceCommand_1.GetKeyspaceCommand(args);
77
- if (typeof optionsOrCb === "function") {
78
- this.send(command, optionsOrCb);
79
- }
80
- else if (typeof cb === "function") {
81
- if (typeof optionsOrCb !== "object")
82
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
83
- this.send(command, optionsOrCb || {}, cb);
84
- }
85
- else {
86
- return this.send(command, optionsOrCb);
87
- }
88
- }
89
- getTable(args, optionsOrCb, cb) {
90
- const command = new GetTableCommand_1.GetTableCommand(args);
91
- if (typeof optionsOrCb === "function") {
92
- this.send(command, optionsOrCb);
93
- }
94
- else if (typeof cb === "function") {
95
- if (typeof optionsOrCb !== "object")
96
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
97
- this.send(command, optionsOrCb || {}, cb);
98
- }
99
- else {
100
- return this.send(command, optionsOrCb);
101
- }
102
- }
103
- listKeyspaces(args, optionsOrCb, cb) {
104
- const command = new ListKeyspacesCommand_1.ListKeyspacesCommand(args);
105
- if (typeof optionsOrCb === "function") {
106
- this.send(command, optionsOrCb);
107
- }
108
- else if (typeof cb === "function") {
109
- if (typeof optionsOrCb !== "object")
110
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
111
- this.send(command, optionsOrCb || {}, cb);
112
- }
113
- else {
114
- return this.send(command, optionsOrCb);
115
- }
116
- }
117
- listTables(args, optionsOrCb, cb) {
118
- const command = new ListTablesCommand_1.ListTablesCommand(args);
119
- if (typeof optionsOrCb === "function") {
120
- this.send(command, optionsOrCb);
121
- }
122
- else if (typeof cb === "function") {
123
- if (typeof optionsOrCb !== "object")
124
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
125
- this.send(command, optionsOrCb || {}, cb);
126
- }
127
- else {
128
- return this.send(command, optionsOrCb);
129
- }
130
- }
131
- listTagsForResource(args, optionsOrCb, cb) {
132
- const command = new ListTagsForResourceCommand_1.ListTagsForResourceCommand(args);
133
- if (typeof optionsOrCb === "function") {
134
- this.send(command, optionsOrCb);
135
- }
136
- else if (typeof cb === "function") {
137
- if (typeof optionsOrCb !== "object")
138
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
139
- this.send(command, optionsOrCb || {}, cb);
140
- }
141
- else {
142
- return this.send(command, optionsOrCb);
143
- }
144
- }
145
- restoreTable(args, optionsOrCb, cb) {
146
- const command = new RestoreTableCommand_1.RestoreTableCommand(args);
147
- if (typeof optionsOrCb === "function") {
148
- this.send(command, optionsOrCb);
149
- }
150
- else if (typeof cb === "function") {
151
- if (typeof optionsOrCb !== "object")
152
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
153
- this.send(command, optionsOrCb || {}, cb);
154
- }
155
- else {
156
- return this.send(command, optionsOrCb);
157
- }
158
- }
159
- tagResource(args, optionsOrCb, cb) {
160
- const command = new TagResourceCommand_1.TagResourceCommand(args);
161
- if (typeof optionsOrCb === "function") {
162
- this.send(command, optionsOrCb);
163
- }
164
- else if (typeof cb === "function") {
165
- if (typeof optionsOrCb !== "object")
166
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
167
- this.send(command, optionsOrCb || {}, cb);
168
- }
169
- else {
170
- return this.send(command, optionsOrCb);
171
- }
172
- }
173
- untagResource(args, optionsOrCb, cb) {
174
- const command = new UntagResourceCommand_1.UntagResourceCommand(args);
175
- if (typeof optionsOrCb === "function") {
176
- this.send(command, optionsOrCb);
177
- }
178
- else if (typeof cb === "function") {
179
- if (typeof optionsOrCb !== "object")
180
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
181
- this.send(command, optionsOrCb || {}, cb);
182
- }
183
- else {
184
- return this.send(command, optionsOrCb);
185
- }
186
- }
187
- updateTable(args, optionsOrCb, cb) {
188
- const command = new UpdateTableCommand_1.UpdateTableCommand(args);
189
- if (typeof optionsOrCb === "function") {
190
- this.send(command, optionsOrCb);
191
- }
192
- else if (typeof cb === "function") {
193
- if (typeof optionsOrCb !== "object")
194
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
195
- this.send(command, optionsOrCb || {}, cb);
196
- }
197
- else {
198
- return this.send(command, optionsOrCb);
199
- }
200
- }
201
35
  }
202
36
  exports.Keyspaces = Keyspaces;
37
+ (0, smithy_client_1.createAggregatedClient)(commands, Keyspaces);
@@ -1,3 +1,4 @@
1
+ import { createAggregatedClient } from "@aws-sdk/smithy-client";
1
2
  import { CreateKeyspaceCommand, } from "./commands/CreateKeyspaceCommand";
2
3
  import { CreateTableCommand } from "./commands/CreateTableCommand";
3
4
  import { DeleteKeyspaceCommand, } from "./commands/DeleteKeyspaceCommand";
@@ -12,187 +13,21 @@ import { TagResourceCommand } from "./commands/TagResourceCommand";
12
13
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
13
14
  import { UpdateTableCommand } from "./commands/UpdateTableCommand";
14
15
  import { KeyspacesClient } from "./KeyspacesClient";
16
+ const commands = {
17
+ CreateKeyspaceCommand,
18
+ CreateTableCommand,
19
+ DeleteKeyspaceCommand,
20
+ DeleteTableCommand,
21
+ GetKeyspaceCommand,
22
+ GetTableCommand,
23
+ ListKeyspacesCommand,
24
+ ListTablesCommand,
25
+ ListTagsForResourceCommand,
26
+ RestoreTableCommand,
27
+ TagResourceCommand,
28
+ UntagResourceCommand,
29
+ UpdateTableCommand,
30
+ };
15
31
  export class Keyspaces extends KeyspacesClient {
16
- createKeyspace(args, optionsOrCb, cb) {
17
- const command = new CreateKeyspaceCommand(args);
18
- if (typeof optionsOrCb === "function") {
19
- this.send(command, optionsOrCb);
20
- }
21
- else if (typeof cb === "function") {
22
- if (typeof optionsOrCb !== "object")
23
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
24
- this.send(command, optionsOrCb || {}, cb);
25
- }
26
- else {
27
- return this.send(command, optionsOrCb);
28
- }
29
- }
30
- createTable(args, optionsOrCb, cb) {
31
- const command = new CreateTableCommand(args);
32
- if (typeof optionsOrCb === "function") {
33
- this.send(command, optionsOrCb);
34
- }
35
- else if (typeof cb === "function") {
36
- if (typeof optionsOrCb !== "object")
37
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
38
- this.send(command, optionsOrCb || {}, cb);
39
- }
40
- else {
41
- return this.send(command, optionsOrCb);
42
- }
43
- }
44
- deleteKeyspace(args, optionsOrCb, cb) {
45
- const command = new DeleteKeyspaceCommand(args);
46
- if (typeof optionsOrCb === "function") {
47
- this.send(command, optionsOrCb);
48
- }
49
- else if (typeof cb === "function") {
50
- if (typeof optionsOrCb !== "object")
51
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
52
- this.send(command, optionsOrCb || {}, cb);
53
- }
54
- else {
55
- return this.send(command, optionsOrCb);
56
- }
57
- }
58
- deleteTable(args, optionsOrCb, cb) {
59
- const command = new DeleteTableCommand(args);
60
- if (typeof optionsOrCb === "function") {
61
- this.send(command, optionsOrCb);
62
- }
63
- else if (typeof cb === "function") {
64
- if (typeof optionsOrCb !== "object")
65
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
66
- this.send(command, optionsOrCb || {}, cb);
67
- }
68
- else {
69
- return this.send(command, optionsOrCb);
70
- }
71
- }
72
- getKeyspace(args, optionsOrCb, cb) {
73
- const command = new GetKeyspaceCommand(args);
74
- if (typeof optionsOrCb === "function") {
75
- this.send(command, optionsOrCb);
76
- }
77
- else if (typeof cb === "function") {
78
- if (typeof optionsOrCb !== "object")
79
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
80
- this.send(command, optionsOrCb || {}, cb);
81
- }
82
- else {
83
- return this.send(command, optionsOrCb);
84
- }
85
- }
86
- getTable(args, optionsOrCb, cb) {
87
- const command = new GetTableCommand(args);
88
- if (typeof optionsOrCb === "function") {
89
- this.send(command, optionsOrCb);
90
- }
91
- else if (typeof cb === "function") {
92
- if (typeof optionsOrCb !== "object")
93
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
94
- this.send(command, optionsOrCb || {}, cb);
95
- }
96
- else {
97
- return this.send(command, optionsOrCb);
98
- }
99
- }
100
- listKeyspaces(args, optionsOrCb, cb) {
101
- const command = new ListKeyspacesCommand(args);
102
- if (typeof optionsOrCb === "function") {
103
- this.send(command, optionsOrCb);
104
- }
105
- else if (typeof cb === "function") {
106
- if (typeof optionsOrCb !== "object")
107
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
108
- this.send(command, optionsOrCb || {}, cb);
109
- }
110
- else {
111
- return this.send(command, optionsOrCb);
112
- }
113
- }
114
- listTables(args, optionsOrCb, cb) {
115
- const command = new ListTablesCommand(args);
116
- if (typeof optionsOrCb === "function") {
117
- this.send(command, optionsOrCb);
118
- }
119
- else if (typeof cb === "function") {
120
- if (typeof optionsOrCb !== "object")
121
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
122
- this.send(command, optionsOrCb || {}, cb);
123
- }
124
- else {
125
- return this.send(command, optionsOrCb);
126
- }
127
- }
128
- listTagsForResource(args, optionsOrCb, cb) {
129
- const command = new ListTagsForResourceCommand(args);
130
- if (typeof optionsOrCb === "function") {
131
- this.send(command, optionsOrCb);
132
- }
133
- else if (typeof cb === "function") {
134
- if (typeof optionsOrCb !== "object")
135
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
136
- this.send(command, optionsOrCb || {}, cb);
137
- }
138
- else {
139
- return this.send(command, optionsOrCb);
140
- }
141
- }
142
- restoreTable(args, optionsOrCb, cb) {
143
- const command = new RestoreTableCommand(args);
144
- if (typeof optionsOrCb === "function") {
145
- this.send(command, optionsOrCb);
146
- }
147
- else if (typeof cb === "function") {
148
- if (typeof optionsOrCb !== "object")
149
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
150
- this.send(command, optionsOrCb || {}, cb);
151
- }
152
- else {
153
- return this.send(command, optionsOrCb);
154
- }
155
- }
156
- tagResource(args, optionsOrCb, cb) {
157
- const command = new TagResourceCommand(args);
158
- if (typeof optionsOrCb === "function") {
159
- this.send(command, optionsOrCb);
160
- }
161
- else if (typeof cb === "function") {
162
- if (typeof optionsOrCb !== "object")
163
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
164
- this.send(command, optionsOrCb || {}, cb);
165
- }
166
- else {
167
- return this.send(command, optionsOrCb);
168
- }
169
- }
170
- untagResource(args, optionsOrCb, cb) {
171
- const command = new UntagResourceCommand(args);
172
- if (typeof optionsOrCb === "function") {
173
- this.send(command, optionsOrCb);
174
- }
175
- else if (typeof cb === "function") {
176
- if (typeof optionsOrCb !== "object")
177
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
178
- this.send(command, optionsOrCb || {}, cb);
179
- }
180
- else {
181
- return this.send(command, optionsOrCb);
182
- }
183
- }
184
- updateTable(args, optionsOrCb, cb) {
185
- const command = new UpdateTableCommand(args);
186
- if (typeof optionsOrCb === "function") {
187
- this.send(command, optionsOrCb);
188
- }
189
- else if (typeof cb === "function") {
190
- if (typeof optionsOrCb !== "object")
191
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
192
- this.send(command, optionsOrCb || {}, cb);
193
- }
194
- else {
195
- return this.send(command, optionsOrCb);
196
- }
197
- }
198
32
  }
33
+ createAggregatedClient(commands, Keyspaces);
@@ -13,187 +13,102 @@ import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/Ta
13
13
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
14
14
  import { UpdateTableCommandInput, UpdateTableCommandOutput } from "./commands/UpdateTableCommand";
15
15
  import { KeyspacesClient } from "./KeyspacesClient";
16
- /**
17
- * @public
18
- * <p>Amazon Keyspaces (for Apache Cassandra) is a scalable,
19
- * highly available, and managed Apache Cassandra-compatible database service. Amazon Keyspaces makes it easy to migrate,
20
- * run, and scale Cassandra workloads in the Amazon Web Services Cloud. With just a few clicks on the Amazon Web Services Management Console or a few lines of code,
21
- * you can create keyspaces and tables in Amazon Keyspaces, without deploying any infrastructure or installing software. </p>
22
- * <p>In addition to supporting Cassandra Query Language (CQL) requests via open-source Cassandra drivers,
23
- * Amazon Keyspaces supports data definition language (DDL) operations to manage keyspaces and tables using the Amazon Web Services SDK and CLI, as well as
24
- * infrastructure as code (IaC) services and tools such as CloudFormation and Terraform. This API reference describes
25
- * the supported DDL operations in detail.</p>
26
- * <p>For the list of all supported CQL APIs, see <a href="https://docs.aws.amazon.com/keyspaces/latest/devguide/cassandra-apis.html">Supported Cassandra APIs, operations, and data types
27
- * in Amazon Keyspaces</a> in the <i>Amazon Keyspaces Developer
28
- * Guide</i>.</p>
29
- * <p>To learn how Amazon Keyspaces API actions are recorded with CloudTrail, see <a href="https://docs.aws.amazon.com/keyspaces/latest/devguide/logging-using-cloudtrail.html#service-name-info-in-cloudtrail">Amazon Keyspaces information in CloudTrail</a> in the <i>Amazon Keyspaces Developer
30
- * Guide</i>.</p>
31
- * <p>For more information about Amazon Web Services APIs, for example how to implement retry logic or how to sign Amazon Web Services API requests, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-apis.html">Amazon Web Services APIs</a> in the <i>General Reference</i>.</p>
32
- */
33
- export declare class Keyspaces extends KeyspacesClient {
16
+ export interface Keyspaces {
34
17
  /**
35
- * @public
36
- * <p>The <code>CreateKeyspace</code> operation adds a new keyspace to your account. In an Amazon Web Services account, keyspace names
37
- * must be unique within each Region.</p>
38
- * <p>
39
- * <code>CreateKeyspace</code> is an asynchronous operation. You can monitor the creation status of the new keyspace
40
- * by using the <code>GetKeyspace</code> operation.</p>
41
- * <p>For more information, see <a href="https://docs.aws.amazon.com/keyspaces/latest/devguide/working-with-keyspaces.html#keyspaces-create">Creating keyspaces</a> in the <i>Amazon Keyspaces Developer
42
- * Guide</i>.</p>
18
+ * @see {@link CreateKeyspaceCommand}
43
19
  */
44
20
  createKeyspace(args: CreateKeyspaceCommandInput, options?: __HttpHandlerOptions): Promise<CreateKeyspaceCommandOutput>;
45
21
  createKeyspace(args: CreateKeyspaceCommandInput, cb: (err: any, data?: CreateKeyspaceCommandOutput) => void): void;
46
22
  createKeyspace(args: CreateKeyspaceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateKeyspaceCommandOutput) => void): void;
47
23
  /**
48
- * @public
49
- * <p>The <code>CreateTable</code> operation adds a new table to the specified keyspace. Within a keyspace, table names
50
- * must be unique.</p>
51
- * <p>
52
- * <code>CreateTable</code> is an asynchronous operation. When the request is received, the status of the table is set to <code>CREATING</code>.
53
- * You can monitor the creation status of the new table by using the <code>GetTable</code>
54
- * operation, which returns the current <code>status</code> of the table. You can start using a table when the status is <code>ACTIVE</code>.</p>
55
- * <p>For more information, see <a href="https://docs.aws.amazon.com/keyspaces/latest/devguide/working-with-tables.html#tables-create">Creating tables</a> in the <i>Amazon Keyspaces Developer
56
- * Guide</i>.</p>
24
+ * @see {@link CreateTableCommand}
57
25
  */
58
26
  createTable(args: CreateTableCommandInput, options?: __HttpHandlerOptions): Promise<CreateTableCommandOutput>;
59
27
  createTable(args: CreateTableCommandInput, cb: (err: any, data?: CreateTableCommandOutput) => void): void;
60
28
  createTable(args: CreateTableCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateTableCommandOutput) => void): void;
61
29
  /**
62
- * @public
63
- * <p>The <code>DeleteKeyspace</code> operation deletes a keyspace and all of its tables. </p>
30
+ * @see {@link DeleteKeyspaceCommand}
64
31
  */
65
32
  deleteKeyspace(args: DeleteKeyspaceCommandInput, options?: __HttpHandlerOptions): Promise<DeleteKeyspaceCommandOutput>;
66
33
  deleteKeyspace(args: DeleteKeyspaceCommandInput, cb: (err: any, data?: DeleteKeyspaceCommandOutput) => void): void;
67
34
  deleteKeyspace(args: DeleteKeyspaceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteKeyspaceCommandOutput) => void): void;
68
35
  /**
69
- * @public
70
- * <p>The <code>DeleteTable</code> operation deletes a table and all of its data. After a <code>DeleteTable</code> request is received,
71
- * the specified table is in the <code>DELETING</code> state until Amazon Keyspaces completes the deletion. If the table
72
- * is in the <code>ACTIVE</code> state, you can delete it. If a table is either in the <code>CREATING</code> or <code>UPDATING</code> states, then
73
- * Amazon Keyspaces returns a <code>ResourceInUseException</code>. If the specified table does not exist, Amazon Keyspaces returns
74
- * a <code>ResourceNotFoundException</code>. If the table is already in the <code>DELETING</code> state, no error is returned.</p>
36
+ * @see {@link DeleteTableCommand}
75
37
  */
76
38
  deleteTable(args: DeleteTableCommandInput, options?: __HttpHandlerOptions): Promise<DeleteTableCommandOutput>;
77
39
  deleteTable(args: DeleteTableCommandInput, cb: (err: any, data?: DeleteTableCommandOutput) => void): void;
78
40
  deleteTable(args: DeleteTableCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteTableCommandOutput) => void): void;
79
41
  /**
80
- * @public
81
- * <p>Returns the name and the Amazon Resource Name (ARN) of the specified table.</p>
42
+ * @see {@link GetKeyspaceCommand}
82
43
  */
83
44
  getKeyspace(args: GetKeyspaceCommandInput, options?: __HttpHandlerOptions): Promise<GetKeyspaceCommandOutput>;
84
45
  getKeyspace(args: GetKeyspaceCommandInput, cb: (err: any, data?: GetKeyspaceCommandOutput) => void): void;
85
46
  getKeyspace(args: GetKeyspaceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetKeyspaceCommandOutput) => void): void;
86
47
  /**
87
- * @public
88
- * <p>Returns information about the table, including the table's name and current status, the keyspace name,
89
- * configuration settings, and metadata.</p>
90
- * <p>To read table metadata using <code>GetTable</code>, <code>Select</code> action
91
- * permissions for the table and system tables are required to complete the operation.</p>
48
+ * @see {@link GetTableCommand}
92
49
  */
93
50
  getTable(args: GetTableCommandInput, options?: __HttpHandlerOptions): Promise<GetTableCommandOutput>;
94
51
  getTable(args: GetTableCommandInput, cb: (err: any, data?: GetTableCommandOutput) => void): void;
95
52
  getTable(args: GetTableCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetTableCommandOutput) => void): void;
96
53
  /**
97
- * @public
98
- * <p>Returns a list of keyspaces.</p>
54
+ * @see {@link ListKeyspacesCommand}
99
55
  */
100
56
  listKeyspaces(args: ListKeyspacesCommandInput, options?: __HttpHandlerOptions): Promise<ListKeyspacesCommandOutput>;
101
57
  listKeyspaces(args: ListKeyspacesCommandInput, cb: (err: any, data?: ListKeyspacesCommandOutput) => void): void;
102
58
  listKeyspaces(args: ListKeyspacesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListKeyspacesCommandOutput) => void): void;
103
59
  /**
104
- * @public
105
- * <p>Returns a list of tables for a specified keyspace.</p>
60
+ * @see {@link ListTablesCommand}
106
61
  */
107
62
  listTables(args: ListTablesCommandInput, options?: __HttpHandlerOptions): Promise<ListTablesCommandOutput>;
108
63
  listTables(args: ListTablesCommandInput, cb: (err: any, data?: ListTablesCommandOutput) => void): void;
109
64
  listTables(args: ListTablesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTablesCommandOutput) => void): void;
110
65
  /**
111
- * @public
112
- * <p>Returns a list of all tags associated with the specified Amazon Keyspaces resource.</p>
66
+ * @see {@link ListTagsForResourceCommand}
113
67
  */
114
68
  listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
115
69
  listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
116
70
  listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
117
71
  /**
118
- * @public
119
- * <p>Restores the specified table to the specified point in time within the
120
- * <code>earliest_restorable_timestamp</code> and the current time. For more information about restore points, see
121
- * <a href="https://docs.aws.amazon.com/keyspaces/latest/devguide/PointInTimeRecovery_HowItWorks.html#howitworks_backup_window">
122
- * Time window for PITR continuous backups</a> in the <i>Amazon Keyspaces Developer Guide</i>.</p>
123
- * <p>Any number of users can execute up to 4 concurrent restores (any type of restore) in a given account.</p>
124
- * <p>When you restore using point in time recovery,
125
- * Amazon Keyspaces restores your source table's schema and data to the state
126
- * based on the selected timestamp <code>(day:hour:minute:second)</code> to a new table. The Time to Live (TTL) settings
127
- * are also restored to the state based on the selected timestamp.</p>
128
- * <p>In addition to the table's schema, data, and TTL settings,
129
- * <code>RestoreTable</code> restores the capacity mode, encryption, and
130
- * point-in-time recovery settings from the source table.
131
- * Unlike the table's schema data and TTL settings, which are restored based on the selected timestamp,
132
- * these settings are always restored based on the table's settings as of the current time or when the table was deleted.</p>
133
- * <p>You can also overwrite
134
- * these settings during restore:</p>
135
- * <ul>
136
- * <li>
137
- * <p>Read/write capacity mode</p>
138
- * </li>
139
- * <li>
140
- * <p>Provisioned throughput capacity settings</p>
141
- * </li>
142
- * <li>
143
- * <p>Point-in-time (PITR) settings</p>
144
- * </li>
145
- * <li>
146
- * <p>Tags</p>
147
- * </li>
148
- * </ul>
149
- * <p>For more
150
- * information, see <a href="https://docs.aws.amazon.com/keyspaces/latest/devguide/PointInTimeRecovery_HowItWorks.html#howitworks_backup_settings">PITR restore settings</a> in the <i>Amazon Keyspaces Developer
151
- * Guide</i>.</p>
152
- * <p>Note that the following settings are not restored, and you must configure them manually for
153
- * the new table:</p>
154
- * <ul>
155
- * <li>
156
- * <p>Automatic scaling policies (for tables that use provisioned capacity
157
- * mode)</p>
158
- * </li>
159
- * <li>
160
- * <p>Identity and Access Management (IAM) policies</p>
161
- * </li>
162
- * <li>
163
- * <p>Amazon CloudWatch metrics and alarms</p>
164
- * </li>
165
- * </ul>
72
+ * @see {@link RestoreTableCommand}
166
73
  */
167
74
  restoreTable(args: RestoreTableCommandInput, options?: __HttpHandlerOptions): Promise<RestoreTableCommandOutput>;
168
75
  restoreTable(args: RestoreTableCommandInput, cb: (err: any, data?: RestoreTableCommandOutput) => void): void;
169
76
  restoreTable(args: RestoreTableCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RestoreTableCommandOutput) => void): void;
170
77
  /**
171
- * @public
172
- * <p>Associates a set of tags with a Amazon Keyspaces resource. You can then
173
- * activate these user-defined tags so that they appear on the Cost Management Console for cost allocation tracking.
174
- * For more information, see <a href="https://docs.aws.amazon.com/keyspaces/latest/devguide/tagging-keyspaces.html">Adding tags and labels to Amazon Keyspaces resources</a> in the <i>Amazon Keyspaces Developer
175
- * Guide</i>.</p>
176
- * <p>For IAM policy examples that show how to control access to Amazon Keyspaces resources based on tags,
177
- * see <a href="https://docs.aws.amazon.com/keyspaces/latest/devguide/security_iam_id-based-policy-examples-tags">Amazon Keyspaces resource access based on tags</a>
178
- * in the <i>Amazon Keyspaces Developer Guide</i>.</p>
78
+ * @see {@link TagResourceCommand}
179
79
  */
180
80
  tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
181
81
  tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
182
82
  tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
183
83
  /**
184
- * @public
185
- * <p>Removes the association of tags from a Amazon Keyspaces resource.</p>
84
+ * @see {@link UntagResourceCommand}
186
85
  */
187
86
  untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
188
87
  untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
189
88
  untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
190
89
  /**
191
- * @public
192
- * <p>Adds new columns to the table or updates one of the table's settings, for example
193
- * capacity mode, encryption, point-in-time recovery, or ttl settings.
194
- * Note that you can only update one specific table setting per update operation.</p>
90
+ * @see {@link UpdateTableCommand}
195
91
  */
196
92
  updateTable(args: UpdateTableCommandInput, options?: __HttpHandlerOptions): Promise<UpdateTableCommandOutput>;
197
93
  updateTable(args: UpdateTableCommandInput, cb: (err: any, data?: UpdateTableCommandOutput) => void): void;
198
94
  updateTable(args: UpdateTableCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateTableCommandOutput) => void): void;
199
95
  }
96
+ /**
97
+ * @public
98
+ * <p>Amazon Keyspaces (for Apache Cassandra) is a scalable,
99
+ * highly available, and managed Apache Cassandra-compatible database service. Amazon Keyspaces makes it easy to migrate,
100
+ * run, and scale Cassandra workloads in the Amazon Web Services Cloud. With just a few clicks on the Amazon Web Services Management Console or a few lines of code,
101
+ * you can create keyspaces and tables in Amazon Keyspaces, without deploying any infrastructure or installing software. </p>
102
+ * <p>In addition to supporting Cassandra Query Language (CQL) requests via open-source Cassandra drivers,
103
+ * Amazon Keyspaces supports data definition language (DDL) operations to manage keyspaces and tables using the Amazon Web Services SDK and CLI, as well as
104
+ * infrastructure as code (IaC) services and tools such as CloudFormation and Terraform. This API reference describes
105
+ * the supported DDL operations in detail.</p>
106
+ * <p>For the list of all supported CQL APIs, see <a href="https://docs.aws.amazon.com/keyspaces/latest/devguide/cassandra-apis.html">Supported Cassandra APIs, operations, and data types
107
+ * in Amazon Keyspaces</a> in the <i>Amazon Keyspaces Developer
108
+ * Guide</i>.</p>
109
+ * <p>To learn how Amazon Keyspaces API actions are recorded with CloudTrail, see <a href="https://docs.aws.amazon.com/keyspaces/latest/devguide/logging-using-cloudtrail.html#service-name-info-in-cloudtrail">Amazon Keyspaces information in CloudTrail</a> in the <i>Amazon Keyspaces Developer
110
+ * Guide</i>.</p>
111
+ * <p>For more information about Amazon Web Services APIs, for example how to implement retry logic or how to sign Amazon Web Services API requests, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-apis.html">Amazon Web Services APIs</a> in the <i>General Reference</i>.</p>
112
+ */
113
+ export declare class Keyspaces extends KeyspacesClient implements Keyspaces {
114
+ }
@@ -52,7 +52,7 @@ import {
52
52
  UpdateTableCommandOutput,
53
53
  } from "./commands/UpdateTableCommand";
54
54
  import { KeyspacesClient } from "./KeyspacesClient";
55
- export declare class Keyspaces extends KeyspacesClient {
55
+ export interface Keyspaces {
56
56
  createKeyspace(
57
57
  args: CreateKeyspaceCommandInput,
58
58
  options?: __HttpHandlerOptions
@@ -223,3 +223,4 @@ export declare class Keyspaces extends KeyspacesClient {
223
223
  cb: (err: any, data?: UpdateTableCommandOutput) => void
224
224
  ): void;
225
225
  }
226
+ export declare class Keyspaces extends KeyspacesClient implements Keyspaces {}
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.315.0",
4
+ "version": "3.316.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,9 +21,9 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.315.0",
24
+ "@aws-sdk/client-sts": "3.316.0",
25
25
  "@aws-sdk/config-resolver": "3.310.0",
26
- "@aws-sdk/credential-provider-node": "3.315.0",
26
+ "@aws-sdk/credential-provider-node": "3.316.0",
27
27
  "@aws-sdk/fetch-http-handler": "3.310.0",
28
28
  "@aws-sdk/hash-node": "3.310.0",
29
29
  "@aws-sdk/invalid-dependency": "3.310.0",
@@ -40,14 +40,14 @@
40
40
  "@aws-sdk/node-config-provider": "3.310.0",
41
41
  "@aws-sdk/node-http-handler": "3.310.0",
42
42
  "@aws-sdk/protocol-http": "3.310.0",
43
- "@aws-sdk/smithy-client": "3.315.0",
43
+ "@aws-sdk/smithy-client": "3.316.0",
44
44
  "@aws-sdk/types": "3.310.0",
45
45
  "@aws-sdk/url-parser": "3.310.0",
46
46
  "@aws-sdk/util-base64": "3.310.0",
47
47
  "@aws-sdk/util-body-length-browser": "3.310.0",
48
48
  "@aws-sdk/util-body-length-node": "3.310.0",
49
- "@aws-sdk/util-defaults-mode-browser": "3.315.0",
50
- "@aws-sdk/util-defaults-mode-node": "3.315.0",
49
+ "@aws-sdk/util-defaults-mode-browser": "3.316.0",
50
+ "@aws-sdk/util-defaults-mode-node": "3.316.0",
51
51
  "@aws-sdk/util-endpoints": "3.310.0",
52
52
  "@aws-sdk/util-retry": "3.310.0",
53
53
  "@aws-sdk/util-user-agent-browser": "3.310.0",