@aws-sdk/client-apigatewaymanagementapi 3.35.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.
Files changed (78) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist-cjs/ApiGatewayManagementApi.js +0 -1
  3. package/dist-cjs/ApiGatewayManagementApiClient.js +0 -1
  4. package/dist-cjs/commands/DeleteConnectionCommand.js +0 -1
  5. package/dist-cjs/commands/GetConnectionCommand.js +0 -1
  6. package/dist-cjs/commands/PostToConnectionCommand.js +0 -1
  7. package/dist-cjs/endpoints.js +0 -1
  8. package/dist-cjs/index.js +0 -1
  9. package/dist-cjs/models/index.js +0 -1
  10. package/dist-cjs/models/models_0.js +0 -1
  11. package/dist-cjs/protocols/Aws_restJson1.js +0 -1
  12. package/dist-cjs/runtimeConfig.browser.js +2 -3
  13. package/dist-cjs/runtimeConfig.js +3 -4
  14. package/dist-cjs/runtimeConfig.native.js +0 -1
  15. package/dist-cjs/runtimeConfig.shared.js +0 -1
  16. package/dist-es/ApiGatewayManagementApi.js +0 -1
  17. package/dist-es/ApiGatewayManagementApiClient.js +0 -1
  18. package/dist-es/commands/DeleteConnectionCommand.js +0 -1
  19. package/dist-es/commands/GetConnectionCommand.js +0 -1
  20. package/dist-es/commands/PostToConnectionCommand.js +0 -1
  21. package/dist-es/endpoints.js +0 -1
  22. package/dist-es/index.js +0 -1
  23. package/dist-es/models/index.js +0 -1
  24. package/dist-es/models/models_0.js +0 -1
  25. package/dist-es/protocols/Aws_restJson1.js +0 -1
  26. package/dist-es/runtimeConfig.browser.js +1 -2
  27. package/dist-es/runtimeConfig.js +2 -3
  28. package/dist-es/runtimeConfig.native.js +0 -1
  29. package/dist-es/runtimeConfig.shared.js +0 -1
  30. package/dist-types/runtimeConfig.browser.d.ts +3 -0
  31. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -0
  32. package/package.json +33 -30
  33. package/dist-cjs/ApiGatewayManagementApi.js.map +0 -1
  34. package/dist-cjs/ApiGatewayManagementApiClient.js.map +0 -1
  35. package/dist-cjs/commands/DeleteConnectionCommand.js.map +0 -1
  36. package/dist-cjs/commands/GetConnectionCommand.js.map +0 -1
  37. package/dist-cjs/commands/PostToConnectionCommand.js.map +0 -1
  38. package/dist-cjs/endpoints.js.map +0 -1
  39. package/dist-cjs/index.js.map +0 -1
  40. package/dist-cjs/models/index.js.map +0 -1
  41. package/dist-cjs/models/models_0.js.map +0 -1
  42. package/dist-cjs/protocols/Aws_restJson1.js.map +0 -1
  43. package/dist-cjs/runtimeConfig.browser.js.map +0 -1
  44. package/dist-cjs/runtimeConfig.js.map +0 -1
  45. package/dist-cjs/runtimeConfig.native.js.map +0 -1
  46. package/dist-cjs/runtimeConfig.shared.js.map +0 -1
  47. package/dist-es/ApiGatewayManagementApi.js.map +0 -1
  48. package/dist-es/ApiGatewayManagementApiClient.js.map +0 -1
  49. package/dist-es/commands/DeleteConnectionCommand.js.map +0 -1
  50. package/dist-es/commands/GetConnectionCommand.js.map +0 -1
  51. package/dist-es/commands/PostToConnectionCommand.js.map +0 -1
  52. package/dist-es/endpoints.js.map +0 -1
  53. package/dist-es/index.js.map +0 -1
  54. package/dist-es/models/index.js.map +0 -1
  55. package/dist-es/models/models_0.js.map +0 -1
  56. package/dist-es/protocols/Aws_restJson1.js.map +0 -1
  57. package/dist-es/runtimeConfig.browser.js.map +0 -1
  58. package/dist-es/runtimeConfig.js.map +0 -1
  59. package/dist-es/runtimeConfig.native.js.map +0 -1
  60. package/dist-es/runtimeConfig.shared.js.map +0 -1
  61. package/jest.config.js +0 -4
  62. package/src/ApiGatewayManagementApi.ts +0 -119
  63. package/src/ApiGatewayManagementApiClient.ts +0 -242
  64. package/src/commands/DeleteConnectionCommand.ts +0 -99
  65. package/src/commands/GetConnectionCommand.ts +0 -99
  66. package/src/commands/PostToConnectionCommand.ts +0 -99
  67. package/src/endpoints.ts +0 -57
  68. package/src/index.ts +0 -6
  69. package/src/models/index.ts +0 -1
  70. package/src/models/models_0.ts +0 -160
  71. package/src/protocols/Aws_restJson1.ts +0 -469
  72. package/src/runtimeConfig.browser.ts +0 -41
  73. package/src/runtimeConfig.native.ts +0 -17
  74. package/src/runtimeConfig.shared.ts +0 -17
  75. package/src/runtimeConfig.ts +0 -46
  76. package/tsconfig.es.json +0 -10
  77. package/tsconfig.json +0 -33
  78. package/tsconfig.types.json +0 -9
@@ -1 +0,0 @@
1
- {"version":3,"file":"runtimeConfig.native.js","sourceRoot":"","sources":["../src/runtimeConfig.native.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAG/C,OAAO,EAAE,gBAAgB,IAAI,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AAKtF,MAAM,CAAC,IAAM,gBAAgB,GAAG,UAAC,MAA2C;;IAC1E,IAAM,eAAe,GAAG,uBAAuB,CAAC,MAAM,CAAC,CAAC;IACxD,sCACK,eAAe,GACf,MAAM,KACT,OAAO,EAAE,cAAc,EACvB,MAAM,EAAE,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,MAAM,mCAAI,MAAM,IAChC;AACJ,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"runtimeConfig.shared.js","sourceRoot":"","sources":["../src/runtimeConfig.shared.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAG/C,OAAO,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAC;AAKxD,MAAM,CAAC,IAAM,gBAAgB,GAAG,UAAC,MAA2C;;IAAK,OAAA,CAAC;QAChF,UAAU,EAAE,YAAY;QACxB,iBAAiB,EAAE,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,iBAAiB,mCAAI,KAAK;QACrD,MAAM,EAAE,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,MAAM,mCAAK,EAAe;QAC1C,kBAAkB,EAAE,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,kBAAkB,mCAAI,yBAAyB;QAC3E,SAAS,EAAE,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,SAAS,mCAAI,yBAAyB;QACzD,SAAS,EAAE,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,SAAS,mCAAI,QAAQ;KACzC,CAAC,CAAA;CAAA,CAAC"}
package/jest.config.js DELETED
@@ -1,4 +0,0 @@
1
- module.exports = {
2
- preset: "ts-jest",
3
- testMatch: ["**/*.spec.ts", "!**/*.browser.spec.ts", "!**/*.integ.spec.ts"],
4
- };
@@ -1,119 +0,0 @@
1
- import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
2
-
3
- import { ApiGatewayManagementApiClient } from "./ApiGatewayManagementApiClient";
4
- import {
5
- DeleteConnectionCommand,
6
- DeleteConnectionCommandInput,
7
- DeleteConnectionCommandOutput,
8
- } from "./commands/DeleteConnectionCommand";
9
- import {
10
- GetConnectionCommand,
11
- GetConnectionCommandInput,
12
- GetConnectionCommandOutput,
13
- } from "./commands/GetConnectionCommand";
14
- import {
15
- PostToConnectionCommand,
16
- PostToConnectionCommandInput,
17
- PostToConnectionCommandOutput,
18
- } from "./commands/PostToConnectionCommand";
19
-
20
- /**
21
- * <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>
22
- */
23
- export class ApiGatewayManagementApi extends ApiGatewayManagementApiClient {
24
- /**
25
- * <p>Delete the connection with the provided id.</p>
26
- */
27
- public deleteConnection(
28
- args: DeleteConnectionCommandInput,
29
- options?: __HttpHandlerOptions
30
- ): Promise<DeleteConnectionCommandOutput>;
31
- public deleteConnection(
32
- args: DeleteConnectionCommandInput,
33
- cb: (err: any, data?: DeleteConnectionCommandOutput) => void
34
- ): void;
35
- public deleteConnection(
36
- args: DeleteConnectionCommandInput,
37
- options: __HttpHandlerOptions,
38
- cb: (err: any, data?: DeleteConnectionCommandOutput) => void
39
- ): void;
40
- public deleteConnection(
41
- args: DeleteConnectionCommandInput,
42
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteConnectionCommandOutput) => void),
43
- cb?: (err: any, data?: DeleteConnectionCommandOutput) => void
44
- ): Promise<DeleteConnectionCommandOutput> | void {
45
- const command = new DeleteConnectionCommand(args);
46
- if (typeof optionsOrCb === "function") {
47
- this.send(command, optionsOrCb);
48
- } else if (typeof cb === "function") {
49
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
50
- this.send(command, optionsOrCb || {}, cb);
51
- } else {
52
- return this.send(command, optionsOrCb);
53
- }
54
- }
55
-
56
- /**
57
- * <p>Get information about the connection with the provided id.</p>
58
- */
59
- public getConnection(
60
- args: GetConnectionCommandInput,
61
- options?: __HttpHandlerOptions
62
- ): Promise<GetConnectionCommandOutput>;
63
- public getConnection(
64
- args: GetConnectionCommandInput,
65
- cb: (err: any, data?: GetConnectionCommandOutput) => void
66
- ): void;
67
- public getConnection(
68
- args: GetConnectionCommandInput,
69
- options: __HttpHandlerOptions,
70
- cb: (err: any, data?: GetConnectionCommandOutput) => void
71
- ): void;
72
- public getConnection(
73
- args: GetConnectionCommandInput,
74
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetConnectionCommandOutput) => void),
75
- cb?: (err: any, data?: GetConnectionCommandOutput) => void
76
- ): Promise<GetConnectionCommandOutput> | void {
77
- const command = new GetConnectionCommand(args);
78
- if (typeof optionsOrCb === "function") {
79
- this.send(command, optionsOrCb);
80
- } else if (typeof cb === "function") {
81
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
82
- this.send(command, optionsOrCb || {}, cb);
83
- } else {
84
- return this.send(command, optionsOrCb);
85
- }
86
- }
87
-
88
- /**
89
- * <p>Sends the provided data to the specified connection.</p>
90
- */
91
- public postToConnection(
92
- args: PostToConnectionCommandInput,
93
- options?: __HttpHandlerOptions
94
- ): Promise<PostToConnectionCommandOutput>;
95
- public postToConnection(
96
- args: PostToConnectionCommandInput,
97
- cb: (err: any, data?: PostToConnectionCommandOutput) => void
98
- ): void;
99
- public postToConnection(
100
- args: PostToConnectionCommandInput,
101
- options: __HttpHandlerOptions,
102
- cb: (err: any, data?: PostToConnectionCommandOutput) => void
103
- ): void;
104
- public postToConnection(
105
- args: PostToConnectionCommandInput,
106
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: PostToConnectionCommandOutput) => void),
107
- cb?: (err: any, data?: PostToConnectionCommandOutput) => void
108
- ): Promise<PostToConnectionCommandOutput> | void {
109
- const command = new PostToConnectionCommand(args);
110
- if (typeof optionsOrCb === "function") {
111
- this.send(command, optionsOrCb);
112
- } else if (typeof cb === "function") {
113
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
114
- this.send(command, optionsOrCb || {}, cb);
115
- } else {
116
- return this.send(command, optionsOrCb);
117
- }
118
- }
119
- }
@@ -1,242 +0,0 @@
1
- import {
2
- EndpointsInputConfig,
3
- EndpointsResolvedConfig,
4
- RegionInputConfig,
5
- RegionResolvedConfig,
6
- resolveEndpointsConfig,
7
- resolveRegionConfig,
8
- } from "@aws-sdk/config-resolver";
9
- import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
10
- import {
11
- getHostHeaderPlugin,
12
- HostHeaderInputConfig,
13
- HostHeaderResolvedConfig,
14
- resolveHostHeaderConfig,
15
- } from "@aws-sdk/middleware-host-header";
16
- import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
17
- import { getRetryPlugin, resolveRetryConfig, RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry";
18
- import {
19
- AwsAuthInputConfig,
20
- AwsAuthResolvedConfig,
21
- getAwsAuthPlugin,
22
- resolveAwsAuthConfig,
23
- } from "@aws-sdk/middleware-signing";
24
- import {
25
- getUserAgentPlugin,
26
- resolveUserAgentConfig,
27
- UserAgentInputConfig,
28
- UserAgentResolvedConfig,
29
- } from "@aws-sdk/middleware-user-agent";
30
- import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
31
- import {
32
- Client as __Client,
33
- SmithyConfiguration as __SmithyConfiguration,
34
- SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
35
- } from "@aws-sdk/smithy-client";
36
- import {
37
- Credentials as __Credentials,
38
- Decoder as __Decoder,
39
- Encoder as __Encoder,
40
- Hash as __Hash,
41
- HashConstructor as __HashConstructor,
42
- HttpHandlerOptions as __HttpHandlerOptions,
43
- Logger as __Logger,
44
- Provider as __Provider,
45
- Provider,
46
- RegionInfoProvider,
47
- StreamCollector as __StreamCollector,
48
- UrlParser as __UrlParser,
49
- UserAgent as __UserAgent,
50
- } from "@aws-sdk/types";
51
-
52
- import { DeleteConnectionCommandInput, DeleteConnectionCommandOutput } from "./commands/DeleteConnectionCommand";
53
- import { GetConnectionCommandInput, GetConnectionCommandOutput } from "./commands/GetConnectionCommand";
54
- import { PostToConnectionCommandInput, PostToConnectionCommandOutput } from "./commands/PostToConnectionCommand";
55
- import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
56
-
57
- export type ServiceInputTypes = DeleteConnectionCommandInput | GetConnectionCommandInput | PostToConnectionCommandInput;
58
-
59
- export type ServiceOutputTypes =
60
- | DeleteConnectionCommandOutput
61
- | GetConnectionCommandOutput
62
- | PostToConnectionCommandOutput;
63
-
64
- export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
65
- /**
66
- * The HTTP handler to use. Fetch in browser and Https in Nodejs.
67
- */
68
- requestHandler?: __HttpHandler;
69
-
70
- /**
71
- * A constructor for a class implementing the {@link __Hash} interface
72
- * that computes the SHA-256 HMAC or checksum of a string or binary buffer.
73
- * @internal
74
- */
75
- sha256?: __HashConstructor;
76
-
77
- /**
78
- * The function that will be used to convert strings into HTTP endpoints.
79
- * @internal
80
- */
81
- urlParser?: __UrlParser;
82
-
83
- /**
84
- * A function that can calculate the length of a request body.
85
- * @internal
86
- */
87
- bodyLengthChecker?: (body: any) => number | undefined;
88
-
89
- /**
90
- * A function that converts a stream into an array of bytes.
91
- * @internal
92
- */
93
- streamCollector?: __StreamCollector;
94
-
95
- /**
96
- * The function that will be used to convert a base64-encoded string to a byte array.
97
- * @internal
98
- */
99
- base64Decoder?: __Decoder;
100
-
101
- /**
102
- * The function that will be used to convert binary data to a base64-encoded string.
103
- * @internal
104
- */
105
- base64Encoder?: __Encoder;
106
-
107
- /**
108
- * The function that will be used to convert a UTF8-encoded string to a byte array.
109
- * @internal
110
- */
111
- utf8Decoder?: __Decoder;
112
-
113
- /**
114
- * The function that will be used to convert binary data to a UTF-8 encoded string.
115
- * @internal
116
- */
117
- utf8Encoder?: __Encoder;
118
-
119
- /**
120
- * The runtime environment.
121
- * @internal
122
- */
123
- runtime?: string;
124
-
125
- /**
126
- * Disable dyanamically changing the endpoint of the client based on the hostPrefix
127
- * trait of an operation.
128
- */
129
- disableHostPrefix?: boolean;
130
-
131
- /**
132
- * Value for how many times a request will be made at most in case of retry.
133
- */
134
- maxAttempts?: number | __Provider<number>;
135
-
136
- /**
137
- * Specifies which retry algorithm to use.
138
- */
139
- retryMode?: string | __Provider<string>;
140
-
141
- /**
142
- * Optional logger for logging debug/info/warn/error.
143
- */
144
- logger?: __Logger;
145
-
146
- /**
147
- * Unique service identifier.
148
- * @internal
149
- */
150
- serviceId?: string;
151
-
152
- /**
153
- * The AWS region to which this client will send requests
154
- */
155
- region?: string | __Provider<string>;
156
-
157
- /**
158
- * Default credentials provider; Not available in browser runtime.
159
- * @internal
160
- */
161
- credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
162
-
163
- /**
164
- * Fetch related hostname, signing name or signing region with given region.
165
- * @internal
166
- */
167
- regionInfoProvider?: RegionInfoProvider;
168
-
169
- /**
170
- * The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
171
- * @internal
172
- */
173
- defaultUserAgentProvider?: Provider<__UserAgent>;
174
- }
175
-
176
- type ApiGatewayManagementApiClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
177
- ClientDefaults &
178
- RegionInputConfig &
179
- EndpointsInputConfig &
180
- RetryInputConfig &
181
- HostHeaderInputConfig &
182
- AwsAuthInputConfig &
183
- UserAgentInputConfig;
184
- /**
185
- * The configuration interface of ApiGatewayManagementApiClient class constructor that set the region, credentials and other options.
186
- */
187
- export interface ApiGatewayManagementApiClientConfig extends ApiGatewayManagementApiClientConfigType {}
188
-
189
- type ApiGatewayManagementApiClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> &
190
- Required<ClientDefaults> &
191
- RegionResolvedConfig &
192
- EndpointsResolvedConfig &
193
- RetryResolvedConfig &
194
- HostHeaderResolvedConfig &
195
- AwsAuthResolvedConfig &
196
- UserAgentResolvedConfig;
197
- /**
198
- * The resolved configuration interface of ApiGatewayManagementApiClient class. This is resolved and normalized from the {@link ApiGatewayManagementApiClientConfig | constructor configuration interface}.
199
- */
200
- export interface ApiGatewayManagementApiClientResolvedConfig extends ApiGatewayManagementApiClientResolvedConfigType {}
201
-
202
- /**
203
- * <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>
204
- */
205
- export class ApiGatewayManagementApiClient extends __Client<
206
- __HttpHandlerOptions,
207
- ServiceInputTypes,
208
- ServiceOutputTypes,
209
- ApiGatewayManagementApiClientResolvedConfig
210
- > {
211
- /**
212
- * The resolved configuration of ApiGatewayManagementApiClient class. This is resolved and normalized from the {@link ApiGatewayManagementApiClientConfig | constructor configuration interface}.
213
- */
214
- readonly config: ApiGatewayManagementApiClientResolvedConfig;
215
-
216
- constructor(configuration: ApiGatewayManagementApiClientConfig) {
217
- const _config_0 = __getRuntimeConfig(configuration);
218
- const _config_1 = resolveRegionConfig(_config_0);
219
- const _config_2 = resolveEndpointsConfig(_config_1);
220
- const _config_3 = resolveRetryConfig(_config_2);
221
- const _config_4 = resolveHostHeaderConfig(_config_3);
222
- const _config_5 = resolveAwsAuthConfig(_config_4);
223
- const _config_6 = resolveUserAgentConfig(_config_5);
224
- super(_config_6);
225
- this.config = _config_6;
226
- this.middlewareStack.use(getRetryPlugin(this.config));
227
- this.middlewareStack.use(getContentLengthPlugin(this.config));
228
- this.middlewareStack.use(getHostHeaderPlugin(this.config));
229
- this.middlewareStack.use(getLoggerPlugin(this.config));
230
- this.middlewareStack.use(getAwsAuthPlugin(this.config));
231
- this.middlewareStack.use(getUserAgentPlugin(this.config));
232
- }
233
-
234
- /**
235
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
236
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
237
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
238
- */
239
- destroy(): void {
240
- super.destroy();
241
- }
242
- }
@@ -1,99 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import {
15
- ApiGatewayManagementApiClientResolvedConfig,
16
- ServiceInputTypes,
17
- ServiceOutputTypes,
18
- } from "../ApiGatewayManagementApiClient";
19
- import { DeleteConnectionRequest } from "../models/models_0";
20
- import {
21
- deserializeAws_restJson1DeleteConnectionCommand,
22
- serializeAws_restJson1DeleteConnectionCommand,
23
- } from "../protocols/Aws_restJson1";
24
-
25
- export interface DeleteConnectionCommandInput extends DeleteConnectionRequest {}
26
- export interface DeleteConnectionCommandOutput extends __MetadataBearer {}
27
-
28
- /**
29
- * <p>Delete the connection with the provided id.</p>
30
- * @example
31
- * Use a bare-bones client and the command you need to make an API call.
32
- * ```javascript
33
- * import { ApiGatewayManagementApiClient, DeleteConnectionCommand } from "@aws-sdk/client-apigatewaymanagementapi"; // ES Modules import
34
- * // const { ApiGatewayManagementApiClient, DeleteConnectionCommand } = require("@aws-sdk/client-apigatewaymanagementapi"); // CommonJS import
35
- * const client = new ApiGatewayManagementApiClient(config);
36
- * const command = new DeleteConnectionCommand(input);
37
- * const response = await client.send(command);
38
- * ```
39
- *
40
- * @see {@link DeleteConnectionCommandInput} for command's `input` shape.
41
- * @see {@link DeleteConnectionCommandOutput} for command's `response` shape.
42
- * @see {@link ApiGatewayManagementApiClientResolvedConfig | config} for command's `input` shape.
43
- *
44
- */
45
- export class DeleteConnectionCommand extends $Command<
46
- DeleteConnectionCommandInput,
47
- DeleteConnectionCommandOutput,
48
- ApiGatewayManagementApiClientResolvedConfig
49
- > {
50
- // Start section: command_properties
51
- // End section: command_properties
52
-
53
- constructor(readonly input: DeleteConnectionCommandInput) {
54
- // Start section: command_constructor
55
- super();
56
- // End section: command_constructor
57
- }
58
-
59
- /**
60
- * @internal
61
- */
62
- resolveMiddleware(
63
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
64
- configuration: ApiGatewayManagementApiClientResolvedConfig,
65
- options?: __HttpHandlerOptions
66
- ): Handler<DeleteConnectionCommandInput, DeleteConnectionCommandOutput> {
67
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
68
-
69
- const stack = clientStack.concat(this.middlewareStack);
70
-
71
- const { logger } = configuration;
72
- const clientName = "ApiGatewayManagementApiClient";
73
- const commandName = "DeleteConnectionCommand";
74
- const handlerExecutionContext: HandlerExecutionContext = {
75
- logger,
76
- clientName,
77
- commandName,
78
- inputFilterSensitiveLog: DeleteConnectionRequest.filterSensitiveLog,
79
- outputFilterSensitiveLog: (output: any) => output,
80
- };
81
- const { requestHandler } = configuration;
82
- return stack.resolve(
83
- (request: FinalizeHandlerArguments<any>) =>
84
- requestHandler.handle(request.request as __HttpRequest, options || {}),
85
- handlerExecutionContext
86
- );
87
- }
88
-
89
- private serialize(input: DeleteConnectionCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
90
- return serializeAws_restJson1DeleteConnectionCommand(input, context);
91
- }
92
-
93
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DeleteConnectionCommandOutput> {
94
- return deserializeAws_restJson1DeleteConnectionCommand(output, context);
95
- }
96
-
97
- // Start section: command_body_extra
98
- // End section: command_body_extra
99
- }
@@ -1,99 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import {
15
- ApiGatewayManagementApiClientResolvedConfig,
16
- ServiceInputTypes,
17
- ServiceOutputTypes,
18
- } from "../ApiGatewayManagementApiClient";
19
- import { GetConnectionRequest, GetConnectionResponse } from "../models/models_0";
20
- import {
21
- deserializeAws_restJson1GetConnectionCommand,
22
- serializeAws_restJson1GetConnectionCommand,
23
- } from "../protocols/Aws_restJson1";
24
-
25
- export interface GetConnectionCommandInput extends GetConnectionRequest {}
26
- export interface GetConnectionCommandOutput extends GetConnectionResponse, __MetadataBearer {}
27
-
28
- /**
29
- * <p>Get information about the connection with the provided id.</p>
30
- * @example
31
- * Use a bare-bones client and the command you need to make an API call.
32
- * ```javascript
33
- * import { ApiGatewayManagementApiClient, GetConnectionCommand } from "@aws-sdk/client-apigatewaymanagementapi"; // ES Modules import
34
- * // const { ApiGatewayManagementApiClient, GetConnectionCommand } = require("@aws-sdk/client-apigatewaymanagementapi"); // CommonJS import
35
- * const client = new ApiGatewayManagementApiClient(config);
36
- * const command = new GetConnectionCommand(input);
37
- * const response = await client.send(command);
38
- * ```
39
- *
40
- * @see {@link GetConnectionCommandInput} for command's `input` shape.
41
- * @see {@link GetConnectionCommandOutput} for command's `response` shape.
42
- * @see {@link ApiGatewayManagementApiClientResolvedConfig | config} for command's `input` shape.
43
- *
44
- */
45
- export class GetConnectionCommand extends $Command<
46
- GetConnectionCommandInput,
47
- GetConnectionCommandOutput,
48
- ApiGatewayManagementApiClientResolvedConfig
49
- > {
50
- // Start section: command_properties
51
- // End section: command_properties
52
-
53
- constructor(readonly input: GetConnectionCommandInput) {
54
- // Start section: command_constructor
55
- super();
56
- // End section: command_constructor
57
- }
58
-
59
- /**
60
- * @internal
61
- */
62
- resolveMiddleware(
63
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
64
- configuration: ApiGatewayManagementApiClientResolvedConfig,
65
- options?: __HttpHandlerOptions
66
- ): Handler<GetConnectionCommandInput, GetConnectionCommandOutput> {
67
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
68
-
69
- const stack = clientStack.concat(this.middlewareStack);
70
-
71
- const { logger } = configuration;
72
- const clientName = "ApiGatewayManagementApiClient";
73
- const commandName = "GetConnectionCommand";
74
- const handlerExecutionContext: HandlerExecutionContext = {
75
- logger,
76
- clientName,
77
- commandName,
78
- inputFilterSensitiveLog: GetConnectionRequest.filterSensitiveLog,
79
- outputFilterSensitiveLog: GetConnectionResponse.filterSensitiveLog,
80
- };
81
- const { requestHandler } = configuration;
82
- return stack.resolve(
83
- (request: FinalizeHandlerArguments<any>) =>
84
- requestHandler.handle(request.request as __HttpRequest, options || {}),
85
- handlerExecutionContext
86
- );
87
- }
88
-
89
- private serialize(input: GetConnectionCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
90
- return serializeAws_restJson1GetConnectionCommand(input, context);
91
- }
92
-
93
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<GetConnectionCommandOutput> {
94
- return deserializeAws_restJson1GetConnectionCommand(output, context);
95
- }
96
-
97
- // Start section: command_body_extra
98
- // End section: command_body_extra
99
- }
@@ -1,99 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import {
15
- ApiGatewayManagementApiClientResolvedConfig,
16
- ServiceInputTypes,
17
- ServiceOutputTypes,
18
- } from "../ApiGatewayManagementApiClient";
19
- import { PostToConnectionRequest } from "../models/models_0";
20
- import {
21
- deserializeAws_restJson1PostToConnectionCommand,
22
- serializeAws_restJson1PostToConnectionCommand,
23
- } from "../protocols/Aws_restJson1";
24
-
25
- export interface PostToConnectionCommandInput extends PostToConnectionRequest {}
26
- export interface PostToConnectionCommandOutput extends __MetadataBearer {}
27
-
28
- /**
29
- * <p>Sends the provided data to the specified connection.</p>
30
- * @example
31
- * Use a bare-bones client and the command you need to make an API call.
32
- * ```javascript
33
- * import { ApiGatewayManagementApiClient, PostToConnectionCommand } from "@aws-sdk/client-apigatewaymanagementapi"; // ES Modules import
34
- * // const { ApiGatewayManagementApiClient, PostToConnectionCommand } = require("@aws-sdk/client-apigatewaymanagementapi"); // CommonJS import
35
- * const client = new ApiGatewayManagementApiClient(config);
36
- * const command = new PostToConnectionCommand(input);
37
- * const response = await client.send(command);
38
- * ```
39
- *
40
- * @see {@link PostToConnectionCommandInput} for command's `input` shape.
41
- * @see {@link PostToConnectionCommandOutput} for command's `response` shape.
42
- * @see {@link ApiGatewayManagementApiClientResolvedConfig | config} for command's `input` shape.
43
- *
44
- */
45
- export class PostToConnectionCommand extends $Command<
46
- PostToConnectionCommandInput,
47
- PostToConnectionCommandOutput,
48
- ApiGatewayManagementApiClientResolvedConfig
49
- > {
50
- // Start section: command_properties
51
- // End section: command_properties
52
-
53
- constructor(readonly input: PostToConnectionCommandInput) {
54
- // Start section: command_constructor
55
- super();
56
- // End section: command_constructor
57
- }
58
-
59
- /**
60
- * @internal
61
- */
62
- resolveMiddleware(
63
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
64
- configuration: ApiGatewayManagementApiClientResolvedConfig,
65
- options?: __HttpHandlerOptions
66
- ): Handler<PostToConnectionCommandInput, PostToConnectionCommandOutput> {
67
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
68
-
69
- const stack = clientStack.concat(this.middlewareStack);
70
-
71
- const { logger } = configuration;
72
- const clientName = "ApiGatewayManagementApiClient";
73
- const commandName = "PostToConnectionCommand";
74
- const handlerExecutionContext: HandlerExecutionContext = {
75
- logger,
76
- clientName,
77
- commandName,
78
- inputFilterSensitiveLog: PostToConnectionRequest.filterSensitiveLog,
79
- outputFilterSensitiveLog: (output: any) => output,
80
- };
81
- const { requestHandler } = configuration;
82
- return stack.resolve(
83
- (request: FinalizeHandlerArguments<any>) =>
84
- requestHandler.handle(request.request as __HttpRequest, options || {}),
85
- handlerExecutionContext
86
- );
87
- }
88
-
89
- private serialize(input: PostToConnectionCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
90
- return serializeAws_restJson1PostToConnectionCommand(input, context);
91
- }
92
-
93
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<PostToConnectionCommandOutput> {
94
- return deserializeAws_restJson1PostToConnectionCommand(output, context);
95
- }
96
-
97
- // Start section: command_body_extra
98
- // End section: command_body_extra
99
- }