@aws-sdk/client-keyspaces 3.682.0 → 3.683.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 +33 -1
- package/dist-cjs/index.js +173 -2
- package/dist-es/Keyspaces.js +8 -0
- package/dist-es/commands/CreateTypeCommand.js +22 -0
- package/dist-es/commands/DeleteTypeCommand.js +22 -0
- package/dist-es/commands/GetTypeCommand.js +22 -0
- package/dist-es/commands/ListTypesCommand.js +22 -0
- package/dist-es/commands/index.js +4 -0
- package/dist-es/models/models_0.js +6 -0
- package/dist-es/pagination/ListTypesPaginator.js +4 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_json1_0.js +89 -0
- package/dist-types/Keyspaces.d.ts +28 -0
- package/dist-types/KeyspacesClient.d.ts +6 -2
- package/dist-types/commands/CreateKeyspaceCommand.d.ts +1 -1
- package/dist-types/commands/CreateTableCommand.d.ts +3 -2
- package/dist-types/commands/CreateTypeCommand.d.ts +105 -0
- package/dist-types/commands/DeleteKeyspaceCommand.d.ts +2 -1
- package/dist-types/commands/DeleteTableCommand.d.ts +2 -1
- package/dist-types/commands/DeleteTypeCommand.d.ts +98 -0
- package/dist-types/commands/GetKeyspaceCommand.d.ts +2 -1
- package/dist-types/commands/GetTableAutoScalingSettingsCommand.d.ts +2 -1
- package/dist-types/commands/GetTableCommand.d.ts +5 -3
- package/dist-types/commands/GetTypeCommand.d.ts +112 -0
- package/dist-types/commands/ListKeyspacesCommand.d.ts +3 -2
- package/dist-types/commands/ListTablesCommand.d.ts +6 -2
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +5 -1
- package/dist-types/commands/ListTypesCommand.d.ts +98 -0
- package/dist-types/commands/RestoreTableCommand.d.ts +2 -1
- package/dist-types/commands/TagResourceCommand.d.ts +7 -1
- package/dist-types/commands/UntagResourceCommand.d.ts +2 -1
- package/dist-types/commands/UpdateTableCommand.d.ts +2 -1
- package/dist-types/commands/index.d.ts +4 -0
- package/dist-types/models/models_0.d.ts +268 -2
- package/dist-types/pagination/ListTypesPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_json1_0.d.ts +36 -0
- package/dist-types/ts3.4/Keyspaces.d.ts +68 -0
- package/dist-types/ts3.4/KeyspacesClient.d.ts +24 -0
- package/dist-types/ts3.4/commands/CreateTypeCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/DeleteTypeCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/GetTypeCommand.d.ts +43 -0
- package/dist-types/ts3.4/commands/ListTypesCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/index.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +52 -0
- package/dist-types/ts3.4/pagination/ListTypesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +48 -0
- package/package.json +1 -1
|
@@ -15,6 +15,12 @@ export const se_CreateTableCommand = async (input, context) => {
|
|
|
15
15
|
body = JSON.stringify(se_CreateTableRequest(input, context));
|
|
16
16
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
17
17
|
};
|
|
18
|
+
export const se_CreateTypeCommand = async (input, context) => {
|
|
19
|
+
const headers = sharedHeaders("CreateType");
|
|
20
|
+
let body;
|
|
21
|
+
body = JSON.stringify(_json(input));
|
|
22
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
23
|
+
};
|
|
18
24
|
export const se_DeleteKeyspaceCommand = async (input, context) => {
|
|
19
25
|
const headers = sharedHeaders("DeleteKeyspace");
|
|
20
26
|
let body;
|
|
@@ -27,6 +33,12 @@ export const se_DeleteTableCommand = async (input, context) => {
|
|
|
27
33
|
body = JSON.stringify(_json(input));
|
|
28
34
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
29
35
|
};
|
|
36
|
+
export const se_DeleteTypeCommand = async (input, context) => {
|
|
37
|
+
const headers = sharedHeaders("DeleteType");
|
|
38
|
+
let body;
|
|
39
|
+
body = JSON.stringify(_json(input));
|
|
40
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
41
|
+
};
|
|
30
42
|
export const se_GetKeyspaceCommand = async (input, context) => {
|
|
31
43
|
const headers = sharedHeaders("GetKeyspace");
|
|
32
44
|
let body;
|
|
@@ -45,6 +57,12 @@ export const se_GetTableAutoScalingSettingsCommand = async (input, context) => {
|
|
|
45
57
|
body = JSON.stringify(_json(input));
|
|
46
58
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
47
59
|
};
|
|
60
|
+
export const se_GetTypeCommand = async (input, context) => {
|
|
61
|
+
const headers = sharedHeaders("GetType");
|
|
62
|
+
let body;
|
|
63
|
+
body = JSON.stringify(_json(input));
|
|
64
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
65
|
+
};
|
|
48
66
|
export const se_ListKeyspacesCommand = async (input, context) => {
|
|
49
67
|
const headers = sharedHeaders("ListKeyspaces");
|
|
50
68
|
let body;
|
|
@@ -63,6 +81,12 @@ export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
|
63
81
|
body = JSON.stringify(_json(input));
|
|
64
82
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
65
83
|
};
|
|
84
|
+
export const se_ListTypesCommand = async (input, context) => {
|
|
85
|
+
const headers = sharedHeaders("ListTypes");
|
|
86
|
+
let body;
|
|
87
|
+
body = JSON.stringify(_json(input));
|
|
88
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
89
|
+
};
|
|
66
90
|
export const se_RestoreTableCommand = async (input, context) => {
|
|
67
91
|
const headers = sharedHeaders("RestoreTable");
|
|
68
92
|
let body;
|
|
@@ -113,6 +137,19 @@ export const de_CreateTableCommand = async (output, context) => {
|
|
|
113
137
|
};
|
|
114
138
|
return response;
|
|
115
139
|
};
|
|
140
|
+
export const de_CreateTypeCommand = async (output, context) => {
|
|
141
|
+
if (output.statusCode >= 300) {
|
|
142
|
+
return de_CommandError(output, context);
|
|
143
|
+
}
|
|
144
|
+
const data = await parseBody(output.body, context);
|
|
145
|
+
let contents = {};
|
|
146
|
+
contents = _json(data);
|
|
147
|
+
const response = {
|
|
148
|
+
$metadata: deserializeMetadata(output),
|
|
149
|
+
...contents,
|
|
150
|
+
};
|
|
151
|
+
return response;
|
|
152
|
+
};
|
|
116
153
|
export const de_DeleteKeyspaceCommand = async (output, context) => {
|
|
117
154
|
if (output.statusCode >= 300) {
|
|
118
155
|
return de_CommandError(output, context);
|
|
@@ -139,6 +176,19 @@ export const de_DeleteTableCommand = async (output, context) => {
|
|
|
139
176
|
};
|
|
140
177
|
return response;
|
|
141
178
|
};
|
|
179
|
+
export const de_DeleteTypeCommand = async (output, context) => {
|
|
180
|
+
if (output.statusCode >= 300) {
|
|
181
|
+
return de_CommandError(output, context);
|
|
182
|
+
}
|
|
183
|
+
const data = await parseBody(output.body, context);
|
|
184
|
+
let contents = {};
|
|
185
|
+
contents = _json(data);
|
|
186
|
+
const response = {
|
|
187
|
+
$metadata: deserializeMetadata(output),
|
|
188
|
+
...contents,
|
|
189
|
+
};
|
|
190
|
+
return response;
|
|
191
|
+
};
|
|
142
192
|
export const de_GetKeyspaceCommand = async (output, context) => {
|
|
143
193
|
if (output.statusCode >= 300) {
|
|
144
194
|
return de_CommandError(output, context);
|
|
@@ -178,6 +228,19 @@ export const de_GetTableAutoScalingSettingsCommand = async (output, context) =>
|
|
|
178
228
|
};
|
|
179
229
|
return response;
|
|
180
230
|
};
|
|
231
|
+
export const de_GetTypeCommand = async (output, context) => {
|
|
232
|
+
if (output.statusCode >= 300) {
|
|
233
|
+
return de_CommandError(output, context);
|
|
234
|
+
}
|
|
235
|
+
const data = await parseBody(output.body, context);
|
|
236
|
+
let contents = {};
|
|
237
|
+
contents = de_GetTypeResponse(data, context);
|
|
238
|
+
const response = {
|
|
239
|
+
$metadata: deserializeMetadata(output),
|
|
240
|
+
...contents,
|
|
241
|
+
};
|
|
242
|
+
return response;
|
|
243
|
+
};
|
|
181
244
|
export const de_ListKeyspacesCommand = async (output, context) => {
|
|
182
245
|
if (output.statusCode >= 300) {
|
|
183
246
|
return de_CommandError(output, context);
|
|
@@ -217,6 +280,19 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
217
280
|
};
|
|
218
281
|
return response;
|
|
219
282
|
};
|
|
283
|
+
export const de_ListTypesCommand = async (output, context) => {
|
|
284
|
+
if (output.statusCode >= 300) {
|
|
285
|
+
return de_CommandError(output, context);
|
|
286
|
+
}
|
|
287
|
+
const data = await parseBody(output.body, context);
|
|
288
|
+
let contents = {};
|
|
289
|
+
contents = _json(data);
|
|
290
|
+
const response = {
|
|
291
|
+
$metadata: deserializeMetadata(output),
|
|
292
|
+
...contents,
|
|
293
|
+
};
|
|
294
|
+
return response;
|
|
295
|
+
};
|
|
220
296
|
export const de_RestoreTableCommand = async (output, context) => {
|
|
221
297
|
if (output.statusCode >= 300) {
|
|
222
298
|
return de_CommandError(output, context);
|
|
@@ -499,6 +575,19 @@ const de_GetTableResponse = (output, context) => {
|
|
|
499
575
|
ttl: _json,
|
|
500
576
|
});
|
|
501
577
|
};
|
|
578
|
+
const de_GetTypeResponse = (output, context) => {
|
|
579
|
+
return take(output, {
|
|
580
|
+
directParentTypes: _json,
|
|
581
|
+
directReferringTables: _json,
|
|
582
|
+
fieldDefinitions: _json,
|
|
583
|
+
keyspaceArn: __expectString,
|
|
584
|
+
keyspaceName: __expectString,
|
|
585
|
+
lastModifiedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
586
|
+
maxNestingDepth: __expectInt32,
|
|
587
|
+
status: __expectString,
|
|
588
|
+
typeName: __expectString,
|
|
589
|
+
});
|
|
590
|
+
};
|
|
502
591
|
const de_PointInTimeRecoverySummary = (output, context) => {
|
|
503
592
|
return take(output, {
|
|
504
593
|
earliestRestorableTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
2
2
|
import { CreateKeyspaceCommandInput, CreateKeyspaceCommandOutput } from "./commands/CreateKeyspaceCommand";
|
|
3
3
|
import { CreateTableCommandInput, CreateTableCommandOutput } from "./commands/CreateTableCommand";
|
|
4
|
+
import { CreateTypeCommandInput, CreateTypeCommandOutput } from "./commands/CreateTypeCommand";
|
|
4
5
|
import { DeleteKeyspaceCommandInput, DeleteKeyspaceCommandOutput } from "./commands/DeleteKeyspaceCommand";
|
|
5
6
|
import { DeleteTableCommandInput, DeleteTableCommandOutput } from "./commands/DeleteTableCommand";
|
|
7
|
+
import { DeleteTypeCommandInput, DeleteTypeCommandOutput } from "./commands/DeleteTypeCommand";
|
|
6
8
|
import { GetKeyspaceCommandInput, GetKeyspaceCommandOutput } from "./commands/GetKeyspaceCommand";
|
|
7
9
|
import { GetTableAutoScalingSettingsCommandInput, GetTableAutoScalingSettingsCommandOutput } from "./commands/GetTableAutoScalingSettingsCommand";
|
|
8
10
|
import { GetTableCommandInput, GetTableCommandOutput } from "./commands/GetTableCommand";
|
|
11
|
+
import { GetTypeCommandInput, GetTypeCommandOutput } from "./commands/GetTypeCommand";
|
|
9
12
|
import { ListKeyspacesCommandInput, ListKeyspacesCommandOutput } from "./commands/ListKeyspacesCommand";
|
|
10
13
|
import { ListTablesCommandInput, ListTablesCommandOutput } from "./commands/ListTablesCommand";
|
|
11
14
|
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
15
|
+
import { ListTypesCommandInput, ListTypesCommandOutput } from "./commands/ListTypesCommand";
|
|
12
16
|
import { RestoreTableCommandInput, RestoreTableCommandOutput } from "./commands/RestoreTableCommand";
|
|
13
17
|
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
14
18
|
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
@@ -27,6 +31,12 @@ export interface Keyspaces {
|
|
|
27
31
|
createTable(args: CreateTableCommandInput, options?: __HttpHandlerOptions): Promise<CreateTableCommandOutput>;
|
|
28
32
|
createTable(args: CreateTableCommandInput, cb: (err: any, data?: CreateTableCommandOutput) => void): void;
|
|
29
33
|
createTable(args: CreateTableCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateTableCommandOutput) => void): void;
|
|
34
|
+
/**
|
|
35
|
+
* @see {@link CreateTypeCommand}
|
|
36
|
+
*/
|
|
37
|
+
createType(args: CreateTypeCommandInput, options?: __HttpHandlerOptions): Promise<CreateTypeCommandOutput>;
|
|
38
|
+
createType(args: CreateTypeCommandInput, cb: (err: any, data?: CreateTypeCommandOutput) => void): void;
|
|
39
|
+
createType(args: CreateTypeCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateTypeCommandOutput) => void): void;
|
|
30
40
|
/**
|
|
31
41
|
* @see {@link DeleteKeyspaceCommand}
|
|
32
42
|
*/
|
|
@@ -39,6 +49,12 @@ export interface Keyspaces {
|
|
|
39
49
|
deleteTable(args: DeleteTableCommandInput, options?: __HttpHandlerOptions): Promise<DeleteTableCommandOutput>;
|
|
40
50
|
deleteTable(args: DeleteTableCommandInput, cb: (err: any, data?: DeleteTableCommandOutput) => void): void;
|
|
41
51
|
deleteTable(args: DeleteTableCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteTableCommandOutput) => void): void;
|
|
52
|
+
/**
|
|
53
|
+
* @see {@link DeleteTypeCommand}
|
|
54
|
+
*/
|
|
55
|
+
deleteType(args: DeleteTypeCommandInput, options?: __HttpHandlerOptions): Promise<DeleteTypeCommandOutput>;
|
|
56
|
+
deleteType(args: DeleteTypeCommandInput, cb: (err: any, data?: DeleteTypeCommandOutput) => void): void;
|
|
57
|
+
deleteType(args: DeleteTypeCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteTypeCommandOutput) => void): void;
|
|
42
58
|
/**
|
|
43
59
|
* @see {@link GetKeyspaceCommand}
|
|
44
60
|
*/
|
|
@@ -57,6 +73,12 @@ export interface Keyspaces {
|
|
|
57
73
|
getTableAutoScalingSettings(args: GetTableAutoScalingSettingsCommandInput, options?: __HttpHandlerOptions): Promise<GetTableAutoScalingSettingsCommandOutput>;
|
|
58
74
|
getTableAutoScalingSettings(args: GetTableAutoScalingSettingsCommandInput, cb: (err: any, data?: GetTableAutoScalingSettingsCommandOutput) => void): void;
|
|
59
75
|
getTableAutoScalingSettings(args: GetTableAutoScalingSettingsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetTableAutoScalingSettingsCommandOutput) => void): void;
|
|
76
|
+
/**
|
|
77
|
+
* @see {@link GetTypeCommand}
|
|
78
|
+
*/
|
|
79
|
+
getType(args: GetTypeCommandInput, options?: __HttpHandlerOptions): Promise<GetTypeCommandOutput>;
|
|
80
|
+
getType(args: GetTypeCommandInput, cb: (err: any, data?: GetTypeCommandOutput) => void): void;
|
|
81
|
+
getType(args: GetTypeCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetTypeCommandOutput) => void): void;
|
|
60
82
|
/**
|
|
61
83
|
* @see {@link ListKeyspacesCommand}
|
|
62
84
|
*/
|
|
@@ -76,6 +98,12 @@ export interface Keyspaces {
|
|
|
76
98
|
listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
|
|
77
99
|
listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
78
100
|
listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
101
|
+
/**
|
|
102
|
+
* @see {@link ListTypesCommand}
|
|
103
|
+
*/
|
|
104
|
+
listTypes(args: ListTypesCommandInput, options?: __HttpHandlerOptions): Promise<ListTypesCommandOutput>;
|
|
105
|
+
listTypes(args: ListTypesCommandInput, cb: (err: any, data?: ListTypesCommandOutput) => void): void;
|
|
106
|
+
listTypes(args: ListTypesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTypesCommandOutput) => void): void;
|
|
79
107
|
/**
|
|
80
108
|
* @see {@link RestoreTableCommand}
|
|
81
109
|
*/
|
|
@@ -9,14 +9,18 @@ import { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalc
|
|
|
9
9
|
import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
|
|
10
10
|
import { CreateKeyspaceCommandInput, CreateKeyspaceCommandOutput } from "./commands/CreateKeyspaceCommand";
|
|
11
11
|
import { CreateTableCommandInput, CreateTableCommandOutput } from "./commands/CreateTableCommand";
|
|
12
|
+
import { CreateTypeCommandInput, CreateTypeCommandOutput } from "./commands/CreateTypeCommand";
|
|
12
13
|
import { DeleteKeyspaceCommandInput, DeleteKeyspaceCommandOutput } from "./commands/DeleteKeyspaceCommand";
|
|
13
14
|
import { DeleteTableCommandInput, DeleteTableCommandOutput } from "./commands/DeleteTableCommand";
|
|
15
|
+
import { DeleteTypeCommandInput, DeleteTypeCommandOutput } from "./commands/DeleteTypeCommand";
|
|
14
16
|
import { GetKeyspaceCommandInput, GetKeyspaceCommandOutput } from "./commands/GetKeyspaceCommand";
|
|
15
17
|
import { GetTableAutoScalingSettingsCommandInput, GetTableAutoScalingSettingsCommandOutput } from "./commands/GetTableAutoScalingSettingsCommand";
|
|
16
18
|
import { GetTableCommandInput, GetTableCommandOutput } from "./commands/GetTableCommand";
|
|
19
|
+
import { GetTypeCommandInput, GetTypeCommandOutput } from "./commands/GetTypeCommand";
|
|
17
20
|
import { ListKeyspacesCommandInput, ListKeyspacesCommandOutput } from "./commands/ListKeyspacesCommand";
|
|
18
21
|
import { ListTablesCommandInput, ListTablesCommandOutput } from "./commands/ListTablesCommand";
|
|
19
22
|
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
23
|
+
import { ListTypesCommandInput, ListTypesCommandOutput } from "./commands/ListTypesCommand";
|
|
20
24
|
import { RestoreTableCommandInput, RestoreTableCommandOutput } from "./commands/RestoreTableCommand";
|
|
21
25
|
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
22
26
|
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
@@ -27,11 +31,11 @@ export { __Client };
|
|
|
27
31
|
/**
|
|
28
32
|
* @public
|
|
29
33
|
*/
|
|
30
|
-
export type ServiceInputTypes = CreateKeyspaceCommandInput | CreateTableCommandInput | DeleteKeyspaceCommandInput | DeleteTableCommandInput | GetKeyspaceCommandInput | GetTableAutoScalingSettingsCommandInput | GetTableCommandInput | ListKeyspacesCommandInput | ListTablesCommandInput | ListTagsForResourceCommandInput | RestoreTableCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateTableCommandInput;
|
|
34
|
+
export type ServiceInputTypes = CreateKeyspaceCommandInput | CreateTableCommandInput | CreateTypeCommandInput | DeleteKeyspaceCommandInput | DeleteTableCommandInput | DeleteTypeCommandInput | GetKeyspaceCommandInput | GetTableAutoScalingSettingsCommandInput | GetTableCommandInput | GetTypeCommandInput | ListKeyspacesCommandInput | ListTablesCommandInput | ListTagsForResourceCommandInput | ListTypesCommandInput | RestoreTableCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateTableCommandInput;
|
|
31
35
|
/**
|
|
32
36
|
* @public
|
|
33
37
|
*/
|
|
34
|
-
export type ServiceOutputTypes = CreateKeyspaceCommandOutput | CreateTableCommandOutput | DeleteKeyspaceCommandOutput | DeleteTableCommandOutput | GetKeyspaceCommandOutput | GetTableAutoScalingSettingsCommandOutput | GetTableCommandOutput | ListKeyspacesCommandOutput | ListTablesCommandOutput | ListTagsForResourceCommandOutput | RestoreTableCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateTableCommandOutput;
|
|
38
|
+
export type ServiceOutputTypes = CreateKeyspaceCommandOutput | CreateTableCommandOutput | CreateTypeCommandOutput | DeleteKeyspaceCommandOutput | DeleteTableCommandOutput | DeleteTypeCommandOutput | GetKeyspaceCommandOutput | GetTableAutoScalingSettingsCommandOutput | GetTableCommandOutput | GetTypeCommandOutput | ListKeyspacesCommandOutput | ListTablesCommandOutput | ListTagsForResourceCommandOutput | ListTypesCommandOutput | RestoreTableCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateTableCommandOutput;
|
|
35
39
|
/**
|
|
36
40
|
* @public
|
|
37
41
|
*/
|
|
@@ -32,7 +32,7 @@ declare const CreateKeyspaceCommand_base: {
|
|
|
32
32
|
* <p>
|
|
33
33
|
* <code>CreateKeyspace</code> is an asynchronous operation. You can monitor the creation status of the new keyspace
|
|
34
34
|
* by using the <code>GetKeyspace</code> operation.</p>
|
|
35
|
-
* <p>For more information, see <a href="https://docs.aws.amazon.com/keyspaces/latest/devguide/
|
|
35
|
+
* <p>For more information, see <a href="https://docs.aws.amazon.com/keyspaces/latest/devguide/getting-started.keyspaces.html">Create a keyspace</a> in the <i>Amazon Keyspaces Developer
|
|
36
36
|
* Guide</i>.</p>
|
|
37
37
|
* @example
|
|
38
38
|
* Use a bare-bones client and the command you need to make an API call.
|
|
@@ -33,7 +33,7 @@ declare const CreateTableCommand_base: {
|
|
|
33
33
|
* <code>CreateTable</code> is an asynchronous operation. When the request is received, the status of the table is set to <code>CREATING</code>.
|
|
34
34
|
* You can monitor the creation status of the new table by using the <code>GetTable</code>
|
|
35
35
|
* 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>
|
|
36
|
-
* <p>For more information, see <a href="https://docs.aws.amazon.com/keyspaces/latest/devguide/
|
|
36
|
+
* <p>For more information, see <a href="https://docs.aws.amazon.com/keyspaces/latest/devguide/getting-started.tables.html">Create a table</a> in the <i>Amazon Keyspaces Developer
|
|
37
37
|
* Guide</i>.</p>
|
|
38
38
|
* @example
|
|
39
39
|
* Use a bare-bones client and the command you need to make an API call.
|
|
@@ -170,7 +170,8 @@ declare const CreateTableCommand_base: {
|
|
|
170
170
|
* <p>Amazon Keyspaces was unable to fully process this request because of an internal server error.</p>
|
|
171
171
|
*
|
|
172
172
|
* @throws {@link ResourceNotFoundException} (client fault)
|
|
173
|
-
* <p>The operation tried to access a keyspace or
|
|
173
|
+
* <p>The operation tried to access a keyspace, table, or type that doesn't exist. The resource might not be specified correctly,
|
|
174
|
+
* or its status might not be <code>ACTIVE</code>.</p>
|
|
174
175
|
*
|
|
175
176
|
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
176
177
|
* <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
|
|
@@ -0,0 +1,105 @@
|
|
|
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 { CreateTypeRequest, CreateTypeResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link CreateTypeCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface CreateTypeCommandInput extends CreateTypeRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link CreateTypeCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface CreateTypeCommandOutput extends CreateTypeResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const CreateTypeCommand_base: {
|
|
25
|
+
new (input: CreateTypeCommandInput): import("@smithy/smithy-client").CommandImpl<CreateTypeCommandInput, CreateTypeCommandOutput, KeyspacesClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: CreateTypeCommandInput): import("@smithy/smithy-client").CommandImpl<CreateTypeCommandInput, CreateTypeCommandOutput, KeyspacesClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>
|
|
31
|
+
* The <code>CreateType</code> operation creates a new user-defined type in the specified keyspace.
|
|
32
|
+
* </p>
|
|
33
|
+
* <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
|
+
* Guide</i>. </p>
|
|
35
|
+
* @example
|
|
36
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
37
|
+
* ```javascript
|
|
38
|
+
* import { KeyspacesClient, CreateTypeCommand } from "@aws-sdk/client-keyspaces"; // ES Modules import
|
|
39
|
+
* // const { KeyspacesClient, CreateTypeCommand } = require("@aws-sdk/client-keyspaces"); // CommonJS import
|
|
40
|
+
* const client = new KeyspacesClient(config);
|
|
41
|
+
* const input = { // CreateTypeRequest
|
|
42
|
+
* keyspaceName: "STRING_VALUE", // required
|
|
43
|
+
* typeName: "STRING_VALUE", // required
|
|
44
|
+
* fieldDefinitions: [ // FieldList // required
|
|
45
|
+
* { // FieldDefinition
|
|
46
|
+
* name: "STRING_VALUE", // required
|
|
47
|
+
* type: "STRING_VALUE", // required
|
|
48
|
+
* },
|
|
49
|
+
* ],
|
|
50
|
+
* };
|
|
51
|
+
* const command = new CreateTypeCommand(input);
|
|
52
|
+
* const response = await client.send(command);
|
|
53
|
+
* // { // CreateTypeResponse
|
|
54
|
+
* // keyspaceArn: "STRING_VALUE", // required
|
|
55
|
+
* // typeName: "STRING_VALUE", // required
|
|
56
|
+
* // };
|
|
57
|
+
*
|
|
58
|
+
* ```
|
|
59
|
+
*
|
|
60
|
+
* @param CreateTypeCommandInput - {@link CreateTypeCommandInput}
|
|
61
|
+
* @returns {@link CreateTypeCommandOutput}
|
|
62
|
+
* @see {@link CreateTypeCommandInput} for command's `input` shape.
|
|
63
|
+
* @see {@link CreateTypeCommandOutput} for command's `response` shape.
|
|
64
|
+
* @see {@link KeyspacesClientResolvedConfig | config} for KeyspacesClient's `config` shape.
|
|
65
|
+
*
|
|
66
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
67
|
+
* <p>You don't have sufficient access permissions to perform this action. </p>
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link ConflictException} (client fault)
|
|
70
|
+
* <p>Amazon Keyspaces couldn't complete the requested action. This error may occur if you try to
|
|
71
|
+
* perform an action and the same or a different action is already
|
|
72
|
+
* in progress, or if you try to create a resource that already exists. </p>
|
|
73
|
+
*
|
|
74
|
+
* @throws {@link InternalServerException} (server fault)
|
|
75
|
+
* <p>Amazon Keyspaces was unable to fully process this request because of an internal server error.</p>
|
|
76
|
+
*
|
|
77
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
78
|
+
* <p>The operation tried to access a keyspace, table, or type that doesn't exist. The resource might not be specified correctly,
|
|
79
|
+
* or its status might not be <code>ACTIVE</code>.</p>
|
|
80
|
+
*
|
|
81
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
82
|
+
* <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
|
|
83
|
+
* Guide</i>.</p>
|
|
84
|
+
*
|
|
85
|
+
* @throws {@link ValidationException} (client fault)
|
|
86
|
+
* <p>The operation failed due to an invalid or malformed request.</p>
|
|
87
|
+
*
|
|
88
|
+
* @throws {@link KeyspacesServiceException}
|
|
89
|
+
* <p>Base exception class for all service exceptions from Keyspaces service.</p>
|
|
90
|
+
*
|
|
91
|
+
* @public
|
|
92
|
+
*/
|
|
93
|
+
export declare class CreateTypeCommand extends CreateTypeCommand_base {
|
|
94
|
+
/** @internal type navigation helper, not in runtime. */
|
|
95
|
+
protected static __types: {
|
|
96
|
+
api: {
|
|
97
|
+
input: CreateTypeRequest;
|
|
98
|
+
output: CreateTypeResponse;
|
|
99
|
+
};
|
|
100
|
+
sdk: {
|
|
101
|
+
input: CreateTypeCommandInput;
|
|
102
|
+
output: CreateTypeCommandOutput;
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
}
|
|
@@ -61,7 +61,8 @@ declare const DeleteKeyspaceCommand_base: {
|
|
|
61
61
|
* <p>Amazon Keyspaces was unable to fully process this request because of an internal server error.</p>
|
|
62
62
|
*
|
|
63
63
|
* @throws {@link ResourceNotFoundException} (client fault)
|
|
64
|
-
* <p>The operation tried to access a keyspace or
|
|
64
|
+
* <p>The operation tried to access a keyspace, table, or type that doesn't exist. The resource might not be specified correctly,
|
|
65
|
+
* or its status might not be <code>ACTIVE</code>.</p>
|
|
65
66
|
*
|
|
66
67
|
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
67
68
|
* <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
|
|
@@ -66,7 +66,8 @@ declare const DeleteTableCommand_base: {
|
|
|
66
66
|
* <p>Amazon Keyspaces was unable to fully process this request because of an internal server error.</p>
|
|
67
67
|
*
|
|
68
68
|
* @throws {@link ResourceNotFoundException} (client fault)
|
|
69
|
-
* <p>The operation tried to access a keyspace or
|
|
69
|
+
* <p>The operation tried to access a keyspace, table, or type that doesn't exist. The resource might not be specified correctly,
|
|
70
|
+
* or its status might not be <code>ACTIVE</code>.</p>
|
|
70
71
|
*
|
|
71
72
|
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
72
73
|
* <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
|
|
@@ -0,0 +1,98 @@
|
|
|
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 { DeleteTypeRequest, DeleteTypeResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link DeleteTypeCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface DeleteTypeCommandInput extends DeleteTypeRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link DeleteTypeCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface DeleteTypeCommandOutput extends DeleteTypeResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const DeleteTypeCommand_base: {
|
|
25
|
+
new (input: DeleteTypeCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteTypeCommandInput, DeleteTypeCommandOutput, KeyspacesClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: DeleteTypeCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteTypeCommandInput, DeleteTypeCommandOutput, KeyspacesClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>
|
|
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
|
+
* or another UDT.
|
|
33
|
+
* </p>
|
|
34
|
+
* @example
|
|
35
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
36
|
+
* ```javascript
|
|
37
|
+
* import { KeyspacesClient, DeleteTypeCommand } from "@aws-sdk/client-keyspaces"; // ES Modules import
|
|
38
|
+
* // const { KeyspacesClient, DeleteTypeCommand } = require("@aws-sdk/client-keyspaces"); // CommonJS import
|
|
39
|
+
* const client = new KeyspacesClient(config);
|
|
40
|
+
* const input = { // DeleteTypeRequest
|
|
41
|
+
* keyspaceName: "STRING_VALUE", // required
|
|
42
|
+
* typeName: "STRING_VALUE", // required
|
|
43
|
+
* };
|
|
44
|
+
* const command = new DeleteTypeCommand(input);
|
|
45
|
+
* const response = await client.send(command);
|
|
46
|
+
* // { // DeleteTypeResponse
|
|
47
|
+
* // keyspaceArn: "STRING_VALUE", // required
|
|
48
|
+
* // typeName: "STRING_VALUE", // required
|
|
49
|
+
* // };
|
|
50
|
+
*
|
|
51
|
+
* ```
|
|
52
|
+
*
|
|
53
|
+
* @param DeleteTypeCommandInput - {@link DeleteTypeCommandInput}
|
|
54
|
+
* @returns {@link DeleteTypeCommandOutput}
|
|
55
|
+
* @see {@link DeleteTypeCommandInput} for command's `input` shape.
|
|
56
|
+
* @see {@link DeleteTypeCommandOutput} for command's `response` shape.
|
|
57
|
+
* @see {@link KeyspacesClientResolvedConfig | config} for KeyspacesClient's `config` shape.
|
|
58
|
+
*
|
|
59
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
60
|
+
* <p>You don't have sufficient access permissions to perform this action. </p>
|
|
61
|
+
*
|
|
62
|
+
* @throws {@link ConflictException} (client fault)
|
|
63
|
+
* <p>Amazon Keyspaces couldn't complete the requested action. This error may occur if you try to
|
|
64
|
+
* perform an action and the same or a different action is already
|
|
65
|
+
* in progress, or if you try to create a resource that already exists. </p>
|
|
66
|
+
*
|
|
67
|
+
* @throws {@link InternalServerException} (server fault)
|
|
68
|
+
* <p>Amazon Keyspaces was unable to fully process this request because of an internal server error.</p>
|
|
69
|
+
*
|
|
70
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
71
|
+
* <p>The operation tried to access a keyspace, table, or type that doesn't exist. The resource might not be specified correctly,
|
|
72
|
+
* or its status might not be <code>ACTIVE</code>.</p>
|
|
73
|
+
*
|
|
74
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
75
|
+
* <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
|
|
76
|
+
* Guide</i>.</p>
|
|
77
|
+
*
|
|
78
|
+
* @throws {@link ValidationException} (client fault)
|
|
79
|
+
* <p>The operation failed due to an invalid or malformed request.</p>
|
|
80
|
+
*
|
|
81
|
+
* @throws {@link KeyspacesServiceException}
|
|
82
|
+
* <p>Base exception class for all service exceptions from Keyspaces service.</p>
|
|
83
|
+
*
|
|
84
|
+
* @public
|
|
85
|
+
*/
|
|
86
|
+
export declare class DeleteTypeCommand extends DeleteTypeCommand_base {
|
|
87
|
+
/** @internal type navigation helper, not in runtime. */
|
|
88
|
+
protected static __types: {
|
|
89
|
+
api: {
|
|
90
|
+
input: DeleteTypeRequest;
|
|
91
|
+
output: DeleteTypeResponse;
|
|
92
|
+
};
|
|
93
|
+
sdk: {
|
|
94
|
+
input: DeleteTypeCommandInput;
|
|
95
|
+
output: DeleteTypeCommandOutput;
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
}
|
|
@@ -63,7 +63,8 @@ declare const GetKeyspaceCommand_base: {
|
|
|
63
63
|
* <p>Amazon Keyspaces was unable to fully process this request because of an internal server error.</p>
|
|
64
64
|
*
|
|
65
65
|
* @throws {@link ResourceNotFoundException} (client fault)
|
|
66
|
-
* <p>The operation tried to access a keyspace or
|
|
66
|
+
* <p>The operation tried to access a keyspace, table, or type that doesn't exist. The resource might not be specified correctly,
|
|
67
|
+
* or its status might not be <code>ACTIVE</code>.</p>
|
|
67
68
|
*
|
|
68
69
|
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
69
70
|
* <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
|
|
@@ -144,7 +144,8 @@ declare const GetTableAutoScalingSettingsCommand_base: {
|
|
|
144
144
|
* <p>Amazon Keyspaces was unable to fully process this request because of an internal server error.</p>
|
|
145
145
|
*
|
|
146
146
|
* @throws {@link ResourceNotFoundException} (client fault)
|
|
147
|
-
* <p>The operation tried to access a keyspace or
|
|
147
|
+
* <p>The operation tried to access a keyspace, table, or type that doesn't exist. The resource might not be specified correctly,
|
|
148
|
+
* or its status might not be <code>ACTIVE</code>.</p>
|
|
148
149
|
*
|
|
149
150
|
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
150
151
|
* <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
|
|
@@ -29,8 +29,9 @@ declare const GetTableCommand_base: {
|
|
|
29
29
|
/**
|
|
30
30
|
* <p>Returns information about the table, including the table's name and current status, the keyspace name,
|
|
31
31
|
* configuration settings, and metadata.</p>
|
|
32
|
-
* <p>To read table metadata using <code>GetTable</code>,
|
|
33
|
-
*
|
|
32
|
+
* <p>To read table metadata using <code>GetTable</code>, the
|
|
33
|
+
* IAM principal needs <code>Select</code> action
|
|
34
|
+
* permissions for the table and the system keyspace.</p>
|
|
34
35
|
* @example
|
|
35
36
|
* Use a bare-bones client and the command you need to make an API call.
|
|
36
37
|
* ```javascript
|
|
@@ -126,7 +127,8 @@ declare const GetTableCommand_base: {
|
|
|
126
127
|
* <p>Amazon Keyspaces was unable to fully process this request because of an internal server error.</p>
|
|
127
128
|
*
|
|
128
129
|
* @throws {@link ResourceNotFoundException} (client fault)
|
|
129
|
-
* <p>The operation tried to access a keyspace or
|
|
130
|
+
* <p>The operation tried to access a keyspace, table, or type that doesn't exist. The resource might not be specified correctly,
|
|
131
|
+
* or its status might not be <code>ACTIVE</code>.</p>
|
|
130
132
|
*
|
|
131
133
|
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
132
134
|
* <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
|