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 EC2InstanceConnect extends Service {
|
9 | |
10 |
|
11 |
|
12 | constructor(options?: EC2InstanceConnect.Types.ClientConfiguration)
|
13 | config: Config & EC2InstanceConnect.Types.ClientConfiguration;
|
14 | /**
|
15 | * Pushes an SSH public key to a particular OS user on a given EC2 instance for 60 seconds.
|
16 | */
|
17 | sendSSHPublicKey(params: EC2InstanceConnect.Types.SendSSHPublicKeyRequest, callback?: (err: AWSError, data: EC2InstanceConnect.Types.SendSSHPublicKeyResponse) => void): Request<EC2InstanceConnect.Types.SendSSHPublicKeyResponse, AWSError>;
|
18 | /**
|
19 | * Pushes an SSH public key to a particular OS user on a given EC2 instance for 60 seconds.
|
20 | */
|
21 | sendSSHPublicKey(callback?: (err: AWSError, data: EC2InstanceConnect.Types.SendSSHPublicKeyResponse) => void): Request<EC2InstanceConnect.Types.SendSSHPublicKeyResponse, AWSError>;
|
22 | }
|
23 | declare namespace EC2InstanceConnect {
|
24 | export type AvailabilityZone = string;
|
25 | export type InstanceId = string;
|
26 | export type InstanceOSUser = string;
|
27 | export type RequestId = string;
|
28 | export type SSHPublicKey = string;
|
29 | export interface SendSSHPublicKeyRequest {
|
30 | |
31 |
|
32 |
|
33 | InstanceId: InstanceId;
|
34 | |
35 |
|
36 |
|
37 | InstanceOSUser: InstanceOSUser;
|
38 | |
39 |
|
40 |
|
41 | SSHPublicKey: SSHPublicKey;
|
42 | |
43 |
|
44 |
|
45 | AvailabilityZone: AvailabilityZone;
|
46 | }
|
47 | export interface SendSSHPublicKeyResponse {
|
48 | |
49 |
|
50 |
|
51 | RequestId?: RequestId;
|
52 | |
53 |
|
54 |
|
55 | Success?: Success;
|
56 | }
|
57 | export type Success = boolean;
|
58 | |
59 |
|
60 |
|
61 | export type apiVersion = "2018-04-02"|"latest"|string;
|
62 | export interface ClientApiVersions {
|
63 | |
64 |
|
65 |
|
66 | apiVersion?: apiVersion;
|
67 | }
|
68 | export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
|
69 | |
70 |
|
71 |
|
72 | export import Types = EC2InstanceConnect;
|
73 | }
|
74 | export = EC2InstanceConnect;
|