@aws-sdk/client-dsql 3.812.0 → 3.813.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 +0 -16
- package/dist-cjs/DSQL.js +0 -4
- package/dist-cjs/commands/index.js +0 -2
- package/dist-cjs/protocols/Aws_restJson1.js +1 -65
- package/dist-es/DSQL.js +0 -4
- package/dist-es/commands/index.js +0 -2
- package/dist-es/protocols/Aws_restJson1.js +0 -60
- package/dist-types/DSQL.d.ts +0 -14
- package/dist-types/DSQLClient.d.ts +2 -4
- package/dist-types/commands/CreateClusterCommand.d.ts +33 -39
- package/dist-types/commands/DeleteClusterCommand.d.ts +0 -1
- package/dist-types/commands/GetClusterCommand.d.ts +1 -5
- package/dist-types/commands/UpdateClusterCommand.d.ts +70 -12
- package/dist-types/commands/index.d.ts +0 -2
- package/dist-types/models/models_0.d.ts +0 -128
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -18
- package/dist-types/ts3.4/DSQL.d.ts +0 -34
- package/dist-types/ts3.4/DSQLClient.d.ts +0 -12
- package/dist-types/ts3.4/commands/index.d.ts +0 -2
- package/dist-types/ts3.4/models/models_0.d.ts +0 -23
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -24
- package/package.json +1 -1
- package/dist-cjs/commands/CreateMultiRegionClustersCommand.js +0 -26
- package/dist-cjs/commands/DeleteMultiRegionClustersCommand.js +0 -26
- package/dist-es/commands/CreateMultiRegionClustersCommand.js +0 -22
- package/dist-es/commands/DeleteMultiRegionClustersCommand.js +0 -22
- package/dist-types/commands/CreateMultiRegionClustersCommand.d.ts +0 -132
- package/dist-types/commands/DeleteMultiRegionClustersCommand.d.ts +0 -110
- package/dist-types/ts3.4/commands/CreateMultiRegionClustersCommand.d.ts +0 -51
- package/dist-types/ts3.4/commands/DeleteMultiRegionClustersCommand.d.ts +0 -47
package/README.md
CHANGED
|
@@ -215,14 +215,6 @@ CreateCluster
|
|
|
215
215
|
|
|
216
216
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/dsql/command/CreateClusterCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-dsql/Interface/CreateClusterCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-dsql/Interface/CreateClusterCommandOutput/)
|
|
217
217
|
|
|
218
|
-
</details>
|
|
219
|
-
<details>
|
|
220
|
-
<summary>
|
|
221
|
-
CreateMultiRegionClusters
|
|
222
|
-
</summary>
|
|
223
|
-
|
|
224
|
-
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/dsql/command/CreateMultiRegionClustersCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-dsql/Interface/CreateMultiRegionClustersCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-dsql/Interface/CreateMultiRegionClustersCommandOutput/)
|
|
225
|
-
|
|
226
218
|
</details>
|
|
227
219
|
<details>
|
|
228
220
|
<summary>
|
|
@@ -231,14 +223,6 @@ DeleteCluster
|
|
|
231
223
|
|
|
232
224
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/dsql/command/DeleteClusterCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-dsql/Interface/DeleteClusterCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-dsql/Interface/DeleteClusterCommandOutput/)
|
|
233
225
|
|
|
234
|
-
</details>
|
|
235
|
-
<details>
|
|
236
|
-
<summary>
|
|
237
|
-
DeleteMultiRegionClusters
|
|
238
|
-
</summary>
|
|
239
|
-
|
|
240
|
-
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/dsql/command/DeleteMultiRegionClustersCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-dsql/Interface/DeleteMultiRegionClustersCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-dsql/Interface/DeleteMultiRegionClustersCommandOutput/)
|
|
241
|
-
|
|
242
226
|
</details>
|
|
243
227
|
<details>
|
|
244
228
|
<summary>
|
package/dist-cjs/DSQL.js
CHANGED
|
@@ -3,9 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.DSQL = void 0;
|
|
4
4
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
5
5
|
const CreateClusterCommand_1 = require("./commands/CreateClusterCommand");
|
|
6
|
-
const CreateMultiRegionClustersCommand_1 = require("./commands/CreateMultiRegionClustersCommand");
|
|
7
6
|
const DeleteClusterCommand_1 = require("./commands/DeleteClusterCommand");
|
|
8
|
-
const DeleteMultiRegionClustersCommand_1 = require("./commands/DeleteMultiRegionClustersCommand");
|
|
9
7
|
const GetClusterCommand_1 = require("./commands/GetClusterCommand");
|
|
10
8
|
const GetVpcEndpointServiceNameCommand_1 = require("./commands/GetVpcEndpointServiceNameCommand");
|
|
11
9
|
const ListClustersCommand_1 = require("./commands/ListClustersCommand");
|
|
@@ -16,9 +14,7 @@ const UpdateClusterCommand_1 = require("./commands/UpdateClusterCommand");
|
|
|
16
14
|
const DSQLClient_1 = require("./DSQLClient");
|
|
17
15
|
const commands = {
|
|
18
16
|
CreateClusterCommand: CreateClusterCommand_1.CreateClusterCommand,
|
|
19
|
-
CreateMultiRegionClustersCommand: CreateMultiRegionClustersCommand_1.CreateMultiRegionClustersCommand,
|
|
20
17
|
DeleteClusterCommand: DeleteClusterCommand_1.DeleteClusterCommand,
|
|
21
|
-
DeleteMultiRegionClustersCommand: DeleteMultiRegionClustersCommand_1.DeleteMultiRegionClustersCommand,
|
|
22
18
|
GetClusterCommand: GetClusterCommand_1.GetClusterCommand,
|
|
23
19
|
GetVpcEndpointServiceNameCommand: GetVpcEndpointServiceNameCommand_1.GetVpcEndpointServiceNameCommand,
|
|
24
20
|
ListClustersCommand: ListClustersCommand_1.ListClustersCommand,
|
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
tslib_1.__exportStar(require("./CreateClusterCommand"), exports);
|
|
5
|
-
tslib_1.__exportStar(require("./CreateMultiRegionClustersCommand"), exports);
|
|
6
5
|
tslib_1.__exportStar(require("./DeleteClusterCommand"), exports);
|
|
7
|
-
tslib_1.__exportStar(require("./DeleteMultiRegionClustersCommand"), exports);
|
|
8
6
|
tslib_1.__exportStar(require("./GetClusterCommand"), exports);
|
|
9
7
|
tslib_1.__exportStar(require("./GetVpcEndpointServiceNameCommand"), exports);
|
|
10
8
|
tslib_1.__exportStar(require("./ListClustersCommand"), exports);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.de_UpdateClusterCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_ListTagsForResourceCommand = exports.de_ListClustersCommand = exports.de_GetVpcEndpointServiceNameCommand = exports.de_GetClusterCommand = exports.
|
|
3
|
+
exports.de_UpdateClusterCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_ListTagsForResourceCommand = exports.de_ListClustersCommand = exports.de_GetVpcEndpointServiceNameCommand = exports.de_GetClusterCommand = exports.de_DeleteClusterCommand = exports.de_CreateClusterCommand = exports.se_UpdateClusterCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_ListTagsForResourceCommand = exports.se_ListClustersCommand = exports.se_GetVpcEndpointServiceNameCommand = exports.se_GetClusterCommand = exports.se_DeleteClusterCommand = exports.se_CreateClusterCommand = void 0;
|
|
4
4
|
const core_1 = require("@aws-sdk/core");
|
|
5
5
|
const core_2 = require("@smithy/core");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
@@ -24,23 +24,6 @@ const se_CreateClusterCommand = async (input, context) => {
|
|
|
24
24
|
return b.build();
|
|
25
25
|
};
|
|
26
26
|
exports.se_CreateClusterCommand = se_CreateClusterCommand;
|
|
27
|
-
const se_CreateMultiRegionClustersCommand = async (input, context) => {
|
|
28
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
29
|
-
const headers = {
|
|
30
|
-
"content-type": "application/json",
|
|
31
|
-
};
|
|
32
|
-
b.bp("/multi-region-clusters");
|
|
33
|
-
let body;
|
|
34
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
35
|
-
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
36
|
-
clusterProperties: (_) => (0, smithy_client_1._json)(_),
|
|
37
|
-
linkedRegionList: (_) => (0, smithy_client_1._json)(_),
|
|
38
|
-
witnessRegion: [],
|
|
39
|
-
}));
|
|
40
|
-
b.m("POST").h(headers).b(body);
|
|
41
|
-
return b.build();
|
|
42
|
-
};
|
|
43
|
-
exports.se_CreateMultiRegionClustersCommand = se_CreateMultiRegionClustersCommand;
|
|
44
27
|
const se_DeleteClusterCommand = async (input, context) => {
|
|
45
28
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
46
29
|
const headers = {};
|
|
@@ -54,19 +37,6 @@ const se_DeleteClusterCommand = async (input, context) => {
|
|
|
54
37
|
return b.build();
|
|
55
38
|
};
|
|
56
39
|
exports.se_DeleteClusterCommand = se_DeleteClusterCommand;
|
|
57
|
-
const se_DeleteMultiRegionClustersCommand = async (input, context) => {
|
|
58
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
59
|
-
const headers = {};
|
|
60
|
-
b.bp("/multi-region-clusters");
|
|
61
|
-
const query = (0, smithy_client_1.map)({
|
|
62
|
-
[_lca]: [(0, smithy_client_1.expectNonNull)(input.linkedClusterArns, `linkedClusterArns`) != null, () => input[_lCA] || []],
|
|
63
|
-
[_ct]: [, input[_cT] ?? (0, uuid_1.v4)()],
|
|
64
|
-
});
|
|
65
|
-
let body;
|
|
66
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
67
|
-
return b.build();
|
|
68
|
-
};
|
|
69
|
-
exports.se_DeleteMultiRegionClustersCommand = se_DeleteMultiRegionClustersCommand;
|
|
70
40
|
const se_GetClusterCommand = async (input, context) => {
|
|
71
41
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
72
42
|
const headers = {};
|
|
@@ -175,21 +145,6 @@ const de_CreateClusterCommand = async (output, context) => {
|
|
|
175
145
|
return contents;
|
|
176
146
|
};
|
|
177
147
|
exports.de_CreateClusterCommand = de_CreateClusterCommand;
|
|
178
|
-
const de_CreateMultiRegionClustersCommand = async (output, context) => {
|
|
179
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
180
|
-
return de_CommandError(output, context);
|
|
181
|
-
}
|
|
182
|
-
const contents = (0, smithy_client_1.map)({
|
|
183
|
-
$metadata: deserializeMetadata(output),
|
|
184
|
-
});
|
|
185
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
186
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
187
|
-
linkedClusterArns: smithy_client_1._json,
|
|
188
|
-
});
|
|
189
|
-
Object.assign(contents, doc);
|
|
190
|
-
return contents;
|
|
191
|
-
};
|
|
192
|
-
exports.de_CreateMultiRegionClustersCommand = de_CreateMultiRegionClustersCommand;
|
|
193
148
|
const de_DeleteClusterCommand = async (output, context) => {
|
|
194
149
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
195
150
|
return de_CommandError(output, context);
|
|
@@ -201,7 +156,6 @@ const de_DeleteClusterCommand = async (output, context) => {
|
|
|
201
156
|
const doc = (0, smithy_client_1.take)(data, {
|
|
202
157
|
arn: smithy_client_1.expectString,
|
|
203
158
|
creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
204
|
-
deletionProtectionEnabled: smithy_client_1.expectBoolean,
|
|
205
159
|
identifier: smithy_client_1.expectString,
|
|
206
160
|
status: smithy_client_1.expectString,
|
|
207
161
|
});
|
|
@@ -209,17 +163,6 @@ const de_DeleteClusterCommand = async (output, context) => {
|
|
|
209
163
|
return contents;
|
|
210
164
|
};
|
|
211
165
|
exports.de_DeleteClusterCommand = de_DeleteClusterCommand;
|
|
212
|
-
const de_DeleteMultiRegionClustersCommand = async (output, context) => {
|
|
213
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
214
|
-
return de_CommandError(output, context);
|
|
215
|
-
}
|
|
216
|
-
const contents = (0, smithy_client_1.map)({
|
|
217
|
-
$metadata: deserializeMetadata(output),
|
|
218
|
-
});
|
|
219
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
220
|
-
return contents;
|
|
221
|
-
};
|
|
222
|
-
exports.de_DeleteMultiRegionClustersCommand = de_DeleteMultiRegionClustersCommand;
|
|
223
166
|
const de_GetClusterCommand = async (output, context) => {
|
|
224
167
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
225
168
|
return de_CommandError(output, context);
|
|
@@ -233,11 +176,9 @@ const de_GetClusterCommand = async (output, context) => {
|
|
|
233
176
|
creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
234
177
|
deletionProtectionEnabled: smithy_client_1.expectBoolean,
|
|
235
178
|
identifier: smithy_client_1.expectString,
|
|
236
|
-
linkedClusterArns: smithy_client_1._json,
|
|
237
179
|
multiRegionProperties: smithy_client_1._json,
|
|
238
180
|
status: smithy_client_1.expectString,
|
|
239
181
|
tags: smithy_client_1._json,
|
|
240
|
-
witnessRegion: smithy_client_1.expectString,
|
|
241
182
|
});
|
|
242
183
|
Object.assign(contents, doc);
|
|
243
184
|
return contents;
|
|
@@ -322,11 +263,8 @@ const de_UpdateClusterCommand = async (output, context) => {
|
|
|
322
263
|
const doc = (0, smithy_client_1.take)(data, {
|
|
323
264
|
arn: smithy_client_1.expectString,
|
|
324
265
|
creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
325
|
-
deletionProtectionEnabled: smithy_client_1.expectBoolean,
|
|
326
266
|
identifier: smithy_client_1.expectString,
|
|
327
|
-
linkedClusterArns: smithy_client_1._json,
|
|
328
267
|
status: smithy_client_1.expectString,
|
|
329
|
-
witnessRegion: smithy_client_1.expectString,
|
|
330
268
|
});
|
|
331
269
|
Object.assign(contents, doc);
|
|
332
270
|
return contents;
|
|
@@ -486,8 +424,6 @@ const deserializeMetadata = (output) => ({
|
|
|
486
424
|
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
487
425
|
const _cT = "clientToken";
|
|
488
426
|
const _ct = "client-token";
|
|
489
|
-
const _lCA = "linkedClusterArns";
|
|
490
|
-
const _lca = "linked-cluster-arns";
|
|
491
427
|
const _mR = "maxResults";
|
|
492
428
|
const _mr = "max-results";
|
|
493
429
|
const _nT = "nextToken";
|
package/dist-es/DSQL.js
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { createAggregatedClient } from "@smithy/smithy-client";
|
|
2
2
|
import { CreateClusterCommand, } from "./commands/CreateClusterCommand";
|
|
3
|
-
import { CreateMultiRegionClustersCommand, } from "./commands/CreateMultiRegionClustersCommand";
|
|
4
3
|
import { DeleteClusterCommand, } from "./commands/DeleteClusterCommand";
|
|
5
|
-
import { DeleteMultiRegionClustersCommand, } from "./commands/DeleteMultiRegionClustersCommand";
|
|
6
4
|
import { GetClusterCommand } from "./commands/GetClusterCommand";
|
|
7
5
|
import { GetVpcEndpointServiceNameCommand, } from "./commands/GetVpcEndpointServiceNameCommand";
|
|
8
6
|
import { ListClustersCommand, } from "./commands/ListClustersCommand";
|
|
@@ -13,9 +11,7 @@ import { UpdateClusterCommand, } from "./commands/UpdateClusterCommand";
|
|
|
13
11
|
import { DSQLClient } from "./DSQLClient";
|
|
14
12
|
const commands = {
|
|
15
13
|
CreateClusterCommand,
|
|
16
|
-
CreateMultiRegionClustersCommand,
|
|
17
14
|
DeleteClusterCommand,
|
|
18
|
-
DeleteMultiRegionClustersCommand,
|
|
19
15
|
GetClusterCommand,
|
|
20
16
|
GetVpcEndpointServiceNameCommand,
|
|
21
17
|
ListClustersCommand,
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
export * from "./CreateClusterCommand";
|
|
2
|
-
export * from "./CreateMultiRegionClustersCommand";
|
|
3
2
|
export * from "./DeleteClusterCommand";
|
|
4
|
-
export * from "./DeleteMultiRegionClustersCommand";
|
|
5
3
|
export * from "./GetClusterCommand";
|
|
6
4
|
export * from "./GetVpcEndpointServiceNameCommand";
|
|
7
5
|
export * from "./ListClustersCommand";
|
|
@@ -20,22 +20,6 @@ export const se_CreateClusterCommand = async (input, context) => {
|
|
|
20
20
|
b.m("POST").h(headers).b(body);
|
|
21
21
|
return b.build();
|
|
22
22
|
};
|
|
23
|
-
export const se_CreateMultiRegionClustersCommand = async (input, context) => {
|
|
24
|
-
const b = rb(input, context);
|
|
25
|
-
const headers = {
|
|
26
|
-
"content-type": "application/json",
|
|
27
|
-
};
|
|
28
|
-
b.bp("/multi-region-clusters");
|
|
29
|
-
let body;
|
|
30
|
-
body = JSON.stringify(take(input, {
|
|
31
|
-
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
32
|
-
clusterProperties: (_) => _json(_),
|
|
33
|
-
linkedRegionList: (_) => _json(_),
|
|
34
|
-
witnessRegion: [],
|
|
35
|
-
}));
|
|
36
|
-
b.m("POST").h(headers).b(body);
|
|
37
|
-
return b.build();
|
|
38
|
-
};
|
|
39
23
|
export const se_DeleteClusterCommand = async (input, context) => {
|
|
40
24
|
const b = rb(input, context);
|
|
41
25
|
const headers = {};
|
|
@@ -48,18 +32,6 @@ export const se_DeleteClusterCommand = async (input, context) => {
|
|
|
48
32
|
b.m("DELETE").h(headers).q(query).b(body);
|
|
49
33
|
return b.build();
|
|
50
34
|
};
|
|
51
|
-
export const se_DeleteMultiRegionClustersCommand = async (input, context) => {
|
|
52
|
-
const b = rb(input, context);
|
|
53
|
-
const headers = {};
|
|
54
|
-
b.bp("/multi-region-clusters");
|
|
55
|
-
const query = map({
|
|
56
|
-
[_lca]: [__expectNonNull(input.linkedClusterArns, `linkedClusterArns`) != null, () => input[_lCA] || []],
|
|
57
|
-
[_ct]: [, input[_cT] ?? generateIdempotencyToken()],
|
|
58
|
-
});
|
|
59
|
-
let body;
|
|
60
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
61
|
-
return b.build();
|
|
62
|
-
};
|
|
63
35
|
export const se_GetClusterCommand = async (input, context) => {
|
|
64
36
|
const b = rb(input, context);
|
|
65
37
|
const headers = {};
|
|
@@ -160,20 +132,6 @@ export const de_CreateClusterCommand = async (output, context) => {
|
|
|
160
132
|
Object.assign(contents, doc);
|
|
161
133
|
return contents;
|
|
162
134
|
};
|
|
163
|
-
export const de_CreateMultiRegionClustersCommand = async (output, context) => {
|
|
164
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
165
|
-
return de_CommandError(output, context);
|
|
166
|
-
}
|
|
167
|
-
const contents = map({
|
|
168
|
-
$metadata: deserializeMetadata(output),
|
|
169
|
-
});
|
|
170
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
171
|
-
const doc = take(data, {
|
|
172
|
-
linkedClusterArns: _json,
|
|
173
|
-
});
|
|
174
|
-
Object.assign(contents, doc);
|
|
175
|
-
return contents;
|
|
176
|
-
};
|
|
177
135
|
export const de_DeleteClusterCommand = async (output, context) => {
|
|
178
136
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
179
137
|
return de_CommandError(output, context);
|
|
@@ -185,23 +143,12 @@ export const de_DeleteClusterCommand = async (output, context) => {
|
|
|
185
143
|
const doc = take(data, {
|
|
186
144
|
arn: __expectString,
|
|
187
145
|
creationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
188
|
-
deletionProtectionEnabled: __expectBoolean,
|
|
189
146
|
identifier: __expectString,
|
|
190
147
|
status: __expectString,
|
|
191
148
|
});
|
|
192
149
|
Object.assign(contents, doc);
|
|
193
150
|
return contents;
|
|
194
151
|
};
|
|
195
|
-
export const de_DeleteMultiRegionClustersCommand = async (output, context) => {
|
|
196
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
197
|
-
return de_CommandError(output, context);
|
|
198
|
-
}
|
|
199
|
-
const contents = map({
|
|
200
|
-
$metadata: deserializeMetadata(output),
|
|
201
|
-
});
|
|
202
|
-
await collectBody(output.body, context);
|
|
203
|
-
return contents;
|
|
204
|
-
};
|
|
205
152
|
export const de_GetClusterCommand = async (output, context) => {
|
|
206
153
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
207
154
|
return de_CommandError(output, context);
|
|
@@ -215,11 +162,9 @@ export const de_GetClusterCommand = async (output, context) => {
|
|
|
215
162
|
creationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
216
163
|
deletionProtectionEnabled: __expectBoolean,
|
|
217
164
|
identifier: __expectString,
|
|
218
|
-
linkedClusterArns: _json,
|
|
219
165
|
multiRegionProperties: _json,
|
|
220
166
|
status: __expectString,
|
|
221
167
|
tags: _json,
|
|
222
|
-
witnessRegion: __expectString,
|
|
223
168
|
});
|
|
224
169
|
Object.assign(contents, doc);
|
|
225
170
|
return contents;
|
|
@@ -298,11 +243,8 @@ export const de_UpdateClusterCommand = async (output, context) => {
|
|
|
298
243
|
const doc = take(data, {
|
|
299
244
|
arn: __expectString,
|
|
300
245
|
creationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
301
|
-
deletionProtectionEnabled: __expectBoolean,
|
|
302
246
|
identifier: __expectString,
|
|
303
|
-
linkedClusterArns: _json,
|
|
304
247
|
status: __expectString,
|
|
305
|
-
witnessRegion: __expectString,
|
|
306
248
|
});
|
|
307
249
|
Object.assign(contents, doc);
|
|
308
250
|
return contents;
|
|
@@ -461,8 +403,6 @@ const deserializeMetadata = (output) => ({
|
|
|
461
403
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
462
404
|
const _cT = "clientToken";
|
|
463
405
|
const _ct = "client-token";
|
|
464
|
-
const _lCA = "linkedClusterArns";
|
|
465
|
-
const _lca = "linked-cluster-arns";
|
|
466
406
|
const _mR = "maxResults";
|
|
467
407
|
const _mr = "max-results";
|
|
468
408
|
const _nT = "nextToken";
|
package/dist-types/DSQL.d.ts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
2
2
|
import { CreateClusterCommandInput, CreateClusterCommandOutput } from "./commands/CreateClusterCommand";
|
|
3
|
-
import { CreateMultiRegionClustersCommandInput, CreateMultiRegionClustersCommandOutput } from "./commands/CreateMultiRegionClustersCommand";
|
|
4
3
|
import { DeleteClusterCommandInput, DeleteClusterCommandOutput } from "./commands/DeleteClusterCommand";
|
|
5
|
-
import { DeleteMultiRegionClustersCommandInput, DeleteMultiRegionClustersCommandOutput } from "./commands/DeleteMultiRegionClustersCommand";
|
|
6
4
|
import { GetClusterCommandInput, GetClusterCommandOutput } from "./commands/GetClusterCommand";
|
|
7
5
|
import { GetVpcEndpointServiceNameCommandInput, GetVpcEndpointServiceNameCommandOutput } from "./commands/GetVpcEndpointServiceNameCommand";
|
|
8
6
|
import { ListClustersCommandInput, ListClustersCommandOutput } from "./commands/ListClustersCommand";
|
|
@@ -19,24 +17,12 @@ export interface DSQL {
|
|
|
19
17
|
createCluster(args: CreateClusterCommandInput, options?: __HttpHandlerOptions): Promise<CreateClusterCommandOutput>;
|
|
20
18
|
createCluster(args: CreateClusterCommandInput, cb: (err: any, data?: CreateClusterCommandOutput) => void): void;
|
|
21
19
|
createCluster(args: CreateClusterCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateClusterCommandOutput) => void): void;
|
|
22
|
-
/**
|
|
23
|
-
* @see {@link CreateMultiRegionClustersCommand}
|
|
24
|
-
*/
|
|
25
|
-
createMultiRegionClusters(args: CreateMultiRegionClustersCommandInput, options?: __HttpHandlerOptions): Promise<CreateMultiRegionClustersCommandOutput>;
|
|
26
|
-
createMultiRegionClusters(args: CreateMultiRegionClustersCommandInput, cb: (err: any, data?: CreateMultiRegionClustersCommandOutput) => void): void;
|
|
27
|
-
createMultiRegionClusters(args: CreateMultiRegionClustersCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateMultiRegionClustersCommandOutput) => void): void;
|
|
28
20
|
/**
|
|
29
21
|
* @see {@link DeleteClusterCommand}
|
|
30
22
|
*/
|
|
31
23
|
deleteCluster(args: DeleteClusterCommandInput, options?: __HttpHandlerOptions): Promise<DeleteClusterCommandOutput>;
|
|
32
24
|
deleteCluster(args: DeleteClusterCommandInput, cb: (err: any, data?: DeleteClusterCommandOutput) => void): void;
|
|
33
25
|
deleteCluster(args: DeleteClusterCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteClusterCommandOutput) => void): void;
|
|
34
|
-
/**
|
|
35
|
-
* @see {@link DeleteMultiRegionClustersCommand}
|
|
36
|
-
*/
|
|
37
|
-
deleteMultiRegionClusters(args: DeleteMultiRegionClustersCommandInput, options?: __HttpHandlerOptions): Promise<DeleteMultiRegionClustersCommandOutput>;
|
|
38
|
-
deleteMultiRegionClusters(args: DeleteMultiRegionClustersCommandInput, cb: (err: any, data?: DeleteMultiRegionClustersCommandOutput) => void): void;
|
|
39
|
-
deleteMultiRegionClusters(args: DeleteMultiRegionClustersCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteMultiRegionClustersCommandOutput) => void): void;
|
|
40
26
|
/**
|
|
41
27
|
* @see {@link GetClusterCommand}
|
|
42
28
|
*/
|
|
@@ -8,9 +8,7 @@ import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration
|
|
|
8
8
|
import { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
|
|
9
9
|
import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
|
|
10
10
|
import { CreateClusterCommandInput, CreateClusterCommandOutput } from "./commands/CreateClusterCommand";
|
|
11
|
-
import { CreateMultiRegionClustersCommandInput, CreateMultiRegionClustersCommandOutput } from "./commands/CreateMultiRegionClustersCommand";
|
|
12
11
|
import { DeleteClusterCommandInput, DeleteClusterCommandOutput } from "./commands/DeleteClusterCommand";
|
|
13
|
-
import { DeleteMultiRegionClustersCommandInput, DeleteMultiRegionClustersCommandOutput } from "./commands/DeleteMultiRegionClustersCommand";
|
|
14
12
|
import { GetClusterCommandInput, GetClusterCommandOutput } from "./commands/GetClusterCommand";
|
|
15
13
|
import { GetVpcEndpointServiceNameCommandInput, GetVpcEndpointServiceNameCommandOutput } from "./commands/GetVpcEndpointServiceNameCommand";
|
|
16
14
|
import { ListClustersCommandInput, ListClustersCommandOutput } from "./commands/ListClustersCommand";
|
|
@@ -24,11 +22,11 @@ export { __Client };
|
|
|
24
22
|
/**
|
|
25
23
|
* @public
|
|
26
24
|
*/
|
|
27
|
-
export type ServiceInputTypes = CreateClusterCommandInput |
|
|
25
|
+
export type ServiceInputTypes = CreateClusterCommandInput | DeleteClusterCommandInput | GetClusterCommandInput | GetVpcEndpointServiceNameCommandInput | ListClustersCommandInput | ListTagsForResourceCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateClusterCommandInput;
|
|
28
26
|
/**
|
|
29
27
|
* @public
|
|
30
28
|
*/
|
|
31
|
-
export type ServiceOutputTypes = CreateClusterCommandOutput |
|
|
29
|
+
export type ServiceOutputTypes = CreateClusterCommandOutput | DeleteClusterCommandOutput | GetClusterCommandOutput | GetVpcEndpointServiceNameCommandOutput | ListClustersCommandOutput | ListTagsForResourceCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateClusterCommandOutput;
|
|
32
30
|
/**
|
|
33
31
|
* @public
|
|
34
32
|
*/
|
|
@@ -27,75 +27,69 @@ declare const CreateClusterCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <p>
|
|
31
|
-
*
|
|
32
|
-
*
|
|
30
|
+
* <p>The CreateCluster API allows you to create both single-region clusters and multi-Region
|
|
31
|
+
* clusters. With the addition of the <i>multiRegionProperties</i> parameter,
|
|
32
|
+
* you can create a cluster with witness Region support and establish peer relationships with
|
|
33
|
+
* clusters in other Regions during creation.</p>
|
|
34
|
+
* <note>
|
|
35
|
+
* <p>Creating multi-Region clusters requires additional IAM permissions beyond those
|
|
36
|
+
* needed for single-Region clusters, as detailed in the <b>Required permissions</b> section
|
|
37
|
+
* below.</p>
|
|
38
|
+
* </note>
|
|
39
|
+
* <p>
|
|
40
|
+
* <b>Required permissions</b>
|
|
41
|
+
* </p>
|
|
33
42
|
* <dl>
|
|
34
43
|
* <dt>dsql:CreateCluster</dt>
|
|
35
44
|
* <dd>
|
|
36
|
-
* <p>
|
|
45
|
+
* <p>Required to create a cluster.</p>
|
|
46
|
+
* <p>Resources: <code>arn:aws:dsql:region:account-id:cluster/*</code>
|
|
47
|
+
* </p>
|
|
37
48
|
* </dd>
|
|
38
|
-
* </dl>
|
|
39
|
-
* <p> Permission to add tags to a resource.</p>
|
|
40
|
-
* <dl>
|
|
41
49
|
* <dt>dsql:TagResource</dt>
|
|
42
50
|
* <dd>
|
|
43
|
-
* <p>
|
|
44
|
-
*
|
|
51
|
+
* <p>Permission to add tags to a resource.</p>
|
|
52
|
+
* <p>Resources: <code>arn:aws:dsql:region:account-id:cluster/*</code>
|
|
53
|
+
* </p>
|
|
45
54
|
* </dd>
|
|
46
|
-
* </dl>
|
|
47
|
-
* <p>Permission to configure multi-region properties for
|
|
48
|
-
* a cluster.</p>
|
|
49
|
-
* <dl>
|
|
50
55
|
* <dt>dsql:PutMultiRegionProperties</dt>
|
|
51
56
|
* <dd>
|
|
52
|
-
* <p>
|
|
53
|
-
*
|
|
57
|
+
* <p>Permission to configure multi-region properties for a cluster.</p>
|
|
58
|
+
* <p>Resources: <code>arn:aws:dsql:region:account-id:cluster/*</code>
|
|
59
|
+
* </p>
|
|
54
60
|
* </dd>
|
|
55
|
-
* </dl>
|
|
56
|
-
* <p>When specifying multiRegionProperties.clusters.</p>
|
|
57
|
-
* <dl>
|
|
58
61
|
* <dt>dsql:AddPeerCluster</dt>
|
|
59
62
|
* <dd>
|
|
60
|
-
* <p>
|
|
63
|
+
* <p>When specifying <code>multiRegionProperties.clusters</code>, permission to
|
|
64
|
+
* add peer clusters.</p>
|
|
61
65
|
* <p>Resources:</p>
|
|
62
66
|
* <ul>
|
|
63
67
|
* <li>
|
|
64
|
-
* <p>Local cluster: arn:aws:dsql
|
|
68
|
+
* <p>Local cluster: <code>arn:aws:dsql:region:account-id:cluster/*</code>
|
|
69
|
+
* </p>
|
|
65
70
|
* </li>
|
|
66
71
|
* <li>
|
|
67
72
|
* <p>Each peer cluster: exact ARN of each specified peer cluster</p>
|
|
68
73
|
* </li>
|
|
69
74
|
* </ul>
|
|
70
75
|
* </dd>
|
|
71
|
-
* </dl>
|
|
72
|
-
* <p>When specifying multiRegionProperties.witnessRegion.</p>
|
|
73
|
-
* <dl>
|
|
74
76
|
* <dt>dsql:PutWitnessRegion</dt>
|
|
75
77
|
* <dd>
|
|
76
|
-
* <p>
|
|
77
|
-
*
|
|
78
|
-
*
|
|
79
|
-
*
|
|
80
|
-
*
|
|
81
|
-
*
|
|
82
|
-
* Region.</p>
|
|
83
|
-
* </note>
|
|
78
|
+
* <p>When specifying <code>multiRegionProperties.witnessRegion</code>, permission
|
|
79
|
+
* to set a witness Region. This permission is checked both in the cluster Region and
|
|
80
|
+
* in the witness Region.</p>
|
|
81
|
+
* <p>Resources: <code>arn:aws:dsql:region:account-id:cluster/*</code>
|
|
82
|
+
* </p>
|
|
83
|
+
* <p>Condition Keys: <code>dsql:WitnessRegion</code> (matching the specified witness region)</p>
|
|
84
84
|
* </dd>
|
|
85
85
|
* </dl>
|
|
86
86
|
* <important>
|
|
87
|
-
* <p>
|
|
88
|
-
* <b>Important Notes for Multi-Region Operations</b>
|
|
89
|
-
* </p>
|
|
90
87
|
* <ul>
|
|
91
88
|
* <li>
|
|
92
|
-
* <p>The witness
|
|
93
|
-
*
|
|
89
|
+
* <p>The witness Region specified in
|
|
90
|
+
* <code>multiRegionProperties.witnessRegion</code> cannot be the same as the
|
|
94
91
|
* cluster's Region.</p>
|
|
95
92
|
* </li>
|
|
96
|
-
* <li>
|
|
97
|
-
* <p>When updating clusters with peer relationships, permissions are checked for both adding and removing peers.</p>
|
|
98
|
-
* </li>
|
|
99
93
|
* </ul>
|
|
100
94
|
* </important>
|
|
101
95
|
* @example
|
|
@@ -45,7 +45,6 @@ declare const DeleteClusterCommand_base: {
|
|
|
45
45
|
* // arn: "STRING_VALUE", // required
|
|
46
46
|
* // status: "CREATING" || "ACTIVE" || "IDLE" || "INACTIVE" || "UPDATING" || "DELETING" || "DELETED" || "FAILED" || "PENDING_SETUP" || "PENDING_DELETE", // required
|
|
47
47
|
* // creationTime: new Date("TIMESTAMP"), // required
|
|
48
|
-
* // deletionProtectionEnabled: true || false, // required
|
|
49
48
|
* // };
|
|
50
49
|
*
|
|
51
50
|
* ```
|
|
@@ -44,14 +44,10 @@ declare const GetClusterCommand_base: {
|
|
|
44
44
|
* // arn: "STRING_VALUE", // required
|
|
45
45
|
* // status: "CREATING" || "ACTIVE" || "IDLE" || "INACTIVE" || "UPDATING" || "DELETING" || "DELETED" || "FAILED" || "PENDING_SETUP" || "PENDING_DELETE", // required
|
|
46
46
|
* // creationTime: new Date("TIMESTAMP"), // required
|
|
47
|
-
* // witnessRegion: "STRING_VALUE",
|
|
48
|
-
* // linkedClusterArns: [ // ClusterArnList
|
|
49
|
-
* // "STRING_VALUE",
|
|
50
|
-
* // ],
|
|
51
47
|
* // deletionProtectionEnabled: true || false, // required
|
|
52
48
|
* // multiRegionProperties: { // MultiRegionProperties
|
|
53
49
|
* // witnessRegion: "STRING_VALUE",
|
|
54
|
-
* // clusters: [
|
|
50
|
+
* // clusters: [ // ClusterArnList
|
|
55
51
|
* // "STRING_VALUE",
|
|
56
52
|
* // ],
|
|
57
53
|
* // },
|
|
@@ -27,16 +27,79 @@ declare const UpdateClusterCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <p>
|
|
30
|
+
* <p>The <i>UpdateCluster</i> API allows you to modify both single-Region and multi-Region cluster configurations. With the <i>multiRegionProperties</i> parameter, you can add or modify witness Region support and manage peer relationships with clusters in other Regions.</p>
|
|
31
|
+
* <note>
|
|
32
|
+
* <p>Note that updating multi-region clusters requires additional IAM permissions beyond those needed for standard cluster updates, as detailed in the Permissions section.</p>
|
|
33
|
+
* </note>
|
|
31
34
|
* <p>
|
|
32
|
-
* <b>
|
|
35
|
+
* <b>Required permissions</b>
|
|
33
36
|
* </p>
|
|
34
|
-
* <
|
|
35
|
-
*
|
|
37
|
+
* <dl>
|
|
38
|
+
* <dt>dsql:UpdateCluster</dt>
|
|
39
|
+
* <dd>
|
|
40
|
+
* <p>Permission to update a DSQL cluster.</p>
|
|
41
|
+
* <p>Resources: <code>arn:aws:dsql:<i>region</i>:<i>account-id</i>:cluster/<i>cluster-id</i>
|
|
42
|
+
* </code>
|
|
43
|
+
* </p>
|
|
44
|
+
* </dd>
|
|
45
|
+
* </dl>
|
|
46
|
+
* <dl>
|
|
47
|
+
* <dt>dsql:PutMultiRegionProperties</dt>
|
|
48
|
+
* <dd>
|
|
49
|
+
* <p>Permission to configure multi-Region properties for a cluster.</p>
|
|
50
|
+
* <p>Resources: <code>arn:aws:dsql:<i>region</i>:<i>account-id</i>:cluster/<i>cluster-id</i>
|
|
51
|
+
* </code>
|
|
52
|
+
* </p>
|
|
53
|
+
* </dd>
|
|
54
|
+
* </dl>
|
|
55
|
+
* <dl>
|
|
56
|
+
* <dt>dsql:GetCluster</dt>
|
|
57
|
+
* <dd>
|
|
58
|
+
* <p>Permission to retrieve cluster information.</p>
|
|
59
|
+
* <p>Resources: <code>arn:aws:dsql:<i>region</i>:<i>account-id</i>:cluster/<i>cluster-id</i>
|
|
60
|
+
* </code>
|
|
61
|
+
* </p>
|
|
62
|
+
* </dd>
|
|
63
|
+
* <dt>dsql:AddPeerCluster</dt>
|
|
64
|
+
* <dd>
|
|
65
|
+
* <p>Permission to add peer clusters.</p>
|
|
66
|
+
* <p>Resources:</p>
|
|
67
|
+
* <ul>
|
|
68
|
+
* <li>
|
|
69
|
+
* <p>Local cluster: <code>arn:aws:dsql:<i>region</i>:<i>account-id</i>:cluster/<i>cluster-id</i>
|
|
70
|
+
* </code>
|
|
71
|
+
* </p>
|
|
72
|
+
* </li>
|
|
73
|
+
* <li>
|
|
74
|
+
* <p>Each peer cluster: exact ARN of each specified peer cluster</p>
|
|
75
|
+
* </li>
|
|
76
|
+
* </ul>
|
|
77
|
+
* </dd>
|
|
78
|
+
* <dt>dsql:RemovePeerCluster</dt>
|
|
79
|
+
* <dd>
|
|
80
|
+
* <p>Permission to remove peer clusters. The <i>dsql:RemovePeerCluster</i> permission
|
|
81
|
+
* uses a wildcard ARN pattern to simplify permission management during updates.</p>
|
|
82
|
+
* <p>Resources:
|
|
83
|
+
* <code>arn:aws:dsql:*:<i>account-id</i>:cluster/*</code>
|
|
84
|
+
* </p>
|
|
85
|
+
* </dd>
|
|
86
|
+
* </dl>
|
|
87
|
+
* <dl>
|
|
88
|
+
* <dt>dsql:PutWitnessRegion</dt>
|
|
89
|
+
* <dd>
|
|
90
|
+
* <p>Permission to set a witness Region.</p>
|
|
91
|
+
* <p>Resources: <code>arn:aws:dsql:<i>region</i>:<i>account-id</i>:cluster/<i>cluster-id</i>
|
|
92
|
+
* </code>
|
|
93
|
+
* </p>
|
|
94
|
+
* <p>Condition Keys: dsql:WitnessRegion (matching the specified witness
|
|
95
|
+
* Region)</p>
|
|
96
|
+
* <p>
|
|
97
|
+
* <b>This permission is checked both in the cluster Region and in the witness
|
|
98
|
+
* Region.</b>
|
|
99
|
+
* </p>
|
|
100
|
+
* </dd>
|
|
101
|
+
* </dl>
|
|
36
102
|
* <important>
|
|
37
|
-
* <p>
|
|
38
|
-
* <b>Important Notes for Multi-Region Operations</b>
|
|
39
|
-
* </p>
|
|
40
103
|
* <ul>
|
|
41
104
|
* <li>
|
|
42
105
|
* <p>The witness region specified in
|
|
@@ -75,11 +138,6 @@ declare const UpdateClusterCommand_base: {
|
|
|
75
138
|
* // arn: "STRING_VALUE", // required
|
|
76
139
|
* // status: "CREATING" || "ACTIVE" || "IDLE" || "INACTIVE" || "UPDATING" || "DELETING" || "DELETED" || "FAILED" || "PENDING_SETUP" || "PENDING_DELETE", // required
|
|
77
140
|
* // creationTime: new Date("TIMESTAMP"), // required
|
|
78
|
-
* // witnessRegion: "STRING_VALUE",
|
|
79
|
-
* // linkedClusterArns: [ // ClusterArnList
|
|
80
|
-
* // "STRING_VALUE",
|
|
81
|
-
* // ],
|
|
82
|
-
* // deletionProtectionEnabled: true || false, // required
|
|
83
141
|
* // };
|
|
84
142
|
*
|
|
85
143
|
* ```
|