@aws-sdk/client-ec2-instance-connect 3.533.0 → 3.535.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.
- package/README.md +10 -3
- package/dist-cjs/index.js +32 -0
- package/dist-es/models/models_0.js +13 -0
- package/dist-es/protocols/Aws_json1_1.js +13 -1
- package/dist-types/EC2InstanceConnect.d.ts +10 -3
- package/dist-types/EC2InstanceConnectClient.d.ts +10 -3
- package/dist-types/commands/SendSSHPublicKeyCommand.d.ts +2 -1
- package/dist-types/commands/SendSerialConsoleSSHPublicKeyCommand.d.ts +5 -1
- package/dist-types/index.d.ts +10 -3
- package/dist-types/models/models_0.d.ts +34 -21
- package/dist-types/ts3.4/commands/SendSSHPublicKeyCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/SendSerialConsoleSSHPublicKeyCommand.d.ts +9 -0
- package/dist-types/ts3.4/models/models_0.d.ts +11 -0
- package/package.json +40 -40
package/README.md
CHANGED
|
@@ -6,9 +6,16 @@
|
|
|
6
6
|
|
|
7
7
|
AWS SDK for JavaScript EC2InstanceConnect Client for Node.js, Browser and React Native.
|
|
8
8
|
|
|
9
|
-
<p>Amazon EC2 Instance Connect
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
<p>This is the <i> Amazon EC2 Instance Connect API Reference</i>. It
|
|
10
|
+
provides descriptions, syntax, and usage examples for each of the actions for Amazon EC2
|
|
11
|
+
Instance Connect. Amazon EC2 Instance Connect enables system administrators to publish
|
|
12
|
+
one-time use SSH public keys to EC2, providing users a simple and secure way to connect
|
|
13
|
+
to their instances.</p>
|
|
14
|
+
<p>To view the Amazon EC2 Instance Connect content in the <i> Amazon EC2 User
|
|
15
|
+
Guide</i>, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Connect-using-EC2-Instance-Connect.html">Connect to
|
|
16
|
+
your Linux instance using EC2 Instance Connect</a>.</p>
|
|
17
|
+
<p>For Amazon EC2 APIs, see the <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Welcome.html">Amazon EC2 API
|
|
18
|
+
Reference</a>.</p>
|
|
12
19
|
|
|
13
20
|
## Installing
|
|
14
21
|
|
package/dist-cjs/index.js
CHANGED
|
@@ -35,6 +35,7 @@ __export(src_exports, {
|
|
|
35
35
|
SerialConsoleAccessDisabledException: () => SerialConsoleAccessDisabledException,
|
|
36
36
|
SerialConsoleSessionLimitExceededException: () => SerialConsoleSessionLimitExceededException,
|
|
37
37
|
SerialConsoleSessionUnavailableException: () => SerialConsoleSessionUnavailableException,
|
|
38
|
+
SerialConsoleSessionUnsupportedException: () => SerialConsoleSessionUnsupportedException,
|
|
38
39
|
ServiceException: () => ServiceException,
|
|
39
40
|
ThrottlingException: () => ThrottlingException,
|
|
40
41
|
__Client: () => import_smithy_client.Client
|
|
@@ -375,6 +376,24 @@ var _SerialConsoleSessionUnavailableException = class _SerialConsoleSessionUnava
|
|
|
375
376
|
};
|
|
376
377
|
__name(_SerialConsoleSessionUnavailableException, "SerialConsoleSessionUnavailableException");
|
|
377
378
|
var SerialConsoleSessionUnavailableException = _SerialConsoleSessionUnavailableException;
|
|
379
|
+
var _SerialConsoleSessionUnsupportedException = class _SerialConsoleSessionUnsupportedException extends EC2InstanceConnectServiceException {
|
|
380
|
+
/**
|
|
381
|
+
* @internal
|
|
382
|
+
*/
|
|
383
|
+
constructor(opts) {
|
|
384
|
+
super({
|
|
385
|
+
name: "SerialConsoleSessionUnsupportedException",
|
|
386
|
+
$fault: "client",
|
|
387
|
+
...opts
|
|
388
|
+
});
|
|
389
|
+
this.name = "SerialConsoleSessionUnsupportedException";
|
|
390
|
+
this.$fault = "client";
|
|
391
|
+
Object.setPrototypeOf(this, _SerialConsoleSessionUnsupportedException.prototype);
|
|
392
|
+
this.Message = opts.Message;
|
|
393
|
+
}
|
|
394
|
+
};
|
|
395
|
+
__name(_SerialConsoleSessionUnsupportedException, "SerialConsoleSessionUnsupportedException");
|
|
396
|
+
var SerialConsoleSessionUnsupportedException = _SerialConsoleSessionUnsupportedException;
|
|
378
397
|
var _ServiceException = class _ServiceException extends EC2InstanceConnectServiceException {
|
|
379
398
|
/**
|
|
380
399
|
* @internal
|
|
@@ -485,6 +504,9 @@ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
485
504
|
case "SerialConsoleSessionUnavailableException":
|
|
486
505
|
case "com.amazonaws.ec2instanceconnect#SerialConsoleSessionUnavailableException":
|
|
487
506
|
throw await de_SerialConsoleSessionUnavailableExceptionRes(parsedOutput, context);
|
|
507
|
+
case "SerialConsoleSessionUnsupportedException":
|
|
508
|
+
case "com.amazonaws.ec2instanceconnect#SerialConsoleSessionUnsupportedException":
|
|
509
|
+
throw await de_SerialConsoleSessionUnsupportedExceptionRes(parsedOutput, context);
|
|
488
510
|
case "ServiceException":
|
|
489
511
|
case "com.amazonaws.ec2instanceconnect#ServiceException":
|
|
490
512
|
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
@@ -581,6 +603,15 @@ var de_SerialConsoleSessionUnavailableExceptionRes = /* @__PURE__ */ __name(asyn
|
|
|
581
603
|
});
|
|
582
604
|
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
583
605
|
}, "de_SerialConsoleSessionUnavailableExceptionRes");
|
|
606
|
+
var de_SerialConsoleSessionUnsupportedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
607
|
+
const body = parsedOutput.body;
|
|
608
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
609
|
+
const exception = new SerialConsoleSessionUnsupportedException({
|
|
610
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
611
|
+
...deserialized
|
|
612
|
+
});
|
|
613
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
614
|
+
}, "de_SerialConsoleSessionUnsupportedExceptionRes");
|
|
584
615
|
var de_ServiceExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
585
616
|
const body = parsedOutput.body;
|
|
586
617
|
const deserialized = (0, import_smithy_client._json)(body);
|
|
@@ -694,6 +725,7 @@ var import_util_endpoints = require("@aws-sdk/util-endpoints");
|
|
|
694
725
|
SerialConsoleAccessDisabledException,
|
|
695
726
|
SerialConsoleSessionLimitExceededException,
|
|
696
727
|
SerialConsoleSessionUnavailableException,
|
|
728
|
+
SerialConsoleSessionUnsupportedException,
|
|
697
729
|
ServiceException,
|
|
698
730
|
ThrottlingException
|
|
699
731
|
});
|
|
@@ -116,6 +116,19 @@ export class SerialConsoleSessionUnavailableException extends __BaseException {
|
|
|
116
116
|
this.Message = opts.Message;
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
|
+
export class SerialConsoleSessionUnsupportedException extends __BaseException {
|
|
120
|
+
constructor(opts) {
|
|
121
|
+
super({
|
|
122
|
+
name: "SerialConsoleSessionUnsupportedException",
|
|
123
|
+
$fault: "client",
|
|
124
|
+
...opts,
|
|
125
|
+
});
|
|
126
|
+
this.name = "SerialConsoleSessionUnsupportedException";
|
|
127
|
+
this.$fault = "client";
|
|
128
|
+
Object.setPrototypeOf(this, SerialConsoleSessionUnsupportedException.prototype);
|
|
129
|
+
this.Message = opts.Message;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
119
132
|
export class ServiceException extends __BaseException {
|
|
120
133
|
constructor(opts) {
|
|
121
134
|
super({
|
|
@@ -2,7 +2,7 @@ import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody a
|
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
3
3
|
import { _json, collectBody, decorateServiceException as __decorateServiceException, withBaseException, } from "@smithy/smithy-client";
|
|
4
4
|
import { EC2InstanceConnectServiceException as __BaseException } from "../models/EC2InstanceConnectServiceException";
|
|
5
|
-
import { AuthException, EC2InstanceNotFoundException, EC2InstanceStateInvalidException, EC2InstanceTypeInvalidException, EC2InstanceUnavailableException, InvalidArgsException, SerialConsoleAccessDisabledException, SerialConsoleSessionLimitExceededException, SerialConsoleSessionUnavailableException, ServiceException, ThrottlingException, } from "../models/models_0";
|
|
5
|
+
import { AuthException, EC2InstanceNotFoundException, EC2InstanceStateInvalidException, EC2InstanceTypeInvalidException, EC2InstanceUnavailableException, InvalidArgsException, SerialConsoleAccessDisabledException, SerialConsoleSessionLimitExceededException, SerialConsoleSessionUnavailableException, SerialConsoleSessionUnsupportedException, ServiceException, ThrottlingException, } from "../models/models_0";
|
|
6
6
|
export const se_SendSerialConsoleSSHPublicKeyCommand = async (input, context) => {
|
|
7
7
|
const headers = sharedHeaders("SendSerialConsoleSSHPublicKey");
|
|
8
8
|
let body;
|
|
@@ -75,6 +75,9 @@ const de_CommandError = async (output, context) => {
|
|
|
75
75
|
case "SerialConsoleSessionUnavailableException":
|
|
76
76
|
case "com.amazonaws.ec2instanceconnect#SerialConsoleSessionUnavailableException":
|
|
77
77
|
throw await de_SerialConsoleSessionUnavailableExceptionRes(parsedOutput, context);
|
|
78
|
+
case "SerialConsoleSessionUnsupportedException":
|
|
79
|
+
case "com.amazonaws.ec2instanceconnect#SerialConsoleSessionUnsupportedException":
|
|
80
|
+
throw await de_SerialConsoleSessionUnsupportedExceptionRes(parsedOutput, context);
|
|
78
81
|
case "ServiceException":
|
|
79
82
|
case "com.amazonaws.ec2instanceconnect#ServiceException":
|
|
80
83
|
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
@@ -171,6 +174,15 @@ const de_SerialConsoleSessionUnavailableExceptionRes = async (parsedOutput, cont
|
|
|
171
174
|
});
|
|
172
175
|
return __decorateServiceException(exception, body);
|
|
173
176
|
};
|
|
177
|
+
const de_SerialConsoleSessionUnsupportedExceptionRes = async (parsedOutput, context) => {
|
|
178
|
+
const body = parsedOutput.body;
|
|
179
|
+
const deserialized = _json(body);
|
|
180
|
+
const exception = new SerialConsoleSessionUnsupportedException({
|
|
181
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
182
|
+
...deserialized,
|
|
183
|
+
});
|
|
184
|
+
return __decorateServiceException(exception, body);
|
|
185
|
+
};
|
|
174
186
|
const de_ServiceExceptionRes = async (parsedOutput, context) => {
|
|
175
187
|
const body = parsedOutput.body;
|
|
176
188
|
const deserialized = _json(body);
|
|
@@ -17,10 +17,17 @@ export interface EC2InstanceConnect {
|
|
|
17
17
|
sendSSHPublicKey(args: SendSSHPublicKeyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SendSSHPublicKeyCommandOutput) => void): void;
|
|
18
18
|
}
|
|
19
19
|
/**
|
|
20
|
+
* <p>This is the <i> Amazon EC2 Instance Connect API Reference</i>. It
|
|
21
|
+
* provides descriptions, syntax, and usage examples for each of the actions for Amazon EC2
|
|
22
|
+
* Instance Connect. Amazon EC2 Instance Connect enables system administrators to publish
|
|
23
|
+
* one-time use SSH public keys to EC2, providing users a simple and secure way to connect
|
|
24
|
+
* to their instances.</p>
|
|
25
|
+
* <p>To view the Amazon EC2 Instance Connect content in the <i> Amazon EC2 User
|
|
26
|
+
* Guide</i>, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Connect-using-EC2-Instance-Connect.html">Connect to
|
|
27
|
+
* your Linux instance using EC2 Instance Connect</a>.</p>
|
|
28
|
+
* <p>For Amazon EC2 APIs, see the <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Welcome.html">Amazon EC2 API
|
|
29
|
+
* Reference</a>.</p>
|
|
20
30
|
* @public
|
|
21
|
-
* <p>Amazon EC2 Instance Connect enables system administrators to publish one-time use SSH
|
|
22
|
-
* public keys to EC2, providing users a simple and secure way to connect to their
|
|
23
|
-
* instances.</p>
|
|
24
31
|
*/
|
|
25
32
|
export declare class EC2InstanceConnect extends EC2InstanceConnectClient implements EC2InstanceConnect {
|
|
26
33
|
}
|
|
@@ -153,10 +153,17 @@ export type EC2InstanceConnectClientResolvedConfigType = __SmithyResolvedConfigu
|
|
|
153
153
|
export interface EC2InstanceConnectClientResolvedConfig extends EC2InstanceConnectClientResolvedConfigType {
|
|
154
154
|
}
|
|
155
155
|
/**
|
|
156
|
+
* <p>This is the <i> Amazon EC2 Instance Connect API Reference</i>. It
|
|
157
|
+
* provides descriptions, syntax, and usage examples for each of the actions for Amazon EC2
|
|
158
|
+
* Instance Connect. Amazon EC2 Instance Connect enables system administrators to publish
|
|
159
|
+
* one-time use SSH public keys to EC2, providing users a simple and secure way to connect
|
|
160
|
+
* to their instances.</p>
|
|
161
|
+
* <p>To view the Amazon EC2 Instance Connect content in the <i> Amazon EC2 User
|
|
162
|
+
* Guide</i>, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Connect-using-EC2-Instance-Connect.html">Connect to
|
|
163
|
+
* your Linux instance using EC2 Instance Connect</a>.</p>
|
|
164
|
+
* <p>For Amazon EC2 APIs, see the <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Welcome.html">Amazon EC2 API
|
|
165
|
+
* Reference</a>.</p>
|
|
156
166
|
* @public
|
|
157
|
-
* <p>Amazon EC2 Instance Connect enables system administrators to publish one-time use SSH
|
|
158
|
-
* public keys to EC2, providing users a simple and secure way to connect to their
|
|
159
|
-
* instances.</p>
|
|
160
167
|
*/
|
|
161
168
|
export declare class EC2InstanceConnectClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, EC2InstanceConnectClientResolvedConfig> {
|
|
162
169
|
/**
|
|
@@ -22,10 +22,10 @@ export interface SendSSHPublicKeyCommandOutput extends SendSSHPublicKeyResponse,
|
|
|
22
22
|
}
|
|
23
23
|
declare const SendSSHPublicKeyCommand_base: {
|
|
24
24
|
new (input: SendSSHPublicKeyCommandInput): import("@smithy/smithy-client").CommandImpl<SendSSHPublicKeyCommandInput, SendSSHPublicKeyCommandOutput, EC2InstanceConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
new (__0_0: SendSSHPublicKeyCommandInput): import("@smithy/smithy-client").CommandImpl<SendSSHPublicKeyCommandInput, SendSSHPublicKeyCommandOutput, EC2InstanceConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
26
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
27
|
};
|
|
27
28
|
/**
|
|
28
|
-
* @public
|
|
29
29
|
* <p>Pushes an SSH public key to the specified EC2 instance for use by the specified user.
|
|
30
30
|
* The key remains for 60 seconds. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Connect-using-EC2-Instance-Connect.html">Connect to
|
|
31
31
|
* your Linux instance using EC2 Instance Connect</a> in the <i>Amazon EC2
|
|
@@ -84,6 +84,7 @@ declare const SendSSHPublicKeyCommand_base: {
|
|
|
84
84
|
* @throws {@link EC2InstanceConnectServiceException}
|
|
85
85
|
* <p>Base exception class for all service exceptions from EC2InstanceConnect service.</p>
|
|
86
86
|
*
|
|
87
|
+
* @public
|
|
87
88
|
* @example To push an SSH key to an EC2 instance
|
|
88
89
|
* ```javascript
|
|
89
90
|
* // The following example pushes a sample SSH public key to the EC2 instance i-abcd1234 in AZ us-west-2b for use by the instance OS user ec2-user.
|
|
@@ -22,10 +22,10 @@ export interface SendSerialConsoleSSHPublicKeyCommandOutput extends SendSerialCo
|
|
|
22
22
|
}
|
|
23
23
|
declare const SendSerialConsoleSSHPublicKeyCommand_base: {
|
|
24
24
|
new (input: SendSerialConsoleSSHPublicKeyCommandInput): import("@smithy/smithy-client").CommandImpl<SendSerialConsoleSSHPublicKeyCommandInput, SendSerialConsoleSSHPublicKeyCommandOutput, EC2InstanceConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
new (__0_0: SendSerialConsoleSSHPublicKeyCommandInput): import("@smithy/smithy-client").CommandImpl<SendSerialConsoleSSHPublicKeyCommandInput, SendSerialConsoleSSHPublicKeyCommandOutput, EC2InstanceConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
26
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
27
|
};
|
|
27
28
|
/**
|
|
28
|
-
* @public
|
|
29
29
|
* <p>Pushes an SSH public key to the specified EC2 instance. The key remains for 60
|
|
30
30
|
* seconds, which gives you 60 seconds to establish a serial console connection to the
|
|
31
31
|
* instance using SSH. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-serial-console.html">EC2 Serial Console</a> in
|
|
@@ -88,6 +88,9 @@ declare const SendSerialConsoleSSHPublicKeyCommand_base: {
|
|
|
88
88
|
* @throws {@link SerialConsoleSessionUnavailableException} (server fault)
|
|
89
89
|
* <p>Unable to start a serial console session. Please try again.</p>
|
|
90
90
|
*
|
|
91
|
+
* @throws {@link SerialConsoleSessionUnsupportedException} (client fault)
|
|
92
|
+
* <p>Your instance's BIOS version is unsupported for serial console connection. Reboot your instance to update its BIOS, and then try again to connect.</p>
|
|
93
|
+
*
|
|
91
94
|
* @throws {@link ServiceException} (server fault)
|
|
92
95
|
* <p>The service encountered an error. Follow the instructions in the error message and try again.</p>
|
|
93
96
|
*
|
|
@@ -98,6 +101,7 @@ declare const SendSerialConsoleSSHPublicKeyCommand_base: {
|
|
|
98
101
|
* @throws {@link EC2InstanceConnectServiceException}
|
|
99
102
|
* <p>Base exception class for all service exceptions from EC2InstanceConnect service.</p>
|
|
100
103
|
*
|
|
104
|
+
* @public
|
|
101
105
|
*/
|
|
102
106
|
export declare class SendSerialConsoleSSHPublicKeyCommand extends SendSerialConsoleSSHPublicKeyCommand_base {
|
|
103
107
|
}
|
package/dist-types/index.d.ts
CHANGED
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* <p>Amazon EC2 Instance Connect
|
|
3
|
-
*
|
|
4
|
-
*
|
|
2
|
+
* <p>This is the <i> Amazon EC2 Instance Connect API Reference</i>. It
|
|
3
|
+
* provides descriptions, syntax, and usage examples for each of the actions for Amazon EC2
|
|
4
|
+
* Instance Connect. Amazon EC2 Instance Connect enables system administrators to publish
|
|
5
|
+
* one-time use SSH public keys to EC2, providing users a simple and secure way to connect
|
|
6
|
+
* to their instances.</p>
|
|
7
|
+
* <p>To view the Amazon EC2 Instance Connect content in the <i> Amazon EC2 User
|
|
8
|
+
* Guide</i>, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Connect-using-EC2-Instance-Connect.html">Connect to
|
|
9
|
+
* your Linux instance using EC2 Instance Connect</a>.</p>
|
|
10
|
+
* <p>For Amazon EC2 APIs, see the <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Welcome.html">Amazon EC2 API
|
|
11
|
+
* Reference</a>.</p>
|
|
5
12
|
*
|
|
6
13
|
* @packageDocumentation
|
|
7
14
|
*/
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
|
|
2
2
|
import { EC2InstanceConnectServiceException as __BaseException } from "./EC2InstanceConnectServiceException";
|
|
3
3
|
/**
|
|
4
|
-
* @public
|
|
5
4
|
* <p>Either your AWS credentials are not valid or you do not have access to the EC2 instance.</p>
|
|
5
|
+
* @public
|
|
6
6
|
*/
|
|
7
7
|
export declare class AuthException extends __BaseException {
|
|
8
8
|
readonly name: "AuthException";
|
|
@@ -14,8 +14,8 @@ export declare class AuthException extends __BaseException {
|
|
|
14
14
|
constructor(opts: __ExceptionOptionType<AuthException, __BaseException>);
|
|
15
15
|
}
|
|
16
16
|
/**
|
|
17
|
-
* @public
|
|
18
17
|
* <p>The specified instance was not found.</p>
|
|
18
|
+
* @public
|
|
19
19
|
*/
|
|
20
20
|
export declare class EC2InstanceNotFoundException extends __BaseException {
|
|
21
21
|
readonly name: "EC2InstanceNotFoundException";
|
|
@@ -27,10 +27,10 @@ export declare class EC2InstanceNotFoundException extends __BaseException {
|
|
|
27
27
|
constructor(opts: __ExceptionOptionType<EC2InstanceNotFoundException, __BaseException>);
|
|
28
28
|
}
|
|
29
29
|
/**
|
|
30
|
-
* @public
|
|
31
30
|
* <p>Unable to connect because the instance is not in a valid state.
|
|
32
31
|
* Connecting to a stopped or terminated instance is not supported. If the instance is stopped,
|
|
33
32
|
* start your instance, and try to connect again.</p>
|
|
33
|
+
* @public
|
|
34
34
|
*/
|
|
35
35
|
export declare class EC2InstanceStateInvalidException extends __BaseException {
|
|
36
36
|
readonly name: "EC2InstanceStateInvalidException";
|
|
@@ -42,9 +42,9 @@ export declare class EC2InstanceStateInvalidException extends __BaseException {
|
|
|
42
42
|
constructor(opts: __ExceptionOptionType<EC2InstanceStateInvalidException, __BaseException>);
|
|
43
43
|
}
|
|
44
44
|
/**
|
|
45
|
-
* @public
|
|
46
45
|
* <p>The instance type is not supported for connecting via the serial console. Only Nitro
|
|
47
46
|
* instance types are currently supported.</p>
|
|
47
|
+
* @public
|
|
48
48
|
*/
|
|
49
49
|
export declare class EC2InstanceTypeInvalidException extends __BaseException {
|
|
50
50
|
readonly name: "EC2InstanceTypeInvalidException";
|
|
@@ -56,8 +56,8 @@ export declare class EC2InstanceTypeInvalidException extends __BaseException {
|
|
|
56
56
|
constructor(opts: __ExceptionOptionType<EC2InstanceTypeInvalidException, __BaseException>);
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
59
|
-
* @public
|
|
60
59
|
* <p>The instance is currently unavailable. Wait a few minutes and try again.</p>
|
|
60
|
+
* @public
|
|
61
61
|
*/
|
|
62
62
|
export declare class EC2InstanceUnavailableException extends __BaseException {
|
|
63
63
|
readonly name: "EC2InstanceUnavailableException";
|
|
@@ -69,8 +69,8 @@ export declare class EC2InstanceUnavailableException extends __BaseException {
|
|
|
69
69
|
constructor(opts: __ExceptionOptionType<EC2InstanceUnavailableException, __BaseException>);
|
|
70
70
|
}
|
|
71
71
|
/**
|
|
72
|
-
* @public
|
|
73
72
|
* <p>One of the parameters is not valid.</p>
|
|
73
|
+
* @public
|
|
74
74
|
*/
|
|
75
75
|
export declare class InvalidArgsException extends __BaseException {
|
|
76
76
|
readonly name: "InvalidArgsException";
|
|
@@ -86,21 +86,21 @@ export declare class InvalidArgsException extends __BaseException {
|
|
|
86
86
|
*/
|
|
87
87
|
export interface SendSerialConsoleSSHPublicKeyRequest {
|
|
88
88
|
/**
|
|
89
|
-
* @public
|
|
90
89
|
* <p>The ID of the EC2 instance.</p>
|
|
90
|
+
* @public
|
|
91
91
|
*/
|
|
92
92
|
InstanceId: string | undefined;
|
|
93
93
|
/**
|
|
94
|
-
* @public
|
|
95
94
|
* <p>The serial port of the EC2 instance. Currently only port 0 is supported.</p>
|
|
96
95
|
* <p>Default: 0</p>
|
|
96
|
+
* @public
|
|
97
97
|
*/
|
|
98
98
|
SerialPort?: number;
|
|
99
99
|
/**
|
|
100
|
-
* @public
|
|
101
100
|
* <p>The public key material. To use the public key, you must have the matching private
|
|
102
101
|
* key. For information about the supported key formats and lengths, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html#how-to-generate-your-own-key-and-import-it-to-aws">Requirements for key pairs</a> in the <i>Amazon EC2 User
|
|
103
102
|
* Guide</i>.</p>
|
|
103
|
+
* @public
|
|
104
104
|
*/
|
|
105
105
|
SSHPublicKey: string | undefined;
|
|
106
106
|
}
|
|
@@ -109,21 +109,21 @@ export interface SendSerialConsoleSSHPublicKeyRequest {
|
|
|
109
109
|
*/
|
|
110
110
|
export interface SendSerialConsoleSSHPublicKeyResponse {
|
|
111
111
|
/**
|
|
112
|
-
* @public
|
|
113
112
|
* <p>The ID of the request. Please provide this ID when contacting AWS Support for assistance.</p>
|
|
113
|
+
* @public
|
|
114
114
|
*/
|
|
115
115
|
RequestId?: string;
|
|
116
116
|
/**
|
|
117
|
-
* @public
|
|
118
117
|
* <p>Is true if the request succeeds and an error otherwise.</p>
|
|
118
|
+
* @public
|
|
119
119
|
*/
|
|
120
120
|
Success?: boolean;
|
|
121
121
|
}
|
|
122
122
|
/**
|
|
123
|
-
* @public
|
|
124
123
|
* <p>Your account is not authorized to use the EC2 Serial Console. To authorize your
|
|
125
124
|
* account, run the EnableSerialConsoleAccess API. For more information, see
|
|
126
125
|
* <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_EnableSerialConsoleAccess.html">EnableSerialConsoleAccess</a> in the <i>Amazon EC2 API Reference</i>.</p>
|
|
126
|
+
* @public
|
|
127
127
|
*/
|
|
128
128
|
export declare class SerialConsoleAccessDisabledException extends __BaseException {
|
|
129
129
|
readonly name: "SerialConsoleAccessDisabledException";
|
|
@@ -135,8 +135,8 @@ export declare class SerialConsoleAccessDisabledException extends __BaseExceptio
|
|
|
135
135
|
constructor(opts: __ExceptionOptionType<SerialConsoleAccessDisabledException, __BaseException>);
|
|
136
136
|
}
|
|
137
137
|
/**
|
|
138
|
-
* @public
|
|
139
138
|
* <p>The instance currently has 1 active serial console session. Only 1 session is supported at a time.</p>
|
|
139
|
+
* @public
|
|
140
140
|
*/
|
|
141
141
|
export declare class SerialConsoleSessionLimitExceededException extends __BaseException {
|
|
142
142
|
readonly name: "SerialConsoleSessionLimitExceededException";
|
|
@@ -148,8 +148,8 @@ export declare class SerialConsoleSessionLimitExceededException extends __BaseEx
|
|
|
148
148
|
constructor(opts: __ExceptionOptionType<SerialConsoleSessionLimitExceededException, __BaseException>);
|
|
149
149
|
}
|
|
150
150
|
/**
|
|
151
|
-
* @public
|
|
152
151
|
* <p>Unable to start a serial console session. Please try again.</p>
|
|
152
|
+
* @public
|
|
153
153
|
*/
|
|
154
154
|
export declare class SerialConsoleSessionUnavailableException extends __BaseException {
|
|
155
155
|
readonly name: "SerialConsoleSessionUnavailableException";
|
|
@@ -161,8 +161,21 @@ export declare class SerialConsoleSessionUnavailableException extends __BaseExce
|
|
|
161
161
|
constructor(opts: __ExceptionOptionType<SerialConsoleSessionUnavailableException, __BaseException>);
|
|
162
162
|
}
|
|
163
163
|
/**
|
|
164
|
+
* <p>Your instance's BIOS version is unsupported for serial console connection. Reboot your instance to update its BIOS, and then try again to connect.</p>
|
|
164
165
|
* @public
|
|
166
|
+
*/
|
|
167
|
+
export declare class SerialConsoleSessionUnsupportedException extends __BaseException {
|
|
168
|
+
readonly name: "SerialConsoleSessionUnsupportedException";
|
|
169
|
+
readonly $fault: "client";
|
|
170
|
+
Message?: string;
|
|
171
|
+
/**
|
|
172
|
+
* @internal
|
|
173
|
+
*/
|
|
174
|
+
constructor(opts: __ExceptionOptionType<SerialConsoleSessionUnsupportedException, __BaseException>);
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
165
177
|
* <p>The service encountered an error. Follow the instructions in the error message and try again.</p>
|
|
178
|
+
* @public
|
|
166
179
|
*/
|
|
167
180
|
export declare class ServiceException extends __BaseException {
|
|
168
181
|
readonly name: "ServiceException";
|
|
@@ -174,9 +187,9 @@ export declare class ServiceException extends __BaseException {
|
|
|
174
187
|
constructor(opts: __ExceptionOptionType<ServiceException, __BaseException>);
|
|
175
188
|
}
|
|
176
189
|
/**
|
|
177
|
-
* @public
|
|
178
190
|
* <p>The requests were made too frequently and have been throttled. Wait a while and try again.
|
|
179
191
|
* To increase the limit on your request frequency, contact AWS Support.</p>
|
|
192
|
+
* @public
|
|
180
193
|
*/
|
|
181
194
|
export declare class ThrottlingException extends __BaseException {
|
|
182
195
|
readonly name: "ThrottlingException";
|
|
@@ -192,23 +205,23 @@ export declare class ThrottlingException extends __BaseException {
|
|
|
192
205
|
*/
|
|
193
206
|
export interface SendSSHPublicKeyRequest {
|
|
194
207
|
/**
|
|
195
|
-
* @public
|
|
196
208
|
* <p>The ID of the EC2 instance.</p>
|
|
209
|
+
* @public
|
|
197
210
|
*/
|
|
198
211
|
InstanceId: string | undefined;
|
|
199
212
|
/**
|
|
200
|
-
* @public
|
|
201
213
|
* <p>The OS user on the EC2 instance for whom the key can be used to authenticate.</p>
|
|
214
|
+
* @public
|
|
202
215
|
*/
|
|
203
216
|
InstanceOSUser: string | undefined;
|
|
204
217
|
/**
|
|
205
|
-
* @public
|
|
206
218
|
* <p>The public key material. To use the public key, you must have the matching private key.</p>
|
|
219
|
+
* @public
|
|
207
220
|
*/
|
|
208
221
|
SSHPublicKey: string | undefined;
|
|
209
222
|
/**
|
|
210
|
-
* @public
|
|
211
223
|
* <p>The Availability Zone in which the EC2 instance was launched.</p>
|
|
224
|
+
* @public
|
|
212
225
|
*/
|
|
213
226
|
AvailabilityZone?: string;
|
|
214
227
|
}
|
|
@@ -217,13 +230,13 @@ export interface SendSSHPublicKeyRequest {
|
|
|
217
230
|
*/
|
|
218
231
|
export interface SendSSHPublicKeyResponse {
|
|
219
232
|
/**
|
|
220
|
-
* @public
|
|
221
233
|
* <p>The ID of the request. Please provide this ID when contacting AWS Support for assistance.</p>
|
|
234
|
+
* @public
|
|
222
235
|
*/
|
|
223
236
|
RequestId?: string;
|
|
224
237
|
/**
|
|
225
|
-
* @public
|
|
226
238
|
* <p>Is true if the request succeeds and an error otherwise.</p>
|
|
239
|
+
* @public
|
|
227
240
|
*/
|
|
228
241
|
Success?: boolean;
|
|
229
242
|
}
|
|
@@ -24,6 +24,15 @@ declare const SendSSHPublicKeyCommand_base: {
|
|
|
24
24
|
ServiceInputTypes,
|
|
25
25
|
ServiceOutputTypes
|
|
26
26
|
>;
|
|
27
|
+
new (
|
|
28
|
+
__0_0: SendSSHPublicKeyCommandInput
|
|
29
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
30
|
+
SendSSHPublicKeyCommandInput,
|
|
31
|
+
SendSSHPublicKeyCommandOutput,
|
|
32
|
+
EC2InstanceConnectClientResolvedConfig,
|
|
33
|
+
ServiceInputTypes,
|
|
34
|
+
ServiceOutputTypes
|
|
35
|
+
>;
|
|
27
36
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
37
|
};
|
|
29
38
|
export declare class SendSSHPublicKeyCommand extends SendSSHPublicKeyCommand_base {}
|
|
@@ -25,6 +25,15 @@ declare const SendSerialConsoleSSHPublicKeyCommand_base: {
|
|
|
25
25
|
ServiceInputTypes,
|
|
26
26
|
ServiceOutputTypes
|
|
27
27
|
>;
|
|
28
|
+
new (
|
|
29
|
+
__0_0: SendSerialConsoleSSHPublicKeyCommandInput
|
|
30
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
31
|
+
SendSerialConsoleSSHPublicKeyCommandInput,
|
|
32
|
+
SendSerialConsoleSSHPublicKeyCommandOutput,
|
|
33
|
+
EC2InstanceConnectClientResolvedConfig,
|
|
34
|
+
ServiceInputTypes,
|
|
35
|
+
ServiceOutputTypes
|
|
36
|
+
>;
|
|
28
37
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
29
38
|
};
|
|
30
39
|
export declare class SendSerialConsoleSSHPublicKeyCommand extends SendSerialConsoleSSHPublicKeyCommand_base {}
|
|
@@ -97,6 +97,17 @@ export declare class SerialConsoleSessionUnavailableException extends __BaseExce
|
|
|
97
97
|
>
|
|
98
98
|
);
|
|
99
99
|
}
|
|
100
|
+
export declare class SerialConsoleSessionUnsupportedException extends __BaseException {
|
|
101
|
+
readonly name: "SerialConsoleSessionUnsupportedException";
|
|
102
|
+
readonly $fault: "client";
|
|
103
|
+
Message?: string;
|
|
104
|
+
constructor(
|
|
105
|
+
opts: __ExceptionOptionType<
|
|
106
|
+
SerialConsoleSessionUnsupportedException,
|
|
107
|
+
__BaseException
|
|
108
|
+
>
|
|
109
|
+
);
|
|
110
|
+
}
|
|
100
111
|
export declare class ServiceException extends __BaseException {
|
|
101
112
|
readonly name: "ServiceException";
|
|
102
113
|
readonly $fault: "server";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-ec2-instance-connect",
|
|
3
3
|
"description": "AWS SDK for JavaScript Ec2 Instance Connect Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.535.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-ec2-instance-connect",
|
|
@@ -20,47 +20,47 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
-
"@aws-sdk/core": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
27
|
-
"@aws-sdk/middleware-logger": "3.
|
|
28
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
29
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
30
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
31
|
-
"@aws-sdk/types": "3.
|
|
32
|
-
"@aws-sdk/util-endpoints": "3.
|
|
33
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
34
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
35
|
-
"@smithy/config-resolver": "^2.
|
|
36
|
-
"@smithy/core": "^1.
|
|
37
|
-
"@smithy/fetch-http-handler": "^2.
|
|
38
|
-
"@smithy/hash-node": "^2.
|
|
39
|
-
"@smithy/invalid-dependency": "^2.
|
|
40
|
-
"@smithy/middleware-content-length": "^2.
|
|
41
|
-
"@smithy/middleware-endpoint": "^2.
|
|
42
|
-
"@smithy/middleware-retry": "^2.
|
|
43
|
-
"@smithy/middleware-serde": "^2.
|
|
44
|
-
"@smithy/middleware-stack": "^2.
|
|
45
|
-
"@smithy/node-config-provider": "^2.
|
|
46
|
-
"@smithy/node-http-handler": "^2.
|
|
47
|
-
"@smithy/protocol-http": "^3.
|
|
48
|
-
"@smithy/smithy-client": "^2.
|
|
49
|
-
"@smithy/types": "^2.
|
|
50
|
-
"@smithy/url-parser": "^2.
|
|
51
|
-
"@smithy/util-base64": "^2.
|
|
52
|
-
"@smithy/util-body-length-browser": "^2.
|
|
53
|
-
"@smithy/util-body-length-node": "^2.
|
|
54
|
-
"@smithy/util-defaults-mode-browser": "^2.
|
|
55
|
-
"@smithy/util-defaults-mode-node": "^2.
|
|
56
|
-
"@smithy/util-endpoints": "^1.
|
|
57
|
-
"@smithy/util-middleware": "^2.
|
|
58
|
-
"@smithy/util-retry": "^2.
|
|
59
|
-
"@smithy/util-utf8": "^2.
|
|
60
|
-
"tslib": "^2.
|
|
23
|
+
"@aws-sdk/client-sts": "3.535.0",
|
|
24
|
+
"@aws-sdk/core": "3.535.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.535.0",
|
|
26
|
+
"@aws-sdk/middleware-host-header": "3.535.0",
|
|
27
|
+
"@aws-sdk/middleware-logger": "3.535.0",
|
|
28
|
+
"@aws-sdk/middleware-recursion-detection": "3.535.0",
|
|
29
|
+
"@aws-sdk/middleware-user-agent": "3.535.0",
|
|
30
|
+
"@aws-sdk/region-config-resolver": "3.535.0",
|
|
31
|
+
"@aws-sdk/types": "3.535.0",
|
|
32
|
+
"@aws-sdk/util-endpoints": "3.535.0",
|
|
33
|
+
"@aws-sdk/util-user-agent-browser": "3.535.0",
|
|
34
|
+
"@aws-sdk/util-user-agent-node": "3.535.0",
|
|
35
|
+
"@smithy/config-resolver": "^2.2.0",
|
|
36
|
+
"@smithy/core": "^1.4.0",
|
|
37
|
+
"@smithy/fetch-http-handler": "^2.5.0",
|
|
38
|
+
"@smithy/hash-node": "^2.2.0",
|
|
39
|
+
"@smithy/invalid-dependency": "^2.2.0",
|
|
40
|
+
"@smithy/middleware-content-length": "^2.2.0",
|
|
41
|
+
"@smithy/middleware-endpoint": "^2.5.0",
|
|
42
|
+
"@smithy/middleware-retry": "^2.2.0",
|
|
43
|
+
"@smithy/middleware-serde": "^2.3.0",
|
|
44
|
+
"@smithy/middleware-stack": "^2.2.0",
|
|
45
|
+
"@smithy/node-config-provider": "^2.3.0",
|
|
46
|
+
"@smithy/node-http-handler": "^2.5.0",
|
|
47
|
+
"@smithy/protocol-http": "^3.3.0",
|
|
48
|
+
"@smithy/smithy-client": "^2.5.0",
|
|
49
|
+
"@smithy/types": "^2.12.0",
|
|
50
|
+
"@smithy/url-parser": "^2.2.0",
|
|
51
|
+
"@smithy/util-base64": "^2.3.0",
|
|
52
|
+
"@smithy/util-body-length-browser": "^2.2.0",
|
|
53
|
+
"@smithy/util-body-length-node": "^2.3.0",
|
|
54
|
+
"@smithy/util-defaults-mode-browser": "^2.2.0",
|
|
55
|
+
"@smithy/util-defaults-mode-node": "^2.3.0",
|
|
56
|
+
"@smithy/util-endpoints": "^1.2.0",
|
|
57
|
+
"@smithy/util-middleware": "^2.2.0",
|
|
58
|
+
"@smithy/util-retry": "^2.2.0",
|
|
59
|
+
"@smithy/util-utf8": "^2.3.0",
|
|
60
|
+
"tslib": "^2.6.2"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
|
-
"@smithy/service-client-documentation-generator": "^2.
|
|
63
|
+
"@smithy/service-client-documentation-generator": "^2.2.0",
|
|
64
64
|
"@tsconfig/node14": "1.0.3",
|
|
65
65
|
"@types/node": "^14.14.31",
|
|
66
66
|
"concurrently": "7.0.0",
|