1 | import {Request} from '../lib/request';
|
2 | import {Response} from '../lib/response';
|
3 | import {AWSError} from '../lib/error';
|
4 | import {Service} from '../lib/service';
|
5 | import {ServiceConfigurationOptions} from '../lib/service';
|
6 | import {ConfigBase as Config} from '../lib/config';
|
7 | interface Blob {}
|
8 | declare class ApiGatewayManagementApi extends Service {
|
9 | |
10 |
|
11 |
|
12 | constructor(options?: ApiGatewayManagementApi.Types.ClientConfiguration)
|
13 | config: Config & ApiGatewayManagementApi.Types.ClientConfiguration;
|
14 | /**
|
15 | * Sends the provided data to the specified connection.
|
16 | */
|
17 | postToConnection(params: ApiGatewayManagementApi.Types.PostToConnectionRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
|
18 | |
19 |
|
20 |
|
21 | postToConnection(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
|
22 | }
|
23 | declare namespace ApiGatewayManagementApi {
|
24 | export type Data = Buffer|Uint8Array|Blob|string;
|
25 | export interface PostToConnectionRequest {
|
26 | |
27 |
|
28 |
|
29 | Data: Data;
|
30 | |
31 |
|
32 |
|
33 | ConnectionId: __string;
|
34 | }
|
35 | export type __string = string;
|
36 | |
37 |
|
38 |
|
39 | export type apiVersion = "2018-11-29"|"latest"|string;
|
40 | export interface ClientApiVersions {
|
41 | |
42 |
|
43 |
|
44 | apiVersion?: apiVersion;
|
45 | }
|
46 | export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
|
47 | |
48 |
|
49 |
|
50 | export import Types = ApiGatewayManagementApi;
|
51 | }
|
52 | export = ApiGatewayManagementApi;
|