@aws-sdk/client-ec2-instance-connect 3.1075.0 → 3.1077.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/dist-cjs/index.js +529 -15
- package/dist-es/runtimeConfig.browser.js +0 -2
- package/dist-es/runtimeConfig.js +1 -2
- package/dist-es/runtimeConfig.native.js +0 -2
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-types/runtimeConfig.browser.d.ts +2 -2
- package/dist-types/runtimeConfig.d.ts +2 -2
- package/dist-types/runtimeConfig.native.d.ts +2 -2
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +8 -2
- package/dist-types/ts3.4/runtimeConfig.d.ts +8 -2
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +8 -2
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -0
- package/package.json +8 -10
- package/dist-cjs/auth/httpAuthSchemeProvider.js +0 -40
- package/dist-cjs/endpoint/bdd.js +0 -46
- package/dist-cjs/endpoint/endpointResolver.js +0 -14
- package/dist-cjs/models/EC2InstanceConnectServiceException.js +0 -8
- package/dist-cjs/models/errors.js +0 -169
- package/dist-cjs/runtimeConfig.browser.js +0 -32
- package/dist-cjs/runtimeConfig.js +0 -45
- package/dist-cjs/runtimeConfig.native.js +0 -12
- package/dist-cjs/runtimeConfig.shared.js +0 -38
- package/dist-cjs/schemas/schemas_0.js +0 -159
package/dist-cjs/index.js
CHANGED
|
@@ -1,21 +1,58 @@
|
|
|
1
|
-
|
|
2
|
-
const { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
|
|
1
|
+
const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
|
|
3
2
|
const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin } = require("@smithy/core");
|
|
4
|
-
const { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
|
|
3
|
+
const { normalizeProvider, getSmithyContext, ServiceException: ServiceException$1, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
|
|
5
4
|
exports.$Command = Command;
|
|
6
5
|
exports.__Client = Client;
|
|
7
|
-
const { resolveRegionConfig } = require("@smithy/core/config");
|
|
8
|
-
const { resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
|
|
9
|
-
const { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
|
|
10
|
-
const { resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
|
|
11
|
-
const { getSchemaSerdePlugin } = require("@smithy/core/schema");
|
|
12
|
-
const {
|
|
13
|
-
const {
|
|
14
|
-
const {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
const {
|
|
18
|
-
|
|
6
|
+
const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
|
|
7
|
+
const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
|
|
8
|
+
const { parseUrl, getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
|
|
9
|
+
const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
|
|
10
|
+
const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
|
|
11
|
+
const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
|
|
12
|
+
const { defaultProvider } = require("@aws-sdk/credential-provider-node");
|
|
13
|
+
const { toUtf8, fromUtf8, toBase64, fromBase64, calculateBodyLength } = require("@smithy/core/serde");
|
|
14
|
+
const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
|
|
15
|
+
const { AwsJson1_1Protocol } = require("@aws-sdk/core/protocols");
|
|
16
|
+
const { Sha256 } = require("@smithy/core/checksum");
|
|
17
|
+
|
|
18
|
+
const defaultEC2InstanceConnectHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
19
|
+
return {
|
|
20
|
+
operation: getSmithyContext(context).operation,
|
|
21
|
+
region: await normalizeProvider(config.region)() || (() => {
|
|
22
|
+
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
23
|
+
})(),
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
27
|
+
return {
|
|
28
|
+
schemeId: "aws.auth#sigv4",
|
|
29
|
+
signingProperties: {
|
|
30
|
+
name: "ec2-instance-connect",
|
|
31
|
+
region: authParameters.region,
|
|
32
|
+
},
|
|
33
|
+
propertiesExtractor: (config, context) => ({
|
|
34
|
+
signingProperties: {
|
|
35
|
+
config,
|
|
36
|
+
context,
|
|
37
|
+
},
|
|
38
|
+
}),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
const defaultEC2InstanceConnectHttpAuthSchemeProvider = (authParameters) => {
|
|
42
|
+
const options = [];
|
|
43
|
+
switch (authParameters.operation) {
|
|
44
|
+
default: {
|
|
45
|
+
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
return options;
|
|
49
|
+
};
|
|
50
|
+
const resolveHttpAuthSchemeConfig = (config) => {
|
|
51
|
+
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
52
|
+
return Object.assign(config_0, {
|
|
53
|
+
authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
|
|
54
|
+
});
|
|
55
|
+
};
|
|
19
56
|
|
|
20
57
|
const resolveClientEndpointParameters = (options) => {
|
|
21
58
|
return Object.assign(options, {
|
|
@@ -31,6 +68,450 @@ const commonParams = {
|
|
|
31
68
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
32
69
|
};
|
|
33
70
|
|
|
71
|
+
var version = "3.1076.0";
|
|
72
|
+
var packageInfo = {
|
|
73
|
+
version: version};
|
|
74
|
+
|
|
75
|
+
const k = "ref";
|
|
76
|
+
const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
|
|
77
|
+
const _data = {
|
|
78
|
+
conditions: [
|
|
79
|
+
[c, [g]],
|
|
80
|
+
[c, j],
|
|
81
|
+
["aws.partition", j, d],
|
|
82
|
+
[e, [{ [k]: "UseFIPS" }, b]],
|
|
83
|
+
[e, [{ [k]: "UseDualStack" }, b]],
|
|
84
|
+
[e, [{ fn: f, argv: [h, "supportsDualStack"] }, b]],
|
|
85
|
+
[e, [{ fn: f, argv: [h, "supportsFIPS"] }, b]]
|
|
86
|
+
],
|
|
87
|
+
results: [
|
|
88
|
+
[a],
|
|
89
|
+
[a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
|
|
90
|
+
[a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
|
|
91
|
+
[g, i],
|
|
92
|
+
["https://ec2-instance-connect-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
|
|
93
|
+
[a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
|
|
94
|
+
["https://ec2-instance-connect-fips.{Region}.{PartitionResult#dnsSuffix}", i],
|
|
95
|
+
[a, "FIPS is enabled but this partition does not support FIPS"],
|
|
96
|
+
["https://ec2-instance-connect.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
|
|
97
|
+
[a, "DualStack is enabled but this partition does not support DualStack"],
|
|
98
|
+
["https://ec2-instance-connect.{Region}.{PartitionResult#dnsSuffix}", i],
|
|
99
|
+
[a, "Invalid Configuration: Missing Region"]
|
|
100
|
+
]
|
|
101
|
+
};
|
|
102
|
+
const root = 2;
|
|
103
|
+
const r = 100_000_000;
|
|
104
|
+
const nodes = new Int32Array([
|
|
105
|
+
-1, 1, -1,
|
|
106
|
+
0, 12, 3,
|
|
107
|
+
1, 4, r + 11,
|
|
108
|
+
2, 5, r + 11,
|
|
109
|
+
3, 8, 6,
|
|
110
|
+
4, 7, r + 10,
|
|
111
|
+
5, r + 8, r + 9,
|
|
112
|
+
4, 10, 9,
|
|
113
|
+
6, r + 6, r + 7,
|
|
114
|
+
5, 11, r + 5,
|
|
115
|
+
6, r + 4, r + 5,
|
|
116
|
+
3, r + 1, 13,
|
|
117
|
+
4, r + 2, r + 3,
|
|
118
|
+
]);
|
|
119
|
+
const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
120
|
+
|
|
121
|
+
const cache = new EndpointCache({
|
|
122
|
+
size: 50,
|
|
123
|
+
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
|
|
124
|
+
});
|
|
125
|
+
const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
126
|
+
return cache.get(endpointParams, () => decideEndpoint(bdd, {
|
|
127
|
+
endpointParams: endpointParams,
|
|
128
|
+
logger: context.logger,
|
|
129
|
+
}));
|
|
130
|
+
};
|
|
131
|
+
customEndpointFunctions.aws = awsEndpointFunctions;
|
|
132
|
+
|
|
133
|
+
class EC2InstanceConnectServiceException extends ServiceException$1 {
|
|
134
|
+
constructor(options) {
|
|
135
|
+
super(options);
|
|
136
|
+
Object.setPrototypeOf(this, EC2InstanceConnectServiceException.prototype);
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
class AuthException extends EC2InstanceConnectServiceException {
|
|
141
|
+
name = "AuthException";
|
|
142
|
+
$fault = "client";
|
|
143
|
+
Message;
|
|
144
|
+
constructor(opts) {
|
|
145
|
+
super({
|
|
146
|
+
name: "AuthException",
|
|
147
|
+
$fault: "client",
|
|
148
|
+
...opts,
|
|
149
|
+
});
|
|
150
|
+
Object.setPrototypeOf(this, AuthException.prototype);
|
|
151
|
+
this.Message = opts.Message;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
class EC2InstanceNotFoundException extends EC2InstanceConnectServiceException {
|
|
155
|
+
name = "EC2InstanceNotFoundException";
|
|
156
|
+
$fault = "client";
|
|
157
|
+
Message;
|
|
158
|
+
constructor(opts) {
|
|
159
|
+
super({
|
|
160
|
+
name: "EC2InstanceNotFoundException",
|
|
161
|
+
$fault: "client",
|
|
162
|
+
...opts,
|
|
163
|
+
});
|
|
164
|
+
Object.setPrototypeOf(this, EC2InstanceNotFoundException.prototype);
|
|
165
|
+
this.Message = opts.Message;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
class EC2InstanceStateInvalidException extends EC2InstanceConnectServiceException {
|
|
169
|
+
name = "EC2InstanceStateInvalidException";
|
|
170
|
+
$fault = "client";
|
|
171
|
+
Message;
|
|
172
|
+
constructor(opts) {
|
|
173
|
+
super({
|
|
174
|
+
name: "EC2InstanceStateInvalidException",
|
|
175
|
+
$fault: "client",
|
|
176
|
+
...opts,
|
|
177
|
+
});
|
|
178
|
+
Object.setPrototypeOf(this, EC2InstanceStateInvalidException.prototype);
|
|
179
|
+
this.Message = opts.Message;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
class EC2InstanceTypeInvalidException extends EC2InstanceConnectServiceException {
|
|
183
|
+
name = "EC2InstanceTypeInvalidException";
|
|
184
|
+
$fault = "client";
|
|
185
|
+
Message;
|
|
186
|
+
constructor(opts) {
|
|
187
|
+
super({
|
|
188
|
+
name: "EC2InstanceTypeInvalidException",
|
|
189
|
+
$fault: "client",
|
|
190
|
+
...opts,
|
|
191
|
+
});
|
|
192
|
+
Object.setPrototypeOf(this, EC2InstanceTypeInvalidException.prototype);
|
|
193
|
+
this.Message = opts.Message;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
class EC2InstanceUnavailableException extends EC2InstanceConnectServiceException {
|
|
197
|
+
name = "EC2InstanceUnavailableException";
|
|
198
|
+
$fault = "server";
|
|
199
|
+
Message;
|
|
200
|
+
constructor(opts) {
|
|
201
|
+
super({
|
|
202
|
+
name: "EC2InstanceUnavailableException",
|
|
203
|
+
$fault: "server",
|
|
204
|
+
...opts,
|
|
205
|
+
});
|
|
206
|
+
Object.setPrototypeOf(this, EC2InstanceUnavailableException.prototype);
|
|
207
|
+
this.Message = opts.Message;
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
class InvalidArgsException extends EC2InstanceConnectServiceException {
|
|
211
|
+
name = "InvalidArgsException";
|
|
212
|
+
$fault = "client";
|
|
213
|
+
Message;
|
|
214
|
+
constructor(opts) {
|
|
215
|
+
super({
|
|
216
|
+
name: "InvalidArgsException",
|
|
217
|
+
$fault: "client",
|
|
218
|
+
...opts,
|
|
219
|
+
});
|
|
220
|
+
Object.setPrototypeOf(this, InvalidArgsException.prototype);
|
|
221
|
+
this.Message = opts.Message;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
class SerialConsoleAccessDisabledException extends EC2InstanceConnectServiceException {
|
|
225
|
+
name = "SerialConsoleAccessDisabledException";
|
|
226
|
+
$fault = "client";
|
|
227
|
+
Message;
|
|
228
|
+
constructor(opts) {
|
|
229
|
+
super({
|
|
230
|
+
name: "SerialConsoleAccessDisabledException",
|
|
231
|
+
$fault: "client",
|
|
232
|
+
...opts,
|
|
233
|
+
});
|
|
234
|
+
Object.setPrototypeOf(this, SerialConsoleAccessDisabledException.prototype);
|
|
235
|
+
this.Message = opts.Message;
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
class SerialConsoleSessionLimitExceededException extends EC2InstanceConnectServiceException {
|
|
239
|
+
name = "SerialConsoleSessionLimitExceededException";
|
|
240
|
+
$fault = "client";
|
|
241
|
+
Message;
|
|
242
|
+
constructor(opts) {
|
|
243
|
+
super({
|
|
244
|
+
name: "SerialConsoleSessionLimitExceededException",
|
|
245
|
+
$fault: "client",
|
|
246
|
+
...opts,
|
|
247
|
+
});
|
|
248
|
+
Object.setPrototypeOf(this, SerialConsoleSessionLimitExceededException.prototype);
|
|
249
|
+
this.Message = opts.Message;
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
class SerialConsoleSessionUnavailableException extends EC2InstanceConnectServiceException {
|
|
253
|
+
name = "SerialConsoleSessionUnavailableException";
|
|
254
|
+
$fault = "server";
|
|
255
|
+
Message;
|
|
256
|
+
constructor(opts) {
|
|
257
|
+
super({
|
|
258
|
+
name: "SerialConsoleSessionUnavailableException",
|
|
259
|
+
$fault: "server",
|
|
260
|
+
...opts,
|
|
261
|
+
});
|
|
262
|
+
Object.setPrototypeOf(this, SerialConsoleSessionUnavailableException.prototype);
|
|
263
|
+
this.Message = opts.Message;
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
class SerialConsoleSessionUnsupportedException extends EC2InstanceConnectServiceException {
|
|
267
|
+
name = "SerialConsoleSessionUnsupportedException";
|
|
268
|
+
$fault = "client";
|
|
269
|
+
Message;
|
|
270
|
+
constructor(opts) {
|
|
271
|
+
super({
|
|
272
|
+
name: "SerialConsoleSessionUnsupportedException",
|
|
273
|
+
$fault: "client",
|
|
274
|
+
...opts,
|
|
275
|
+
});
|
|
276
|
+
Object.setPrototypeOf(this, SerialConsoleSessionUnsupportedException.prototype);
|
|
277
|
+
this.Message = opts.Message;
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
class ServiceException extends EC2InstanceConnectServiceException {
|
|
281
|
+
name = "ServiceException";
|
|
282
|
+
$fault = "server";
|
|
283
|
+
Message;
|
|
284
|
+
constructor(opts) {
|
|
285
|
+
super({
|
|
286
|
+
name: "ServiceException",
|
|
287
|
+
$fault: "server",
|
|
288
|
+
...opts,
|
|
289
|
+
});
|
|
290
|
+
Object.setPrototypeOf(this, ServiceException.prototype);
|
|
291
|
+
this.Message = opts.Message;
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
class ThrottlingException extends EC2InstanceConnectServiceException {
|
|
295
|
+
name = "ThrottlingException";
|
|
296
|
+
$fault = "client";
|
|
297
|
+
Message;
|
|
298
|
+
constructor(opts) {
|
|
299
|
+
super({
|
|
300
|
+
name: "ThrottlingException",
|
|
301
|
+
$fault: "client",
|
|
302
|
+
...opts,
|
|
303
|
+
});
|
|
304
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
305
|
+
this.Message = opts.Message;
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
const _AE = "AuthException";
|
|
310
|
+
const _AZ = "AvailabilityZone";
|
|
311
|
+
const _ECINFE = "EC2InstanceNotFoundException";
|
|
312
|
+
const _ECISIE = "EC2InstanceStateInvalidException";
|
|
313
|
+
const _ECITIE = "EC2InstanceTypeInvalidException";
|
|
314
|
+
const _ECIUE = "EC2InstanceUnavailableException";
|
|
315
|
+
const _IAE = "InvalidArgsException";
|
|
316
|
+
const _II = "InstanceId";
|
|
317
|
+
const _IOSU = "InstanceOSUser";
|
|
318
|
+
const _M = "Message";
|
|
319
|
+
const _RI = "RequestId";
|
|
320
|
+
const _S = "Success";
|
|
321
|
+
const _SCADE = "SerialConsoleAccessDisabledException";
|
|
322
|
+
const _SCSLEE = "SerialConsoleSessionLimitExceededException";
|
|
323
|
+
const _SCSUE = "SerialConsoleSessionUnavailableException";
|
|
324
|
+
const _SCSUEe = "SerialConsoleSessionUnsupportedException";
|
|
325
|
+
const _SE = "ServiceException";
|
|
326
|
+
const _SP = "SerialPort";
|
|
327
|
+
const _SSCSSHPK = "SendSerialConsoleSSHPublicKey";
|
|
328
|
+
const _SSCSSHPKR = "SendSerialConsoleSSHPublicKeyRequest";
|
|
329
|
+
const _SSCSSHPKRe = "SendSerialConsoleSSHPublicKeyResponse";
|
|
330
|
+
const _SSHPK = "SSHPublicKey";
|
|
331
|
+
const _SSSHPK = "SendSSHPublicKey";
|
|
332
|
+
const _SSSHPKR = "SendSSHPublicKeyRequest";
|
|
333
|
+
const _SSSHPKRe = "SendSSHPublicKeyResponse";
|
|
334
|
+
const _TE = "ThrottlingException";
|
|
335
|
+
const _aQE = "awsQueryError";
|
|
336
|
+
const _c = "client";
|
|
337
|
+
const _e = "error";
|
|
338
|
+
const _hE = "httpError";
|
|
339
|
+
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.ec2instanceconnect";
|
|
340
|
+
const _se = "server";
|
|
341
|
+
const n0 = "com.amazonaws.ec2instanceconnect";
|
|
342
|
+
const _s_registry = TypeRegistry.for(_s);
|
|
343
|
+
var EC2InstanceConnectServiceException$ = [-3, _s, "EC2InstanceConnectServiceException", 0, [], []];
|
|
344
|
+
_s_registry.registerError(EC2InstanceConnectServiceException$, EC2InstanceConnectServiceException);
|
|
345
|
+
const n0_registry = TypeRegistry.for(n0);
|
|
346
|
+
var AuthException$ = [-3, n0, _AE,
|
|
347
|
+
{ [_aQE]: [`Forbidden`, 403], [_e]: _c, [_hE]: 403 },
|
|
348
|
+
[_M],
|
|
349
|
+
[0]
|
|
350
|
+
];
|
|
351
|
+
n0_registry.registerError(AuthException$, AuthException);
|
|
352
|
+
var EC2InstanceNotFoundException$ = [-3, n0, _ECINFE,
|
|
353
|
+
{ [_aQE]: [`EC2InstanceNotFound`, 404], [_e]: _c, [_hE]: 404 },
|
|
354
|
+
[_M],
|
|
355
|
+
[0]
|
|
356
|
+
];
|
|
357
|
+
n0_registry.registerError(EC2InstanceNotFoundException$, EC2InstanceNotFoundException);
|
|
358
|
+
var EC2InstanceStateInvalidException$ = [-3, n0, _ECISIE,
|
|
359
|
+
{ [_aQE]: [`EC2InstanceStateInvalid`, 400], [_e]: _c, [_hE]: 400 },
|
|
360
|
+
[_M],
|
|
361
|
+
[0]
|
|
362
|
+
];
|
|
363
|
+
n0_registry.registerError(EC2InstanceStateInvalidException$, EC2InstanceStateInvalidException);
|
|
364
|
+
var EC2InstanceTypeInvalidException$ = [-3, n0, _ECITIE,
|
|
365
|
+
{ [_aQE]: [`EC2InstanceTypeInvalid`, 400], [_e]: _c, [_hE]: 400 },
|
|
366
|
+
[_M],
|
|
367
|
+
[0]
|
|
368
|
+
];
|
|
369
|
+
n0_registry.registerError(EC2InstanceTypeInvalidException$, EC2InstanceTypeInvalidException);
|
|
370
|
+
var EC2InstanceUnavailableException$ = [-3, n0, _ECIUE,
|
|
371
|
+
{ [_aQE]: [`EC2InstanceUnavailable`, 503], [_e]: _se, [_hE]: 503 },
|
|
372
|
+
[_M],
|
|
373
|
+
[0]
|
|
374
|
+
];
|
|
375
|
+
n0_registry.registerError(EC2InstanceUnavailableException$, EC2InstanceUnavailableException);
|
|
376
|
+
var InvalidArgsException$ = [-3, n0, _IAE,
|
|
377
|
+
{ [_aQE]: [`InvalidArguments`, 400], [_e]: _c, [_hE]: 400 },
|
|
378
|
+
[_M],
|
|
379
|
+
[0]
|
|
380
|
+
];
|
|
381
|
+
n0_registry.registerError(InvalidArgsException$, InvalidArgsException);
|
|
382
|
+
var SerialConsoleAccessDisabledException$ = [-3, n0, _SCADE,
|
|
383
|
+
{ [_aQE]: [`SerialConsoleAccessDisabled`, 403], [_e]: _c, [_hE]: 403 },
|
|
384
|
+
[_M],
|
|
385
|
+
[0]
|
|
386
|
+
];
|
|
387
|
+
n0_registry.registerError(SerialConsoleAccessDisabledException$, SerialConsoleAccessDisabledException);
|
|
388
|
+
var SerialConsoleSessionLimitExceededException$ = [-3, n0, _SCSLEE,
|
|
389
|
+
{ [_aQE]: [`SerialConsoleSessionLimitExceeded`, 400], [_e]: _c, [_hE]: 400 },
|
|
390
|
+
[_M],
|
|
391
|
+
[0]
|
|
392
|
+
];
|
|
393
|
+
n0_registry.registerError(SerialConsoleSessionLimitExceededException$, SerialConsoleSessionLimitExceededException);
|
|
394
|
+
var SerialConsoleSessionUnavailableException$ = [-3, n0, _SCSUE,
|
|
395
|
+
{ [_aQE]: [`SerialConsoleSessionUnavailable`, 500], [_e]: _se, [_hE]: 500 },
|
|
396
|
+
[_M],
|
|
397
|
+
[0]
|
|
398
|
+
];
|
|
399
|
+
n0_registry.registerError(SerialConsoleSessionUnavailableException$, SerialConsoleSessionUnavailableException);
|
|
400
|
+
var SerialConsoleSessionUnsupportedException$ = [-3, n0, _SCSUEe,
|
|
401
|
+
{ [_aQE]: [`SerialConsoleSessionUnsupported`, 400], [_e]: _c, [_hE]: 400 },
|
|
402
|
+
[_M],
|
|
403
|
+
[0]
|
|
404
|
+
];
|
|
405
|
+
n0_registry.registerError(SerialConsoleSessionUnsupportedException$, SerialConsoleSessionUnsupportedException);
|
|
406
|
+
var ServiceException$ = [-3, n0, _SE,
|
|
407
|
+
{ [_aQE]: [`InternalServerError`, 500], [_e]: _se, [_hE]: 500 },
|
|
408
|
+
[_M],
|
|
409
|
+
[0]
|
|
410
|
+
];
|
|
411
|
+
n0_registry.registerError(ServiceException$, ServiceException);
|
|
412
|
+
var ThrottlingException$ = [-3, n0, _TE,
|
|
413
|
+
{ [_aQE]: [`TooManyRequests`, 429], [_e]: _c, [_hE]: 429 },
|
|
414
|
+
[_M],
|
|
415
|
+
[0]
|
|
416
|
+
];
|
|
417
|
+
n0_registry.registerError(ThrottlingException$, ThrottlingException);
|
|
418
|
+
const errorTypeRegistries = [
|
|
419
|
+
_s_registry,
|
|
420
|
+
n0_registry,
|
|
421
|
+
];
|
|
422
|
+
var SendSerialConsoleSSHPublicKeyRequest$ = [3, n0, _SSCSSHPKR,
|
|
423
|
+
0,
|
|
424
|
+
[_II, _SSHPK, _SP],
|
|
425
|
+
[0, 0, 1], 2
|
|
426
|
+
];
|
|
427
|
+
var SendSerialConsoleSSHPublicKeyResponse$ = [3, n0, _SSCSSHPKRe,
|
|
428
|
+
0,
|
|
429
|
+
[_RI, _S],
|
|
430
|
+
[0, 2]
|
|
431
|
+
];
|
|
432
|
+
var SendSSHPublicKeyRequest$ = [3, n0, _SSSHPKR,
|
|
433
|
+
0,
|
|
434
|
+
[_II, _IOSU, _SSHPK, _AZ],
|
|
435
|
+
[0, 0, 0, 0], 3
|
|
436
|
+
];
|
|
437
|
+
var SendSSHPublicKeyResponse$ = [3, n0, _SSSHPKRe,
|
|
438
|
+
0,
|
|
439
|
+
[_RI, _S],
|
|
440
|
+
[0, 2]
|
|
441
|
+
];
|
|
442
|
+
var SendSerialConsoleSSHPublicKey$ = [9, n0, _SSCSSHPK,
|
|
443
|
+
0, () => SendSerialConsoleSSHPublicKeyRequest$, () => SendSerialConsoleSSHPublicKeyResponse$
|
|
444
|
+
];
|
|
445
|
+
var SendSSHPublicKey$ = [9, n0, _SSSHPK,
|
|
446
|
+
0, () => SendSSHPublicKeyRequest$, () => SendSSHPublicKeyResponse$
|
|
447
|
+
];
|
|
448
|
+
|
|
449
|
+
const getRuntimeConfig$1 = (config) => {
|
|
450
|
+
return {
|
|
451
|
+
apiVersion: "2018-04-02",
|
|
452
|
+
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
453
|
+
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
454
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
455
|
+
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
456
|
+
extensions: config?.extensions ?? [],
|
|
457
|
+
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultEC2InstanceConnectHttpAuthSchemeProvider,
|
|
458
|
+
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
459
|
+
{
|
|
460
|
+
schemeId: "aws.auth#sigv4",
|
|
461
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
462
|
+
signer: new AwsSdkSigV4Signer(),
|
|
463
|
+
},
|
|
464
|
+
],
|
|
465
|
+
logger: config?.logger ?? new NoOpLogger(),
|
|
466
|
+
protocol: config?.protocol ?? AwsJson1_1Protocol,
|
|
467
|
+
protocolSettings: config?.protocolSettings ?? {
|
|
468
|
+
defaultNamespace: "com.amazonaws.ec2instanceconnect",
|
|
469
|
+
errorTypeRegistries,
|
|
470
|
+
version: "2018-04-02",
|
|
471
|
+
serviceTarget: "AWSEC2InstanceConnectService",
|
|
472
|
+
},
|
|
473
|
+
serviceId: config?.serviceId ?? "EC2 Instance Connect",
|
|
474
|
+
sha256: config?.sha256 ?? Sha256,
|
|
475
|
+
urlParser: config?.urlParser ?? parseUrl,
|
|
476
|
+
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
477
|
+
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
478
|
+
};
|
|
479
|
+
};
|
|
480
|
+
|
|
481
|
+
const getRuntimeConfig = (config) => {
|
|
482
|
+
emitWarningIfUnsupportedVersion(process.version);
|
|
483
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
484
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
485
|
+
const clientSharedValues = getRuntimeConfig$1(config);
|
|
486
|
+
emitWarningIfUnsupportedVersion$1(process.version);
|
|
487
|
+
const loaderConfig = {
|
|
488
|
+
profile: config?.profile,
|
|
489
|
+
logger: clientSharedValues.logger,
|
|
490
|
+
};
|
|
491
|
+
return {
|
|
492
|
+
...clientSharedValues,
|
|
493
|
+
...config,
|
|
494
|
+
runtime: "node",
|
|
495
|
+
defaultsMode,
|
|
496
|
+
authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
497
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
498
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
|
|
499
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
500
|
+
maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
501
|
+
region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
502
|
+
requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
503
|
+
retryMode: config?.retryMode ??
|
|
504
|
+
loadConfig({
|
|
505
|
+
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
506
|
+
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
507
|
+
}, config),
|
|
508
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
509
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
510
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
511
|
+
userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
|
|
512
|
+
};
|
|
513
|
+
};
|
|
514
|
+
|
|
34
515
|
const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
35
516
|
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
36
517
|
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
@@ -143,7 +624,40 @@ class EC2InstanceConnect extends EC2InstanceConnectClient {
|
|
|
143
624
|
}
|
|
144
625
|
createAggregatedClient(commands, EC2InstanceConnect);
|
|
145
626
|
|
|
627
|
+
exports.AuthException = AuthException;
|
|
628
|
+
exports.AuthException$ = AuthException$;
|
|
146
629
|
exports.EC2InstanceConnect = EC2InstanceConnect;
|
|
147
630
|
exports.EC2InstanceConnectClient = EC2InstanceConnectClient;
|
|
631
|
+
exports.EC2InstanceConnectServiceException = EC2InstanceConnectServiceException;
|
|
632
|
+
exports.EC2InstanceConnectServiceException$ = EC2InstanceConnectServiceException$;
|
|
633
|
+
exports.EC2InstanceNotFoundException = EC2InstanceNotFoundException;
|
|
634
|
+
exports.EC2InstanceNotFoundException$ = EC2InstanceNotFoundException$;
|
|
635
|
+
exports.EC2InstanceStateInvalidException = EC2InstanceStateInvalidException;
|
|
636
|
+
exports.EC2InstanceStateInvalidException$ = EC2InstanceStateInvalidException$;
|
|
637
|
+
exports.EC2InstanceTypeInvalidException = EC2InstanceTypeInvalidException;
|
|
638
|
+
exports.EC2InstanceTypeInvalidException$ = EC2InstanceTypeInvalidException$;
|
|
639
|
+
exports.EC2InstanceUnavailableException = EC2InstanceUnavailableException;
|
|
640
|
+
exports.EC2InstanceUnavailableException$ = EC2InstanceUnavailableException$;
|
|
641
|
+
exports.InvalidArgsException = InvalidArgsException;
|
|
642
|
+
exports.InvalidArgsException$ = InvalidArgsException$;
|
|
643
|
+
exports.SendSSHPublicKey$ = SendSSHPublicKey$;
|
|
148
644
|
exports.SendSSHPublicKeyCommand = SendSSHPublicKeyCommand;
|
|
645
|
+
exports.SendSSHPublicKeyRequest$ = SendSSHPublicKeyRequest$;
|
|
646
|
+
exports.SendSSHPublicKeyResponse$ = SendSSHPublicKeyResponse$;
|
|
647
|
+
exports.SendSerialConsoleSSHPublicKey$ = SendSerialConsoleSSHPublicKey$;
|
|
149
648
|
exports.SendSerialConsoleSSHPublicKeyCommand = SendSerialConsoleSSHPublicKeyCommand;
|
|
649
|
+
exports.SendSerialConsoleSSHPublicKeyRequest$ = SendSerialConsoleSSHPublicKeyRequest$;
|
|
650
|
+
exports.SendSerialConsoleSSHPublicKeyResponse$ = SendSerialConsoleSSHPublicKeyResponse$;
|
|
651
|
+
exports.SerialConsoleAccessDisabledException = SerialConsoleAccessDisabledException;
|
|
652
|
+
exports.SerialConsoleAccessDisabledException$ = SerialConsoleAccessDisabledException$;
|
|
653
|
+
exports.SerialConsoleSessionLimitExceededException = SerialConsoleSessionLimitExceededException;
|
|
654
|
+
exports.SerialConsoleSessionLimitExceededException$ = SerialConsoleSessionLimitExceededException$;
|
|
655
|
+
exports.SerialConsoleSessionUnavailableException = SerialConsoleSessionUnavailableException;
|
|
656
|
+
exports.SerialConsoleSessionUnavailableException$ = SerialConsoleSessionUnavailableException$;
|
|
657
|
+
exports.SerialConsoleSessionUnsupportedException = SerialConsoleSessionUnsupportedException;
|
|
658
|
+
exports.SerialConsoleSessionUnsupportedException$ = SerialConsoleSessionUnsupportedException$;
|
|
659
|
+
exports.ServiceException = ServiceException;
|
|
660
|
+
exports.ServiceException$ = ServiceException$;
|
|
661
|
+
exports.ThrottlingException = ThrottlingException;
|
|
662
|
+
exports.ThrottlingException$ = ThrottlingException$;
|
|
663
|
+
exports.errorTypeRegistries = errorTypeRegistries;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import packageInfo from "../package.json";
|
|
2
|
-
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
3
2
|
import { createDefaultUserAgentProvider } from "@aws-sdk/core/client";
|
|
4
3
|
import { invalidProvider, loadConfigsForDefaultMode } from "@smithy/core/client";
|
|
5
4
|
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig, } from "@smithy/core/config";
|
|
@@ -23,7 +22,6 @@ export const getRuntimeConfig = (config) => {
|
|
|
23
22
|
region: config?.region ?? invalidProvider("Region is missing"),
|
|
24
23
|
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
25
24
|
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
|
|
26
|
-
sha256: config?.sha256 ?? Sha256,
|
|
27
25
|
streamCollector: config?.streamCollector ?? streamCollector,
|
|
28
26
|
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
29
27
|
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -5,7 +5,7 @@ import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credentia
|
|
|
5
5
|
import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smithy/core/client";
|
|
6
6
|
import { loadConfig as loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, resolveDefaultsModeConfig, } from "@smithy/core/config";
|
|
7
7
|
import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@smithy/core/retry";
|
|
8
|
-
import { calculateBodyLength
|
|
8
|
+
import { calculateBodyLength } from "@smithy/core/serde";
|
|
9
9
|
import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
|
|
10
10
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
11
11
|
export const getRuntimeConfig = (config) => {
|
|
@@ -35,7 +35,6 @@ export const getRuntimeConfig = (config) => {
|
|
|
35
35
|
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
36
36
|
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
37
37
|
}, config),
|
|
38
|
-
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
39
38
|
streamCollector: config?.streamCollector ?? streamCollector,
|
|
40
39
|
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
41
40
|
useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Sha256 } from "@aws-crypto/sha256-js";
|
|
2
1
|
import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
|
|
3
2
|
export const getRuntimeConfig = (config) => {
|
|
4
3
|
const browserDefaults = getBrowserRuntimeConfig(config);
|
|
@@ -6,6 +5,5 @@ export const getRuntimeConfig = (config) => {
|
|
|
6
5
|
...browserDefaults,
|
|
7
6
|
...config,
|
|
8
7
|
runtime: "react-native",
|
|
9
|
-
sha256: config?.sha256 ?? Sha256,
|
|
10
8
|
};
|
|
11
9
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AwsSdkSigV4Signer } from "@aws-sdk/core/httpAuthSchemes";
|
|
2
2
|
import { AwsJson1_1Protocol } from "@aws-sdk/core/protocols";
|
|
3
|
+
import { Sha256 } from "@smithy/core/checksum";
|
|
3
4
|
import { NoOpLogger } from "@smithy/core/client";
|
|
4
5
|
import { parseUrl } from "@smithy/core/protocols";
|
|
5
6
|
import { fromBase64, fromUtf8, toBase64, toUtf8 } from "@smithy/core/serde";
|
|
@@ -31,6 +32,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
31
32
|
serviceTarget: "AWSEC2InstanceConnectService",
|
|
32
33
|
},
|
|
33
34
|
serviceId: config?.serviceId ?? "EC2 Instance Connect",
|
|
35
|
+
sha256: config?.sha256 ?? Sha256,
|
|
34
36
|
urlParser: config?.urlParser ?? parseUrl,
|
|
35
37
|
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
36
38
|
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
@@ -13,8 +13,7 @@ export declare const getRuntimeConfig: (config: EC2InstanceConnectClientConfig)
|
|
|
13
13
|
region: string | import("@smithy/types").Provider<any>;
|
|
14
14
|
requestHandler: import("@smithy/core/protocols").HttpHandler<any> | RequestHandler;
|
|
15
15
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
16
|
-
|
|
17
|
-
streamCollector: import("@smithy/types").StreamCollector;
|
|
16
|
+
streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
|
|
18
17
|
useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
|
|
19
18
|
useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
|
|
20
19
|
cacheMiddleware?: boolean | undefined;
|
|
@@ -24,6 +23,7 @@ export declare const getRuntimeConfig: (config: EC2InstanceConnectClientConfig)
|
|
|
24
23
|
[setting: string]: unknown;
|
|
25
24
|
};
|
|
26
25
|
apiVersion: string;
|
|
26
|
+
sha256: import("@smithy/types").HashConstructor;
|
|
27
27
|
urlParser: import("@smithy/types").UrlParser;
|
|
28
28
|
base64Decoder: import("@smithy/types").Decoder;
|
|
29
29
|
base64Encoder: (_input: Uint8Array | string) => string;
|
|
@@ -14,8 +14,7 @@ export declare const getRuntimeConfig: (config: EC2InstanceConnectClientConfig)
|
|
|
14
14
|
region: string | import("@smithy/types").Provider<string>;
|
|
15
15
|
requestHandler: RequestHandler | import("@smithy/core/protocols").HttpHandler<any>;
|
|
16
16
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
17
|
-
|
|
18
|
-
streamCollector: import("@smithy/types").StreamCollector;
|
|
17
|
+
streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
|
|
19
18
|
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
20
19
|
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
21
20
|
userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
|
|
@@ -26,6 +25,7 @@ export declare const getRuntimeConfig: (config: EC2InstanceConnectClientConfig)
|
|
|
26
25
|
[setting: string]: unknown;
|
|
27
26
|
};
|
|
28
27
|
apiVersion: string;
|
|
28
|
+
sha256: import("@smithy/types").HashConstructor;
|
|
29
29
|
urlParser: import("@smithy/types").UrlParser;
|
|
30
30
|
base64Decoder: import("@smithy/types").Decoder;
|
|
31
31
|
base64Encoder: (_input: Uint8Array | string) => string;
|