@aws-sdk/client-mediastore-data 3.490.0 → 3.496.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.
@@ -1,12 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MediaStoreDataServiceException = exports.__ServiceException = void 0;
4
- const smithy_client_1 = require("@smithy/smithy-client");
5
- Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
6
- class MediaStoreDataServiceException extends smithy_client_1.ServiceException {
7
- constructor(options) {
8
- super(options);
9
- Object.setPrototypeOf(this, MediaStoreDataServiceException.prototype);
10
- }
11
- }
12
- exports.MediaStoreDataServiceException = MediaStoreDataServiceException;
1
+ module.exports = require("../index.js");
@@ -1,4 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./models_0"), exports);
1
+ module.exports = require("../index.js");
@@ -1,79 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PutObjectRequestFilterSensitiveLog = exports.GetObjectResponseFilterSensitiveLog = exports.UploadAvailability = exports.StorageClass = exports.ItemType = exports.RequestedRangeNotSatisfiableException = exports.ObjectNotFoundException = exports.InternalServerError = exports.ContainerNotFoundException = void 0;
4
- const MediaStoreDataServiceException_1 = require("./MediaStoreDataServiceException");
5
- class ContainerNotFoundException extends MediaStoreDataServiceException_1.MediaStoreDataServiceException {
6
- constructor(opts) {
7
- super({
8
- name: "ContainerNotFoundException",
9
- $fault: "client",
10
- ...opts,
11
- });
12
- this.name = "ContainerNotFoundException";
13
- this.$fault = "client";
14
- Object.setPrototypeOf(this, ContainerNotFoundException.prototype);
15
- this.Message = opts.Message;
16
- }
17
- }
18
- exports.ContainerNotFoundException = ContainerNotFoundException;
19
- class InternalServerError extends MediaStoreDataServiceException_1.MediaStoreDataServiceException {
20
- constructor(opts) {
21
- super({
22
- name: "InternalServerError",
23
- $fault: "server",
24
- ...opts,
25
- });
26
- this.name = "InternalServerError";
27
- this.$fault = "server";
28
- Object.setPrototypeOf(this, InternalServerError.prototype);
29
- this.Message = opts.Message;
30
- }
31
- }
32
- exports.InternalServerError = InternalServerError;
33
- class ObjectNotFoundException extends MediaStoreDataServiceException_1.MediaStoreDataServiceException {
34
- constructor(opts) {
35
- super({
36
- name: "ObjectNotFoundException",
37
- $fault: "client",
38
- ...opts,
39
- });
40
- this.name = "ObjectNotFoundException";
41
- this.$fault = "client";
42
- Object.setPrototypeOf(this, ObjectNotFoundException.prototype);
43
- this.Message = opts.Message;
44
- }
45
- }
46
- exports.ObjectNotFoundException = ObjectNotFoundException;
47
- class RequestedRangeNotSatisfiableException extends MediaStoreDataServiceException_1.MediaStoreDataServiceException {
48
- constructor(opts) {
49
- super({
50
- name: "RequestedRangeNotSatisfiableException",
51
- $fault: "client",
52
- ...opts,
53
- });
54
- this.name = "RequestedRangeNotSatisfiableException";
55
- this.$fault = "client";
56
- Object.setPrototypeOf(this, RequestedRangeNotSatisfiableException.prototype);
57
- this.Message = opts.Message;
58
- }
59
- }
60
- exports.RequestedRangeNotSatisfiableException = RequestedRangeNotSatisfiableException;
61
- exports.ItemType = {
62
- FOLDER: "FOLDER",
63
- OBJECT: "OBJECT",
64
- };
65
- exports.StorageClass = {
66
- TEMPORAL: "TEMPORAL",
67
- };
68
- exports.UploadAvailability = {
69
- STANDARD: "STANDARD",
70
- STREAMING: "STREAMING",
71
- };
72
- const GetObjectResponseFilterSensitiveLog = (obj) => ({
73
- ...obj,
74
- });
75
- exports.GetObjectResponseFilterSensitiveLog = GetObjectResponseFilterSensitiveLog;
76
- const PutObjectRequestFilterSensitiveLog = (obj) => ({
77
- ...obj,
78
- });
79
- exports.PutObjectRequestFilterSensitiveLog = PutObjectRequestFilterSensitiveLog;
1
+ module.exports = require("../index.js");
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ module.exports = require("../index.js");
@@ -1,7 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.paginateListItems = void 0;
4
- const core_1 = require("@smithy/core");
5
- const ListItemsCommand_1 = require("../commands/ListItemsCommand");
6
- const MediaStoreDataClient_1 = require("../MediaStoreDataClient");
7
- exports.paginateListItems = (0, core_1.createPaginator)(MediaStoreDataClient_1.MediaStoreDataClient, ListItemsCommand_1.ListItemsCommand, "NextToken", "NextToken", "MaxResults");
1
+ module.exports = require("../index.js");
@@ -1,5 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./Interfaces"), exports);
5
- tslib_1.__exportStar(require("./ListItemsPaginator"), exports);
1
+ module.exports = require("../index.js");
@@ -1,420 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.de_PutObjectCommand = exports.de_ListItemsCommand = exports.de_GetObjectCommand = exports.de_DescribeObjectCommand = exports.de_DeleteObjectCommand = exports.se_PutObjectCommand = exports.se_ListItemsCommand = exports.se_GetObjectCommand = exports.se_DescribeObjectCommand = exports.se_DeleteObjectCommand = void 0;
4
- const core_1 = require("@smithy/core");
5
- const smithy_client_1 = require("@smithy/smithy-client");
6
- const MediaStoreDataServiceException_1 = require("../models/MediaStoreDataServiceException");
7
- const models_0_1 = require("../models/models_0");
8
- const se_DeleteObjectCommand = async (input, context) => {
9
- const b = (0, core_1.requestBuilder)(input, context);
10
- const headers = {};
11
- b.bp("/{Path+}");
12
- b.p("Path", () => input.Path, "{Path+}", true);
13
- let body;
14
- b.m("DELETE").h(headers).b(body);
15
- return b.build();
16
- };
17
- exports.se_DeleteObjectCommand = se_DeleteObjectCommand;
18
- const se_DescribeObjectCommand = async (input, context) => {
19
- const b = (0, core_1.requestBuilder)(input, context);
20
- const headers = {};
21
- b.bp("/{Path+}");
22
- b.p("Path", () => input.Path, "{Path+}", true);
23
- let body;
24
- b.m("HEAD").h(headers).b(body);
25
- return b.build();
26
- };
27
- exports.se_DescribeObjectCommand = se_DescribeObjectCommand;
28
- const se_GetObjectCommand = async (input, context) => {
29
- const b = (0, core_1.requestBuilder)(input, context);
30
- const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
31
- [_r]: input[_R],
32
- });
33
- b.bp("/{Path+}");
34
- b.p("Path", () => input.Path, "{Path+}", true);
35
- let body;
36
- b.m("GET").h(headers).b(body);
37
- return b.build();
38
- };
39
- exports.se_GetObjectCommand = se_GetObjectCommand;
40
- const se_ListItemsCommand = async (input, context) => {
41
- const b = (0, core_1.requestBuilder)(input, context);
42
- const headers = {};
43
- b.bp("/");
44
- const query = (0, smithy_client_1.map)({
45
- [_P]: [, input[_P]],
46
- [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
47
- [_NT]: [, input[_NT]],
48
- });
49
- let body;
50
- b.m("GET").h(headers).q(query).b(body);
51
- return b.build();
52
- };
53
- exports.se_ListItemsCommand = se_ListItemsCommand;
54
- const se_PutObjectCommand = async (input, context) => {
55
- const b = (0, core_1.requestBuilder)(input, context);
56
- const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
57
- "x-amz-content-sha256": "UNSIGNED-PAYLOAD",
58
- [_ct]: input[_CT] || "application/octet-stream",
59
- [_cc]: input[_CC],
60
- [_xasc]: input[_SC],
61
- [_xaua]: input[_UA],
62
- });
63
- b.bp("/{Path+}");
64
- b.p("Path", () => input.Path, "{Path+}", true);
65
- let body;
66
- if (input.Body !== undefined) {
67
- body = input.Body;
68
- }
69
- b.m("PUT").h(headers).b(body);
70
- return b.build();
71
- };
72
- exports.se_PutObjectCommand = se_PutObjectCommand;
73
- const de_DeleteObjectCommand = async (output, context) => {
74
- if (output.statusCode !== 200 && output.statusCode >= 300) {
75
- return de_DeleteObjectCommandError(output, context);
76
- }
77
- const contents = (0, smithy_client_1.map)({
78
- $metadata: deserializeMetadata(output),
79
- });
80
- await (0, smithy_client_1.collectBody)(output.body, context);
81
- return contents;
82
- };
83
- exports.de_DeleteObjectCommand = de_DeleteObjectCommand;
84
- const de_DeleteObjectCommandError = async (output, context) => {
85
- const parsedOutput = {
86
- ...output,
87
- body: await parseErrorBody(output.body, context),
88
- };
89
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
90
- switch (errorCode) {
91
- case "ContainerNotFoundException":
92
- case "com.amazonaws.mediastoredata#ContainerNotFoundException":
93
- throw await de_ContainerNotFoundExceptionRes(parsedOutput, context);
94
- case "InternalServerError":
95
- case "com.amazonaws.mediastoredata#InternalServerError":
96
- throw await de_InternalServerErrorRes(parsedOutput, context);
97
- case "ObjectNotFoundException":
98
- case "com.amazonaws.mediastoredata#ObjectNotFoundException":
99
- throw await de_ObjectNotFoundExceptionRes(parsedOutput, context);
100
- default:
101
- const parsedBody = parsedOutput.body;
102
- return throwDefaultError({
103
- output,
104
- parsedBody,
105
- errorCode,
106
- });
107
- }
108
- };
109
- const de_DescribeObjectCommand = async (output, context) => {
110
- if (output.statusCode !== 200 && output.statusCode >= 300) {
111
- return de_DescribeObjectCommandError(output, context);
112
- }
113
- const contents = (0, smithy_client_1.map)({
114
- $metadata: deserializeMetadata(output),
115
- [_ET]: [, output.headers[_e]],
116
- [_CT]: [, output.headers[_ct]],
117
- [_CL]: [() => void 0 !== output.headers[_cl], () => (0, smithy_client_1.strictParseLong)(output.headers[_cl])],
118
- [_CC]: [, output.headers[_cc]],
119
- [_LM]: [() => void 0 !== output.headers[_lm], () => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc7231DateTime)(output.headers[_lm]))],
120
- });
121
- await (0, smithy_client_1.collectBody)(output.body, context);
122
- return contents;
123
- };
124
- exports.de_DescribeObjectCommand = de_DescribeObjectCommand;
125
- const de_DescribeObjectCommandError = async (output, context) => {
126
- const parsedOutput = {
127
- ...output,
128
- body: await parseErrorBody(output.body, context),
129
- };
130
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
131
- switch (errorCode) {
132
- case "ContainerNotFoundException":
133
- case "com.amazonaws.mediastoredata#ContainerNotFoundException":
134
- throw await de_ContainerNotFoundExceptionRes(parsedOutput, context);
135
- case "InternalServerError":
136
- case "com.amazonaws.mediastoredata#InternalServerError":
137
- throw await de_InternalServerErrorRes(parsedOutput, context);
138
- case "ObjectNotFoundException":
139
- case "com.amazonaws.mediastoredata#ObjectNotFoundException":
140
- throw await de_ObjectNotFoundExceptionRes(parsedOutput, context);
141
- default:
142
- const parsedBody = parsedOutput.body;
143
- return throwDefaultError({
144
- output,
145
- parsedBody,
146
- errorCode,
147
- });
148
- }
149
- };
150
- const de_GetObjectCommand = async (output, context) => {
151
- if (output.statusCode !== 200 && output.statusCode >= 300) {
152
- return de_GetObjectCommandError(output, context);
153
- }
154
- const contents = (0, smithy_client_1.map)({
155
- $metadata: deserializeMetadata(output),
156
- [_CC]: [, output.headers[_cc]],
157
- [_CR]: [, output.headers[_cr]],
158
- [_CL]: [() => void 0 !== output.headers[_cl], () => (0, smithy_client_1.strictParseLong)(output.headers[_cl])],
159
- [_CT]: [, output.headers[_ct]],
160
- [_ET]: [, output.headers[_e]],
161
- [_LM]: [() => void 0 !== output.headers[_lm], () => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc7231DateTime)(output.headers[_lm]))],
162
- });
163
- const data = output.body;
164
- context.sdkStreamMixin(data);
165
- contents.Body = data;
166
- (0, smithy_client_1.map)(contents, {
167
- StatusCode: [, output.statusCode],
168
- });
169
- return contents;
170
- };
171
- exports.de_GetObjectCommand = de_GetObjectCommand;
172
- const de_GetObjectCommandError = async (output, context) => {
173
- const parsedOutput = {
174
- ...output,
175
- body: await parseErrorBody(output.body, context),
176
- };
177
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
178
- switch (errorCode) {
179
- case "ContainerNotFoundException":
180
- case "com.amazonaws.mediastoredata#ContainerNotFoundException":
181
- throw await de_ContainerNotFoundExceptionRes(parsedOutput, context);
182
- case "InternalServerError":
183
- case "com.amazonaws.mediastoredata#InternalServerError":
184
- throw await de_InternalServerErrorRes(parsedOutput, context);
185
- case "ObjectNotFoundException":
186
- case "com.amazonaws.mediastoredata#ObjectNotFoundException":
187
- throw await de_ObjectNotFoundExceptionRes(parsedOutput, context);
188
- case "RequestedRangeNotSatisfiableException":
189
- case "com.amazonaws.mediastoredata#RequestedRangeNotSatisfiableException":
190
- throw await de_RequestedRangeNotSatisfiableExceptionRes(parsedOutput, context);
191
- default:
192
- const parsedBody = parsedOutput.body;
193
- return throwDefaultError({
194
- output,
195
- parsedBody,
196
- errorCode,
197
- });
198
- }
199
- };
200
- const de_ListItemsCommand = async (output, context) => {
201
- if (output.statusCode !== 200 && output.statusCode >= 300) {
202
- return de_ListItemsCommandError(output, context);
203
- }
204
- const contents = (0, smithy_client_1.map)({
205
- $metadata: deserializeMetadata(output),
206
- });
207
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
208
- const doc = (0, smithy_client_1.take)(data, {
209
- Items: (_) => de_ItemList(_, context),
210
- NextToken: smithy_client_1.expectString,
211
- });
212
- Object.assign(contents, doc);
213
- return contents;
214
- };
215
- exports.de_ListItemsCommand = de_ListItemsCommand;
216
- const de_ListItemsCommandError = async (output, context) => {
217
- const parsedOutput = {
218
- ...output,
219
- body: await parseErrorBody(output.body, context),
220
- };
221
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
222
- switch (errorCode) {
223
- case "ContainerNotFoundException":
224
- case "com.amazonaws.mediastoredata#ContainerNotFoundException":
225
- throw await de_ContainerNotFoundExceptionRes(parsedOutput, context);
226
- case "InternalServerError":
227
- case "com.amazonaws.mediastoredata#InternalServerError":
228
- throw await de_InternalServerErrorRes(parsedOutput, context);
229
- default:
230
- const parsedBody = parsedOutput.body;
231
- return throwDefaultError({
232
- output,
233
- parsedBody,
234
- errorCode,
235
- });
236
- }
237
- };
238
- const de_PutObjectCommand = async (output, context) => {
239
- if (output.statusCode !== 200 && output.statusCode >= 300) {
240
- return de_PutObjectCommandError(output, context);
241
- }
242
- const contents = (0, smithy_client_1.map)({
243
- $metadata: deserializeMetadata(output),
244
- });
245
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
246
- const doc = (0, smithy_client_1.take)(data, {
247
- ContentSHA256: smithy_client_1.expectString,
248
- ETag: smithy_client_1.expectString,
249
- StorageClass: smithy_client_1.expectString,
250
- });
251
- Object.assign(contents, doc);
252
- return contents;
253
- };
254
- exports.de_PutObjectCommand = de_PutObjectCommand;
255
- const de_PutObjectCommandError = async (output, context) => {
256
- const parsedOutput = {
257
- ...output,
258
- body: await parseErrorBody(output.body, context),
259
- };
260
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
261
- switch (errorCode) {
262
- case "ContainerNotFoundException":
263
- case "com.amazonaws.mediastoredata#ContainerNotFoundException":
264
- throw await de_ContainerNotFoundExceptionRes(parsedOutput, context);
265
- case "InternalServerError":
266
- case "com.amazonaws.mediastoredata#InternalServerError":
267
- throw await de_InternalServerErrorRes(parsedOutput, context);
268
- default:
269
- const parsedBody = parsedOutput.body;
270
- return throwDefaultError({
271
- output,
272
- parsedBody,
273
- errorCode,
274
- });
275
- }
276
- };
277
- const throwDefaultError = (0, smithy_client_1.withBaseException)(MediaStoreDataServiceException_1.MediaStoreDataServiceException);
278
- const de_ContainerNotFoundExceptionRes = async (parsedOutput, context) => {
279
- const contents = (0, smithy_client_1.map)({});
280
- const data = parsedOutput.body;
281
- const doc = (0, smithy_client_1.take)(data, {
282
- Message: smithy_client_1.expectString,
283
- });
284
- Object.assign(contents, doc);
285
- const exception = new models_0_1.ContainerNotFoundException({
286
- $metadata: deserializeMetadata(parsedOutput),
287
- ...contents,
288
- });
289
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
290
- };
291
- const de_InternalServerErrorRes = async (parsedOutput, context) => {
292
- const contents = (0, smithy_client_1.map)({});
293
- const data = parsedOutput.body;
294
- const doc = (0, smithy_client_1.take)(data, {
295
- Message: smithy_client_1.expectString,
296
- });
297
- Object.assign(contents, doc);
298
- const exception = new models_0_1.InternalServerError({
299
- $metadata: deserializeMetadata(parsedOutput),
300
- ...contents,
301
- });
302
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
303
- };
304
- const de_ObjectNotFoundExceptionRes = async (parsedOutput, context) => {
305
- const contents = (0, smithy_client_1.map)({});
306
- const data = parsedOutput.body;
307
- const doc = (0, smithy_client_1.take)(data, {
308
- Message: smithy_client_1.expectString,
309
- });
310
- Object.assign(contents, doc);
311
- const exception = new models_0_1.ObjectNotFoundException({
312
- $metadata: deserializeMetadata(parsedOutput),
313
- ...contents,
314
- });
315
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
316
- };
317
- const de_RequestedRangeNotSatisfiableExceptionRes = async (parsedOutput, context) => {
318
- const contents = (0, smithy_client_1.map)({});
319
- const data = parsedOutput.body;
320
- const doc = (0, smithy_client_1.take)(data, {
321
- Message: smithy_client_1.expectString,
322
- });
323
- Object.assign(contents, doc);
324
- const exception = new models_0_1.RequestedRangeNotSatisfiableException({
325
- $metadata: deserializeMetadata(parsedOutput),
326
- ...contents,
327
- });
328
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
329
- };
330
- const de_Item = (output, context) => {
331
- return (0, smithy_client_1.take)(output, {
332
- ContentLength: smithy_client_1.expectLong,
333
- ContentType: smithy_client_1.expectString,
334
- ETag: smithy_client_1.expectString,
335
- LastModified: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
336
- Name: smithy_client_1.expectString,
337
- Type: smithy_client_1.expectString,
338
- });
339
- };
340
- const de_ItemList = (output, context) => {
341
- const retVal = (output || [])
342
- .filter((e) => e != null)
343
- .map((entry) => {
344
- return de_Item(entry, context);
345
- });
346
- return retVal;
347
- };
348
- const deserializeMetadata = (output) => ({
349
- httpStatusCode: output.statusCode,
350
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
351
- extendedRequestId: output.headers["x-amz-id-2"],
352
- cfId: output.headers["x-amz-cf-id"],
353
- });
354
- const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
355
- const isSerializableHeaderValue = (value) => value !== undefined &&
356
- value !== null &&
357
- value !== "" &&
358
- (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
359
- (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
360
- const _CC = "CacheControl";
361
- const _CL = "ContentLength";
362
- const _CR = "ContentRange";
363
- const _CT = "ContentType";
364
- const _ET = "ETag";
365
- const _LM = "LastModified";
366
- const _MR = "MaxResults";
367
- const _NT = "NextToken";
368
- const _P = "Path";
369
- const _R = "Range";
370
- const _SC = "StorageClass";
371
- const _UA = "UploadAvailability";
372
- const _cc = "cache-control";
373
- const _cl = "content-length";
374
- const _cr = "content-range";
375
- const _ct = "content-type";
376
- const _e = "etag";
377
- const _lm = "last-modified";
378
- const _r = "range";
379
- const _xasc = "x-amz-storage-class";
380
- const _xaua = "x-amz-upload-availability";
381
- const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
382
- if (encoded.length) {
383
- return JSON.parse(encoded);
384
- }
385
- return {};
386
- });
387
- const parseErrorBody = async (errorBody, context) => {
388
- const value = await parseBody(errorBody, context);
389
- value.message = value.message ?? value.Message;
390
- return value;
391
- };
392
- const loadRestJsonErrorCode = (output, data) => {
393
- const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
394
- const sanitizeErrorCode = (rawValue) => {
395
- let cleanValue = rawValue;
396
- if (typeof cleanValue === "number") {
397
- cleanValue = cleanValue.toString();
398
- }
399
- if (cleanValue.indexOf(",") >= 0) {
400
- cleanValue = cleanValue.split(",")[0];
401
- }
402
- if (cleanValue.indexOf(":") >= 0) {
403
- cleanValue = cleanValue.split(":")[0];
404
- }
405
- if (cleanValue.indexOf("#") >= 0) {
406
- cleanValue = cleanValue.split("#")[1];
407
- }
408
- return cleanValue;
409
- };
410
- const headerKey = findKey(output.headers, "x-amzn-errortype");
411
- if (headerKey !== undefined) {
412
- return sanitizeErrorCode(output.headers[headerKey]);
413
- }
414
- if (data.code !== undefined) {
415
- return sanitizeErrorCode(data.code);
416
- }
417
- if (data["__type"] !== undefined) {
418
- return sanitizeErrorCode(data["__type"]);
419
- }
420
- };
1
+ module.exports = require("../index.js");
@@ -1,22 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.resolveRuntimeExtensions = void 0;
4
- const region_config_resolver_1 = require("@aws-sdk/region-config-resolver");
5
- const protocol_http_1 = require("@smithy/protocol-http");
6
- const smithy_client_1 = require("@smithy/smithy-client");
7
- const asPartial = (t) => t;
8
- const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
9
- const extensionConfiguration = {
10
- ...asPartial((0, region_config_resolver_1.getAwsRegionExtensionConfiguration)(runtimeConfig)),
11
- ...asPartial((0, smithy_client_1.getDefaultExtensionConfiguration)(runtimeConfig)),
12
- ...asPartial((0, protocol_http_1.getHttpHandlerExtensionConfiguration)(runtimeConfig)),
13
- };
14
- extensions.forEach((extension) => extension.configure(extensionConfiguration));
15
- return {
16
- ...runtimeConfig,
17
- ...(0, region_config_resolver_1.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
18
- ...(0, smithy_client_1.resolveDefaultRuntimeConfig)(extensionConfiguration),
19
- ...(0, protocol_http_1.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
20
- };
21
- };
22
- exports.resolveRuntimeExtensions = resolveRuntimeExtensions;
1
+ module.exports = require("./index.js");
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-mediastore-data",
3
3
  "description": "AWS SDK for JavaScript Mediastore Data Client for Node.js, Browser and React Native",
4
- "version": "3.490.0",
4
+ "version": "3.496.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
- "build:cjs": "tsc -p tsconfig.cjs.json",
7
+ "build:cjs": "node ../../scripts/compilation/inline client-mediastore-data",
8
8
  "build:es": "tsc -p tsconfig.es.json",
9
9
  "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build",
10
10
  "build:types": "tsc -p tsconfig.types.json",
@@ -22,48 +22,48 @@
22
22
  "dependencies": {
23
23
  "@aws-crypto/sha256-browser": "3.0.0",
24
24
  "@aws-crypto/sha256-js": "3.0.0",
25
- "@aws-sdk/client-sts": "3.490.0",
26
- "@aws-sdk/core": "3.490.0",
27
- "@aws-sdk/credential-provider-node": "3.490.0",
28
- "@aws-sdk/middleware-host-header": "3.489.0",
29
- "@aws-sdk/middleware-logger": "3.489.0",
30
- "@aws-sdk/middleware-recursion-detection": "3.489.0",
31
- "@aws-sdk/middleware-signing": "3.489.0",
32
- "@aws-sdk/middleware-user-agent": "3.489.0",
33
- "@aws-sdk/region-config-resolver": "3.489.0",
34
- "@aws-sdk/types": "3.489.0",
35
- "@aws-sdk/util-endpoints": "3.489.0",
36
- "@aws-sdk/util-user-agent-browser": "3.489.0",
37
- "@aws-sdk/util-user-agent-node": "3.489.0",
38
- "@smithy/config-resolver": "^2.0.23",
39
- "@smithy/core": "^1.2.2",
40
- "@smithy/fetch-http-handler": "^2.3.2",
41
- "@smithy/hash-node": "^2.0.18",
42
- "@smithy/invalid-dependency": "^2.0.16",
43
- "@smithy/middleware-content-length": "^2.0.18",
44
- "@smithy/middleware-endpoint": "^2.3.0",
45
- "@smithy/middleware-retry": "^2.0.26",
46
- "@smithy/middleware-serde": "^2.0.16",
47
- "@smithy/middleware-stack": "^2.0.10",
48
- "@smithy/node-config-provider": "^2.1.9",
49
- "@smithy/node-http-handler": "^2.2.2",
50
- "@smithy/protocol-http": "^3.0.12",
51
- "@smithy/smithy-client": "^2.2.1",
52
- "@smithy/types": "^2.8.0",
53
- "@smithy/url-parser": "^2.0.16",
54
- "@smithy/util-base64": "^2.0.1",
55
- "@smithy/util-body-length-browser": "^2.0.1",
56
- "@smithy/util-body-length-node": "^2.1.0",
57
- "@smithy/util-defaults-mode-browser": "^2.0.24",
58
- "@smithy/util-defaults-mode-node": "^2.0.32",
59
- "@smithy/util-endpoints": "^1.0.8",
60
- "@smithy/util-retry": "^2.0.9",
61
- "@smithy/util-stream": "^2.0.24",
62
- "@smithy/util-utf8": "^2.0.2",
25
+ "@aws-sdk/client-sts": "3.496.0",
26
+ "@aws-sdk/core": "3.496.0",
27
+ "@aws-sdk/credential-provider-node": "3.496.0",
28
+ "@aws-sdk/middleware-host-header": "3.496.0",
29
+ "@aws-sdk/middleware-logger": "3.496.0",
30
+ "@aws-sdk/middleware-recursion-detection": "3.496.0",
31
+ "@aws-sdk/middleware-signing": "3.496.0",
32
+ "@aws-sdk/middleware-user-agent": "3.496.0",
33
+ "@aws-sdk/region-config-resolver": "3.496.0",
34
+ "@aws-sdk/types": "3.496.0",
35
+ "@aws-sdk/util-endpoints": "3.496.0",
36
+ "@aws-sdk/util-user-agent-browser": "3.496.0",
37
+ "@aws-sdk/util-user-agent-node": "3.496.0",
38
+ "@smithy/config-resolver": "^2.1.1",
39
+ "@smithy/core": "^1.3.1",
40
+ "@smithy/fetch-http-handler": "^2.4.1",
41
+ "@smithy/hash-node": "^2.1.1",
42
+ "@smithy/invalid-dependency": "^2.1.1",
43
+ "@smithy/middleware-content-length": "^2.1.1",
44
+ "@smithy/middleware-endpoint": "^2.4.1",
45
+ "@smithy/middleware-retry": "^2.1.1",
46
+ "@smithy/middleware-serde": "^2.1.1",
47
+ "@smithy/middleware-stack": "^2.1.1",
48
+ "@smithy/node-config-provider": "^2.2.1",
49
+ "@smithy/node-http-handler": "^2.3.1",
50
+ "@smithy/protocol-http": "^3.1.1",
51
+ "@smithy/smithy-client": "^2.3.1",
52
+ "@smithy/types": "^2.9.1",
53
+ "@smithy/url-parser": "^2.1.1",
54
+ "@smithy/util-base64": "^2.1.1",
55
+ "@smithy/util-body-length-browser": "^2.1.1",
56
+ "@smithy/util-body-length-node": "^2.2.1",
57
+ "@smithy/util-defaults-mode-browser": "^2.1.1",
58
+ "@smithy/util-defaults-mode-node": "^2.1.1",
59
+ "@smithy/util-endpoints": "^1.1.1",
60
+ "@smithy/util-retry": "^2.1.1",
61
+ "@smithy/util-stream": "^2.1.1",
62
+ "@smithy/util-utf8": "^2.1.1",
63
63
  "tslib": "^2.5.0"
64
64
  },
65
65
  "devDependencies": {
66
- "@smithy/service-client-documentation-generator": "^2.0.0",
66
+ "@smithy/service-client-documentation-generator": "^2.1.1",
67
67
  "@tsconfig/node14": "1.0.3",
68
68
  "@types/chai": "^4.2.11",
69
69
  "@types/mocha": "^8.0.4",