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 | * Delete the connection with the provided id.
|
16 | */
|
17 | deleteConnection(params: ApiGatewayManagementApi.Types.DeleteConnectionRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
|
18 | |
19 |
|
20 |
|
21 | deleteConnection(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
|
22 | |
23 |
|
24 |
|
25 | getConnection(params: ApiGatewayManagementApi.Types.GetConnectionRequest, callback?: (err: AWSError, data: ApiGatewayManagementApi.Types.GetConnectionResponse) => void): Request<ApiGatewayManagementApi.Types.GetConnectionResponse, AWSError>;
|
26 | |
27 |
|
28 |
|
29 | getConnection(callback?: (err: AWSError, data: ApiGatewayManagementApi.Types.GetConnectionResponse) => void): Request<ApiGatewayManagementApi.Types.GetConnectionResponse, AWSError>;
|
30 | |
31 |
|
32 |
|
33 | postToConnection(params: ApiGatewayManagementApi.Types.PostToConnectionRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
|
34 | |
35 |
|
36 |
|
37 | postToConnection(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
|
38 | }
|
39 | declare namespace ApiGatewayManagementApi {
|
40 | export type Data = Buffer|Uint8Array|Blob|string;
|
41 | export interface DeleteConnectionRequest {
|
42 | ConnectionId: __string;
|
43 | }
|
44 | export interface GetConnectionRequest {
|
45 | ConnectionId: __string;
|
46 | }
|
47 | export interface GetConnectionResponse {
|
48 | |
49 |
|
50 |
|
51 | ConnectedAt?: __timestampIso8601;
|
52 | Identity?: Identity;
|
53 | |
54 |
|
55 |
|
56 | LastActiveAt?: __timestampIso8601;
|
57 | }
|
58 | export interface Identity {
|
59 | |
60 |
|
61 |
|
62 | SourceIp: __string;
|
63 | |
64 |
|
65 |
|
66 | UserAgent: __string;
|
67 | }
|
68 | export interface PostToConnectionRequest {
|
69 | |
70 |
|
71 |
|
72 | Data: Data;
|
73 | |
74 |
|
75 |
|
76 | ConnectionId: __string;
|
77 | }
|
78 | export type __string = string;
|
79 | export type __timestampIso8601 = Date;
|
80 | |
81 |
|
82 |
|
83 | export type apiVersion = "2018-11-29"|"latest"|string;
|
84 | export interface ClientApiVersions {
|
85 | |
86 |
|
87 |
|
88 | apiVersion?: apiVersion;
|
89 | }
|
90 | export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
|
91 | |
92 |
|
93 |
|
94 | export import Types = ApiGatewayManagementApi;
|
95 | }
|
96 | export = ApiGatewayManagementApi;
|