@aws-sdk/client-ec2-instance-connect 3.957.0 → 3.958.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 +1 -7
- package/dist-cjs/auth/httpAuthSchemeProvider.js +3 -4
- package/dist-cjs/index.js +43 -94
- package/dist-cjs/runtimeConfig.browser.js +1 -2
- package/dist-cjs/runtimeConfig.js +2 -4
- package/dist-es/auth/httpAuthSchemeProvider.js +3 -4
- package/dist-es/runtimeConfig.browser.js +1 -2
- package/dist-es/runtimeConfig.js +4 -6
- package/dist-es/schemas/schemas_0.js +43 -94
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -18,10 +18,8 @@ your Linux instance using EC2 Instance Connect</a>.</p>
|
|
|
18
18
|
Reference</a>.</p>
|
|
19
19
|
|
|
20
20
|
## Installing
|
|
21
|
-
|
|
22
21
|
To install this package, simply type add or install @aws-sdk/client-ec2-instance-connect
|
|
23
22
|
using your favorite package manager:
|
|
24
|
-
|
|
25
23
|
- `npm install @aws-sdk/client-ec2-instance-connect`
|
|
26
24
|
- `yarn add @aws-sdk/client-ec2-instance-connect`
|
|
27
25
|
- `pnpm add @aws-sdk/client-ec2-instance-connect`
|
|
@@ -57,9 +55,7 @@ To send a request, you:
|
|
|
57
55
|
// a client can be shared by different commands.
|
|
58
56
|
const client = new EC2InstanceConnectClient({ region: "REGION" });
|
|
59
57
|
|
|
60
|
-
const params = {
|
|
61
|
-
/** input parameters */
|
|
62
|
-
};
|
|
58
|
+
const params = { /** input parameters */ };
|
|
63
59
|
const command = new SendSSHPublicKeyCommand(params);
|
|
64
60
|
```
|
|
65
61
|
|
|
@@ -218,7 +214,6 @@ SendSerialConsoleSSHPublicKey
|
|
|
218
214
|
</summary>
|
|
219
215
|
|
|
220
216
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/ec2-instance-connect/command/SendSerialConsoleSSHPublicKeyCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ec2-instance-connect/Interface/SendSerialConsoleSSHPublicKeyCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ec2-instance-connect/Interface/SendSerialConsoleSSHPublicKeyCommandOutput/)
|
|
221
|
-
|
|
222
217
|
</details>
|
|
223
218
|
<details>
|
|
224
219
|
<summary>
|
|
@@ -226,5 +221,4 @@ SendSSHPublicKey
|
|
|
226
221
|
</summary>
|
|
227
222
|
|
|
228
223
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/ec2-instance-connect/command/SendSSHPublicKeyCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ec2-instance-connect/Interface/SendSSHPublicKeyCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ec2-instance-connect/Interface/SendSSHPublicKeyCommandOutput/)
|
|
229
|
-
|
|
230
224
|
</details>
|
|
@@ -6,10 +6,9 @@ const util_middleware_1 = require("@smithy/util-middleware");
|
|
|
6
6
|
const defaultEC2InstanceConnectHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
7
7
|
return {
|
|
8
8
|
operation: (0, util_middleware_1.getSmithyContext)(context).operation,
|
|
9
|
-
region:
|
|
10
|
-
(
|
|
11
|
-
|
|
12
|
-
})(),
|
|
9
|
+
region: await (0, util_middleware_1.normalizeProvider)(config.region)() || (() => {
|
|
10
|
+
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
11
|
+
})(),
|
|
13
12
|
};
|
|
14
13
|
};
|
|
15
14
|
exports.defaultEC2InstanceConnectHttpAuthSchemeParametersProvider = defaultEC2InstanceConnectHttpAuthSchemeParametersProvider;
|
package/dist-cjs/index.js
CHANGED
|
@@ -319,156 +319,105 @@ const _hE = "httpError";
|
|
|
319
319
|
const _s = "server";
|
|
320
320
|
const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.ec2instanceconnect";
|
|
321
321
|
const n0 = "com.amazonaws.ec2instanceconnect";
|
|
322
|
-
var AuthException$ = [
|
|
323
|
-
-3,
|
|
324
|
-
n0,
|
|
325
|
-
_AE,
|
|
322
|
+
var AuthException$ = [-3, n0, _AE,
|
|
326
323
|
{ [_aQE]: [`Forbidden`, 403], [_e]: _c, [_hE]: 403 },
|
|
327
324
|
[_M],
|
|
328
|
-
[0]
|
|
325
|
+
[0]
|
|
329
326
|
];
|
|
330
327
|
schema.TypeRegistry.for(n0).registerError(AuthException$, AuthException);
|
|
331
|
-
var EC2InstanceNotFoundException$ = [
|
|
332
|
-
-3,
|
|
333
|
-
n0,
|
|
334
|
-
_ECINFE,
|
|
328
|
+
var EC2InstanceNotFoundException$ = [-3, n0, _ECINFE,
|
|
335
329
|
{ [_aQE]: [`EC2InstanceNotFound`, 404], [_e]: _c, [_hE]: 404 },
|
|
336
330
|
[_M],
|
|
337
|
-
[0]
|
|
331
|
+
[0]
|
|
338
332
|
];
|
|
339
333
|
schema.TypeRegistry.for(n0).registerError(EC2InstanceNotFoundException$, EC2InstanceNotFoundException);
|
|
340
|
-
var EC2InstanceStateInvalidException$ = [
|
|
341
|
-
-3,
|
|
342
|
-
n0,
|
|
343
|
-
_ECISIE,
|
|
334
|
+
var EC2InstanceStateInvalidException$ = [-3, n0, _ECISIE,
|
|
344
335
|
{ [_aQE]: [`EC2InstanceStateInvalid`, 400], [_e]: _c, [_hE]: 400 },
|
|
345
336
|
[_M],
|
|
346
|
-
[0]
|
|
337
|
+
[0]
|
|
347
338
|
];
|
|
348
339
|
schema.TypeRegistry.for(n0).registerError(EC2InstanceStateInvalidException$, EC2InstanceStateInvalidException);
|
|
349
|
-
var EC2InstanceTypeInvalidException$ = [
|
|
350
|
-
-3,
|
|
351
|
-
n0,
|
|
352
|
-
_ECITIE,
|
|
340
|
+
var EC2InstanceTypeInvalidException$ = [-3, n0, _ECITIE,
|
|
353
341
|
{ [_aQE]: [`EC2InstanceTypeInvalid`, 400], [_e]: _c, [_hE]: 400 },
|
|
354
342
|
[_M],
|
|
355
|
-
[0]
|
|
343
|
+
[0]
|
|
356
344
|
];
|
|
357
345
|
schema.TypeRegistry.for(n0).registerError(EC2InstanceTypeInvalidException$, EC2InstanceTypeInvalidException);
|
|
358
|
-
var EC2InstanceUnavailableException$ = [
|
|
359
|
-
-3,
|
|
360
|
-
n0,
|
|
361
|
-
_ECIUE,
|
|
346
|
+
var EC2InstanceUnavailableException$ = [-3, n0, _ECIUE,
|
|
362
347
|
{ [_aQE]: [`EC2InstanceUnavailable`, 503], [_e]: _s, [_hE]: 503 },
|
|
363
348
|
[_M],
|
|
364
|
-
[0]
|
|
349
|
+
[0]
|
|
365
350
|
];
|
|
366
351
|
schema.TypeRegistry.for(n0).registerError(EC2InstanceUnavailableException$, EC2InstanceUnavailableException);
|
|
367
|
-
var InvalidArgsException$ = [
|
|
368
|
-
-3,
|
|
369
|
-
n0,
|
|
370
|
-
_IAE,
|
|
352
|
+
var InvalidArgsException$ = [-3, n0, _IAE,
|
|
371
353
|
{ [_aQE]: [`InvalidArguments`, 400], [_e]: _c, [_hE]: 400 },
|
|
372
354
|
[_M],
|
|
373
|
-
[0]
|
|
355
|
+
[0]
|
|
374
356
|
];
|
|
375
357
|
schema.TypeRegistry.for(n0).registerError(InvalidArgsException$, InvalidArgsException);
|
|
376
|
-
var SendSerialConsoleSSHPublicKeyRequest$ = [
|
|
377
|
-
3,
|
|
378
|
-
n0,
|
|
379
|
-
_SSCSSHPKR,
|
|
358
|
+
var SendSerialConsoleSSHPublicKeyRequest$ = [3, n0, _SSCSSHPKR,
|
|
380
359
|
0,
|
|
381
360
|
[_II, _SP, _SSHPK],
|
|
382
|
-
[0, 1, 0]
|
|
361
|
+
[0, 1, 0]
|
|
383
362
|
];
|
|
384
|
-
var SendSerialConsoleSSHPublicKeyResponse$ = [3, n0, _SSCSSHPKRe,
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
363
|
+
var SendSerialConsoleSSHPublicKeyResponse$ = [3, n0, _SSCSSHPKRe,
|
|
364
|
+
0,
|
|
365
|
+
[_RI, _S],
|
|
366
|
+
[0, 2]
|
|
367
|
+
];
|
|
368
|
+
var SendSSHPublicKeyRequest$ = [3, n0, _SSSHPKR,
|
|
389
369
|
0,
|
|
390
370
|
[_II, _IOSU, _SSHPK, _AZ],
|
|
391
|
-
[0, 0, 0, 0]
|
|
371
|
+
[0, 0, 0, 0]
|
|
372
|
+
];
|
|
373
|
+
var SendSSHPublicKeyResponse$ = [3, n0, _SSSHPKRe,
|
|
374
|
+
0,
|
|
375
|
+
[_RI, _S],
|
|
376
|
+
[0, 2]
|
|
392
377
|
];
|
|
393
|
-
var
|
|
394
|
-
var SerialConsoleAccessDisabledException$ = [
|
|
395
|
-
-3,
|
|
396
|
-
n0,
|
|
397
|
-
_SCADE,
|
|
378
|
+
var SerialConsoleAccessDisabledException$ = [-3, n0, _SCADE,
|
|
398
379
|
{ [_aQE]: [`SerialConsoleAccessDisabled`, 403], [_e]: _c, [_hE]: 403 },
|
|
399
380
|
[_M],
|
|
400
|
-
[0]
|
|
381
|
+
[0]
|
|
401
382
|
];
|
|
402
383
|
schema.TypeRegistry.for(n0).registerError(SerialConsoleAccessDisabledException$, SerialConsoleAccessDisabledException);
|
|
403
|
-
var SerialConsoleSessionLimitExceededException$ = [
|
|
404
|
-
-3,
|
|
405
|
-
n0,
|
|
406
|
-
_SCSLEE,
|
|
384
|
+
var SerialConsoleSessionLimitExceededException$ = [-3, n0, _SCSLEE,
|
|
407
385
|
{ [_aQE]: [`SerialConsoleSessionLimitExceeded`, 400], [_e]: _c, [_hE]: 400 },
|
|
408
386
|
[_M],
|
|
409
|
-
[0]
|
|
387
|
+
[0]
|
|
410
388
|
];
|
|
411
389
|
schema.TypeRegistry.for(n0).registerError(SerialConsoleSessionLimitExceededException$, SerialConsoleSessionLimitExceededException);
|
|
412
|
-
var SerialConsoleSessionUnavailableException$ = [
|
|
413
|
-
-3,
|
|
414
|
-
n0,
|
|
415
|
-
_SCSUE,
|
|
390
|
+
var SerialConsoleSessionUnavailableException$ = [-3, n0, _SCSUE,
|
|
416
391
|
{ [_aQE]: [`SerialConsoleSessionUnavailable`, 500], [_e]: _s, [_hE]: 500 },
|
|
417
392
|
[_M],
|
|
418
|
-
[0]
|
|
393
|
+
[0]
|
|
419
394
|
];
|
|
420
395
|
schema.TypeRegistry.for(n0).registerError(SerialConsoleSessionUnavailableException$, SerialConsoleSessionUnavailableException);
|
|
421
|
-
var SerialConsoleSessionUnsupportedException$ = [
|
|
422
|
-
-3,
|
|
423
|
-
n0,
|
|
424
|
-
_SCSUEe,
|
|
396
|
+
var SerialConsoleSessionUnsupportedException$ = [-3, n0, _SCSUEe,
|
|
425
397
|
{ [_aQE]: [`SerialConsoleSessionUnsupported`, 400], [_e]: _c, [_hE]: 400 },
|
|
426
398
|
[_M],
|
|
427
|
-
[0]
|
|
399
|
+
[0]
|
|
428
400
|
];
|
|
429
401
|
schema.TypeRegistry.for(n0).registerError(SerialConsoleSessionUnsupportedException$, SerialConsoleSessionUnsupportedException);
|
|
430
|
-
var ServiceException$ = [
|
|
431
|
-
-3,
|
|
432
|
-
n0,
|
|
433
|
-
_SE,
|
|
402
|
+
var ServiceException$ = [-3, n0, _SE,
|
|
434
403
|
{ [_aQE]: [`InternalServerError`, 500], [_e]: _s, [_hE]: 500 },
|
|
435
404
|
[_M],
|
|
436
|
-
[0]
|
|
405
|
+
[0]
|
|
437
406
|
];
|
|
438
407
|
schema.TypeRegistry.for(n0).registerError(ServiceException$, ServiceException);
|
|
439
|
-
var ThrottlingException$ = [
|
|
440
|
-
-3,
|
|
441
|
-
n0,
|
|
442
|
-
_TE,
|
|
408
|
+
var ThrottlingException$ = [-3, n0, _TE,
|
|
443
409
|
{ [_aQE]: [`TooManyRequests`, 429], [_e]: _c, [_hE]: 429 },
|
|
444
410
|
[_M],
|
|
445
|
-
[0]
|
|
411
|
+
[0]
|
|
446
412
|
];
|
|
447
413
|
schema.TypeRegistry.for(n0).registerError(ThrottlingException$, ThrottlingException);
|
|
448
|
-
var EC2InstanceConnectServiceException$ = [
|
|
449
|
-
-3,
|
|
450
|
-
_sm,
|
|
451
|
-
"EC2InstanceConnectServiceException",
|
|
452
|
-
0,
|
|
453
|
-
[],
|
|
454
|
-
[],
|
|
455
|
-
];
|
|
414
|
+
var EC2InstanceConnectServiceException$ = [-3, _sm, "EC2InstanceConnectServiceException", 0, [], []];
|
|
456
415
|
schema.TypeRegistry.for(_sm).registerError(EC2InstanceConnectServiceException$, EC2InstanceConnectServiceException);
|
|
457
|
-
var SendSerialConsoleSSHPublicKey$ = [
|
|
458
|
-
|
|
459
|
-
n0,
|
|
460
|
-
_SSCSSHPK,
|
|
461
|
-
0,
|
|
462
|
-
() => SendSerialConsoleSSHPublicKeyRequest$,
|
|
463
|
-
() => SendSerialConsoleSSHPublicKeyResponse$,
|
|
416
|
+
var SendSerialConsoleSSHPublicKey$ = [9, n0, _SSCSSHPK,
|
|
417
|
+
0, () => SendSerialConsoleSSHPublicKeyRequest$, () => SendSerialConsoleSSHPublicKeyResponse$
|
|
464
418
|
];
|
|
465
|
-
var SendSSHPublicKey$ = [
|
|
466
|
-
|
|
467
|
-
n0,
|
|
468
|
-
_SSSHPK,
|
|
469
|
-
0,
|
|
470
|
-
() => SendSSHPublicKeyRequest$,
|
|
471
|
-
() => SendSSHPublicKeyResponse$,
|
|
419
|
+
var SendSSHPublicKey$ = [9, n0, _SSSHPK,
|
|
420
|
+
0, () => SendSSHPublicKeyRequest$, () => SendSSHPublicKeyResponse$
|
|
472
421
|
];
|
|
473
422
|
|
|
474
423
|
class SendSerialConsoleSSHPublicKeyCommand extends smithyClient.Command
|
|
@@ -24,8 +24,7 @@ const getRuntimeConfig = (config) => {
|
|
|
24
24
|
defaultsMode,
|
|
25
25
|
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_browser_1.calculateBodyLength,
|
|
26
26
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
27
|
-
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
28
|
-
(0, util_user_agent_browser_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
27
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_browser_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
29
28
|
maxAttempts: config?.maxAttempts ?? util_retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
30
29
|
region: config?.region ?? (0, invalid_dependency_1.invalidProvider)("Region is missing"),
|
|
31
30
|
requestHandler: fetch_http_handler_1.FetchHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
@@ -34,11 +34,9 @@ const getRuntimeConfig = (config) => {
|
|
|
34
34
|
authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
35
35
|
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
|
|
36
36
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider,
|
|
37
|
-
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
38
|
-
(0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
37
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
39
38
|
maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
40
|
-
region: config?.region ??
|
|
41
|
-
(0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
39
|
+
region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
42
40
|
requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
43
41
|
retryMode: config?.retryMode ??
|
|
44
42
|
(0, node_config_provider_1.loadConfig)({
|
|
@@ -3,10 +3,9 @@ import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware";
|
|
|
3
3
|
export const defaultEC2InstanceConnectHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
4
4
|
return {
|
|
5
5
|
operation: getSmithyContext(context).operation,
|
|
6
|
-
region:
|
|
7
|
-
(
|
|
8
|
-
|
|
9
|
-
})(),
|
|
6
|
+
region: await normalizeProvider(config.region)() || (() => {
|
|
7
|
+
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
8
|
+
})(),
|
|
10
9
|
};
|
|
11
10
|
};
|
|
12
11
|
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
@@ -20,8 +20,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
20
20
|
defaultsMode,
|
|
21
21
|
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
22
22
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
23
|
-
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
24
|
-
createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
23
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
25
24
|
maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
|
|
26
25
|
region: config?.region ?? invalidProvider("Region is missing"),
|
|
27
26
|
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import packageInfo from "../package.json";
|
|
2
|
-
import {
|
|
2
|
+
import { emitWarningIfUnsupportedVersion as awsCheckVersion, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } from "@aws-sdk/core";
|
|
3
3
|
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
|
4
|
-
import {
|
|
4
|
+
import { createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS } from "@aws-sdk/util-user-agent-node";
|
|
5
5
|
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@smithy/config-resolver";
|
|
6
6
|
import { Hash } from "@smithy/hash-node";
|
|
7
7
|
import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@smithy/middleware-retry";
|
|
@@ -30,11 +30,9 @@ export const getRuntimeConfig = (config) => {
|
|
|
30
30
|
authSchemePreference: config?.authSchemePreference ?? loadNodeConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
31
31
|
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
32
32
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
|
|
33
|
-
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
34
|
-
createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
33
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
35
34
|
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
36
|
-
region: config?.region ??
|
|
37
|
-
loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
35
|
+
region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
38
36
|
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
39
37
|
retryMode: config?.retryMode ??
|
|
40
38
|
loadNodeConfig({
|
|
@@ -34,154 +34,103 @@ const n0 = "com.amazonaws.ec2instanceconnect";
|
|
|
34
34
|
import { TypeRegistry } from "@smithy/core/schema";
|
|
35
35
|
import { EC2InstanceConnectServiceException } from "../models/EC2InstanceConnectServiceException";
|
|
36
36
|
import { AuthException, EC2InstanceNotFoundException, EC2InstanceStateInvalidException, EC2InstanceTypeInvalidException, EC2InstanceUnavailableException, InvalidArgsException, SerialConsoleAccessDisabledException, SerialConsoleSessionLimitExceededException, SerialConsoleSessionUnavailableException, SerialConsoleSessionUnsupportedException, ServiceException, ThrottlingException, } from "../models/errors";
|
|
37
|
-
export var AuthException$ = [
|
|
38
|
-
-3,
|
|
39
|
-
n0,
|
|
40
|
-
_AE,
|
|
37
|
+
export var AuthException$ = [-3, n0, _AE,
|
|
41
38
|
{ [_aQE]: [`Forbidden`, 403], [_e]: _c, [_hE]: 403 },
|
|
42
39
|
[_M],
|
|
43
|
-
[0]
|
|
40
|
+
[0]
|
|
44
41
|
];
|
|
45
42
|
TypeRegistry.for(n0).registerError(AuthException$, AuthException);
|
|
46
|
-
export var EC2InstanceNotFoundException$ = [
|
|
47
|
-
-3,
|
|
48
|
-
n0,
|
|
49
|
-
_ECINFE,
|
|
43
|
+
export var EC2InstanceNotFoundException$ = [-3, n0, _ECINFE,
|
|
50
44
|
{ [_aQE]: [`EC2InstanceNotFound`, 404], [_e]: _c, [_hE]: 404 },
|
|
51
45
|
[_M],
|
|
52
|
-
[0]
|
|
46
|
+
[0]
|
|
53
47
|
];
|
|
54
48
|
TypeRegistry.for(n0).registerError(EC2InstanceNotFoundException$, EC2InstanceNotFoundException);
|
|
55
|
-
export var EC2InstanceStateInvalidException$ = [
|
|
56
|
-
-3,
|
|
57
|
-
n0,
|
|
58
|
-
_ECISIE,
|
|
49
|
+
export var EC2InstanceStateInvalidException$ = [-3, n0, _ECISIE,
|
|
59
50
|
{ [_aQE]: [`EC2InstanceStateInvalid`, 400], [_e]: _c, [_hE]: 400 },
|
|
60
51
|
[_M],
|
|
61
|
-
[0]
|
|
52
|
+
[0]
|
|
62
53
|
];
|
|
63
54
|
TypeRegistry.for(n0).registerError(EC2InstanceStateInvalidException$, EC2InstanceStateInvalidException);
|
|
64
|
-
export var EC2InstanceTypeInvalidException$ = [
|
|
65
|
-
-3,
|
|
66
|
-
n0,
|
|
67
|
-
_ECITIE,
|
|
55
|
+
export var EC2InstanceTypeInvalidException$ = [-3, n0, _ECITIE,
|
|
68
56
|
{ [_aQE]: [`EC2InstanceTypeInvalid`, 400], [_e]: _c, [_hE]: 400 },
|
|
69
57
|
[_M],
|
|
70
|
-
[0]
|
|
58
|
+
[0]
|
|
71
59
|
];
|
|
72
60
|
TypeRegistry.for(n0).registerError(EC2InstanceTypeInvalidException$, EC2InstanceTypeInvalidException);
|
|
73
|
-
export var EC2InstanceUnavailableException$ = [
|
|
74
|
-
-3,
|
|
75
|
-
n0,
|
|
76
|
-
_ECIUE,
|
|
61
|
+
export var EC2InstanceUnavailableException$ = [-3, n0, _ECIUE,
|
|
77
62
|
{ [_aQE]: [`EC2InstanceUnavailable`, 503], [_e]: _s, [_hE]: 503 },
|
|
78
63
|
[_M],
|
|
79
|
-
[0]
|
|
64
|
+
[0]
|
|
80
65
|
];
|
|
81
66
|
TypeRegistry.for(n0).registerError(EC2InstanceUnavailableException$, EC2InstanceUnavailableException);
|
|
82
|
-
export var InvalidArgsException$ = [
|
|
83
|
-
-3,
|
|
84
|
-
n0,
|
|
85
|
-
_IAE,
|
|
67
|
+
export var InvalidArgsException$ = [-3, n0, _IAE,
|
|
86
68
|
{ [_aQE]: [`InvalidArguments`, 400], [_e]: _c, [_hE]: 400 },
|
|
87
69
|
[_M],
|
|
88
|
-
[0]
|
|
70
|
+
[0]
|
|
89
71
|
];
|
|
90
72
|
TypeRegistry.for(n0).registerError(InvalidArgsException$, InvalidArgsException);
|
|
91
|
-
export var SendSerialConsoleSSHPublicKeyRequest$ = [
|
|
92
|
-
3,
|
|
93
|
-
n0,
|
|
94
|
-
_SSCSSHPKR,
|
|
73
|
+
export var SendSerialConsoleSSHPublicKeyRequest$ = [3, n0, _SSCSSHPKR,
|
|
95
74
|
0,
|
|
96
75
|
[_II, _SP, _SSHPK],
|
|
97
|
-
[0, 1, 0]
|
|
76
|
+
[0, 1, 0]
|
|
98
77
|
];
|
|
99
|
-
export var SendSerialConsoleSSHPublicKeyResponse$ = [3, n0, _SSCSSHPKRe,
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
78
|
+
export var SendSerialConsoleSSHPublicKeyResponse$ = [3, n0, _SSCSSHPKRe,
|
|
79
|
+
0,
|
|
80
|
+
[_RI, _S],
|
|
81
|
+
[0, 2]
|
|
82
|
+
];
|
|
83
|
+
export var SendSSHPublicKeyRequest$ = [3, n0, _SSSHPKR,
|
|
104
84
|
0,
|
|
105
85
|
[_II, _IOSU, _SSHPK, _AZ],
|
|
106
|
-
[0, 0, 0, 0]
|
|
86
|
+
[0, 0, 0, 0]
|
|
87
|
+
];
|
|
88
|
+
export var SendSSHPublicKeyResponse$ = [3, n0, _SSSHPKRe,
|
|
89
|
+
0,
|
|
90
|
+
[_RI, _S],
|
|
91
|
+
[0, 2]
|
|
107
92
|
];
|
|
108
|
-
export var
|
|
109
|
-
export var SerialConsoleAccessDisabledException$ = [
|
|
110
|
-
-3,
|
|
111
|
-
n0,
|
|
112
|
-
_SCADE,
|
|
93
|
+
export var SerialConsoleAccessDisabledException$ = [-3, n0, _SCADE,
|
|
113
94
|
{ [_aQE]: [`SerialConsoleAccessDisabled`, 403], [_e]: _c, [_hE]: 403 },
|
|
114
95
|
[_M],
|
|
115
|
-
[0]
|
|
96
|
+
[0]
|
|
116
97
|
];
|
|
117
98
|
TypeRegistry.for(n0).registerError(SerialConsoleAccessDisabledException$, SerialConsoleAccessDisabledException);
|
|
118
|
-
export var SerialConsoleSessionLimitExceededException$ = [
|
|
119
|
-
-3,
|
|
120
|
-
n0,
|
|
121
|
-
_SCSLEE,
|
|
99
|
+
export var SerialConsoleSessionLimitExceededException$ = [-3, n0, _SCSLEE,
|
|
122
100
|
{ [_aQE]: [`SerialConsoleSessionLimitExceeded`, 400], [_e]: _c, [_hE]: 400 },
|
|
123
101
|
[_M],
|
|
124
|
-
[0]
|
|
102
|
+
[0]
|
|
125
103
|
];
|
|
126
104
|
TypeRegistry.for(n0).registerError(SerialConsoleSessionLimitExceededException$, SerialConsoleSessionLimitExceededException);
|
|
127
|
-
export var SerialConsoleSessionUnavailableException$ = [
|
|
128
|
-
-3,
|
|
129
|
-
n0,
|
|
130
|
-
_SCSUE,
|
|
105
|
+
export var SerialConsoleSessionUnavailableException$ = [-3, n0, _SCSUE,
|
|
131
106
|
{ [_aQE]: [`SerialConsoleSessionUnavailable`, 500], [_e]: _s, [_hE]: 500 },
|
|
132
107
|
[_M],
|
|
133
|
-
[0]
|
|
108
|
+
[0]
|
|
134
109
|
];
|
|
135
110
|
TypeRegistry.for(n0).registerError(SerialConsoleSessionUnavailableException$, SerialConsoleSessionUnavailableException);
|
|
136
|
-
export var SerialConsoleSessionUnsupportedException$ = [
|
|
137
|
-
-3,
|
|
138
|
-
n0,
|
|
139
|
-
_SCSUEe,
|
|
111
|
+
export var SerialConsoleSessionUnsupportedException$ = [-3, n0, _SCSUEe,
|
|
140
112
|
{ [_aQE]: [`SerialConsoleSessionUnsupported`, 400], [_e]: _c, [_hE]: 400 },
|
|
141
113
|
[_M],
|
|
142
|
-
[0]
|
|
114
|
+
[0]
|
|
143
115
|
];
|
|
144
116
|
TypeRegistry.for(n0).registerError(SerialConsoleSessionUnsupportedException$, SerialConsoleSessionUnsupportedException);
|
|
145
|
-
export var ServiceException$ = [
|
|
146
|
-
-3,
|
|
147
|
-
n0,
|
|
148
|
-
_SE,
|
|
117
|
+
export var ServiceException$ = [-3, n0, _SE,
|
|
149
118
|
{ [_aQE]: [`InternalServerError`, 500], [_e]: _s, [_hE]: 500 },
|
|
150
119
|
[_M],
|
|
151
|
-
[0]
|
|
120
|
+
[0]
|
|
152
121
|
];
|
|
153
122
|
TypeRegistry.for(n0).registerError(ServiceException$, ServiceException);
|
|
154
|
-
export var ThrottlingException$ = [
|
|
155
|
-
-3,
|
|
156
|
-
n0,
|
|
157
|
-
_TE,
|
|
123
|
+
export var ThrottlingException$ = [-3, n0, _TE,
|
|
158
124
|
{ [_aQE]: [`TooManyRequests`, 429], [_e]: _c, [_hE]: 429 },
|
|
159
125
|
[_M],
|
|
160
|
-
[0]
|
|
126
|
+
[0]
|
|
161
127
|
];
|
|
162
128
|
TypeRegistry.for(n0).registerError(ThrottlingException$, ThrottlingException);
|
|
163
|
-
export var EC2InstanceConnectServiceException$ = [
|
|
164
|
-
-3,
|
|
165
|
-
_sm,
|
|
166
|
-
"EC2InstanceConnectServiceException",
|
|
167
|
-
0,
|
|
168
|
-
[],
|
|
169
|
-
[],
|
|
170
|
-
];
|
|
129
|
+
export var EC2InstanceConnectServiceException$ = [-3, _sm, "EC2InstanceConnectServiceException", 0, [], []];
|
|
171
130
|
TypeRegistry.for(_sm).registerError(EC2InstanceConnectServiceException$, EC2InstanceConnectServiceException);
|
|
172
|
-
export var SendSerialConsoleSSHPublicKey$ = [
|
|
173
|
-
|
|
174
|
-
n0,
|
|
175
|
-
_SSCSSHPK,
|
|
176
|
-
0,
|
|
177
|
-
() => SendSerialConsoleSSHPublicKeyRequest$,
|
|
178
|
-
() => SendSerialConsoleSSHPublicKeyResponse$,
|
|
131
|
+
export var SendSerialConsoleSSHPublicKey$ = [9, n0, _SSCSSHPK,
|
|
132
|
+
0, () => SendSerialConsoleSSHPublicKeyRequest$, () => SendSerialConsoleSSHPublicKeyResponse$
|
|
179
133
|
];
|
|
180
|
-
export var SendSSHPublicKey$ = [
|
|
181
|
-
|
|
182
|
-
n0,
|
|
183
|
-
_SSSHPK,
|
|
184
|
-
0,
|
|
185
|
-
() => SendSSHPublicKeyRequest$,
|
|
186
|
-
() => SendSSHPublicKeyResponse$,
|
|
134
|
+
export var SendSSHPublicKey$ = [9, n0, _SSSHPK,
|
|
135
|
+
0, () => SendSSHPublicKeyRequest$, () => SendSSHPublicKeyResponse$
|
|
187
136
|
];
|
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.958.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-ec2-instance-connect",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
24
24
|
"@aws-sdk/core": "3.957.0",
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.958.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.957.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.957.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.957.0",
|