@aws-sdk/client-ec2-instance-connect 3.50.0 → 3.53.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 (28) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist-cjs/index.js +3 -0
  3. package/dist-cjs/models/EC2InstanceConnectServiceException.js +11 -0
  4. package/dist-cjs/models/models_0.js +142 -1
  5. package/dist-cjs/protocols/Aws_json1_1.js +56 -166
  6. package/dist-es/index.js +1 -0
  7. package/dist-es/models/EC2InstanceConnectServiceException.js +12 -0
  8. package/dist-es/models/models_0.js +132 -1
  9. package/dist-es/protocols/Aws_json1_1.js +89 -155
  10. package/dist-types/index.d.ts +1 -0
  11. package/dist-types/models/EC2InstanceConnectServiceException.d.ts +10 -0
  12. package/dist-types/models/models_0.d.ts +72 -31
  13. package/dist-types/ts3.4/EC2InstanceConnect.d.ts +15 -0
  14. package/dist-types/ts3.4/EC2InstanceConnectClient.d.ts +75 -0
  15. package/dist-types/ts3.4/commands/SendSSHPublicKeyCommand.d.ts +17 -0
  16. package/dist-types/ts3.4/commands/SendSerialConsoleSSHPublicKeyCommand.d.ts +17 -0
  17. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  18. package/dist-types/ts3.4/endpoints.d.ts +2 -0
  19. package/dist-types/ts3.4/index.d.ts +5 -0
  20. package/dist-types/ts3.4/models/EC2InstanceConnectServiceException.d.ts +6 -0
  21. package/dist-types/ts3.4/models/index.d.ts +1 -0
  22. package/dist-types/ts3.4/models/models_0.d.ts +128 -0
  23. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +8 -0
  24. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +38 -0
  25. package/dist-types/ts3.4/runtimeConfig.d.ts +38 -0
  26. package/dist-types/ts3.4/runtimeConfig.native.d.ts +37 -0
  27. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +11 -0
  28. package/package.json +33 -33
@@ -1,46 +1,67 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
+ import { EC2InstanceConnectServiceException as __BaseException } from "./EC2InstanceConnectServiceException";
2
3
  /**
3
4
  * <p>Either your AWS credentials are not valid or you do not have access to the EC2 instance.</p>
4
5
  */
5
- export interface AuthException extends __SmithyException, $MetadataBearer {
6
- name: "AuthException";
7
- $fault: "client";
6
+ export declare class AuthException extends __BaseException {
7
+ readonly name: "AuthException";
8
+ readonly $fault: "client";
8
9
  Message?: string;
10
+ /**
11
+ * @internal
12
+ */
13
+ constructor(opts: __ExceptionOptionType<AuthException, __BaseException>);
9
14
  }
10
15
  /**
11
16
  * <p>The specified instance was not found.</p>
12
17
  */
13
- export interface EC2InstanceNotFoundException extends __SmithyException, $MetadataBearer {
14
- name: "EC2InstanceNotFoundException";
15
- $fault: "client";
18
+ export declare class EC2InstanceNotFoundException extends __BaseException {
19
+ readonly name: "EC2InstanceNotFoundException";
20
+ readonly $fault: "client";
16
21
  Message?: string;
22
+ /**
23
+ * @internal
24
+ */
25
+ constructor(opts: __ExceptionOptionType<EC2InstanceNotFoundException, __BaseException>);
17
26
  }
18
27
  /**
19
28
  * <p>Unable to connect because the instance is not in a valid state.
20
29
  * Connecting to a stopped or terminated instance is not supported. If the instance is stopped,
21
30
  * start your instance, and try to connect again.</p>
22
31
  */
23
- export interface EC2InstanceStateInvalidException extends __SmithyException, $MetadataBearer {
24
- name: "EC2InstanceStateInvalidException";
25
- $fault: "client";
32
+ export declare class EC2InstanceStateInvalidException extends __BaseException {
33
+ readonly name: "EC2InstanceStateInvalidException";
34
+ readonly $fault: "client";
26
35
  Message?: string;
36
+ /**
37
+ * @internal
38
+ */
39
+ constructor(opts: __ExceptionOptionType<EC2InstanceStateInvalidException, __BaseException>);
27
40
  }
28
41
  /**
29
42
  * <p>The instance type is not supported for connecting via the serial console. Only Nitro
30
43
  * instance types are currently supported.</p>
31
44
  */
32
- export interface EC2InstanceTypeInvalidException extends __SmithyException, $MetadataBearer {
33
- name: "EC2InstanceTypeInvalidException";
34
- $fault: "client";
45
+ export declare class EC2InstanceTypeInvalidException extends __BaseException {
46
+ readonly name: "EC2InstanceTypeInvalidException";
47
+ readonly $fault: "client";
35
48
  Message?: string;
49
+ /**
50
+ * @internal
51
+ */
52
+ constructor(opts: __ExceptionOptionType<EC2InstanceTypeInvalidException, __BaseException>);
36
53
  }
37
54
  /**
38
55
  * <p>One of the parameters is not valid.</p>
39
56
  */
40
- export interface InvalidArgsException extends __SmithyException, $MetadataBearer {
41
- name: "InvalidArgsException";
42
- $fault: "client";
57
+ export declare class InvalidArgsException extends __BaseException {
58
+ readonly name: "InvalidArgsException";
59
+ readonly $fault: "client";
43
60
  Message?: string;
61
+ /**
62
+ * @internal
63
+ */
64
+ constructor(opts: __ExceptionOptionType<InvalidArgsException, __BaseException>);
44
65
  }
45
66
  export interface SendSerialConsoleSSHPublicKeyRequest {
46
67
  /**
@@ -86,43 +107,63 @@ export declare namespace SendSerialConsoleSSHPublicKeyResponse {
86
107
  * account, run the EnableSerialConsoleAccess API. For more information, see
87
108
  * <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_EnableSerialConsoleAccess.html">EnableSerialConsoleAccess</a> in the <i>Amazon EC2 API Reference</i>.</p>
88
109
  */
89
- export interface SerialConsoleAccessDisabledException extends __SmithyException, $MetadataBearer {
90
- name: "SerialConsoleAccessDisabledException";
91
- $fault: "client";
110
+ export declare class SerialConsoleAccessDisabledException extends __BaseException {
111
+ readonly name: "SerialConsoleAccessDisabledException";
112
+ readonly $fault: "client";
92
113
  Message?: string;
114
+ /**
115
+ * @internal
116
+ */
117
+ constructor(opts: __ExceptionOptionType<SerialConsoleAccessDisabledException, __BaseException>);
93
118
  }
94
119
  /**
95
120
  * <p>The instance currently has 1 active serial console session. Only 1 session is supported at a time.</p>
96
121
  */
97
- export interface SerialConsoleSessionLimitExceededException extends __SmithyException, $MetadataBearer {
98
- name: "SerialConsoleSessionLimitExceededException";
99
- $fault: "client";
122
+ export declare class SerialConsoleSessionLimitExceededException extends __BaseException {
123
+ readonly name: "SerialConsoleSessionLimitExceededException";
124
+ readonly $fault: "client";
100
125
  Message?: string;
126
+ /**
127
+ * @internal
128
+ */
129
+ constructor(opts: __ExceptionOptionType<SerialConsoleSessionLimitExceededException, __BaseException>);
101
130
  }
102
131
  /**
103
132
  * <p>Unable to start a serial console session. Please try again.</p>
104
133
  */
105
- export interface SerialConsoleSessionUnavailableException extends __SmithyException, $MetadataBearer {
106
- name: "SerialConsoleSessionUnavailableException";
107
- $fault: "server";
134
+ export declare class SerialConsoleSessionUnavailableException extends __BaseException {
135
+ readonly name: "SerialConsoleSessionUnavailableException";
136
+ readonly $fault: "server";
108
137
  Message?: string;
138
+ /**
139
+ * @internal
140
+ */
141
+ constructor(opts: __ExceptionOptionType<SerialConsoleSessionUnavailableException, __BaseException>);
109
142
  }
110
143
  /**
111
144
  * <p>The service encountered an error. Follow the instructions in the error message and try again.</p>
112
145
  */
113
- export interface ServiceException extends __SmithyException, $MetadataBearer {
114
- name: "ServiceException";
115
- $fault: "server";
146
+ export declare class ServiceException extends __BaseException {
147
+ readonly name: "ServiceException";
148
+ readonly $fault: "server";
116
149
  Message?: string;
150
+ /**
151
+ * @internal
152
+ */
153
+ constructor(opts: __ExceptionOptionType<ServiceException, __BaseException>);
117
154
  }
118
155
  /**
119
156
  * <p>The requests were made too frequently and have been throttled. Wait a while and try again.
120
157
  * To increase the limit on your request frequency, contact AWS Support.</p>
121
158
  */
122
- export interface ThrottlingException extends __SmithyException, $MetadataBearer {
123
- name: "ThrottlingException";
124
- $fault: "client";
159
+ export declare class ThrottlingException extends __BaseException {
160
+ readonly name: "ThrottlingException";
161
+ readonly $fault: "client";
125
162
  Message?: string;
163
+ /**
164
+ * @internal
165
+ */
166
+ constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
126
167
  }
127
168
  export interface SendSSHPublicKeyRequest {
128
169
  /**
@@ -0,0 +1,15 @@
1
+ import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
2
+ import { SendSerialConsoleSSHPublicKeyCommandInput, SendSerialConsoleSSHPublicKeyCommandOutput } from "./commands/SendSerialConsoleSSHPublicKeyCommand";
3
+ import { SendSSHPublicKeyCommandInput, SendSSHPublicKeyCommandOutput } from "./commands/SendSSHPublicKeyCommand";
4
+ import { EC2InstanceConnectClient } from "./EC2InstanceConnectClient";
5
+
6
+ export declare class EC2InstanceConnect extends EC2InstanceConnectClient {
7
+
8
+ sendSerialConsoleSSHPublicKey(args: SendSerialConsoleSSHPublicKeyCommandInput, options?: __HttpHandlerOptions): Promise<SendSerialConsoleSSHPublicKeyCommandOutput>;
9
+ sendSerialConsoleSSHPublicKey(args: SendSerialConsoleSSHPublicKeyCommandInput, cb: (err: any, data?: SendSerialConsoleSSHPublicKeyCommandOutput) => void): void;
10
+ sendSerialConsoleSSHPublicKey(args: SendSerialConsoleSSHPublicKeyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SendSerialConsoleSSHPublicKeyCommandOutput) => void): void;
11
+
12
+ sendSSHPublicKey(args: SendSSHPublicKeyCommandInput, options?: __HttpHandlerOptions): Promise<SendSSHPublicKeyCommandOutput>;
13
+ sendSSHPublicKey(args: SendSSHPublicKeyCommandInput, cb: (err: any, data?: SendSSHPublicKeyCommandOutput) => void): void;
14
+ sendSSHPublicKey(args: SendSSHPublicKeyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SendSSHPublicKeyCommandOutput) => void): void;
15
+ }
@@ -0,0 +1,75 @@
1
+ import { EndpointsInputConfig, EndpointsResolvedConfig, RegionInputConfig, RegionResolvedConfig } from "@aws-sdk/config-resolver";
2
+ import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
3
+ import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry";
4
+ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
5
+ import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
6
+ import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
7
+ import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
8
+ import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
9
+ import { SendSerialConsoleSSHPublicKeyCommandInput, SendSerialConsoleSSHPublicKeyCommandOutput } from "./commands/SendSerialConsoleSSHPublicKeyCommand";
10
+ import { SendSSHPublicKeyCommandInput, SendSSHPublicKeyCommandOutput } from "./commands/SendSSHPublicKeyCommand";
11
+ export declare type ServiceInputTypes = SendSSHPublicKeyCommandInput | SendSerialConsoleSSHPublicKeyCommandInput;
12
+ export declare type ServiceOutputTypes = SendSSHPublicKeyCommandOutput | SendSerialConsoleSSHPublicKeyCommandOutput;
13
+ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
14
+
15
+ requestHandler?: __HttpHandler;
16
+
17
+ sha256?: __HashConstructor;
18
+
19
+ urlParser?: __UrlParser;
20
+
21
+ bodyLengthChecker?: (body: any) => number | undefined;
22
+
23
+ streamCollector?: __StreamCollector;
24
+
25
+ base64Decoder?: __Decoder;
26
+
27
+ base64Encoder?: __Encoder;
28
+
29
+ utf8Decoder?: __Decoder;
30
+
31
+ utf8Encoder?: __Encoder;
32
+
33
+ runtime?: string;
34
+
35
+ disableHostPrefix?: boolean;
36
+
37
+ maxAttempts?: number | __Provider<number>;
38
+
39
+ retryMode?: string | __Provider<string>;
40
+
41
+ logger?: __Logger;
42
+
43
+ useDualstackEndpoint?: boolean | __Provider<boolean>;
44
+
45
+ useFipsEndpoint?: boolean | __Provider<boolean>;
46
+
47
+ serviceId?: string;
48
+
49
+ region?: string | __Provider<string>;
50
+
51
+ credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
52
+
53
+ regionInfoProvider?: RegionInfoProvider;
54
+
55
+ defaultUserAgentProvider?: Provider<__UserAgent>;
56
+
57
+ defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
58
+ }
59
+ declare type EC2InstanceConnectClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
60
+
61
+ export interface EC2InstanceConnectClientConfig extends EC2InstanceConnectClientConfigType {
62
+ }
63
+ declare type EC2InstanceConnectClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RegionResolvedConfig & EndpointsResolvedConfig & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & UserAgentResolvedConfig;
64
+
65
+ export interface EC2InstanceConnectClientResolvedConfig extends EC2InstanceConnectClientResolvedConfigType {
66
+ }
67
+
68
+ export declare class EC2InstanceConnectClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, EC2InstanceConnectClientResolvedConfig> {
69
+
70
+ readonly config: EC2InstanceConnectClientResolvedConfig;
71
+ constructor(configuration: EC2InstanceConnectClientConfig);
72
+
73
+ destroy(): void;
74
+ }
75
+ export {};
@@ -0,0 +1,17 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { EC2InstanceConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2InstanceConnectClient";
4
+ import { SendSSHPublicKeyRequest, SendSSHPublicKeyResponse } from "../models/models_0";
5
+ export interface SendSSHPublicKeyCommandInput extends SendSSHPublicKeyRequest {
6
+ }
7
+ export interface SendSSHPublicKeyCommandOutput extends SendSSHPublicKeyResponse, __MetadataBearer {
8
+ }
9
+
10
+ export declare class SendSSHPublicKeyCommand extends $Command<SendSSHPublicKeyCommandInput, SendSSHPublicKeyCommandOutput, EC2InstanceConnectClientResolvedConfig> {
11
+ readonly input: SendSSHPublicKeyCommandInput;
12
+ constructor(input: SendSSHPublicKeyCommandInput);
13
+
14
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: EC2InstanceConnectClientResolvedConfig, options?: __HttpHandlerOptions): Handler<SendSSHPublicKeyCommandInput, SendSSHPublicKeyCommandOutput>;
15
+ private serialize;
16
+ private deserialize;
17
+ }
@@ -0,0 +1,17 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { EC2InstanceConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2InstanceConnectClient";
4
+ import { SendSerialConsoleSSHPublicKeyRequest, SendSerialConsoleSSHPublicKeyResponse } from "../models/models_0";
5
+ export interface SendSerialConsoleSSHPublicKeyCommandInput extends SendSerialConsoleSSHPublicKeyRequest {
6
+ }
7
+ export interface SendSerialConsoleSSHPublicKeyCommandOutput extends SendSerialConsoleSSHPublicKeyResponse, __MetadataBearer {
8
+ }
9
+
10
+ export declare class SendSerialConsoleSSHPublicKeyCommand extends $Command<SendSerialConsoleSSHPublicKeyCommandInput, SendSerialConsoleSSHPublicKeyCommandOutput, EC2InstanceConnectClientResolvedConfig> {
11
+ readonly input: SendSerialConsoleSSHPublicKeyCommandInput;
12
+ constructor(input: SendSerialConsoleSSHPublicKeyCommandInput);
13
+
14
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: EC2InstanceConnectClientResolvedConfig, options?: __HttpHandlerOptions): Handler<SendSerialConsoleSSHPublicKeyCommandInput, SendSerialConsoleSSHPublicKeyCommandOutput>;
15
+ private serialize;
16
+ private deserialize;
17
+ }
@@ -0,0 +1,2 @@
1
+ export * from "./SendSSHPublicKeyCommand";
2
+ export * from "./SendSerialConsoleSSHPublicKeyCommand";
@@ -0,0 +1,2 @@
1
+ import { RegionInfoProvider } from "@aws-sdk/types";
2
+ export declare const defaultRegionInfoProvider: RegionInfoProvider;
@@ -0,0 +1,5 @@
1
+ export * from "./EC2InstanceConnect";
2
+ export * from "./EC2InstanceConnectClient";
3
+ export * from "./commands";
4
+ export * from "./models";
5
+ export { EC2InstanceConnectServiceException } from "./models/EC2InstanceConnectServiceException";
@@ -0,0 +1,6 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
+
3
+ export declare class EC2InstanceConnectServiceException extends __ServiceException {
4
+
5
+ constructor(options: __ServiceExceptionOptions);
6
+ }
@@ -0,0 +1 @@
1
+ export * from "./models_0";
@@ -0,0 +1,128 @@
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
+ import { EC2InstanceConnectServiceException as __BaseException } from "./EC2InstanceConnectServiceException";
3
+
4
+ export declare class AuthException extends __BaseException {
5
+ readonly name: "AuthException";
6
+ readonly $fault: "client";
7
+ Message?: string;
8
+
9
+ constructor(opts: __ExceptionOptionType<AuthException, __BaseException>);
10
+ }
11
+
12
+ export declare class EC2InstanceNotFoundException extends __BaseException {
13
+ readonly name: "EC2InstanceNotFoundException";
14
+ readonly $fault: "client";
15
+ Message?: string;
16
+
17
+ constructor(opts: __ExceptionOptionType<EC2InstanceNotFoundException, __BaseException>);
18
+ }
19
+
20
+ export declare class EC2InstanceStateInvalidException extends __BaseException {
21
+ readonly name: "EC2InstanceStateInvalidException";
22
+ readonly $fault: "client";
23
+ Message?: string;
24
+
25
+ constructor(opts: __ExceptionOptionType<EC2InstanceStateInvalidException, __BaseException>);
26
+ }
27
+
28
+ export declare class EC2InstanceTypeInvalidException extends __BaseException {
29
+ readonly name: "EC2InstanceTypeInvalidException";
30
+ readonly $fault: "client";
31
+ Message?: string;
32
+
33
+ constructor(opts: __ExceptionOptionType<EC2InstanceTypeInvalidException, __BaseException>);
34
+ }
35
+
36
+ export declare class InvalidArgsException extends __BaseException {
37
+ readonly name: "InvalidArgsException";
38
+ readonly $fault: "client";
39
+ Message?: string;
40
+
41
+ constructor(opts: __ExceptionOptionType<InvalidArgsException, __BaseException>);
42
+ }
43
+ export interface SendSerialConsoleSSHPublicKeyRequest {
44
+
45
+ InstanceId: string | undefined;
46
+
47
+ SerialPort?: number;
48
+
49
+ SSHPublicKey: string | undefined;
50
+ }
51
+ export declare namespace SendSerialConsoleSSHPublicKeyRequest {
52
+
53
+ const filterSensitiveLog: (obj: SendSerialConsoleSSHPublicKeyRequest) => any;
54
+ }
55
+ export interface SendSerialConsoleSSHPublicKeyResponse {
56
+
57
+ RequestId?: string;
58
+
59
+ Success?: boolean;
60
+ }
61
+ export declare namespace SendSerialConsoleSSHPublicKeyResponse {
62
+
63
+ const filterSensitiveLog: (obj: SendSerialConsoleSSHPublicKeyResponse) => any;
64
+ }
65
+
66
+ export declare class SerialConsoleAccessDisabledException extends __BaseException {
67
+ readonly name: "SerialConsoleAccessDisabledException";
68
+ readonly $fault: "client";
69
+ Message?: string;
70
+
71
+ constructor(opts: __ExceptionOptionType<SerialConsoleAccessDisabledException, __BaseException>);
72
+ }
73
+
74
+ export declare class SerialConsoleSessionLimitExceededException extends __BaseException {
75
+ readonly name: "SerialConsoleSessionLimitExceededException";
76
+ readonly $fault: "client";
77
+ Message?: string;
78
+
79
+ constructor(opts: __ExceptionOptionType<SerialConsoleSessionLimitExceededException, __BaseException>);
80
+ }
81
+
82
+ export declare class SerialConsoleSessionUnavailableException extends __BaseException {
83
+ readonly name: "SerialConsoleSessionUnavailableException";
84
+ readonly $fault: "server";
85
+ Message?: string;
86
+
87
+ constructor(opts: __ExceptionOptionType<SerialConsoleSessionUnavailableException, __BaseException>);
88
+ }
89
+
90
+ export declare class ServiceException extends __BaseException {
91
+ readonly name: "ServiceException";
92
+ readonly $fault: "server";
93
+ Message?: string;
94
+
95
+ constructor(opts: __ExceptionOptionType<ServiceException, __BaseException>);
96
+ }
97
+
98
+ export declare class ThrottlingException extends __BaseException {
99
+ readonly name: "ThrottlingException";
100
+ readonly $fault: "client";
101
+ Message?: string;
102
+
103
+ constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
104
+ }
105
+ export interface SendSSHPublicKeyRequest {
106
+
107
+ InstanceId: string | undefined;
108
+
109
+ InstanceOSUser: string | undefined;
110
+
111
+ SSHPublicKey: string | undefined;
112
+
113
+ AvailabilityZone?: string;
114
+ }
115
+ export declare namespace SendSSHPublicKeyRequest {
116
+
117
+ const filterSensitiveLog: (obj: SendSSHPublicKeyRequest) => any;
118
+ }
119
+ export interface SendSSHPublicKeyResponse {
120
+
121
+ RequestId?: string;
122
+
123
+ Success?: boolean;
124
+ }
125
+ export declare namespace SendSSHPublicKeyResponse {
126
+
127
+ const filterSensitiveLog: (obj: SendSSHPublicKeyResponse) => any;
128
+ }
@@ -0,0 +1,8 @@
1
+ import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
2
+ import { SerdeContext as __SerdeContext } from "@aws-sdk/types";
3
+ import { SendSerialConsoleSSHPublicKeyCommandInput, SendSerialConsoleSSHPublicKeyCommandOutput } from "../commands/SendSerialConsoleSSHPublicKeyCommand";
4
+ import { SendSSHPublicKeyCommandInput, SendSSHPublicKeyCommandOutput } from "../commands/SendSSHPublicKeyCommand";
5
+ export declare const serializeAws_json1_1SendSerialConsoleSSHPublicKeyCommand: (input: SendSerialConsoleSSHPublicKeyCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
6
+ export declare const serializeAws_json1_1SendSSHPublicKeyCommand: (input: SendSSHPublicKeyCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
7
+ export declare const deserializeAws_json1_1SendSerialConsoleSSHPublicKeyCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<SendSerialConsoleSSHPublicKeyCommandOutput>;
8
+ export declare const deserializeAws_json1_1SendSSHPublicKeyCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<SendSSHPublicKeyCommandOutput>;
@@ -0,0 +1,38 @@
1
+ import { FetchHttpHandler as RequestHandler } from "@aws-sdk/fetch-http-handler";
2
+ import { EC2InstanceConnectClientConfig } from "./EC2InstanceConnectClient";
3
+
4
+ export declare const getRuntimeConfig: (config: EC2InstanceConnectClientConfig) => {
5
+ runtime: string;
6
+ defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
7
+ base64Decoder: import("@aws-sdk/types").Decoder;
8
+ base64Encoder: import("@aws-sdk/types").Encoder;
9
+ bodyLengthChecker: (body: any) => number | undefined;
10
+ credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
11
+ defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
12
+ maxAttempts: number | import("@aws-sdk/types").Provider<number>;
13
+ region: string | import("@aws-sdk/types").Provider<any>;
14
+ requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
15
+ retryMode: string | import("@aws-sdk/types").Provider<string>;
16
+ sha256: import("@aws-sdk/types").HashConstructor;
17
+ streamCollector: import("@aws-sdk/types").StreamCollector;
18
+ useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
19
+ useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
20
+ utf8Decoder: import("@aws-sdk/types").Decoder;
21
+ utf8Encoder: import("@aws-sdk/types").Encoder;
22
+ apiVersion: string;
23
+ urlParser: import("@aws-sdk/types").UrlParser;
24
+ disableHostPrefix: boolean;
25
+ logger: import("@aws-sdk/types").Logger;
26
+ serviceId: string;
27
+ regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
28
+ endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
29
+ tls?: boolean | undefined;
30
+ retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
31
+ credentials?: import("@aws-sdk/types").Credentials | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials> | undefined;
32
+ signer?: import("@aws-sdk/types").RequestSigner | import("@aws-sdk/types").Provider<import("@aws-sdk/types").RequestSigner> | undefined;
33
+ signingEscapePath?: boolean | undefined;
34
+ systemClockOffset?: number | undefined;
35
+ signingRegion?: string | undefined;
36
+ signerConstructor?: (new (options: import("@aws-sdk/signature-v4").SignatureV4Init & import("@aws-sdk/signature-v4").SignatureV4CryptoInit) => import("@aws-sdk/types").RequestSigner) | undefined;
37
+ customUserAgent?: string | import("@aws-sdk/types").UserAgent | undefined;
38
+ };
@@ -0,0 +1,38 @@
1
+ import { NodeHttpHandler as RequestHandler } from "@aws-sdk/node-http-handler";
2
+ import { EC2InstanceConnectClientConfig } from "./EC2InstanceConnectClient";
3
+
4
+ export declare const getRuntimeConfig: (config: EC2InstanceConnectClientConfig) => {
5
+ runtime: string;
6
+ defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
7
+ base64Decoder: import("@aws-sdk/types").Decoder;
8
+ base64Encoder: import("@aws-sdk/types").Encoder;
9
+ bodyLengthChecker: (body: any) => number | undefined;
10
+ credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
11
+ defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
12
+ maxAttempts: number | import("@aws-sdk/types").Provider<number>;
13
+ region: string | import("@aws-sdk/types").Provider<string>;
14
+ requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
15
+ retryMode: string | import("@aws-sdk/types").Provider<string>;
16
+ sha256: import("@aws-sdk/types").HashConstructor;
17
+ streamCollector: import("@aws-sdk/types").StreamCollector;
18
+ useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
19
+ useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
20
+ utf8Decoder: import("@aws-sdk/types").Decoder;
21
+ utf8Encoder: import("@aws-sdk/types").Encoder;
22
+ apiVersion: string;
23
+ urlParser: import("@aws-sdk/types").UrlParser;
24
+ disableHostPrefix: boolean;
25
+ logger: import("@aws-sdk/types").Logger;
26
+ serviceId: string;
27
+ regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
28
+ endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
29
+ tls?: boolean | undefined;
30
+ retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
31
+ credentials?: import("@aws-sdk/types").Credentials | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials> | undefined;
32
+ signer?: import("@aws-sdk/types").RequestSigner | import("@aws-sdk/types").Provider<import("@aws-sdk/types").RequestSigner> | undefined;
33
+ signingEscapePath?: boolean | undefined;
34
+ systemClockOffset?: number | undefined;
35
+ signingRegion?: string | undefined;
36
+ signerConstructor?: (new (options: import("@aws-sdk/signature-v4").SignatureV4Init & import("@aws-sdk/signature-v4").SignatureV4CryptoInit) => import("@aws-sdk/types").RequestSigner) | undefined;
37
+ customUserAgent?: string | import("@aws-sdk/types").UserAgent | undefined;
38
+ };
@@ -0,0 +1,37 @@
1
+ import { EC2InstanceConnectClientConfig } from "./EC2InstanceConnectClient";
2
+
3
+ export declare const getRuntimeConfig: (config: EC2InstanceConnectClientConfig) => {
4
+ runtime: string;
5
+ sha256: import("@aws-sdk/types").HashConstructor;
6
+ requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | import("@aws-sdk/fetch-http-handler").FetchHttpHandler;
7
+ apiVersion: string;
8
+ urlParser: import("@aws-sdk/types").UrlParser;
9
+ bodyLengthChecker: (body: any) => number | undefined;
10
+ streamCollector: import("@aws-sdk/types").StreamCollector;
11
+ base64Decoder: import("@aws-sdk/types").Decoder;
12
+ base64Encoder: import("@aws-sdk/types").Encoder;
13
+ utf8Decoder: import("@aws-sdk/types").Decoder;
14
+ utf8Encoder: import("@aws-sdk/types").Encoder;
15
+ disableHostPrefix: boolean;
16
+ maxAttempts: number | import("@aws-sdk/types").Provider<number>;
17
+ retryMode: string | import("@aws-sdk/types").Provider<string>;
18
+ logger: import("@aws-sdk/types").Logger;
19
+ useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
20
+ useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
21
+ serviceId: string;
22
+ region: string | import("@aws-sdk/types").Provider<string> | import("@aws-sdk/types").Provider<any>;
23
+ credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
24
+ regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
25
+ defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
26
+ defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode> | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
27
+ endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
28
+ tls?: boolean | undefined;
29
+ retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
30
+ credentials?: import("@aws-sdk/types").Credentials | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials> | undefined;
31
+ signer?: import("@aws-sdk/types").RequestSigner | import("@aws-sdk/types").Provider<import("@aws-sdk/types").RequestSigner> | undefined;
32
+ signingEscapePath?: boolean | undefined;
33
+ systemClockOffset?: number | undefined;
34
+ signingRegion?: string | undefined;
35
+ signerConstructor?: (new (options: import("@aws-sdk/signature-v4").SignatureV4Init & import("@aws-sdk/signature-v4").SignatureV4CryptoInit) => import("@aws-sdk/types").RequestSigner) | undefined;
36
+ customUserAgent?: string | import("@aws-sdk/types").UserAgent | undefined;
37
+ };
@@ -0,0 +1,11 @@
1
+ import { Logger as __Logger } from "@aws-sdk/types";
2
+ import { EC2InstanceConnectClientConfig } from "./EC2InstanceConnectClient";
3
+
4
+ export declare const getRuntimeConfig: (config: EC2InstanceConnectClientConfig) => {
5
+ apiVersion: string;
6
+ disableHostPrefix: boolean;
7
+ logger: __Logger;
8
+ regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
9
+ serviceId: string;
10
+ urlParser: import("@aws-sdk/types").UrlParser;
11
+ };