@aws-sdk/client-apigatewaymanagementapi 3.32.0 → 3.36.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/CHANGELOG.md +44 -0
- package/{dist/cjs → dist-cjs}/ApiGatewayManagementApi.js +0 -1
- package/{dist/cjs → dist-cjs}/ApiGatewayManagementApiClient.js +8 -9
- package/{dist/cjs → dist-cjs}/commands/DeleteConnectionCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/GetConnectionCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/PostToConnectionCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/endpoints.js +0 -1
- package/{dist/cjs → dist-cjs}/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/models_0.js +0 -1
- package/{dist/cjs → dist-cjs}/protocols/Aws_restJson1.js +0 -1
- package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +2 -2
- package/{dist/cjs → dist-cjs}/runtimeConfig.js +2 -2
- package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -1
- package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -2
- package/{dist/es → dist-es}/ApiGatewayManagementApi.js +1 -5
- package/{dist/es → dist-es}/ApiGatewayManagementApiClient.js +2 -11
- package/{dist/es → dist-es}/commands/DeleteConnectionCommand.js +4 -30
- package/{dist/es → dist-es}/commands/GetConnectionCommand.js +4 -30
- package/{dist/es → dist-es}/commands/PostToConnectionCommand.js +4 -30
- package/{dist/es → dist-es}/endpoints.js +1 -2
- package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
- package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
- package/{dist/es → dist-es}/models/models_0.js +0 -28
- package/{dist/es → dist-es}/protocols/Aws_restJson1.js +68 -74
- package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -5
- package/{dist/es → dist-es}/runtimeConfig.js +1 -5
- package/{dist/es → dist-es}/runtimeConfig.native.js +0 -4
- package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -5
- package/{dist/types → dist-types}/ApiGatewayManagementApi.d.ts +1 -1
- package/{dist/types → dist-types}/ApiGatewayManagementApiClient.d.ts +4 -4
- package/{dist/types → dist-types}/commands/DeleteConnectionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetConnectionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/PostToConnectionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/endpoints.d.ts +0 -0
- package/{index.ts → dist-types/index.d.ts} +0 -0
- package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
- package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
- package/{dist/types → dist-types}/protocols/Aws_restJson1.d.ts +2 -2
- package/{dist/types/ts3.4 → dist-types}/runtimeConfig.browser.d.ts +40 -36
- package/{dist/types/ts3.4 → dist-types}/runtimeConfig.d.ts +37 -36
- package/{dist/types → dist-types}/runtimeConfig.native.d.ts +1 -0
- package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/ApiGatewayManagementApi.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/ApiGatewayManagementApiClient.d.ts +4 -4
- package/{dist/types → dist-types}/ts3.4/commands/DeleteConnectionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/GetConnectionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/PostToConnectionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/models_0.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/protocols/Aws_restJson1.d.ts +2 -2
- package/{dist/types → dist-types/ts3.4}/runtimeConfig.browser.d.ts +40 -36
- package/{dist/types → dist-types/ts3.4}/runtimeConfig.d.ts +37 -36
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +0 -0
- package/package.json +52 -49
- package/ApiGatewayManagementApi.ts +0 -118
- package/ApiGatewayManagementApiClient.ts +0 -241
- package/commands/DeleteConnectionCommand.ts +0 -98
- package/commands/GetConnectionCommand.ts +0 -98
- package/commands/PostToConnectionCommand.ts +0 -98
- package/dist/cjs/ApiGatewayManagementApi.js.map +0 -1
- package/dist/cjs/ApiGatewayManagementApiClient.js.map +0 -1
- package/dist/cjs/commands/DeleteConnectionCommand.js.map +0 -1
- package/dist/cjs/commands/GetConnectionCommand.js.map +0 -1
- package/dist/cjs/commands/PostToConnectionCommand.js.map +0 -1
- package/dist/cjs/endpoints.js.map +0 -1
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/models/index.js.map +0 -1
- package/dist/cjs/models/models_0.js.map +0 -1
- package/dist/cjs/package.json +0 -91
- package/dist/cjs/protocols/Aws_restJson1.js.map +0 -1
- package/dist/cjs/runtimeConfig.browser.js.map +0 -1
- package/dist/cjs/runtimeConfig.js.map +0 -1
- package/dist/cjs/runtimeConfig.native.js.map +0 -1
- package/dist/cjs/runtimeConfig.shared.js.map +0 -1
- package/dist/es/ApiGatewayManagementApi.js.map +0 -1
- package/dist/es/ApiGatewayManagementApiClient.js.map +0 -1
- package/dist/es/commands/DeleteConnectionCommand.js.map +0 -1
- package/dist/es/commands/GetConnectionCommand.js.map +0 -1
- package/dist/es/commands/PostToConnectionCommand.js.map +0 -1
- package/dist/es/endpoints.js.map +0 -1
- package/dist/es/index.js +0 -7
- package/dist/es/index.js.map +0 -1
- package/dist/es/models/index.js +0 -2
- package/dist/es/models/index.js.map +0 -1
- package/dist/es/models/models_0.js.map +0 -1
- package/dist/es/package.json +0 -91
- package/dist/es/protocols/Aws_restJson1.js.map +0 -1
- package/dist/es/runtimeConfig.browser.js.map +0 -1
- package/dist/es/runtimeConfig.js.map +0 -1
- package/dist/es/runtimeConfig.native.js.map +0 -1
- package/dist/es/runtimeConfig.shared.js.map +0 -1
- package/endpoints.ts +0 -57
- package/jest.config.js +0 -4
- package/models/models_0.ts +0 -160
- package/protocols/Aws_restJson1.ts +0 -468
- package/runtimeConfig.browser.ts +0 -40
- package/runtimeConfig.native.ts +0 -16
- package/runtimeConfig.shared.ts +0 -16
- package/runtimeConfig.ts +0 -45
- package/tsconfig.es.json +0 -12
- package/tsconfig.json +0 -32
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,50 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.36.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.35.0...v3.36.0) (2021-10-08)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* publish files in dist-* only ([#2873](https://github.com/aws/aws-sdk-js-v3/issues/2873)) ([53b4243](https://github.com/aws/aws-sdk-js-v3/commit/53b4243b066f25ff2412d5f0dea1036054b2df32))
|
|
12
|
+
* **codegen:** ts-ignore packageInfo imports in codegen ([#2875](https://github.com/aws/aws-sdk-js-v3/issues/2875)) ([99d9267](https://github.com/aws/aws-sdk-js-v3/commit/99d926762193e83a354edec6e9de2b0543449704))
|
|
13
|
+
* **tsconfig:** remove sourceMap ([#2867](https://github.com/aws/aws-sdk-js-v3/issues/2867)) ([d25f526](https://github.com/aws/aws-sdk-js-v3/commit/d25f526627a02a2ca28675fecce66c76b6c97966))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
# [3.35.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.34.0...v3.35.0) (2021-10-04)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Features
|
|
23
|
+
|
|
24
|
+
* **clients:** eslint --fix using esprint ([#2849](https://github.com/aws/aws-sdk-js-v3/issues/2849)) ([94d0a2d](https://github.com/aws/aws-sdk-js-v3/commit/94d0a2d8a0579ee0a742337937ad05735cfbc1ba))
|
|
25
|
+
* **clients:** move source files to 'src' folder ([#2845](https://github.com/aws/aws-sdk-js-v3/issues/2845)) ([e0025cd](https://github.com/aws/aws-sdk-js-v3/commit/e0025cddbba244a41ddf1fd1adb761142e15c22d))
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
# [3.34.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.33.0...v3.34.0) (2021-09-24)
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
### Features
|
|
35
|
+
|
|
36
|
+
* **clients:** remove comments from transpiled JS files ([#2817](https://github.com/aws/aws-sdk-js-v3/issues/2817)) ([d01420b](https://github.com/aws/aws-sdk-js-v3/commit/d01420b247966c8ec84c1dd0a1b42512ede10c90))
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
# [3.33.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.32.0...v3.33.0) (2021-09-21)
|
|
43
|
+
|
|
44
|
+
**Note:** Version bump only for package @aws-sdk/client-apigatewaymanagementapi
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
6
50
|
# [3.32.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.31.0...v3.32.0) (2021-09-17)
|
|
7
51
|
|
|
8
52
|
**Note:** Version bump only for package @aws-sdk/client-apigatewaymanagementapi
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ApiGatewayManagementApiClient = void 0;
|
|
4
|
-
const runtimeConfig_1 = require("./runtimeConfig");
|
|
5
4
|
const config_resolver_1 = require("@aws-sdk/config-resolver");
|
|
6
5
|
const middleware_content_length_1 = require("@aws-sdk/middleware-content-length");
|
|
7
6
|
const middleware_host_header_1 = require("@aws-sdk/middleware-host-header");
|
|
@@ -10,18 +9,19 @@ const middleware_retry_1 = require("@aws-sdk/middleware-retry");
|
|
|
10
9
|
const middleware_signing_1 = require("@aws-sdk/middleware-signing");
|
|
11
10
|
const middleware_user_agent_1 = require("@aws-sdk/middleware-user-agent");
|
|
12
11
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
12
|
+
const runtimeConfig_1 = require("./runtimeConfig");
|
|
13
13
|
/**
|
|
14
14
|
* <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>
|
|
15
15
|
*/
|
|
16
16
|
class ApiGatewayManagementApiClient extends smithy_client_1.Client {
|
|
17
17
|
constructor(configuration) {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
18
|
+
const _config_0 = runtimeConfig_1.getRuntimeConfig(configuration);
|
|
19
|
+
const _config_1 = config_resolver_1.resolveRegionConfig(_config_0);
|
|
20
|
+
const _config_2 = config_resolver_1.resolveEndpointsConfig(_config_1);
|
|
21
|
+
const _config_3 = middleware_retry_1.resolveRetryConfig(_config_2);
|
|
22
|
+
const _config_4 = middleware_host_header_1.resolveHostHeaderConfig(_config_3);
|
|
23
|
+
const _config_5 = middleware_signing_1.resolveAwsAuthConfig(_config_4);
|
|
24
|
+
const _config_6 = middleware_user_agent_1.resolveUserAgentConfig(_config_5);
|
|
25
25
|
super(_config_6);
|
|
26
26
|
this.config = _config_6;
|
|
27
27
|
this.middlewareStack.use(middleware_retry_1.getRetryPlugin(this.config));
|
|
@@ -41,4 +41,3 @@ class ApiGatewayManagementApiClient extends smithy_client_1.Client {
|
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
exports.ApiGatewayManagementApiClient = ApiGatewayManagementApiClient;
|
|
44
|
-
//# sourceMappingURL=ApiGatewayManagementApiClient.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DeleteConnectionCommand = void 0;
|
|
4
|
-
const models_0_1 = require("../models/models_0");
|
|
5
|
-
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
6
4
|
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
7
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
8
|
/**
|
|
9
9
|
* <p>Delete the connection with the provided id.</p>
|
|
10
10
|
* @example
|
|
@@ -58,4 +58,3 @@ class DeleteConnectionCommand extends smithy_client_1.Command {
|
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
exports.DeleteConnectionCommand = DeleteConnectionCommand;
|
|
61
|
-
//# sourceMappingURL=DeleteConnectionCommand.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.GetConnectionCommand = void 0;
|
|
4
|
-
const models_0_1 = require("../models/models_0");
|
|
5
|
-
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
6
4
|
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
7
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
8
|
/**
|
|
9
9
|
* <p>Get information about the connection with the provided id.</p>
|
|
10
10
|
* @example
|
|
@@ -58,4 +58,3 @@ class GetConnectionCommand extends smithy_client_1.Command {
|
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
exports.GetConnectionCommand = GetConnectionCommand;
|
|
61
|
-
//# sourceMappingURL=GetConnectionCommand.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PostToConnectionCommand = void 0;
|
|
4
|
-
const models_0_1 = require("../models/models_0");
|
|
5
|
-
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
6
4
|
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
7
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
8
|
/**
|
|
9
9
|
* <p>Sends the provided data to the specified connection.</p>
|
|
10
10
|
* @example
|
|
@@ -58,4 +58,3 @@ class PostToConnectionCommand extends smithy_client_1.Command {
|
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
exports.PostToConnectionCommand = PostToConnectionCommand;
|
|
61
|
-
//# sourceMappingURL=PostToConnectionCommand.js.map
|
|
@@ -7,4 +7,3 @@ tslib_1.__exportStar(require("./commands/DeleteConnectionCommand"), exports);
|
|
|
7
7
|
tslib_1.__exportStar(require("./commands/GetConnectionCommand"), exports);
|
|
8
8
|
tslib_1.__exportStar(require("./commands/PostToConnectionCommand"), exports);
|
|
9
9
|
tslib_1.__exportStar(require("./models/index"), exports);
|
|
10
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
|
|
5
|
+
// @ts-ignore: package.json will be imported from dist folders
|
|
6
|
+
const package_json_1 = tslib_1.__importDefault(require("../package.json")); // eslint-disable-line
|
|
6
7
|
const sha256_browser_1 = require("@aws-crypto/sha256-browser");
|
|
7
8
|
const fetch_http_handler_1 = require("@aws-sdk/fetch-http-handler");
|
|
8
9
|
const invalid_dependency_1 = require("@aws-sdk/invalid-dependency");
|
|
@@ -38,4 +39,3 @@ const getRuntimeConfig = (config) => {
|
|
|
38
39
|
};
|
|
39
40
|
};
|
|
40
41
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
41
|
-
//# sourceMappingURL=runtimeConfig.browser.js.map
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
|
|
5
|
+
// @ts-ignore: package.json will be imported from dist folders
|
|
6
|
+
const package_json_1 = tslib_1.__importDefault(require("../package.json")); // eslint-disable-line
|
|
6
7
|
const client_sts_1 = require("@aws-sdk/client-sts");
|
|
7
8
|
const config_resolver_1 = require("@aws-sdk/config-resolver");
|
|
8
9
|
const credential_provider_node_1 = require("@aws-sdk/credential-provider-node");
|
|
@@ -43,4 +44,3 @@ const getRuntimeConfig = (config) => {
|
|
|
43
44
|
};
|
|
44
45
|
};
|
|
45
46
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
46
|
-
//# sourceMappingURL=runtimeConfig.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
|
-
const endpoints_1 = require("./endpoints");
|
|
5
4
|
const url_parser_1 = require("@aws-sdk/url-parser");
|
|
5
|
+
const endpoints_1 = require("./endpoints");
|
|
6
6
|
/**
|
|
7
7
|
* @internal
|
|
8
8
|
*/
|
|
@@ -18,4 +18,3 @@ const getRuntimeConfig = (config) => {
|
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
20
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
21
|
-
//# sourceMappingURL=runtimeConfig.shared.js.map
|
|
@@ -3,10 +3,7 @@ import { ApiGatewayManagementApiClient } from "./ApiGatewayManagementApiClient";
|
|
|
3
3
|
import { DeleteConnectionCommand, } from "./commands/DeleteConnectionCommand";
|
|
4
4
|
import { GetConnectionCommand, } from "./commands/GetConnectionCommand";
|
|
5
5
|
import { PostToConnectionCommand, } from "./commands/PostToConnectionCommand";
|
|
6
|
-
|
|
7
|
-
* <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>
|
|
8
|
-
*/
|
|
9
|
-
var ApiGatewayManagementApi = /** @class */ (function (_super) {
|
|
6
|
+
var ApiGatewayManagementApi = (function (_super) {
|
|
10
7
|
__extends(ApiGatewayManagementApi, _super);
|
|
11
8
|
function ApiGatewayManagementApi() {
|
|
12
9
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -56,4 +53,3 @@ var ApiGatewayManagementApi = /** @class */ (function (_super) {
|
|
|
56
53
|
return ApiGatewayManagementApi;
|
|
57
54
|
}(ApiGatewayManagementApiClient));
|
|
58
55
|
export { ApiGatewayManagementApi };
|
|
59
|
-
//# sourceMappingURL=ApiGatewayManagementApi.js.map
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
|
-
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
3
2
|
import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
|
|
4
3
|
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
|
|
5
4
|
import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
|
|
@@ -8,10 +7,8 @@ import { getRetryPlugin, resolveRetryConfig } from "@aws-sdk/middleware-retry";
|
|
|
8
7
|
import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-signing";
|
|
9
8
|
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
10
9
|
import { Client as __Client, } from "@aws-sdk/smithy-client";
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
*/
|
|
14
|
-
var ApiGatewayManagementApiClient = /** @class */ (function (_super) {
|
|
10
|
+
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
11
|
+
var ApiGatewayManagementApiClient = (function (_super) {
|
|
15
12
|
__extends(ApiGatewayManagementApiClient, _super);
|
|
16
13
|
function ApiGatewayManagementApiClient(configuration) {
|
|
17
14
|
var _this = this;
|
|
@@ -32,15 +29,9 @@ var ApiGatewayManagementApiClient = /** @class */ (function (_super) {
|
|
|
32
29
|
_this.middlewareStack.use(getUserAgentPlugin(_this.config));
|
|
33
30
|
return _this;
|
|
34
31
|
}
|
|
35
|
-
/**
|
|
36
|
-
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
37
|
-
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
38
|
-
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
39
|
-
*/
|
|
40
32
|
ApiGatewayManagementApiClient.prototype.destroy = function () {
|
|
41
33
|
_super.prototype.destroy.call(this);
|
|
42
34
|
};
|
|
43
35
|
return ApiGatewayManagementApiClient;
|
|
44
36
|
}(__Client));
|
|
45
37
|
export { ApiGatewayManagementApiClient };
|
|
46
|
-
//# sourceMappingURL=ApiGatewayManagementApiClient.js.map
|
|
@@ -1,40 +1,15 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
|
-
import { DeleteConnectionRequest } from "../models/models_0";
|
|
3
|
-
import { deserializeAws_restJson1DeleteConnectionCommand, serializeAws_restJson1DeleteConnectionCommand, } from "../protocols/Aws_restJson1";
|
|
4
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
5
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
10
|
-
* ```javascript
|
|
11
|
-
* import { ApiGatewayManagementApiClient, DeleteConnectionCommand } from "@aws-sdk/client-apigatewaymanagementapi"; // ES Modules import
|
|
12
|
-
* // const { ApiGatewayManagementApiClient, DeleteConnectionCommand } = require("@aws-sdk/client-apigatewaymanagementapi"); // CommonJS import
|
|
13
|
-
* const client = new ApiGatewayManagementApiClient(config);
|
|
14
|
-
* const command = new DeleteConnectionCommand(input);
|
|
15
|
-
* const response = await client.send(command);
|
|
16
|
-
* ```
|
|
17
|
-
*
|
|
18
|
-
* @see {@link DeleteConnectionCommandInput} for command's `input` shape.
|
|
19
|
-
* @see {@link DeleteConnectionCommandOutput} for command's `response` shape.
|
|
20
|
-
* @see {@link ApiGatewayManagementApiClientResolvedConfig | config} for command's `input` shape.
|
|
21
|
-
*
|
|
22
|
-
*/
|
|
23
|
-
var DeleteConnectionCommand = /** @class */ (function (_super) {
|
|
4
|
+
import { DeleteConnectionRequest } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1DeleteConnectionCommand, serializeAws_restJson1DeleteConnectionCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var DeleteConnectionCommand = (function (_super) {
|
|
24
7
|
__extends(DeleteConnectionCommand, _super);
|
|
25
|
-
// Start section: command_properties
|
|
26
|
-
// End section: command_properties
|
|
27
8
|
function DeleteConnectionCommand(input) {
|
|
28
|
-
var _this =
|
|
29
|
-
// Start section: command_constructor
|
|
30
|
-
_super.call(this) || this;
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
31
10
|
_this.input = input;
|
|
32
11
|
return _this;
|
|
33
|
-
// End section: command_constructor
|
|
34
12
|
}
|
|
35
|
-
/**
|
|
36
|
-
* @internal
|
|
37
|
-
*/
|
|
38
13
|
DeleteConnectionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
39
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
40
15
|
var stack = clientStack.concat(this.middlewareStack);
|
|
@@ -62,4 +37,3 @@ var DeleteConnectionCommand = /** @class */ (function (_super) {
|
|
|
62
37
|
return DeleteConnectionCommand;
|
|
63
38
|
}($Command));
|
|
64
39
|
export { DeleteConnectionCommand };
|
|
65
|
-
//# sourceMappingURL=DeleteConnectionCommand.js.map
|
|
@@ -1,40 +1,15 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
|
-
import { GetConnectionRequest, GetConnectionResponse } from "../models/models_0";
|
|
3
|
-
import { deserializeAws_restJson1GetConnectionCommand, serializeAws_restJson1GetConnectionCommand, } from "../protocols/Aws_restJson1";
|
|
4
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
5
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
10
|
-
* ```javascript
|
|
11
|
-
* import { ApiGatewayManagementApiClient, GetConnectionCommand } from "@aws-sdk/client-apigatewaymanagementapi"; // ES Modules import
|
|
12
|
-
* // const { ApiGatewayManagementApiClient, GetConnectionCommand } = require("@aws-sdk/client-apigatewaymanagementapi"); // CommonJS import
|
|
13
|
-
* const client = new ApiGatewayManagementApiClient(config);
|
|
14
|
-
* const command = new GetConnectionCommand(input);
|
|
15
|
-
* const response = await client.send(command);
|
|
16
|
-
* ```
|
|
17
|
-
*
|
|
18
|
-
* @see {@link GetConnectionCommandInput} for command's `input` shape.
|
|
19
|
-
* @see {@link GetConnectionCommandOutput} for command's `response` shape.
|
|
20
|
-
* @see {@link ApiGatewayManagementApiClientResolvedConfig | config} for command's `input` shape.
|
|
21
|
-
*
|
|
22
|
-
*/
|
|
23
|
-
var GetConnectionCommand = /** @class */ (function (_super) {
|
|
4
|
+
import { GetConnectionRequest, GetConnectionResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1GetConnectionCommand, serializeAws_restJson1GetConnectionCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var GetConnectionCommand = (function (_super) {
|
|
24
7
|
__extends(GetConnectionCommand, _super);
|
|
25
|
-
// Start section: command_properties
|
|
26
|
-
// End section: command_properties
|
|
27
8
|
function GetConnectionCommand(input) {
|
|
28
|
-
var _this =
|
|
29
|
-
// Start section: command_constructor
|
|
30
|
-
_super.call(this) || this;
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
31
10
|
_this.input = input;
|
|
32
11
|
return _this;
|
|
33
|
-
// End section: command_constructor
|
|
34
12
|
}
|
|
35
|
-
/**
|
|
36
|
-
* @internal
|
|
37
|
-
*/
|
|
38
13
|
GetConnectionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
39
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
40
15
|
var stack = clientStack.concat(this.middlewareStack);
|
|
@@ -62,4 +37,3 @@ var GetConnectionCommand = /** @class */ (function (_super) {
|
|
|
62
37
|
return GetConnectionCommand;
|
|
63
38
|
}($Command));
|
|
64
39
|
export { GetConnectionCommand };
|
|
65
|
-
//# sourceMappingURL=GetConnectionCommand.js.map
|
|
@@ -1,40 +1,15 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
|
-
import { PostToConnectionRequest } from "../models/models_0";
|
|
3
|
-
import { deserializeAws_restJson1PostToConnectionCommand, serializeAws_restJson1PostToConnectionCommand, } from "../protocols/Aws_restJson1";
|
|
4
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
5
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
10
|
-
* ```javascript
|
|
11
|
-
* import { ApiGatewayManagementApiClient, PostToConnectionCommand } from "@aws-sdk/client-apigatewaymanagementapi"; // ES Modules import
|
|
12
|
-
* // const { ApiGatewayManagementApiClient, PostToConnectionCommand } = require("@aws-sdk/client-apigatewaymanagementapi"); // CommonJS import
|
|
13
|
-
* const client = new ApiGatewayManagementApiClient(config);
|
|
14
|
-
* const command = new PostToConnectionCommand(input);
|
|
15
|
-
* const response = await client.send(command);
|
|
16
|
-
* ```
|
|
17
|
-
*
|
|
18
|
-
* @see {@link PostToConnectionCommandInput} for command's `input` shape.
|
|
19
|
-
* @see {@link PostToConnectionCommandOutput} for command's `response` shape.
|
|
20
|
-
* @see {@link ApiGatewayManagementApiClientResolvedConfig | config} for command's `input` shape.
|
|
21
|
-
*
|
|
22
|
-
*/
|
|
23
|
-
var PostToConnectionCommand = /** @class */ (function (_super) {
|
|
4
|
+
import { PostToConnectionRequest } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1PostToConnectionCommand, serializeAws_restJson1PostToConnectionCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var PostToConnectionCommand = (function (_super) {
|
|
24
7
|
__extends(PostToConnectionCommand, _super);
|
|
25
|
-
// Start section: command_properties
|
|
26
|
-
// End section: command_properties
|
|
27
8
|
function PostToConnectionCommand(input) {
|
|
28
|
-
var _this =
|
|
29
|
-
// Start section: command_constructor
|
|
30
|
-
_super.call(this) || this;
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
31
10
|
_this.input = input;
|
|
32
11
|
return _this;
|
|
33
|
-
// End section: command_constructor
|
|
34
12
|
}
|
|
35
|
-
/**
|
|
36
|
-
* @internal
|
|
37
|
-
*/
|
|
38
13
|
PostToConnectionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
39
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
40
15
|
var stack = clientStack.concat(this.middlewareStack);
|
|
@@ -62,4 +37,3 @@ var PostToConnectionCommand = /** @class */ (function (_super) {
|
|
|
62
37
|
return PostToConnectionCommand;
|
|
63
38
|
}($Command));
|
|
64
39
|
export { PostToConnectionCommand };
|
|
65
|
-
//# sourceMappingURL=PostToConnectionCommand.js.map
|
|
@@ -47,7 +47,6 @@ var partitionHash = {
|
|
|
47
47
|
};
|
|
48
48
|
export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {
|
|
49
49
|
return __generator(this, function (_a) {
|
|
50
|
-
return [2
|
|
50
|
+
return [2, getRegionInfo(region, __assign(__assign({}, options), { signingService: "execute-api", regionHash: regionHash, partitionHash: partitionHash }))];
|
|
51
51
|
});
|
|
52
52
|
}); };
|
|
53
|
-
//# sourceMappingURL=endpoints.js.map
|
|
File without changes
|
|
File without changes
|
|
@@ -1,65 +1,37 @@
|
|
|
1
1
|
import { __assign } from "tslib";
|
|
2
2
|
export var DeleteConnectionRequest;
|
|
3
3
|
(function (DeleteConnectionRequest) {
|
|
4
|
-
/**
|
|
5
|
-
* @internal
|
|
6
|
-
*/
|
|
7
4
|
DeleteConnectionRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
8
5
|
})(DeleteConnectionRequest || (DeleteConnectionRequest = {}));
|
|
9
6
|
export var ForbiddenException;
|
|
10
7
|
(function (ForbiddenException) {
|
|
11
|
-
/**
|
|
12
|
-
* @internal
|
|
13
|
-
*/
|
|
14
8
|
ForbiddenException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
15
9
|
})(ForbiddenException || (ForbiddenException = {}));
|
|
16
10
|
export var GoneException;
|
|
17
11
|
(function (GoneException) {
|
|
18
|
-
/**
|
|
19
|
-
* @internal
|
|
20
|
-
*/
|
|
21
12
|
GoneException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
22
13
|
})(GoneException || (GoneException = {}));
|
|
23
14
|
export var LimitExceededException;
|
|
24
15
|
(function (LimitExceededException) {
|
|
25
|
-
/**
|
|
26
|
-
* @internal
|
|
27
|
-
*/
|
|
28
16
|
LimitExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
29
17
|
})(LimitExceededException || (LimitExceededException = {}));
|
|
30
18
|
export var GetConnectionRequest;
|
|
31
19
|
(function (GetConnectionRequest) {
|
|
32
|
-
/**
|
|
33
|
-
* @internal
|
|
34
|
-
*/
|
|
35
20
|
GetConnectionRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
36
21
|
})(GetConnectionRequest || (GetConnectionRequest = {}));
|
|
37
22
|
export var Identity;
|
|
38
23
|
(function (Identity) {
|
|
39
|
-
/**
|
|
40
|
-
* @internal
|
|
41
|
-
*/
|
|
42
24
|
Identity.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
43
25
|
})(Identity || (Identity = {}));
|
|
44
26
|
export var GetConnectionResponse;
|
|
45
27
|
(function (GetConnectionResponse) {
|
|
46
|
-
/**
|
|
47
|
-
* @internal
|
|
48
|
-
*/
|
|
49
28
|
GetConnectionResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
50
29
|
})(GetConnectionResponse || (GetConnectionResponse = {}));
|
|
51
30
|
export var PayloadTooLargeException;
|
|
52
31
|
(function (PayloadTooLargeException) {
|
|
53
|
-
/**
|
|
54
|
-
* @internal
|
|
55
|
-
*/
|
|
56
32
|
PayloadTooLargeException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
57
33
|
})(PayloadTooLargeException || (PayloadTooLargeException = {}));
|
|
58
34
|
export var PostToConnectionRequest;
|
|
59
35
|
(function (PostToConnectionRequest) {
|
|
60
|
-
/**
|
|
61
|
-
* @internal
|
|
62
|
-
*/
|
|
63
36
|
PostToConnectionRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
64
37
|
})(PostToConnectionRequest || (PostToConnectionRequest = {}));
|
|
65
|
-
//# sourceMappingURL=models_0.js.map
|