@aws-sdk/client-dsql 3.787.0 → 3.790.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -0
- package/dist-cjs/DSQL.js +2 -0
- package/dist-cjs/commands/GetVpcEndpointServiceNameCommand.js +26 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +26 -1
- package/dist-es/DSQL.js +2 -0
- package/dist-es/commands/GetVpcEndpointServiceNameCommand.js +22 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +23 -0
- package/dist-types/DSQL.d.ts +7 -0
- package/dist-types/DSQLClient.d.ts +3 -2
- package/dist-types/commands/GetVpcEndpointServiceNameCommand.d.ts +101 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +20 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
- package/dist-types/ts3.4/DSQL.d.ts +17 -0
- package/dist-types/ts3.4/DSQLClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/GetVpcEndpointServiceNameCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +6 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -251,6 +251,14 @@ GetCluster
|
|
|
251
251
|
|
|
252
252
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/dsql/command/GetClusterCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-dsql/Interface/GetClusterCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-dsql/Interface/GetClusterCommandOutput/)
|
|
253
253
|
|
|
254
|
+
</details>
|
|
255
|
+
<details>
|
|
256
|
+
<summary>
|
|
257
|
+
GetVpcEndpointServiceName
|
|
258
|
+
</summary>
|
|
259
|
+
|
|
260
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/dsql/command/GetVpcEndpointServiceNameCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-dsql/Interface/GetVpcEndpointServiceNameCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-dsql/Interface/GetVpcEndpointServiceNameCommandOutput/)
|
|
261
|
+
|
|
254
262
|
</details>
|
|
255
263
|
<details>
|
|
256
264
|
<summary>
|
package/dist-cjs/DSQL.js
CHANGED
|
@@ -7,6 +7,7 @@ const CreateMultiRegionClustersCommand_1 = require("./commands/CreateMultiRegion
|
|
|
7
7
|
const DeleteClusterCommand_1 = require("./commands/DeleteClusterCommand");
|
|
8
8
|
const DeleteMultiRegionClustersCommand_1 = require("./commands/DeleteMultiRegionClustersCommand");
|
|
9
9
|
const GetClusterCommand_1 = require("./commands/GetClusterCommand");
|
|
10
|
+
const GetVpcEndpointServiceNameCommand_1 = require("./commands/GetVpcEndpointServiceNameCommand");
|
|
10
11
|
const ListClustersCommand_1 = require("./commands/ListClustersCommand");
|
|
11
12
|
const ListTagsForResourceCommand_1 = require("./commands/ListTagsForResourceCommand");
|
|
12
13
|
const TagResourceCommand_1 = require("./commands/TagResourceCommand");
|
|
@@ -19,6 +20,7 @@ const commands = {
|
|
|
19
20
|
DeleteClusterCommand: DeleteClusterCommand_1.DeleteClusterCommand,
|
|
20
21
|
DeleteMultiRegionClustersCommand: DeleteMultiRegionClustersCommand_1.DeleteMultiRegionClustersCommand,
|
|
21
22
|
GetClusterCommand: GetClusterCommand_1.GetClusterCommand,
|
|
23
|
+
GetVpcEndpointServiceNameCommand: GetVpcEndpointServiceNameCommand_1.GetVpcEndpointServiceNameCommand,
|
|
22
24
|
ListClustersCommand: ListClustersCommand_1.ListClustersCommand,
|
|
23
25
|
ListTagsForResourceCommand: ListTagsForResourceCommand_1.ListTagsForResourceCommand,
|
|
24
26
|
TagResourceCommand: TagResourceCommand_1.TagResourceCommand,
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetVpcEndpointServiceNameCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const EndpointParameters_1 = require("../endpoint/EndpointParameters");
|
|
9
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
10
|
+
class GetVpcEndpointServiceNameCommand extends smithy_client_1.Command
|
|
11
|
+
.classBuilder()
|
|
12
|
+
.ep(EndpointParameters_1.commonParams)
|
|
13
|
+
.m(function (Command, cs, config, o) {
|
|
14
|
+
return [
|
|
15
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
16
|
+
(0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
17
|
+
];
|
|
18
|
+
})
|
|
19
|
+
.s("DSQL", "GetVpcEndpointServiceName", {})
|
|
20
|
+
.n("DSQLClient", "GetVpcEndpointServiceNameCommand")
|
|
21
|
+
.f(void 0, void 0)
|
|
22
|
+
.ser(Aws_restJson1_1.se_GetVpcEndpointServiceNameCommand)
|
|
23
|
+
.de(Aws_restJson1_1.de_GetVpcEndpointServiceNameCommand)
|
|
24
|
+
.build() {
|
|
25
|
+
}
|
|
26
|
+
exports.GetVpcEndpointServiceNameCommand = GetVpcEndpointServiceNameCommand;
|
|
@@ -6,6 +6,7 @@ tslib_1.__exportStar(require("./CreateMultiRegionClustersCommand"), exports);
|
|
|
6
6
|
tslib_1.__exportStar(require("./DeleteClusterCommand"), exports);
|
|
7
7
|
tslib_1.__exportStar(require("./DeleteMultiRegionClustersCommand"), exports);
|
|
8
8
|
tslib_1.__exportStar(require("./GetClusterCommand"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./GetVpcEndpointServiceNameCommand"), exports);
|
|
9
10
|
tslib_1.__exportStar(require("./ListClustersCommand"), exports);
|
|
10
11
|
tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
|
|
11
12
|
tslib_1.__exportStar(require("./TagResourceCommand"), 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_GetClusterCommand = exports.de_DeleteMultiRegionClustersCommand = exports.de_DeleteClusterCommand = exports.de_CreateMultiRegionClustersCommand = exports.de_CreateClusterCommand = exports.se_UpdateClusterCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_ListTagsForResourceCommand = exports.se_ListClustersCommand = exports.se_GetClusterCommand = exports.se_DeleteMultiRegionClustersCommand = exports.se_DeleteClusterCommand = exports.se_CreateMultiRegionClustersCommand = exports.se_CreateClusterCommand = void 0;
|
|
3
|
+
exports.de_UpdateClusterCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_ListTagsForResourceCommand = exports.de_ListClustersCommand = exports.de_GetVpcEndpointServiceNameCommand = exports.de_GetClusterCommand = exports.de_DeleteMultiRegionClustersCommand = exports.de_DeleteClusterCommand = exports.de_CreateMultiRegionClustersCommand = 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_DeleteMultiRegionClustersCommand = exports.se_DeleteClusterCommand = exports.se_CreateMultiRegionClustersCommand = 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");
|
|
@@ -76,6 +76,16 @@ const se_GetClusterCommand = async (input, context) => {
|
|
|
76
76
|
return b.build();
|
|
77
77
|
};
|
|
78
78
|
exports.se_GetClusterCommand = se_GetClusterCommand;
|
|
79
|
+
const se_GetVpcEndpointServiceNameCommand = async (input, context) => {
|
|
80
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
81
|
+
const headers = {};
|
|
82
|
+
b.bp("/clusters/{identifier}/vpc-endpoint-service-name");
|
|
83
|
+
b.p("identifier", () => input.identifier, "{identifier}", false);
|
|
84
|
+
let body;
|
|
85
|
+
b.m("GET").h(headers).b(body);
|
|
86
|
+
return b.build();
|
|
87
|
+
};
|
|
88
|
+
exports.se_GetVpcEndpointServiceNameCommand = se_GetVpcEndpointServiceNameCommand;
|
|
79
89
|
const se_ListClustersCommand = async (input, context) => {
|
|
80
90
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
81
91
|
const headers = {};
|
|
@@ -228,6 +238,21 @@ const de_GetClusterCommand = async (output, context) => {
|
|
|
228
238
|
return contents;
|
|
229
239
|
};
|
|
230
240
|
exports.de_GetClusterCommand = de_GetClusterCommand;
|
|
241
|
+
const de_GetVpcEndpointServiceNameCommand = async (output, context) => {
|
|
242
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
243
|
+
return de_CommandError(output, context);
|
|
244
|
+
}
|
|
245
|
+
const contents = (0, smithy_client_1.map)({
|
|
246
|
+
$metadata: deserializeMetadata(output),
|
|
247
|
+
});
|
|
248
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
249
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
250
|
+
serviceName: smithy_client_1.expectString,
|
|
251
|
+
});
|
|
252
|
+
Object.assign(contents, doc);
|
|
253
|
+
return contents;
|
|
254
|
+
};
|
|
255
|
+
exports.de_GetVpcEndpointServiceNameCommand = de_GetVpcEndpointServiceNameCommand;
|
|
231
256
|
const de_ListClustersCommand = async (output, context) => {
|
|
232
257
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
233
258
|
return de_CommandError(output, context);
|
package/dist-es/DSQL.js
CHANGED
|
@@ -4,6 +4,7 @@ import { CreateMultiRegionClustersCommand, } from "./commands/CreateMultiRegionC
|
|
|
4
4
|
import { DeleteClusterCommand, } from "./commands/DeleteClusterCommand";
|
|
5
5
|
import { DeleteMultiRegionClustersCommand, } from "./commands/DeleteMultiRegionClustersCommand";
|
|
6
6
|
import { GetClusterCommand } from "./commands/GetClusterCommand";
|
|
7
|
+
import { GetVpcEndpointServiceNameCommand, } from "./commands/GetVpcEndpointServiceNameCommand";
|
|
7
8
|
import { ListClustersCommand, } from "./commands/ListClustersCommand";
|
|
8
9
|
import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
|
|
9
10
|
import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
@@ -16,6 +17,7 @@ const commands = {
|
|
|
16
17
|
DeleteClusterCommand,
|
|
17
18
|
DeleteMultiRegionClustersCommand,
|
|
18
19
|
GetClusterCommand,
|
|
20
|
+
GetVpcEndpointServiceNameCommand,
|
|
19
21
|
ListClustersCommand,
|
|
20
22
|
ListTagsForResourceCommand,
|
|
21
23
|
TagResourceCommand,
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_GetVpcEndpointServiceNameCommand, se_GetVpcEndpointServiceNameCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class GetVpcEndpointServiceNameCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep(commonParams)
|
|
10
|
+
.m(function (Command, cs, config, o) {
|
|
11
|
+
return [
|
|
12
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
+
];
|
|
15
|
+
})
|
|
16
|
+
.s("DSQL", "GetVpcEndpointServiceName", {})
|
|
17
|
+
.n("DSQLClient", "GetVpcEndpointServiceNameCommand")
|
|
18
|
+
.f(void 0, void 0)
|
|
19
|
+
.ser(se_GetVpcEndpointServiceNameCommand)
|
|
20
|
+
.de(de_GetVpcEndpointServiceNameCommand)
|
|
21
|
+
.build() {
|
|
22
|
+
}
|
|
@@ -3,6 +3,7 @@ export * from "./CreateMultiRegionClustersCommand";
|
|
|
3
3
|
export * from "./DeleteClusterCommand";
|
|
4
4
|
export * from "./DeleteMultiRegionClustersCommand";
|
|
5
5
|
export * from "./GetClusterCommand";
|
|
6
|
+
export * from "./GetVpcEndpointServiceNameCommand";
|
|
6
7
|
export * from "./ListClustersCommand";
|
|
7
8
|
export * from "./ListTagsForResourceCommand";
|
|
8
9
|
export * from "./TagResourceCommand";
|
|
@@ -68,6 +68,15 @@ export const se_GetClusterCommand = async (input, context) => {
|
|
|
68
68
|
b.m("GET").h(headers).b(body);
|
|
69
69
|
return b.build();
|
|
70
70
|
};
|
|
71
|
+
export const se_GetVpcEndpointServiceNameCommand = async (input, context) => {
|
|
72
|
+
const b = rb(input, context);
|
|
73
|
+
const headers = {};
|
|
74
|
+
b.bp("/clusters/{identifier}/vpc-endpoint-service-name");
|
|
75
|
+
b.p("identifier", () => input.identifier, "{identifier}", false);
|
|
76
|
+
let body;
|
|
77
|
+
b.m("GET").h(headers).b(body);
|
|
78
|
+
return b.build();
|
|
79
|
+
};
|
|
71
80
|
export const se_ListClustersCommand = async (input, context) => {
|
|
72
81
|
const b = rb(input, context);
|
|
73
82
|
const headers = {};
|
|
@@ -210,6 +219,20 @@ export const de_GetClusterCommand = async (output, context) => {
|
|
|
210
219
|
Object.assign(contents, doc);
|
|
211
220
|
return contents;
|
|
212
221
|
};
|
|
222
|
+
export const de_GetVpcEndpointServiceNameCommand = async (output, context) => {
|
|
223
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
224
|
+
return de_CommandError(output, context);
|
|
225
|
+
}
|
|
226
|
+
const contents = map({
|
|
227
|
+
$metadata: deserializeMetadata(output),
|
|
228
|
+
});
|
|
229
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
230
|
+
const doc = take(data, {
|
|
231
|
+
serviceName: __expectString,
|
|
232
|
+
});
|
|
233
|
+
Object.assign(contents, doc);
|
|
234
|
+
return contents;
|
|
235
|
+
};
|
|
213
236
|
export const de_ListClustersCommand = async (output, context) => {
|
|
214
237
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
215
238
|
return de_CommandError(output, context);
|
package/dist-types/DSQL.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { CreateMultiRegionClustersCommandInput, CreateMultiRegionClustersCommand
|
|
|
4
4
|
import { DeleteClusterCommandInput, DeleteClusterCommandOutput } from "./commands/DeleteClusterCommand";
|
|
5
5
|
import { DeleteMultiRegionClustersCommandInput, DeleteMultiRegionClustersCommandOutput } from "./commands/DeleteMultiRegionClustersCommand";
|
|
6
6
|
import { GetClusterCommandInput, GetClusterCommandOutput } from "./commands/GetClusterCommand";
|
|
7
|
+
import { GetVpcEndpointServiceNameCommandInput, GetVpcEndpointServiceNameCommandOutput } from "./commands/GetVpcEndpointServiceNameCommand";
|
|
7
8
|
import { ListClustersCommandInput, ListClustersCommandOutput } from "./commands/ListClustersCommand";
|
|
8
9
|
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
9
10
|
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
@@ -42,6 +43,12 @@ export interface DSQL {
|
|
|
42
43
|
getCluster(args: GetClusterCommandInput, options?: __HttpHandlerOptions): Promise<GetClusterCommandOutput>;
|
|
43
44
|
getCluster(args: GetClusterCommandInput, cb: (err: any, data?: GetClusterCommandOutput) => void): void;
|
|
44
45
|
getCluster(args: GetClusterCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetClusterCommandOutput) => void): void;
|
|
46
|
+
/**
|
|
47
|
+
* @see {@link GetVpcEndpointServiceNameCommand}
|
|
48
|
+
*/
|
|
49
|
+
getVpcEndpointServiceName(args: GetVpcEndpointServiceNameCommandInput, options?: __HttpHandlerOptions): Promise<GetVpcEndpointServiceNameCommandOutput>;
|
|
50
|
+
getVpcEndpointServiceName(args: GetVpcEndpointServiceNameCommandInput, cb: (err: any, data?: GetVpcEndpointServiceNameCommandOutput) => void): void;
|
|
51
|
+
getVpcEndpointServiceName(args: GetVpcEndpointServiceNameCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetVpcEndpointServiceNameCommandOutput) => void): void;
|
|
45
52
|
/**
|
|
46
53
|
* @see {@link ListClustersCommand}
|
|
47
54
|
*/
|
|
@@ -12,6 +12,7 @@ import { CreateMultiRegionClustersCommandInput, CreateMultiRegionClustersCommand
|
|
|
12
12
|
import { DeleteClusterCommandInput, DeleteClusterCommandOutput } from "./commands/DeleteClusterCommand";
|
|
13
13
|
import { DeleteMultiRegionClustersCommandInput, DeleteMultiRegionClustersCommandOutput } from "./commands/DeleteMultiRegionClustersCommand";
|
|
14
14
|
import { GetClusterCommandInput, GetClusterCommandOutput } from "./commands/GetClusterCommand";
|
|
15
|
+
import { GetVpcEndpointServiceNameCommandInput, GetVpcEndpointServiceNameCommandOutput } from "./commands/GetVpcEndpointServiceNameCommand";
|
|
15
16
|
import { ListClustersCommandInput, ListClustersCommandOutput } from "./commands/ListClustersCommand";
|
|
16
17
|
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
17
18
|
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
@@ -23,11 +24,11 @@ export { __Client };
|
|
|
23
24
|
/**
|
|
24
25
|
* @public
|
|
25
26
|
*/
|
|
26
|
-
export type ServiceInputTypes = CreateClusterCommandInput | CreateMultiRegionClustersCommandInput | DeleteClusterCommandInput | DeleteMultiRegionClustersCommandInput | GetClusterCommandInput | ListClustersCommandInput | ListTagsForResourceCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateClusterCommandInput;
|
|
27
|
+
export type ServiceInputTypes = CreateClusterCommandInput | CreateMultiRegionClustersCommandInput | DeleteClusterCommandInput | DeleteMultiRegionClustersCommandInput | GetClusterCommandInput | GetVpcEndpointServiceNameCommandInput | ListClustersCommandInput | ListTagsForResourceCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateClusterCommandInput;
|
|
27
28
|
/**
|
|
28
29
|
* @public
|
|
29
30
|
*/
|
|
30
|
-
export type ServiceOutputTypes = CreateClusterCommandOutput | CreateMultiRegionClustersCommandOutput | DeleteClusterCommandOutput | DeleteMultiRegionClustersCommandOutput | GetClusterCommandOutput | ListClustersCommandOutput | ListTagsForResourceCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateClusterCommandOutput;
|
|
31
|
+
export type ServiceOutputTypes = CreateClusterCommandOutput | CreateMultiRegionClustersCommandOutput | DeleteClusterCommandOutput | DeleteMultiRegionClustersCommandOutput | GetClusterCommandOutput | GetVpcEndpointServiceNameCommandOutput | ListClustersCommandOutput | ListTagsForResourceCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateClusterCommandOutput;
|
|
31
32
|
/**
|
|
32
33
|
* @public
|
|
33
34
|
*/
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { DSQLClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DSQLClient";
|
|
4
|
+
import { GetVpcEndpointServiceNameInput, GetVpcEndpointServiceNameOutput } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link GetVpcEndpointServiceNameCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetVpcEndpointServiceNameCommandInput extends GetVpcEndpointServiceNameInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetVpcEndpointServiceNameCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetVpcEndpointServiceNameCommandOutput extends GetVpcEndpointServiceNameOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const GetVpcEndpointServiceNameCommand_base: {
|
|
25
|
+
new (input: GetVpcEndpointServiceNameCommandInput): import("@smithy/smithy-client").CommandImpl<GetVpcEndpointServiceNameCommandInput, GetVpcEndpointServiceNameCommandOutput, DSQLClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: GetVpcEndpointServiceNameCommandInput): import("@smithy/smithy-client").CommandImpl<GetVpcEndpointServiceNameCommandInput, GetVpcEndpointServiceNameCommandOutput, DSQLClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Retrieves the VPC endpoint service name.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { DSQLClient, GetVpcEndpointServiceNameCommand } from "@aws-sdk/client-dsql"; // ES Modules import
|
|
35
|
+
* // const { DSQLClient, GetVpcEndpointServiceNameCommand } = require("@aws-sdk/client-dsql"); // CommonJS import
|
|
36
|
+
* const client = new DSQLClient(config);
|
|
37
|
+
* const input = { // GetVpcEndpointServiceNameInput
|
|
38
|
+
* identifier: "STRING_VALUE", // required
|
|
39
|
+
* };
|
|
40
|
+
* const command = new GetVpcEndpointServiceNameCommand(input);
|
|
41
|
+
* const response = await client.send(command);
|
|
42
|
+
* // { // GetVpcEndpointServiceNameOutput
|
|
43
|
+
* // serviceName: "STRING_VALUE", // required
|
|
44
|
+
* // };
|
|
45
|
+
*
|
|
46
|
+
* ```
|
|
47
|
+
*
|
|
48
|
+
* @param GetVpcEndpointServiceNameCommandInput - {@link GetVpcEndpointServiceNameCommandInput}
|
|
49
|
+
* @returns {@link GetVpcEndpointServiceNameCommandOutput}
|
|
50
|
+
* @see {@link GetVpcEndpointServiceNameCommandInput} for command's `input` shape.
|
|
51
|
+
* @see {@link GetVpcEndpointServiceNameCommandOutput} for command's `response` shape.
|
|
52
|
+
* @see {@link DSQLClientResolvedConfig | config} for DSQLClient's `config` shape.
|
|
53
|
+
*
|
|
54
|
+
* @throws {@link InternalServerException} (server fault)
|
|
55
|
+
* <p>The request processing has failed because of an unknown error,
|
|
56
|
+
* exception or failure.</p>
|
|
57
|
+
*
|
|
58
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
59
|
+
* <p>The resource could not be found.</p>
|
|
60
|
+
*
|
|
61
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
62
|
+
* <p>The request was denied due to request throttling.</p>
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link ValidationException} (client fault)
|
|
65
|
+
* <p>The input failed to satisfy the constraints specified by an Amazon Web Services service.</p>
|
|
66
|
+
*
|
|
67
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
68
|
+
* <p>You do not have sufficient access to perform this action.</p>
|
|
69
|
+
*
|
|
70
|
+
* @throws {@link DSQLServiceException}
|
|
71
|
+
* <p>Base exception class for all service exceptions from DSQL service.</p>
|
|
72
|
+
*
|
|
73
|
+
*
|
|
74
|
+
* @example Get VPC Endpoint Service Name
|
|
75
|
+
* ```javascript
|
|
76
|
+
* //
|
|
77
|
+
* const input = {
|
|
78
|
+
* identifier: "kiqenqglxyl2snyvkvnj2c3s2e"
|
|
79
|
+
* };
|
|
80
|
+
* const command = new GetVpcEndpointServiceNameCommand(input);
|
|
81
|
+
* const response = await client.send(command);
|
|
82
|
+
* /* response is
|
|
83
|
+
* { /* metadata only *\/ }
|
|
84
|
+
* *\/
|
|
85
|
+
* ```
|
|
86
|
+
*
|
|
87
|
+
* @public
|
|
88
|
+
*/
|
|
89
|
+
export declare class GetVpcEndpointServiceNameCommand extends GetVpcEndpointServiceNameCommand_base {
|
|
90
|
+
/** @internal type navigation helper, not in runtime. */
|
|
91
|
+
protected static __types: {
|
|
92
|
+
api: {
|
|
93
|
+
input: GetVpcEndpointServiceNameInput;
|
|
94
|
+
output: GetVpcEndpointServiceNameOutput;
|
|
95
|
+
};
|
|
96
|
+
sdk: {
|
|
97
|
+
input: GetVpcEndpointServiceNameCommandInput;
|
|
98
|
+
output: GetVpcEndpointServiceNameCommandOutput;
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
}
|
|
@@ -3,6 +3,7 @@ export * from "./CreateMultiRegionClustersCommand";
|
|
|
3
3
|
export * from "./DeleteClusterCommand";
|
|
4
4
|
export * from "./DeleteMultiRegionClustersCommand";
|
|
5
5
|
export * from "./GetClusterCommand";
|
|
6
|
+
export * from "./GetVpcEndpointServiceNameCommand";
|
|
6
7
|
export * from "./ListClustersCommand";
|
|
7
8
|
export * from "./ListTagsForResourceCommand";
|
|
8
9
|
export * from "./TagResourceCommand";
|
|
@@ -452,6 +452,26 @@ export interface GetClusterOutput {
|
|
|
452
452
|
*/
|
|
453
453
|
linkedClusterArns?: string[] | undefined;
|
|
454
454
|
}
|
|
455
|
+
/**
|
|
456
|
+
* @public
|
|
457
|
+
*/
|
|
458
|
+
export interface GetVpcEndpointServiceNameInput {
|
|
459
|
+
/**
|
|
460
|
+
* <p>The ID of the cluster to retrieve.</p>
|
|
461
|
+
* @public
|
|
462
|
+
*/
|
|
463
|
+
identifier: string | undefined;
|
|
464
|
+
}
|
|
465
|
+
/**
|
|
466
|
+
* @public
|
|
467
|
+
*/
|
|
468
|
+
export interface GetVpcEndpointServiceNameOutput {
|
|
469
|
+
/**
|
|
470
|
+
* <p>The VPC endpoint service name.</p>
|
|
471
|
+
* @public
|
|
472
|
+
*/
|
|
473
|
+
serviceName: string | undefined;
|
|
474
|
+
}
|
|
455
475
|
/**
|
|
456
476
|
* @public
|
|
457
477
|
*/
|
|
@@ -5,6 +5,7 @@ import { CreateMultiRegionClustersCommandInput, CreateMultiRegionClustersCommand
|
|
|
5
5
|
import { DeleteClusterCommandInput, DeleteClusterCommandOutput } from "../commands/DeleteClusterCommand";
|
|
6
6
|
import { DeleteMultiRegionClustersCommandInput, DeleteMultiRegionClustersCommandOutput } from "../commands/DeleteMultiRegionClustersCommand";
|
|
7
7
|
import { GetClusterCommandInput, GetClusterCommandOutput } from "../commands/GetClusterCommand";
|
|
8
|
+
import { GetVpcEndpointServiceNameCommandInput, GetVpcEndpointServiceNameCommandOutput } from "../commands/GetVpcEndpointServiceNameCommand";
|
|
8
9
|
import { ListClustersCommandInput, ListClustersCommandOutput } from "../commands/ListClustersCommand";
|
|
9
10
|
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "../commands/ListTagsForResourceCommand";
|
|
10
11
|
import { TagResourceCommandInput, TagResourceCommandOutput } from "../commands/TagResourceCommand";
|
|
@@ -30,6 +31,10 @@ export declare const se_DeleteMultiRegionClustersCommand: (input: DeleteMultiReg
|
|
|
30
31
|
* serializeAws_restJson1GetClusterCommand
|
|
31
32
|
*/
|
|
32
33
|
export declare const se_GetClusterCommand: (input: GetClusterCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
34
|
+
/**
|
|
35
|
+
* serializeAws_restJson1GetVpcEndpointServiceNameCommand
|
|
36
|
+
*/
|
|
37
|
+
export declare const se_GetVpcEndpointServiceNameCommand: (input: GetVpcEndpointServiceNameCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
33
38
|
/**
|
|
34
39
|
* serializeAws_restJson1ListClustersCommand
|
|
35
40
|
*/
|
|
@@ -70,6 +75,10 @@ export declare const de_DeleteMultiRegionClustersCommand: (output: __HttpRespons
|
|
|
70
75
|
* deserializeAws_restJson1GetClusterCommand
|
|
71
76
|
*/
|
|
72
77
|
export declare const de_GetClusterCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetClusterCommandOutput>;
|
|
78
|
+
/**
|
|
79
|
+
* deserializeAws_restJson1GetVpcEndpointServiceNameCommand
|
|
80
|
+
*/
|
|
81
|
+
export declare const de_GetVpcEndpointServiceNameCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetVpcEndpointServiceNameCommandOutput>;
|
|
73
82
|
/**
|
|
74
83
|
* deserializeAws_restJson1ListClustersCommand
|
|
75
84
|
*/
|
|
@@ -19,6 +19,10 @@ import {
|
|
|
19
19
|
GetClusterCommandInput,
|
|
20
20
|
GetClusterCommandOutput,
|
|
21
21
|
} from "./commands/GetClusterCommand";
|
|
22
|
+
import {
|
|
23
|
+
GetVpcEndpointServiceNameCommandInput,
|
|
24
|
+
GetVpcEndpointServiceNameCommandOutput,
|
|
25
|
+
} from "./commands/GetVpcEndpointServiceNameCommand";
|
|
22
26
|
import {
|
|
23
27
|
ListClustersCommandInput,
|
|
24
28
|
ListClustersCommandOutput,
|
|
@@ -107,6 +111,19 @@ export interface DSQL {
|
|
|
107
111
|
options: __HttpHandlerOptions,
|
|
108
112
|
cb: (err: any, data?: GetClusterCommandOutput) => void
|
|
109
113
|
): void;
|
|
114
|
+
getVpcEndpointServiceName(
|
|
115
|
+
args: GetVpcEndpointServiceNameCommandInput,
|
|
116
|
+
options?: __HttpHandlerOptions
|
|
117
|
+
): Promise<GetVpcEndpointServiceNameCommandOutput>;
|
|
118
|
+
getVpcEndpointServiceName(
|
|
119
|
+
args: GetVpcEndpointServiceNameCommandInput,
|
|
120
|
+
cb: (err: any, data?: GetVpcEndpointServiceNameCommandOutput) => void
|
|
121
|
+
): void;
|
|
122
|
+
getVpcEndpointServiceName(
|
|
123
|
+
args: GetVpcEndpointServiceNameCommandInput,
|
|
124
|
+
options: __HttpHandlerOptions,
|
|
125
|
+
cb: (err: any, data?: GetVpcEndpointServiceNameCommandOutput) => void
|
|
126
|
+
): void;
|
|
110
127
|
listClusters(): Promise<ListClustersCommandOutput>;
|
|
111
128
|
listClusters(
|
|
112
129
|
args: ListClustersCommandInput,
|
|
@@ -65,6 +65,10 @@ import {
|
|
|
65
65
|
GetClusterCommandInput,
|
|
66
66
|
GetClusterCommandOutput,
|
|
67
67
|
} from "./commands/GetClusterCommand";
|
|
68
|
+
import {
|
|
69
|
+
GetVpcEndpointServiceNameCommandInput,
|
|
70
|
+
GetVpcEndpointServiceNameCommandOutput,
|
|
71
|
+
} from "./commands/GetVpcEndpointServiceNameCommand";
|
|
68
72
|
import {
|
|
69
73
|
ListClustersCommandInput,
|
|
70
74
|
ListClustersCommandOutput,
|
|
@@ -98,6 +102,7 @@ export type ServiceInputTypes =
|
|
|
98
102
|
| DeleteClusterCommandInput
|
|
99
103
|
| DeleteMultiRegionClustersCommandInput
|
|
100
104
|
| GetClusterCommandInput
|
|
105
|
+
| GetVpcEndpointServiceNameCommandInput
|
|
101
106
|
| ListClustersCommandInput
|
|
102
107
|
| ListTagsForResourceCommandInput
|
|
103
108
|
| TagResourceCommandInput
|
|
@@ -109,6 +114,7 @@ export type ServiceOutputTypes =
|
|
|
109
114
|
| DeleteClusterCommandOutput
|
|
110
115
|
| DeleteMultiRegionClustersCommandOutput
|
|
111
116
|
| GetClusterCommandOutput
|
|
117
|
+
| GetVpcEndpointServiceNameCommandOutput
|
|
112
118
|
| ListClustersCommandOutput
|
|
113
119
|
| ListTagsForResourceCommandOutput
|
|
114
120
|
| TagResourceCommandOutput
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import {
|
|
4
|
+
DSQLClientResolvedConfig,
|
|
5
|
+
ServiceInputTypes,
|
|
6
|
+
ServiceOutputTypes,
|
|
7
|
+
} from "../DSQLClient";
|
|
8
|
+
import {
|
|
9
|
+
GetVpcEndpointServiceNameInput,
|
|
10
|
+
GetVpcEndpointServiceNameOutput,
|
|
11
|
+
} from "../models/models_0";
|
|
12
|
+
export { __MetadataBearer };
|
|
13
|
+
export { $Command };
|
|
14
|
+
export interface GetVpcEndpointServiceNameCommandInput
|
|
15
|
+
extends GetVpcEndpointServiceNameInput {}
|
|
16
|
+
export interface GetVpcEndpointServiceNameCommandOutput
|
|
17
|
+
extends GetVpcEndpointServiceNameOutput,
|
|
18
|
+
__MetadataBearer {}
|
|
19
|
+
declare const GetVpcEndpointServiceNameCommand_base: {
|
|
20
|
+
new (
|
|
21
|
+
input: GetVpcEndpointServiceNameCommandInput
|
|
22
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
23
|
+
GetVpcEndpointServiceNameCommandInput,
|
|
24
|
+
GetVpcEndpointServiceNameCommandOutput,
|
|
25
|
+
DSQLClientResolvedConfig,
|
|
26
|
+
ServiceInputTypes,
|
|
27
|
+
ServiceOutputTypes
|
|
28
|
+
>;
|
|
29
|
+
new (
|
|
30
|
+
__0_0: GetVpcEndpointServiceNameCommandInput
|
|
31
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
32
|
+
GetVpcEndpointServiceNameCommandInput,
|
|
33
|
+
GetVpcEndpointServiceNameCommandOutput,
|
|
34
|
+
DSQLClientResolvedConfig,
|
|
35
|
+
ServiceInputTypes,
|
|
36
|
+
ServiceOutputTypes
|
|
37
|
+
>;
|
|
38
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
39
|
+
};
|
|
40
|
+
export declare class GetVpcEndpointServiceNameCommand extends GetVpcEndpointServiceNameCommand_base {
|
|
41
|
+
protected static __types: {
|
|
42
|
+
api: {
|
|
43
|
+
input: GetVpcEndpointServiceNameInput;
|
|
44
|
+
output: GetVpcEndpointServiceNameOutput;
|
|
45
|
+
};
|
|
46
|
+
sdk: {
|
|
47
|
+
input: GetVpcEndpointServiceNameCommandInput;
|
|
48
|
+
output: GetVpcEndpointServiceNameCommandOutput;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -3,6 +3,7 @@ export * from "./CreateMultiRegionClustersCommand";
|
|
|
3
3
|
export * from "./DeleteClusterCommand";
|
|
4
4
|
export * from "./DeleteMultiRegionClustersCommand";
|
|
5
5
|
export * from "./GetClusterCommand";
|
|
6
|
+
export * from "./GetVpcEndpointServiceNameCommand";
|
|
6
7
|
export * from "./ListClustersCommand";
|
|
7
8
|
export * from "./ListTagsForResourceCommand";
|
|
8
9
|
export * from "./TagResourceCommand";
|
|
@@ -139,6 +139,12 @@ export interface GetClusterOutput {
|
|
|
139
139
|
witnessRegion?: string | undefined;
|
|
140
140
|
linkedClusterArns?: string[] | undefined;
|
|
141
141
|
}
|
|
142
|
+
export interface GetVpcEndpointServiceNameInput {
|
|
143
|
+
identifier: string | undefined;
|
|
144
|
+
}
|
|
145
|
+
export interface GetVpcEndpointServiceNameOutput {
|
|
146
|
+
serviceName: string | undefined;
|
|
147
|
+
}
|
|
142
148
|
export interface ListClustersInput {
|
|
143
149
|
maxResults?: number | undefined;
|
|
144
150
|
nextToken?: string | undefined;
|
|
@@ -23,6 +23,10 @@ import {
|
|
|
23
23
|
GetClusterCommandInput,
|
|
24
24
|
GetClusterCommandOutput,
|
|
25
25
|
} from "../commands/GetClusterCommand";
|
|
26
|
+
import {
|
|
27
|
+
GetVpcEndpointServiceNameCommandInput,
|
|
28
|
+
GetVpcEndpointServiceNameCommandOutput,
|
|
29
|
+
} from "../commands/GetVpcEndpointServiceNameCommand";
|
|
26
30
|
import {
|
|
27
31
|
ListClustersCommandInput,
|
|
28
32
|
ListClustersCommandOutput,
|
|
@@ -63,6 +67,10 @@ export declare const se_GetClusterCommand: (
|
|
|
63
67
|
input: GetClusterCommandInput,
|
|
64
68
|
context: __SerdeContext
|
|
65
69
|
) => Promise<__HttpRequest>;
|
|
70
|
+
export declare const se_GetVpcEndpointServiceNameCommand: (
|
|
71
|
+
input: GetVpcEndpointServiceNameCommandInput,
|
|
72
|
+
context: __SerdeContext
|
|
73
|
+
) => Promise<__HttpRequest>;
|
|
66
74
|
export declare const se_ListClustersCommand: (
|
|
67
75
|
input: ListClustersCommandInput,
|
|
68
76
|
context: __SerdeContext
|
|
@@ -103,6 +111,10 @@ export declare const de_GetClusterCommand: (
|
|
|
103
111
|
output: __HttpResponse,
|
|
104
112
|
context: __SerdeContext
|
|
105
113
|
) => Promise<GetClusterCommandOutput>;
|
|
114
|
+
export declare const de_GetVpcEndpointServiceNameCommand: (
|
|
115
|
+
output: __HttpResponse,
|
|
116
|
+
context: __SerdeContext
|
|
117
|
+
) => Promise<GetVpcEndpointServiceNameCommandOutput>;
|
|
106
118
|
export declare const de_ListClustersCommand: (
|
|
107
119
|
output: __HttpResponse,
|
|
108
120
|
context: __SerdeContext
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-dsql",
|
|
3
3
|
"description": "AWS SDK for JavaScript Dsql Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.790.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",
|