@aws-sdk/client-ec2-instance-connect 3.533.0 → 3.534.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/SendSerialConsoleSSHPublicKeyCommand.d.ts +3 -0
- package/dist-types/index.d.ts +10 -3
- package/dist-types/models/models_0.d.ts +13 -0
- package/dist-types/ts3.4/models/models_0.d.ts +11 -0
- package/package.json +1 -1
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);
|
|
@@ -18,9 +18,16 @@ export interface EC2InstanceConnect {
|
|
|
18
18
|
}
|
|
19
19
|
/**
|
|
20
20
|
* @public
|
|
21
|
-
* <p>Amazon EC2 Instance Connect
|
|
22
|
-
*
|
|
23
|
-
*
|
|
21
|
+
* <p>This is the <i> Amazon EC2 Instance Connect API Reference</i>. It
|
|
22
|
+
* provides descriptions, syntax, and usage examples for each of the actions for Amazon EC2
|
|
23
|
+
* Instance Connect. Amazon EC2 Instance Connect enables system administrators to publish
|
|
24
|
+
* one-time use SSH public keys to EC2, providing users a simple and secure way to connect
|
|
25
|
+
* to their instances.</p>
|
|
26
|
+
* <p>To view the Amazon EC2 Instance Connect content in the <i> Amazon EC2 User
|
|
27
|
+
* Guide</i>, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Connect-using-EC2-Instance-Connect.html">Connect to
|
|
28
|
+
* your Linux instance using EC2 Instance Connect</a>.</p>
|
|
29
|
+
* <p>For Amazon EC2 APIs, see the <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Welcome.html">Amazon EC2 API
|
|
30
|
+
* Reference</a>.</p>
|
|
24
31
|
*/
|
|
25
32
|
export declare class EC2InstanceConnect extends EC2InstanceConnectClient implements EC2InstanceConnect {
|
|
26
33
|
}
|
|
@@ -154,9 +154,16 @@ export interface EC2InstanceConnectClientResolvedConfig extends EC2InstanceConne
|
|
|
154
154
|
}
|
|
155
155
|
/**
|
|
156
156
|
* @public
|
|
157
|
-
* <p>Amazon EC2 Instance Connect
|
|
158
|
-
*
|
|
159
|
-
*
|
|
157
|
+
* <p>This is the <i> Amazon EC2 Instance Connect API Reference</i>. It
|
|
158
|
+
* provides descriptions, syntax, and usage examples for each of the actions for Amazon EC2
|
|
159
|
+
* Instance Connect. Amazon EC2 Instance Connect enables system administrators to publish
|
|
160
|
+
* one-time use SSH public keys to EC2, providing users a simple and secure way to connect
|
|
161
|
+
* to their instances.</p>
|
|
162
|
+
* <p>To view the Amazon EC2 Instance Connect content in the <i> Amazon EC2 User
|
|
163
|
+
* Guide</i>, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Connect-using-EC2-Instance-Connect.html">Connect to
|
|
164
|
+
* your Linux instance using EC2 Instance Connect</a>.</p>
|
|
165
|
+
* <p>For Amazon EC2 APIs, see the <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Welcome.html">Amazon EC2 API
|
|
166
|
+
* Reference</a>.</p>
|
|
160
167
|
*/
|
|
161
168
|
export declare class EC2InstanceConnectClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, EC2InstanceConnectClientResolvedConfig> {
|
|
162
169
|
/**
|
|
@@ -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
|
*
|
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
|
*/
|
|
@@ -160,6 +160,19 @@ export declare class SerialConsoleSessionUnavailableException extends __BaseExce
|
|
|
160
160
|
*/
|
|
161
161
|
constructor(opts: __ExceptionOptionType<SerialConsoleSessionUnavailableException, __BaseException>);
|
|
162
162
|
}
|
|
163
|
+
/**
|
|
164
|
+
* @public
|
|
165
|
+
* <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>
|
|
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
|
+
}
|
|
163
176
|
/**
|
|
164
177
|
* @public
|
|
165
178
|
* <p>The service encountered an error. Follow the instructions in the error message and try again.</p>
|
|
@@ -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.534.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",
|