@aws-sdk/client-ebs 3.1075.0 → 3.1076.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 +600 -15
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +7 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +7 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +7 -1
- package/package.json +8 -8
- 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/EBSServiceException.js +0 -8
- package/dist-cjs/models/errors.js +0 -123
- 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 -39
- package/dist-cjs/schemas/schemas_0.js +0 -276
package/dist-cjs/index.js
CHANGED
|
@@ -1,21 +1,57 @@
|
|
|
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, createPaginator } = require("@smithy/core");
|
|
4
|
-
const { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
|
|
3
|
+
const { normalizeProvider, getSmithyContext, ServiceException, 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
|
-
|
|
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, sdkStreamMixin, toBase64, fromBase64, Hash, calculateBodyLength } = require("@smithy/core/serde");
|
|
14
|
+
const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
|
|
15
|
+
const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
|
|
16
|
+
|
|
17
|
+
const defaultEBSHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
18
|
+
return {
|
|
19
|
+
operation: getSmithyContext(context).operation,
|
|
20
|
+
region: await normalizeProvider(config.region)() || (() => {
|
|
21
|
+
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
22
|
+
})(),
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
26
|
+
return {
|
|
27
|
+
schemeId: "aws.auth#sigv4",
|
|
28
|
+
signingProperties: {
|
|
29
|
+
name: "ebs",
|
|
30
|
+
region: authParameters.region,
|
|
31
|
+
},
|
|
32
|
+
propertiesExtractor: (config, context) => ({
|
|
33
|
+
signingProperties: {
|
|
34
|
+
config,
|
|
35
|
+
context,
|
|
36
|
+
},
|
|
37
|
+
}),
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
const defaultEBSHttpAuthSchemeProvider = (authParameters) => {
|
|
41
|
+
const options = [];
|
|
42
|
+
switch (authParameters.operation) {
|
|
43
|
+
default: {
|
|
44
|
+
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
return options;
|
|
48
|
+
};
|
|
49
|
+
const resolveHttpAuthSchemeConfig = (config) => {
|
|
50
|
+
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
51
|
+
return Object.assign(config_0, {
|
|
52
|
+
authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
|
|
53
|
+
});
|
|
54
|
+
};
|
|
19
55
|
|
|
20
56
|
const resolveClientEndpointParameters = (options) => {
|
|
21
57
|
return Object.assign(options, {
|
|
@@ -31,6 +67,515 @@ const commonParams = {
|
|
|
31
67
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
32
68
|
};
|
|
33
69
|
|
|
70
|
+
var version = "3.1075.0";
|
|
71
|
+
var packageInfo = {
|
|
72
|
+
version: version};
|
|
73
|
+
|
|
74
|
+
const k = "ref";
|
|
75
|
+
const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
|
|
76
|
+
const _data = {
|
|
77
|
+
conditions: [
|
|
78
|
+
[c, [g]],
|
|
79
|
+
[c, j],
|
|
80
|
+
["aws.partition", j, d],
|
|
81
|
+
[e, [{ [k]: "UseFIPS" }, b]],
|
|
82
|
+
[e, [{ [k]: "UseDualStack" }, b]],
|
|
83
|
+
[e, [{ fn: f, argv: [h, "supportsDualStack"] }, b]],
|
|
84
|
+
[e, [{ fn: f, argv: [h, "supportsFIPS"] }, b]]
|
|
85
|
+
],
|
|
86
|
+
results: [
|
|
87
|
+
[a],
|
|
88
|
+
[a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
|
|
89
|
+
[a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
|
|
90
|
+
[g, i],
|
|
91
|
+
["https://ebs-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
|
|
92
|
+
[a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
|
|
93
|
+
["https://ebs-fips.{Region}.{PartitionResult#dnsSuffix}", i],
|
|
94
|
+
[a, "FIPS is enabled but this partition does not support FIPS"],
|
|
95
|
+
["https://ebs.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
|
|
96
|
+
[a, "DualStack is enabled but this partition does not support DualStack"],
|
|
97
|
+
["https://ebs.{Region}.{PartitionResult#dnsSuffix}", i],
|
|
98
|
+
[a, "Invalid Configuration: Missing Region"]
|
|
99
|
+
]
|
|
100
|
+
};
|
|
101
|
+
const root = 2;
|
|
102
|
+
const r = 100_000_000;
|
|
103
|
+
const nodes = new Int32Array([
|
|
104
|
+
-1, 1, -1,
|
|
105
|
+
0, 12, 3,
|
|
106
|
+
1, 4, r + 11,
|
|
107
|
+
2, 5, r + 11,
|
|
108
|
+
3, 8, 6,
|
|
109
|
+
4, 7, r + 10,
|
|
110
|
+
5, r + 8, r + 9,
|
|
111
|
+
4, 10, 9,
|
|
112
|
+
6, r + 6, r + 7,
|
|
113
|
+
5, 11, r + 5,
|
|
114
|
+
6, r + 4, r + 5,
|
|
115
|
+
3, r + 1, 13,
|
|
116
|
+
4, r + 2, r + 3,
|
|
117
|
+
]);
|
|
118
|
+
const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
119
|
+
|
|
120
|
+
const cache = new EndpointCache({
|
|
121
|
+
size: 50,
|
|
122
|
+
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
|
|
123
|
+
});
|
|
124
|
+
const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
125
|
+
return cache.get(endpointParams, () => decideEndpoint(bdd, {
|
|
126
|
+
endpointParams: endpointParams,
|
|
127
|
+
logger: context.logger,
|
|
128
|
+
}));
|
|
129
|
+
};
|
|
130
|
+
customEndpointFunctions.aws = awsEndpointFunctions;
|
|
131
|
+
|
|
132
|
+
class EBSServiceException extends ServiceException {
|
|
133
|
+
constructor(options) {
|
|
134
|
+
super(options);
|
|
135
|
+
Object.setPrototypeOf(this, EBSServiceException.prototype);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
class AccessDeniedException extends EBSServiceException {
|
|
140
|
+
name = "AccessDeniedException";
|
|
141
|
+
$fault = "client";
|
|
142
|
+
Message;
|
|
143
|
+
Reason;
|
|
144
|
+
constructor(opts) {
|
|
145
|
+
super({
|
|
146
|
+
name: "AccessDeniedException",
|
|
147
|
+
$fault: "client",
|
|
148
|
+
...opts,
|
|
149
|
+
});
|
|
150
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
151
|
+
this.Message = opts.Message;
|
|
152
|
+
this.Reason = opts.Reason;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
class InternalServerException extends EBSServiceException {
|
|
156
|
+
name = "InternalServerException";
|
|
157
|
+
$fault = "server";
|
|
158
|
+
Message;
|
|
159
|
+
constructor(opts) {
|
|
160
|
+
super({
|
|
161
|
+
name: "InternalServerException",
|
|
162
|
+
$fault: "server",
|
|
163
|
+
...opts,
|
|
164
|
+
});
|
|
165
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
166
|
+
this.Message = opts.Message;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
class RequestThrottledException extends EBSServiceException {
|
|
170
|
+
name = "RequestThrottledException";
|
|
171
|
+
$fault = "client";
|
|
172
|
+
Message;
|
|
173
|
+
Reason;
|
|
174
|
+
constructor(opts) {
|
|
175
|
+
super({
|
|
176
|
+
name: "RequestThrottledException",
|
|
177
|
+
$fault: "client",
|
|
178
|
+
...opts,
|
|
179
|
+
});
|
|
180
|
+
Object.setPrototypeOf(this, RequestThrottledException.prototype);
|
|
181
|
+
this.Message = opts.Message;
|
|
182
|
+
this.Reason = opts.Reason;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
class ResourceNotFoundException extends EBSServiceException {
|
|
186
|
+
name = "ResourceNotFoundException";
|
|
187
|
+
$fault = "client";
|
|
188
|
+
Message;
|
|
189
|
+
Reason;
|
|
190
|
+
constructor(opts) {
|
|
191
|
+
super({
|
|
192
|
+
name: "ResourceNotFoundException",
|
|
193
|
+
$fault: "client",
|
|
194
|
+
...opts,
|
|
195
|
+
});
|
|
196
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
197
|
+
this.Message = opts.Message;
|
|
198
|
+
this.Reason = opts.Reason;
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
class ServiceQuotaExceededException extends EBSServiceException {
|
|
202
|
+
name = "ServiceQuotaExceededException";
|
|
203
|
+
$fault = "client";
|
|
204
|
+
Message;
|
|
205
|
+
Reason;
|
|
206
|
+
constructor(opts) {
|
|
207
|
+
super({
|
|
208
|
+
name: "ServiceQuotaExceededException",
|
|
209
|
+
$fault: "client",
|
|
210
|
+
...opts,
|
|
211
|
+
});
|
|
212
|
+
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
213
|
+
this.Message = opts.Message;
|
|
214
|
+
this.Reason = opts.Reason;
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
class ValidationException extends EBSServiceException {
|
|
218
|
+
name = "ValidationException";
|
|
219
|
+
$fault = "client";
|
|
220
|
+
Message;
|
|
221
|
+
Reason;
|
|
222
|
+
constructor(opts) {
|
|
223
|
+
super({
|
|
224
|
+
name: "ValidationException",
|
|
225
|
+
$fault: "client",
|
|
226
|
+
...opts,
|
|
227
|
+
});
|
|
228
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
229
|
+
this.Message = opts.Message;
|
|
230
|
+
this.Reason = opts.Reason;
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
class ConcurrentLimitExceededException extends EBSServiceException {
|
|
234
|
+
name = "ConcurrentLimitExceededException";
|
|
235
|
+
$fault = "client";
|
|
236
|
+
Message;
|
|
237
|
+
constructor(opts) {
|
|
238
|
+
super({
|
|
239
|
+
name: "ConcurrentLimitExceededException",
|
|
240
|
+
$fault: "client",
|
|
241
|
+
...opts,
|
|
242
|
+
});
|
|
243
|
+
Object.setPrototypeOf(this, ConcurrentLimitExceededException.prototype);
|
|
244
|
+
this.Message = opts.Message;
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
class ConflictException extends EBSServiceException {
|
|
248
|
+
name = "ConflictException";
|
|
249
|
+
$fault = "client";
|
|
250
|
+
Message;
|
|
251
|
+
constructor(opts) {
|
|
252
|
+
super({
|
|
253
|
+
name: "ConflictException",
|
|
254
|
+
$fault: "client",
|
|
255
|
+
...opts,
|
|
256
|
+
});
|
|
257
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
258
|
+
this.Message = opts.Message;
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
const _ADE = "AccessDeniedException";
|
|
263
|
+
const _B = "Block";
|
|
264
|
+
const _BD = "BlockData";
|
|
265
|
+
const _BI = "BlockIndex";
|
|
266
|
+
const _BS = "BlockSize";
|
|
267
|
+
const _BT = "BlockToken";
|
|
268
|
+
const _Bl = "Blocks";
|
|
269
|
+
const _C = "Checksum";
|
|
270
|
+
const _CA = "ChecksumAlgorithm";
|
|
271
|
+
const _CAM = "ChecksumAggregationMethod";
|
|
272
|
+
const _CB = "ChangedBlock";
|
|
273
|
+
const _CBC = "ChangedBlocksCount";
|
|
274
|
+
const _CBh = "ChangedBlocks";
|
|
275
|
+
const _CE = "ConflictException";
|
|
276
|
+
const _CLEE = "ConcurrentLimitExceededException";
|
|
277
|
+
const _CS = "CompleteSnapshot";
|
|
278
|
+
const _CSR = "CompleteSnapshotRequest";
|
|
279
|
+
const _CSRo = "CompleteSnapshotResponse";
|
|
280
|
+
const _CT = "ClientToken";
|
|
281
|
+
const _D = "Description";
|
|
282
|
+
const _DL = "DataLength";
|
|
283
|
+
const _E = "Encrypted";
|
|
284
|
+
const _ET = "ExpiryTime";
|
|
285
|
+
const _FBT = "FirstBlockToken";
|
|
286
|
+
const _FSI = "FirstSnapshotId";
|
|
287
|
+
const _GSB = "GetSnapshotBlock";
|
|
288
|
+
const _GSBR = "GetSnapshotBlockRequest";
|
|
289
|
+
const _GSBRe = "GetSnapshotBlockResponse";
|
|
290
|
+
const _ISE = "InternalServerException";
|
|
291
|
+
const _K = "Key";
|
|
292
|
+
const _KKA = "KmsKeyArn";
|
|
293
|
+
const _LCB = "ListChangedBlocks";
|
|
294
|
+
const _LCBR = "ListChangedBlocksRequest";
|
|
295
|
+
const _LCBRi = "ListChangedBlocksResponse";
|
|
296
|
+
const _LSB = "ListSnapshotBlocks";
|
|
297
|
+
const _LSBR = "ListSnapshotBlocksRequest";
|
|
298
|
+
const _LSBRi = "ListSnapshotBlocksResponse";
|
|
299
|
+
const _M = "Message";
|
|
300
|
+
const _MR = "MaxResults";
|
|
301
|
+
const _NT = "NextToken";
|
|
302
|
+
const _OI = "OwnerId";
|
|
303
|
+
const _P = "Progress";
|
|
304
|
+
const _PSB = "PutSnapshotBlock";
|
|
305
|
+
const _PSBR = "PutSnapshotBlockRequest";
|
|
306
|
+
const _PSBRu = "PutSnapshotBlockResponse";
|
|
307
|
+
const _PSI = "ParentSnapshotId";
|
|
308
|
+
const _R = "Reason";
|
|
309
|
+
const _RNFE = "ResourceNotFoundException";
|
|
310
|
+
const _RTE = "RequestThrottledException";
|
|
311
|
+
const _S = "Status";
|
|
312
|
+
const _SBI = "StartingBlockIndex";
|
|
313
|
+
const _SBT = "SecondBlockToken";
|
|
314
|
+
const _SI = "SnapshotId";
|
|
315
|
+
const _SQEE = "ServiceQuotaExceededException";
|
|
316
|
+
const _SS = "StartSnapshot";
|
|
317
|
+
const _SSI = "SecondSnapshotId";
|
|
318
|
+
const _SSR = "StartSnapshotRequest";
|
|
319
|
+
const _SSRt = "StartSnapshotResponse";
|
|
320
|
+
const _ST = "StartTime";
|
|
321
|
+
const _STs = "SseType";
|
|
322
|
+
const _T = "Tags";
|
|
323
|
+
const _Ta = "Tag";
|
|
324
|
+
const _Ti = "Timeout";
|
|
325
|
+
const _V = "Value";
|
|
326
|
+
const _VE = "ValidationException";
|
|
327
|
+
const _VS = "VolumeSize";
|
|
328
|
+
const _bT = "blockToken";
|
|
329
|
+
const _c = "client";
|
|
330
|
+
const _e = "error";
|
|
331
|
+
const _fSI = "firstSnapshotId";
|
|
332
|
+
const _h = "http";
|
|
333
|
+
const _hE = "httpError";
|
|
334
|
+
const _hH = "httpHeader";
|
|
335
|
+
const _hQ = "httpQuery";
|
|
336
|
+
const _mR = "maxResults";
|
|
337
|
+
const _pT = "pageToken";
|
|
338
|
+
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.ebs";
|
|
339
|
+
const _sBI = "startingBlockIndex";
|
|
340
|
+
const _se = "server";
|
|
341
|
+
const _sen = "sensitive";
|
|
342
|
+
const _st = "streaming";
|
|
343
|
+
const _xaC = "x-amz-ChangedBlocksCount";
|
|
344
|
+
const _xaCA = "x-amz-Checksum-Algorithm";
|
|
345
|
+
const _xaCAM = "x-amz-Checksum-Aggregation-Method";
|
|
346
|
+
const _xaC_ = "x-amz-Checksum";
|
|
347
|
+
const _xaDL = "x-amz-Data-Length";
|
|
348
|
+
const _xaP = "x-amz-Progress";
|
|
349
|
+
const n0 = "com.amazonaws.ebs";
|
|
350
|
+
const _s_registry = TypeRegistry.for(_s);
|
|
351
|
+
var EBSServiceException$ = [-3, _s, "EBSServiceException", 0, [], []];
|
|
352
|
+
_s_registry.registerError(EBSServiceException$, EBSServiceException);
|
|
353
|
+
const n0_registry = TypeRegistry.for(n0);
|
|
354
|
+
var AccessDeniedException$ = [-3, n0, _ADE,
|
|
355
|
+
{ [_e]: _c, [_hE]: 403 },
|
|
356
|
+
[_R, _M],
|
|
357
|
+
[0, 0], 1
|
|
358
|
+
];
|
|
359
|
+
n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
|
|
360
|
+
var ConcurrentLimitExceededException$ = [-3, n0, _CLEE,
|
|
361
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
362
|
+
[_M],
|
|
363
|
+
[0]
|
|
364
|
+
];
|
|
365
|
+
n0_registry.registerError(ConcurrentLimitExceededException$, ConcurrentLimitExceededException);
|
|
366
|
+
var ConflictException$ = [-3, n0, _CE,
|
|
367
|
+
{ [_e]: _c, [_hE]: 409 },
|
|
368
|
+
[_M],
|
|
369
|
+
[0]
|
|
370
|
+
];
|
|
371
|
+
n0_registry.registerError(ConflictException$, ConflictException);
|
|
372
|
+
var InternalServerException$ = [-3, n0, _ISE,
|
|
373
|
+
{ [_e]: _se, [_hE]: 500 },
|
|
374
|
+
[_M],
|
|
375
|
+
[0]
|
|
376
|
+
];
|
|
377
|
+
n0_registry.registerError(InternalServerException$, InternalServerException);
|
|
378
|
+
var RequestThrottledException$ = [-3, n0, _RTE,
|
|
379
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
380
|
+
[_M, _R],
|
|
381
|
+
[0, 0]
|
|
382
|
+
];
|
|
383
|
+
n0_registry.registerError(RequestThrottledException$, RequestThrottledException);
|
|
384
|
+
var ResourceNotFoundException$ = [-3, n0, _RNFE,
|
|
385
|
+
{ [_e]: _c, [_hE]: 404 },
|
|
386
|
+
[_M, _R],
|
|
387
|
+
[0, 0]
|
|
388
|
+
];
|
|
389
|
+
n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
|
|
390
|
+
var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
|
|
391
|
+
{ [_e]: _c, [_hE]: 402 },
|
|
392
|
+
[_M, _R],
|
|
393
|
+
[0, 0]
|
|
394
|
+
];
|
|
395
|
+
n0_registry.registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
|
|
396
|
+
var ValidationException$ = [-3, n0, _VE,
|
|
397
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
398
|
+
[_M, _R],
|
|
399
|
+
[0, 0]
|
|
400
|
+
];
|
|
401
|
+
n0_registry.registerError(ValidationException$, ValidationException);
|
|
402
|
+
const errorTypeRegistries = [
|
|
403
|
+
_s_registry,
|
|
404
|
+
n0_registry,
|
|
405
|
+
];
|
|
406
|
+
var BlockData = [0, n0, _BD, { [_sen]: 1, [_st]: 1 }, 42];
|
|
407
|
+
var KmsKeyArn = [0, n0, _KKA, 8, 0];
|
|
408
|
+
var Block$ = [3, n0, _B,
|
|
409
|
+
0,
|
|
410
|
+
[_BI, _BT],
|
|
411
|
+
[1, 0]
|
|
412
|
+
];
|
|
413
|
+
var ChangedBlock$ = [3, n0, _CB,
|
|
414
|
+
8,
|
|
415
|
+
[_BI, _FBT, _SBT],
|
|
416
|
+
[1, 0, 0]
|
|
417
|
+
];
|
|
418
|
+
var CompleteSnapshotRequest$ = [3, n0, _CSR,
|
|
419
|
+
0,
|
|
420
|
+
[_SI, _CBC, _C, _CA, _CAM],
|
|
421
|
+
[[0, 1], [1, { [_hH]: _xaC }], [0, { [_hH]: _xaC_ }], [0, { [_hH]: _xaCA }], [0, { [_hH]: _xaCAM }]], 2
|
|
422
|
+
];
|
|
423
|
+
var CompleteSnapshotResponse$ = [3, n0, _CSRo,
|
|
424
|
+
0,
|
|
425
|
+
[_S],
|
|
426
|
+
[0]
|
|
427
|
+
];
|
|
428
|
+
var GetSnapshotBlockRequest$ = [3, n0, _GSBR,
|
|
429
|
+
0,
|
|
430
|
+
[_SI, _BI, _BT],
|
|
431
|
+
[[0, 1], [1, 1], [0, { [_hQ]: _bT }]], 3
|
|
432
|
+
];
|
|
433
|
+
var GetSnapshotBlockResponse$ = [3, n0, _GSBRe,
|
|
434
|
+
0,
|
|
435
|
+
[_DL, _BD, _C, _CA],
|
|
436
|
+
[[1, { [_hH]: _xaDL }], [() => BlockData, 16], [0, { [_hH]: _xaC_ }], [0, { [_hH]: _xaCA }]]
|
|
437
|
+
];
|
|
438
|
+
var ListChangedBlocksRequest$ = [3, n0, _LCBR,
|
|
439
|
+
0,
|
|
440
|
+
[_SSI, _FSI, _NT, _MR, _SBI],
|
|
441
|
+
[[0, 1], [0, { [_hQ]: _fSI }], [0, { [_hQ]: _pT }], [1, { [_hQ]: _mR }], [1, { [_hQ]: _sBI }]], 1
|
|
442
|
+
];
|
|
443
|
+
var ListChangedBlocksResponse$ = [3, n0, _LCBRi,
|
|
444
|
+
0,
|
|
445
|
+
[_CBh, _ET, _VS, _BS, _NT],
|
|
446
|
+
[[() => ChangedBlocks, 0], 4, 1, 1, 0]
|
|
447
|
+
];
|
|
448
|
+
var ListSnapshotBlocksRequest$ = [3, n0, _LSBR,
|
|
449
|
+
0,
|
|
450
|
+
[_SI, _NT, _MR, _SBI],
|
|
451
|
+
[[0, 1], [0, { [_hQ]: _pT }], [1, { [_hQ]: _mR }], [1, { [_hQ]: _sBI }]], 1
|
|
452
|
+
];
|
|
453
|
+
var ListSnapshotBlocksResponse$ = [3, n0, _LSBRi,
|
|
454
|
+
0,
|
|
455
|
+
[_Bl, _ET, _VS, _BS, _NT],
|
|
456
|
+
[[() => Blocks, 0], 4, 1, 1, 0]
|
|
457
|
+
];
|
|
458
|
+
var PutSnapshotBlockRequest$ = [3, n0, _PSBR,
|
|
459
|
+
0,
|
|
460
|
+
[_SI, _BI, _BD, _DL, _C, _CA, _P],
|
|
461
|
+
[[0, 1], [1, 1], [() => BlockData, 16], [1, { [_hH]: _xaDL }], [0, { [_hH]: _xaC_ }], [0, { [_hH]: _xaCA }], [1, { [_hH]: _xaP }]], 6
|
|
462
|
+
];
|
|
463
|
+
var PutSnapshotBlockResponse$ = [3, n0, _PSBRu,
|
|
464
|
+
0,
|
|
465
|
+
[_C, _CA],
|
|
466
|
+
[[0, { [_hH]: _xaC_ }], [0, { [_hH]: _xaCA }]]
|
|
467
|
+
];
|
|
468
|
+
var StartSnapshotRequest$ = [3, n0, _SSR,
|
|
469
|
+
0,
|
|
470
|
+
[_VS, _PSI, _T, _D, _CT, _E, _KKA, _Ti],
|
|
471
|
+
[1, 0, () => Tags, 0, [0, 4], 2, [() => KmsKeyArn, 0], 1], 1
|
|
472
|
+
];
|
|
473
|
+
var StartSnapshotResponse$ = [3, n0, _SSRt,
|
|
474
|
+
0,
|
|
475
|
+
[_D, _SI, _OI, _S, _ST, _VS, _BS, _T, _PSI, _KKA, _STs],
|
|
476
|
+
[0, 0, 0, 0, 4, 1, 1, () => Tags, 0, [() => KmsKeyArn, 0], 0]
|
|
477
|
+
];
|
|
478
|
+
var Tag$ = [3, n0, _Ta,
|
|
479
|
+
0,
|
|
480
|
+
[_K, _V],
|
|
481
|
+
[0, 0]
|
|
482
|
+
];
|
|
483
|
+
var Blocks = [1, n0, _Bl,
|
|
484
|
+
8, () => Block$
|
|
485
|
+
];
|
|
486
|
+
var ChangedBlocks = [1, n0, _CBh,
|
|
487
|
+
0, [() => ChangedBlock$,
|
|
488
|
+
0]
|
|
489
|
+
];
|
|
490
|
+
var Tags = [1, n0, _T,
|
|
491
|
+
0, () => Tag$
|
|
492
|
+
];
|
|
493
|
+
var CompleteSnapshot$ = [9, n0, _CS,
|
|
494
|
+
{ [_h]: ["POST", "/snapshots/completion/{SnapshotId}", 202] }, () => CompleteSnapshotRequest$, () => CompleteSnapshotResponse$
|
|
495
|
+
];
|
|
496
|
+
var GetSnapshotBlock$ = [9, n0, _GSB,
|
|
497
|
+
{ [_h]: ["GET", "/snapshots/{SnapshotId}/blocks/{BlockIndex}", 200] }, () => GetSnapshotBlockRequest$, () => GetSnapshotBlockResponse$
|
|
498
|
+
];
|
|
499
|
+
var ListChangedBlocks$ = [9, n0, _LCB,
|
|
500
|
+
{ [_h]: ["GET", "/snapshots/{SecondSnapshotId}/changedblocks", 200] }, () => ListChangedBlocksRequest$, () => ListChangedBlocksResponse$
|
|
501
|
+
];
|
|
502
|
+
var ListSnapshotBlocks$ = [9, n0, _LSB,
|
|
503
|
+
{ [_h]: ["GET", "/snapshots/{SnapshotId}/blocks", 200] }, () => ListSnapshotBlocksRequest$, () => ListSnapshotBlocksResponse$
|
|
504
|
+
];
|
|
505
|
+
var PutSnapshotBlock$ = [9, n0, _PSB,
|
|
506
|
+
{ [_h]: ["PUT", "/snapshots/{SnapshotId}/blocks/{BlockIndex}", 201] }, () => PutSnapshotBlockRequest$, () => PutSnapshotBlockResponse$
|
|
507
|
+
];
|
|
508
|
+
var StartSnapshot$ = [9, n0, _SS,
|
|
509
|
+
{ [_h]: ["POST", "/snapshots", 201] }, () => StartSnapshotRequest$, () => StartSnapshotResponse$
|
|
510
|
+
];
|
|
511
|
+
|
|
512
|
+
const getRuntimeConfig$1 = (config) => {
|
|
513
|
+
return {
|
|
514
|
+
apiVersion: "2019-11-02",
|
|
515
|
+
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
516
|
+
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
517
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
518
|
+
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
519
|
+
extensions: config?.extensions ?? [],
|
|
520
|
+
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultEBSHttpAuthSchemeProvider,
|
|
521
|
+
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
522
|
+
{
|
|
523
|
+
schemeId: "aws.auth#sigv4",
|
|
524
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
525
|
+
signer: new AwsSdkSigV4Signer(),
|
|
526
|
+
},
|
|
527
|
+
],
|
|
528
|
+
logger: config?.logger ?? new NoOpLogger(),
|
|
529
|
+
protocol: config?.protocol ?? AwsRestJsonProtocol,
|
|
530
|
+
protocolSettings: config?.protocolSettings ?? {
|
|
531
|
+
defaultNamespace: "com.amazonaws.ebs",
|
|
532
|
+
errorTypeRegistries,
|
|
533
|
+
version: "2019-11-02",
|
|
534
|
+
serviceTarget: "Ebs",
|
|
535
|
+
},
|
|
536
|
+
sdkStreamMixin: config?.sdkStreamMixin ?? sdkStreamMixin,
|
|
537
|
+
serviceId: config?.serviceId ?? "EBS",
|
|
538
|
+
urlParser: config?.urlParser ?? parseUrl,
|
|
539
|
+
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
540
|
+
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
541
|
+
};
|
|
542
|
+
};
|
|
543
|
+
|
|
544
|
+
const getRuntimeConfig = (config) => {
|
|
545
|
+
emitWarningIfUnsupportedVersion(process.version);
|
|
546
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
547
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
548
|
+
const clientSharedValues = getRuntimeConfig$1(config);
|
|
549
|
+
emitWarningIfUnsupportedVersion$1(process.version);
|
|
550
|
+
const loaderConfig = {
|
|
551
|
+
profile: config?.profile,
|
|
552
|
+
logger: clientSharedValues.logger,
|
|
553
|
+
};
|
|
554
|
+
return {
|
|
555
|
+
...clientSharedValues,
|
|
556
|
+
...config,
|
|
557
|
+
runtime: "node",
|
|
558
|
+
defaultsMode,
|
|
559
|
+
authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
560
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
561
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
|
|
562
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
563
|
+
maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
564
|
+
region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
565
|
+
requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
566
|
+
retryMode: config?.retryMode ??
|
|
567
|
+
loadConfig({
|
|
568
|
+
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
569
|
+
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
570
|
+
}, config),
|
|
571
|
+
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
572
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
573
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
574
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
575
|
+
userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
|
|
576
|
+
};
|
|
577
|
+
};
|
|
578
|
+
|
|
34
579
|
const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
35
580
|
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
36
581
|
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
@@ -255,22 +800,62 @@ const SSEType = {
|
|
|
255
800
|
SSE_KMS: "sse-kms",
|
|
256
801
|
};
|
|
257
802
|
|
|
803
|
+
exports.AccessDeniedException = AccessDeniedException;
|
|
804
|
+
exports.AccessDeniedException$ = AccessDeniedException$;
|
|
258
805
|
exports.AccessDeniedExceptionReason = AccessDeniedExceptionReason;
|
|
806
|
+
exports.Block$ = Block$;
|
|
807
|
+
exports.ChangedBlock$ = ChangedBlock$;
|
|
259
808
|
exports.ChecksumAggregationMethod = ChecksumAggregationMethod;
|
|
260
809
|
exports.ChecksumAlgorithm = ChecksumAlgorithm;
|
|
810
|
+
exports.CompleteSnapshot$ = CompleteSnapshot$;
|
|
261
811
|
exports.CompleteSnapshotCommand = CompleteSnapshotCommand;
|
|
812
|
+
exports.CompleteSnapshotRequest$ = CompleteSnapshotRequest$;
|
|
813
|
+
exports.CompleteSnapshotResponse$ = CompleteSnapshotResponse$;
|
|
814
|
+
exports.ConcurrentLimitExceededException = ConcurrentLimitExceededException;
|
|
815
|
+
exports.ConcurrentLimitExceededException$ = ConcurrentLimitExceededException$;
|
|
816
|
+
exports.ConflictException = ConflictException;
|
|
817
|
+
exports.ConflictException$ = ConflictException$;
|
|
262
818
|
exports.EBS = EBS;
|
|
263
819
|
exports.EBSClient = EBSClient;
|
|
820
|
+
exports.EBSServiceException = EBSServiceException;
|
|
821
|
+
exports.EBSServiceException$ = EBSServiceException$;
|
|
822
|
+
exports.GetSnapshotBlock$ = GetSnapshotBlock$;
|
|
264
823
|
exports.GetSnapshotBlockCommand = GetSnapshotBlockCommand;
|
|
824
|
+
exports.GetSnapshotBlockRequest$ = GetSnapshotBlockRequest$;
|
|
825
|
+
exports.GetSnapshotBlockResponse$ = GetSnapshotBlockResponse$;
|
|
826
|
+
exports.InternalServerException = InternalServerException;
|
|
827
|
+
exports.InternalServerException$ = InternalServerException$;
|
|
828
|
+
exports.ListChangedBlocks$ = ListChangedBlocks$;
|
|
265
829
|
exports.ListChangedBlocksCommand = ListChangedBlocksCommand;
|
|
830
|
+
exports.ListChangedBlocksRequest$ = ListChangedBlocksRequest$;
|
|
831
|
+
exports.ListChangedBlocksResponse$ = ListChangedBlocksResponse$;
|
|
832
|
+
exports.ListSnapshotBlocks$ = ListSnapshotBlocks$;
|
|
266
833
|
exports.ListSnapshotBlocksCommand = ListSnapshotBlocksCommand;
|
|
834
|
+
exports.ListSnapshotBlocksRequest$ = ListSnapshotBlocksRequest$;
|
|
835
|
+
exports.ListSnapshotBlocksResponse$ = ListSnapshotBlocksResponse$;
|
|
836
|
+
exports.PutSnapshotBlock$ = PutSnapshotBlock$;
|
|
267
837
|
exports.PutSnapshotBlockCommand = PutSnapshotBlockCommand;
|
|
838
|
+
exports.PutSnapshotBlockRequest$ = PutSnapshotBlockRequest$;
|
|
839
|
+
exports.PutSnapshotBlockResponse$ = PutSnapshotBlockResponse$;
|
|
840
|
+
exports.RequestThrottledException = RequestThrottledException;
|
|
841
|
+
exports.RequestThrottledException$ = RequestThrottledException$;
|
|
268
842
|
exports.RequestThrottledExceptionReason = RequestThrottledExceptionReason;
|
|
843
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
844
|
+
exports.ResourceNotFoundException$ = ResourceNotFoundException$;
|
|
269
845
|
exports.ResourceNotFoundExceptionReason = ResourceNotFoundExceptionReason;
|
|
270
846
|
exports.SSEType = SSEType;
|
|
847
|
+
exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
|
|
848
|
+
exports.ServiceQuotaExceededException$ = ServiceQuotaExceededException$;
|
|
271
849
|
exports.ServiceQuotaExceededExceptionReason = ServiceQuotaExceededExceptionReason;
|
|
850
|
+
exports.StartSnapshot$ = StartSnapshot$;
|
|
272
851
|
exports.StartSnapshotCommand = StartSnapshotCommand;
|
|
852
|
+
exports.StartSnapshotRequest$ = StartSnapshotRequest$;
|
|
853
|
+
exports.StartSnapshotResponse$ = StartSnapshotResponse$;
|
|
273
854
|
exports.Status = Status;
|
|
855
|
+
exports.Tag$ = Tag$;
|
|
856
|
+
exports.ValidationException = ValidationException;
|
|
857
|
+
exports.ValidationException$ = ValidationException$;
|
|
274
858
|
exports.ValidationExceptionReason = ValidationExceptionReason;
|
|
859
|
+
exports.errorTypeRegistries = errorTypeRegistries;
|
|
275
860
|
exports.paginateListChangedBlocks = paginateListChangedBlocks;
|
|
276
861
|
exports.paginateListSnapshotBlocks = paginateListSnapshotBlocks;
|
|
@@ -14,7 +14,7 @@ export declare const getRuntimeConfig: (config: EBSClientConfig) => {
|
|
|
14
14
|
requestHandler: import("@smithy/core/protocols").HttpHandler<any> | RequestHandler;
|
|
15
15
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
16
16
|
sha256: import("@smithy/types").HashConstructor;
|
|
17
|
-
streamCollector: import("
|
|
17
|
+
streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
|
|
18
18
|
useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
|
|
19
19
|
useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
|
|
20
20
|
cacheMiddleware?: boolean | undefined;
|
|
@@ -15,7 +15,7 @@ export declare const getRuntimeConfig: (config: EBSClientConfig) => {
|
|
|
15
15
|
requestHandler: RequestHandler | import("@smithy/core/protocols").HttpHandler<any>;
|
|
16
16
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
17
17
|
sha256: import("@smithy/types").HashConstructor;
|
|
18
|
-
streamCollector: import("
|
|
18
|
+
streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
|
|
19
19
|
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
20
20
|
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
21
21
|
userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
|
|
@@ -15,7 +15,7 @@ export declare const getRuntimeConfig: (config: EBSClientConfig) => {
|
|
|
15
15
|
apiVersion: string;
|
|
16
16
|
urlParser: import("@smithy/types").UrlParser;
|
|
17
17
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
18
|
-
streamCollector: import("
|
|
18
|
+
streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
|
|
19
19
|
base64Decoder: import("@smithy/types").Decoder;
|
|
20
20
|
base64Encoder: (_input: Uint8Array | string) => string;
|
|
21
21
|
utf8Decoder: import("@smithy/types").Decoder;
|