@aws-sdk/client-apigatewaymanagementapi 3.315.0 → 3.319.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,52 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ApiGatewayManagementApi = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
4
5
|
const ApiGatewayManagementApiClient_1 = require("./ApiGatewayManagementApiClient");
|
|
5
6
|
const DeleteConnectionCommand_1 = require("./commands/DeleteConnectionCommand");
|
|
6
7
|
const GetConnectionCommand_1 = require("./commands/GetConnectionCommand");
|
|
7
8
|
const PostToConnectionCommand_1 = require("./commands/PostToConnectionCommand");
|
|
9
|
+
const commands = {
|
|
10
|
+
DeleteConnectionCommand: DeleteConnectionCommand_1.DeleteConnectionCommand,
|
|
11
|
+
GetConnectionCommand: GetConnectionCommand_1.GetConnectionCommand,
|
|
12
|
+
PostToConnectionCommand: PostToConnectionCommand_1.PostToConnectionCommand,
|
|
13
|
+
};
|
|
8
14
|
class ApiGatewayManagementApi extends ApiGatewayManagementApiClient_1.ApiGatewayManagementApiClient {
|
|
9
|
-
deleteConnection(args, optionsOrCb, cb) {
|
|
10
|
-
const command = new DeleteConnectionCommand_1.DeleteConnectionCommand(args);
|
|
11
|
-
if (typeof optionsOrCb === "function") {
|
|
12
|
-
this.send(command, optionsOrCb);
|
|
13
|
-
}
|
|
14
|
-
else if (typeof cb === "function") {
|
|
15
|
-
if (typeof optionsOrCb !== "object")
|
|
16
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
17
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
return this.send(command, optionsOrCb);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
getConnection(args, optionsOrCb, cb) {
|
|
24
|
-
const command = new GetConnectionCommand_1.GetConnectionCommand(args);
|
|
25
|
-
if (typeof optionsOrCb === "function") {
|
|
26
|
-
this.send(command, optionsOrCb);
|
|
27
|
-
}
|
|
28
|
-
else if (typeof cb === "function") {
|
|
29
|
-
if (typeof optionsOrCb !== "object")
|
|
30
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
31
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
32
|
-
}
|
|
33
|
-
else {
|
|
34
|
-
return this.send(command, optionsOrCb);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
postToConnection(args, optionsOrCb, cb) {
|
|
38
|
-
const command = new PostToConnectionCommand_1.PostToConnectionCommand(args);
|
|
39
|
-
if (typeof optionsOrCb === "function") {
|
|
40
|
-
this.send(command, optionsOrCb);
|
|
41
|
-
}
|
|
42
|
-
else if (typeof cb === "function") {
|
|
43
|
-
if (typeof optionsOrCb !== "object")
|
|
44
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
45
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
46
|
-
}
|
|
47
|
-
else {
|
|
48
|
-
return this.send(command, optionsOrCb);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
15
|
}
|
|
52
16
|
exports.ApiGatewayManagementApi = ApiGatewayManagementApi;
|
|
17
|
+
(0, smithy_client_1.createAggregatedClient)(commands, ApiGatewayManagementApi);
|
|
@@ -1,48 +1,13 @@
|
|
|
1
|
+
import { createAggregatedClient } from "@aws-sdk/smithy-client";
|
|
1
2
|
import { ApiGatewayManagementApiClient } from "./ApiGatewayManagementApiClient";
|
|
2
3
|
import { DeleteConnectionCommand, } from "./commands/DeleteConnectionCommand";
|
|
3
4
|
import { GetConnectionCommand, } from "./commands/GetConnectionCommand";
|
|
4
5
|
import { PostToConnectionCommand, } from "./commands/PostToConnectionCommand";
|
|
6
|
+
const commands = {
|
|
7
|
+
DeleteConnectionCommand,
|
|
8
|
+
GetConnectionCommand,
|
|
9
|
+
PostToConnectionCommand,
|
|
10
|
+
};
|
|
5
11
|
export class ApiGatewayManagementApi extends ApiGatewayManagementApiClient {
|
|
6
|
-
deleteConnection(args, optionsOrCb, cb) {
|
|
7
|
-
const command = new DeleteConnectionCommand(args);
|
|
8
|
-
if (typeof optionsOrCb === "function") {
|
|
9
|
-
this.send(command, optionsOrCb);
|
|
10
|
-
}
|
|
11
|
-
else if (typeof cb === "function") {
|
|
12
|
-
if (typeof optionsOrCb !== "object")
|
|
13
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
14
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
return this.send(command, optionsOrCb);
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
getConnection(args, optionsOrCb, cb) {
|
|
21
|
-
const command = new GetConnectionCommand(args);
|
|
22
|
-
if (typeof optionsOrCb === "function") {
|
|
23
|
-
this.send(command, optionsOrCb);
|
|
24
|
-
}
|
|
25
|
-
else if (typeof cb === "function") {
|
|
26
|
-
if (typeof optionsOrCb !== "object")
|
|
27
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
28
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
29
|
-
}
|
|
30
|
-
else {
|
|
31
|
-
return this.send(command, optionsOrCb);
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
postToConnection(args, optionsOrCb, cb) {
|
|
35
|
-
const command = new PostToConnectionCommand(args);
|
|
36
|
-
if (typeof optionsOrCb === "function") {
|
|
37
|
-
this.send(command, optionsOrCb);
|
|
38
|
-
}
|
|
39
|
-
else if (typeof cb === "function") {
|
|
40
|
-
if (typeof optionsOrCb !== "object")
|
|
41
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
42
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
43
|
-
}
|
|
44
|
-
else {
|
|
45
|
-
return this.send(command, optionsOrCb);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
12
|
}
|
|
13
|
+
createAggregatedClient(commands, ApiGatewayManagementApi);
|
|
@@ -3,30 +3,29 @@ import { ApiGatewayManagementApiClient } from "./ApiGatewayManagementApiClient";
|
|
|
3
3
|
import { DeleteConnectionCommandInput, DeleteConnectionCommandOutput } from "./commands/DeleteConnectionCommand";
|
|
4
4
|
import { GetConnectionCommandInput, GetConnectionCommandOutput } from "./commands/GetConnectionCommand";
|
|
5
5
|
import { PostToConnectionCommandInput, PostToConnectionCommandOutput } from "./commands/PostToConnectionCommand";
|
|
6
|
-
|
|
7
|
-
* @public
|
|
8
|
-
* <p>The Amazon API Gateway Management API allows you to directly manage runtime aspects of your deployed APIs. To use it, you must explicitly set the SDK's endpoint to point to the endpoint of your deployed API. The endpoint will be of the form https://\{api-id\}.execute-api.\{region\}.amazonaws.com/\{stage\}, or will be the endpoint corresponding to your API's custom domain and base path, if applicable.</p>
|
|
9
|
-
*/
|
|
10
|
-
export declare class ApiGatewayManagementApi extends ApiGatewayManagementApiClient {
|
|
6
|
+
export interface ApiGatewayManagementApi {
|
|
11
7
|
/**
|
|
12
|
-
* @
|
|
13
|
-
* <p>Delete the connection with the provided id.</p>
|
|
8
|
+
* @see {@link DeleteConnectionCommand}
|
|
14
9
|
*/
|
|
15
10
|
deleteConnection(args: DeleteConnectionCommandInput, options?: __HttpHandlerOptions): Promise<DeleteConnectionCommandOutput>;
|
|
16
11
|
deleteConnection(args: DeleteConnectionCommandInput, cb: (err: any, data?: DeleteConnectionCommandOutput) => void): void;
|
|
17
12
|
deleteConnection(args: DeleteConnectionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteConnectionCommandOutput) => void): void;
|
|
18
13
|
/**
|
|
19
|
-
* @
|
|
20
|
-
* <p>Get information about the connection with the provided id.</p>
|
|
14
|
+
* @see {@link GetConnectionCommand}
|
|
21
15
|
*/
|
|
22
16
|
getConnection(args: GetConnectionCommandInput, options?: __HttpHandlerOptions): Promise<GetConnectionCommandOutput>;
|
|
23
17
|
getConnection(args: GetConnectionCommandInput, cb: (err: any, data?: GetConnectionCommandOutput) => void): void;
|
|
24
18
|
getConnection(args: GetConnectionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetConnectionCommandOutput) => void): void;
|
|
25
19
|
/**
|
|
26
|
-
* @
|
|
27
|
-
* <p>Sends the provided data to the specified connection.</p>
|
|
20
|
+
* @see {@link PostToConnectionCommand}
|
|
28
21
|
*/
|
|
29
22
|
postToConnection(args: PostToConnectionCommandInput, options?: __HttpHandlerOptions): Promise<PostToConnectionCommandOutput>;
|
|
30
23
|
postToConnection(args: PostToConnectionCommandInput, cb: (err: any, data?: PostToConnectionCommandOutput) => void): void;
|
|
31
24
|
postToConnection(args: PostToConnectionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PostToConnectionCommandOutput) => void): void;
|
|
32
25
|
}
|
|
26
|
+
/**
|
|
27
|
+
* @public
|
|
28
|
+
* <p>The Amazon API Gateway Management API allows you to directly manage runtime aspects of your deployed APIs. To use it, you must explicitly set the SDK's endpoint to point to the endpoint of your deployed API. The endpoint will be of the form https://\{api-id\}.execute-api.\{region\}.amazonaws.com/\{stage\}, or will be the endpoint corresponding to your API's custom domain and base path, if applicable.</p>
|
|
29
|
+
*/
|
|
30
|
+
export declare class ApiGatewayManagementApi extends ApiGatewayManagementApiClient implements ApiGatewayManagementApi {
|
|
31
|
+
}
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
PostToConnectionCommandInput,
|
|
13
13
|
PostToConnectionCommandOutput,
|
|
14
14
|
} from "./commands/PostToConnectionCommand";
|
|
15
|
-
export
|
|
15
|
+
export interface ApiGatewayManagementApi {
|
|
16
16
|
deleteConnection(
|
|
17
17
|
args: DeleteConnectionCommandInput,
|
|
18
18
|
options?: __HttpHandlerOptions
|
|
@@ -53,3 +53,6 @@ export declare class ApiGatewayManagementApi extends ApiGatewayManagementApiClie
|
|
|
53
53
|
cb: (err: any, data?: PostToConnectionCommandOutput) => void
|
|
54
54
|
): void;
|
|
55
55
|
}
|
|
56
|
+
export declare class ApiGatewayManagementApi
|
|
57
|
+
extends ApiGatewayManagementApiClient
|
|
58
|
+
implements ApiGatewayManagementApi {}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-apigatewaymanagementapi",
|
|
3
3
|
"description": "AWS SDK for JavaScript Apigatewaymanagementapi Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.319.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.319.0",
|
|
25
25
|
"@aws-sdk/config-resolver": "3.310.0",
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.319.0",
|
|
27
27
|
"@aws-sdk/fetch-http-handler": "3.310.0",
|
|
28
28
|
"@aws-sdk/hash-node": "3.310.0",
|
|
29
29
|
"@aws-sdk/invalid-dependency": "3.310.0",
|
|
@@ -36,19 +36,19 @@
|
|
|
36
36
|
"@aws-sdk/middleware-serde": "3.310.0",
|
|
37
37
|
"@aws-sdk/middleware-signing": "3.310.0",
|
|
38
38
|
"@aws-sdk/middleware-stack": "3.310.0",
|
|
39
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
39
|
+
"@aws-sdk/middleware-user-agent": "3.319.0",
|
|
40
40
|
"@aws-sdk/node-config-provider": "3.310.0",
|
|
41
41
|
"@aws-sdk/node-http-handler": "3.310.0",
|
|
42
42
|
"@aws-sdk/protocol-http": "3.310.0",
|
|
43
|
-
"@aws-sdk/smithy-client": "3.
|
|
43
|
+
"@aws-sdk/smithy-client": "3.316.0",
|
|
44
44
|
"@aws-sdk/types": "3.310.0",
|
|
45
45
|
"@aws-sdk/url-parser": "3.310.0",
|
|
46
46
|
"@aws-sdk/util-base64": "3.310.0",
|
|
47
47
|
"@aws-sdk/util-body-length-browser": "3.310.0",
|
|
48
48
|
"@aws-sdk/util-body-length-node": "3.310.0",
|
|
49
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
50
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
51
|
-
"@aws-sdk/util-endpoints": "3.
|
|
49
|
+
"@aws-sdk/util-defaults-mode-browser": "3.316.0",
|
|
50
|
+
"@aws-sdk/util-defaults-mode-node": "3.316.0",
|
|
51
|
+
"@aws-sdk/util-endpoints": "3.319.0",
|
|
52
52
|
"@aws-sdk/util-retry": "3.310.0",
|
|
53
53
|
"@aws-sdk/util-user-agent-browser": "3.310.0",
|
|
54
54
|
"@aws-sdk/util-user-agent-node": "3.310.0",
|