@aws-sdk/client-mediastore-data 3.303.0 → 3.309.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/commands/DeleteObjectCommand.js +2 -2
- package/dist-cjs/commands/DescribeObjectCommand.js +2 -2
- package/dist-cjs/commands/GetObjectCommand.js +2 -2
- package/dist-cjs/commands/ListItemsCommand.js +2 -2
- package/dist-cjs/commands/PutObjectCommand.js +2 -2
- package/dist-cjs/protocols/Aws_restJson1.js +53 -53
- package/dist-es/commands/DeleteObjectCommand.js +3 -3
- package/dist-es/commands/DescribeObjectCommand.js +3 -3
- package/dist-es/commands/GetObjectCommand.js +3 -3
- package/dist-es/commands/ListItemsCommand.js +3 -3
- package/dist-es/commands/PutObjectCommand.js +3 -3
- package/dist-es/protocols/Aws_restJson1.js +42 -42
- package/dist-types/protocols/Aws_restJson1.d.ts +40 -10
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +10 -10
- package/package.json +31 -31
|
@@ -36,10 +36,10 @@ class DeleteObjectCommand extends smithy_client_1.Command {
|
|
|
36
36
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
37
37
|
}
|
|
38
38
|
serialize(input, context) {
|
|
39
|
-
return (0, Aws_restJson1_1.
|
|
39
|
+
return (0, Aws_restJson1_1.se_DeleteObjectCommand)(input, context);
|
|
40
40
|
}
|
|
41
41
|
deserialize(output, context) {
|
|
42
|
-
return (0, Aws_restJson1_1.
|
|
42
|
+
return (0, Aws_restJson1_1.de_DeleteObjectCommand)(output, context);
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
exports.DeleteObjectCommand = DeleteObjectCommand;
|
|
@@ -36,10 +36,10 @@ class DescribeObjectCommand extends smithy_client_1.Command {
|
|
|
36
36
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
37
37
|
}
|
|
38
38
|
serialize(input, context) {
|
|
39
|
-
return (0, Aws_restJson1_1.
|
|
39
|
+
return (0, Aws_restJson1_1.se_DescribeObjectCommand)(input, context);
|
|
40
40
|
}
|
|
41
41
|
deserialize(output, context) {
|
|
42
|
-
return (0, Aws_restJson1_1.
|
|
42
|
+
return (0, Aws_restJson1_1.de_DescribeObjectCommand)(output, context);
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
exports.DescribeObjectCommand = DescribeObjectCommand;
|
|
@@ -37,10 +37,10 @@ class GetObjectCommand extends smithy_client_1.Command {
|
|
|
37
37
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
38
|
}
|
|
39
39
|
serialize(input, context) {
|
|
40
|
-
return (0, Aws_restJson1_1.
|
|
40
|
+
return (0, Aws_restJson1_1.se_GetObjectCommand)(input, context);
|
|
41
41
|
}
|
|
42
42
|
deserialize(output, context) {
|
|
43
|
-
return (0, Aws_restJson1_1.
|
|
43
|
+
return (0, Aws_restJson1_1.de_GetObjectCommand)(output, context);
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
exports.GetObjectCommand = GetObjectCommand;
|
|
@@ -36,10 +36,10 @@ class ListItemsCommand extends smithy_client_1.Command {
|
|
|
36
36
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
37
37
|
}
|
|
38
38
|
serialize(input, context) {
|
|
39
|
-
return (0, Aws_restJson1_1.
|
|
39
|
+
return (0, Aws_restJson1_1.se_ListItemsCommand)(input, context);
|
|
40
40
|
}
|
|
41
41
|
deserialize(output, context) {
|
|
42
|
-
return (0, Aws_restJson1_1.
|
|
42
|
+
return (0, Aws_restJson1_1.de_ListItemsCommand)(output, context);
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
exports.ListItemsCommand = ListItemsCommand;
|
|
@@ -37,10 +37,10 @@ class PutObjectCommand extends smithy_client_1.Command {
|
|
|
37
37
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
38
|
}
|
|
39
39
|
serialize(input, context) {
|
|
40
|
-
return (0, Aws_restJson1_1.
|
|
40
|
+
return (0, Aws_restJson1_1.se_PutObjectCommand)(input, context);
|
|
41
41
|
}
|
|
42
42
|
deserialize(output, context) {
|
|
43
|
-
return (0, Aws_restJson1_1.
|
|
43
|
+
return (0, Aws_restJson1_1.de_PutObjectCommand)(output, context);
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
exports.PutObjectCommand = PutObjectCommand;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
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
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const MediaStoreDataServiceException_1 = require("../models/MediaStoreDataServiceException");
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
8
|
-
const
|
|
8
|
+
const se_DeleteObjectCommand = async (input, context) => {
|
|
9
9
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
10
10
|
const headers = {};
|
|
11
11
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{Path+}";
|
|
@@ -21,8 +21,8 @@ const serializeAws_restJson1DeleteObjectCommand = async (input, context) => {
|
|
|
21
21
|
body,
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
|
-
exports.
|
|
25
|
-
const
|
|
24
|
+
exports.se_DeleteObjectCommand = se_DeleteObjectCommand;
|
|
25
|
+
const se_DescribeObjectCommand = async (input, context) => {
|
|
26
26
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
27
27
|
const headers = {};
|
|
28
28
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{Path+}";
|
|
@@ -38,8 +38,8 @@ const serializeAws_restJson1DescribeObjectCommand = async (input, context) => {
|
|
|
38
38
|
body,
|
|
39
39
|
});
|
|
40
40
|
};
|
|
41
|
-
exports.
|
|
42
|
-
const
|
|
41
|
+
exports.se_DescribeObjectCommand = se_DescribeObjectCommand;
|
|
42
|
+
const se_GetObjectCommand = async (input, context) => {
|
|
43
43
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
44
44
|
const headers = map({}, isSerializableHeaderValue, {
|
|
45
45
|
range: input.Range,
|
|
@@ -57,8 +57,8 @@ const serializeAws_restJson1GetObjectCommand = async (input, context) => {
|
|
|
57
57
|
body,
|
|
58
58
|
});
|
|
59
59
|
};
|
|
60
|
-
exports.
|
|
61
|
-
const
|
|
60
|
+
exports.se_GetObjectCommand = se_GetObjectCommand;
|
|
61
|
+
const se_ListItemsCommand = async (input, context) => {
|
|
62
62
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
63
63
|
const headers = {};
|
|
64
64
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/";
|
|
@@ -79,8 +79,8 @@ const serializeAws_restJson1ListItemsCommand = async (input, context) => {
|
|
|
79
79
|
body,
|
|
80
80
|
});
|
|
81
81
|
};
|
|
82
|
-
exports.
|
|
83
|
-
const
|
|
82
|
+
exports.se_ListItemsCommand = se_ListItemsCommand;
|
|
83
|
+
const se_PutObjectCommand = async (input, context) => {
|
|
84
84
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
85
85
|
const headers = map({}, isSerializableHeaderValue, {
|
|
86
86
|
"x-amz-content-sha256": "UNSIGNED-PAYLOAD",
|
|
@@ -105,10 +105,10 @@ const serializeAws_restJson1PutObjectCommand = async (input, context) => {
|
|
|
105
105
|
body,
|
|
106
106
|
});
|
|
107
107
|
};
|
|
108
|
-
exports.
|
|
109
|
-
const
|
|
108
|
+
exports.se_PutObjectCommand = se_PutObjectCommand;
|
|
109
|
+
const de_DeleteObjectCommand = async (output, context) => {
|
|
110
110
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
111
|
-
return
|
|
111
|
+
return de_DeleteObjectCommandError(output, context);
|
|
112
112
|
}
|
|
113
113
|
const contents = map({
|
|
114
114
|
$metadata: deserializeMetadata(output),
|
|
@@ -116,8 +116,8 @@ const deserializeAws_restJson1DeleteObjectCommand = async (output, context) => {
|
|
|
116
116
|
await collectBody(output.body, context);
|
|
117
117
|
return contents;
|
|
118
118
|
};
|
|
119
|
-
exports.
|
|
120
|
-
const
|
|
119
|
+
exports.de_DeleteObjectCommand = de_DeleteObjectCommand;
|
|
120
|
+
const de_DeleteObjectCommandError = async (output, context) => {
|
|
121
121
|
const parsedOutput = {
|
|
122
122
|
...output,
|
|
123
123
|
body: await parseErrorBody(output.body, context),
|
|
@@ -126,13 +126,13 @@ const deserializeAws_restJson1DeleteObjectCommandError = async (output, context)
|
|
|
126
126
|
switch (errorCode) {
|
|
127
127
|
case "ContainerNotFoundException":
|
|
128
128
|
case "com.amazonaws.mediastoredata#ContainerNotFoundException":
|
|
129
|
-
throw await
|
|
129
|
+
throw await de_ContainerNotFoundExceptionRes(parsedOutput, context);
|
|
130
130
|
case "InternalServerError":
|
|
131
131
|
case "com.amazonaws.mediastoredata#InternalServerError":
|
|
132
|
-
throw await
|
|
132
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
133
133
|
case "ObjectNotFoundException":
|
|
134
134
|
case "com.amazonaws.mediastoredata#ObjectNotFoundException":
|
|
135
|
-
throw await
|
|
135
|
+
throw await de_ObjectNotFoundExceptionRes(parsedOutput, context);
|
|
136
136
|
default:
|
|
137
137
|
const parsedBody = parsedOutput.body;
|
|
138
138
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -143,9 +143,9 @@ const deserializeAws_restJson1DeleteObjectCommandError = async (output, context)
|
|
|
143
143
|
});
|
|
144
144
|
}
|
|
145
145
|
};
|
|
146
|
-
const
|
|
146
|
+
const de_DescribeObjectCommand = async (output, context) => {
|
|
147
147
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
148
|
-
return
|
|
148
|
+
return de_DescribeObjectCommandError(output, context);
|
|
149
149
|
}
|
|
150
150
|
const contents = map({
|
|
151
151
|
$metadata: deserializeMetadata(output),
|
|
@@ -164,8 +164,8 @@ const deserializeAws_restJson1DescribeObjectCommand = async (output, context) =>
|
|
|
164
164
|
await collectBody(output.body, context);
|
|
165
165
|
return contents;
|
|
166
166
|
};
|
|
167
|
-
exports.
|
|
168
|
-
const
|
|
167
|
+
exports.de_DescribeObjectCommand = de_DescribeObjectCommand;
|
|
168
|
+
const de_DescribeObjectCommandError = async (output, context) => {
|
|
169
169
|
const parsedOutput = {
|
|
170
170
|
...output,
|
|
171
171
|
body: await parseErrorBody(output.body, context),
|
|
@@ -174,13 +174,13 @@ const deserializeAws_restJson1DescribeObjectCommandError = async (output, contex
|
|
|
174
174
|
switch (errorCode) {
|
|
175
175
|
case "ContainerNotFoundException":
|
|
176
176
|
case "com.amazonaws.mediastoredata#ContainerNotFoundException":
|
|
177
|
-
throw await
|
|
177
|
+
throw await de_ContainerNotFoundExceptionRes(parsedOutput, context);
|
|
178
178
|
case "InternalServerError":
|
|
179
179
|
case "com.amazonaws.mediastoredata#InternalServerError":
|
|
180
|
-
throw await
|
|
180
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
181
181
|
case "ObjectNotFoundException":
|
|
182
182
|
case "com.amazonaws.mediastoredata#ObjectNotFoundException":
|
|
183
|
-
throw await
|
|
183
|
+
throw await de_ObjectNotFoundExceptionRes(parsedOutput, context);
|
|
184
184
|
default:
|
|
185
185
|
const parsedBody = parsedOutput.body;
|
|
186
186
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -191,9 +191,9 @@ const deserializeAws_restJson1DescribeObjectCommandError = async (output, contex
|
|
|
191
191
|
});
|
|
192
192
|
}
|
|
193
193
|
};
|
|
194
|
-
const
|
|
194
|
+
const de_GetObjectCommand = async (output, context) => {
|
|
195
195
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
196
|
-
return
|
|
196
|
+
return de_GetObjectCommandError(output, context);
|
|
197
197
|
}
|
|
198
198
|
const contents = map({
|
|
199
199
|
$metadata: deserializeMetadata(output),
|
|
@@ -218,8 +218,8 @@ const deserializeAws_restJson1GetObjectCommand = async (output, context) => {
|
|
|
218
218
|
});
|
|
219
219
|
return contents;
|
|
220
220
|
};
|
|
221
|
-
exports.
|
|
222
|
-
const
|
|
221
|
+
exports.de_GetObjectCommand = de_GetObjectCommand;
|
|
222
|
+
const de_GetObjectCommandError = async (output, context) => {
|
|
223
223
|
const parsedOutput = {
|
|
224
224
|
...output,
|
|
225
225
|
body: await parseErrorBody(output.body, context),
|
|
@@ -228,16 +228,16 @@ const deserializeAws_restJson1GetObjectCommandError = async (output, context) =>
|
|
|
228
228
|
switch (errorCode) {
|
|
229
229
|
case "ContainerNotFoundException":
|
|
230
230
|
case "com.amazonaws.mediastoredata#ContainerNotFoundException":
|
|
231
|
-
throw await
|
|
231
|
+
throw await de_ContainerNotFoundExceptionRes(parsedOutput, context);
|
|
232
232
|
case "InternalServerError":
|
|
233
233
|
case "com.amazonaws.mediastoredata#InternalServerError":
|
|
234
|
-
throw await
|
|
234
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
235
235
|
case "ObjectNotFoundException":
|
|
236
236
|
case "com.amazonaws.mediastoredata#ObjectNotFoundException":
|
|
237
|
-
throw await
|
|
237
|
+
throw await de_ObjectNotFoundExceptionRes(parsedOutput, context);
|
|
238
238
|
case "RequestedRangeNotSatisfiableException":
|
|
239
239
|
case "com.amazonaws.mediastoredata#RequestedRangeNotSatisfiableException":
|
|
240
|
-
throw await
|
|
240
|
+
throw await de_RequestedRangeNotSatisfiableExceptionRes(parsedOutput, context);
|
|
241
241
|
default:
|
|
242
242
|
const parsedBody = parsedOutput.body;
|
|
243
243
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -248,24 +248,24 @@ const deserializeAws_restJson1GetObjectCommandError = async (output, context) =>
|
|
|
248
248
|
});
|
|
249
249
|
}
|
|
250
250
|
};
|
|
251
|
-
const
|
|
251
|
+
const de_ListItemsCommand = async (output, context) => {
|
|
252
252
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
253
|
-
return
|
|
253
|
+
return de_ListItemsCommandError(output, context);
|
|
254
254
|
}
|
|
255
255
|
const contents = map({
|
|
256
256
|
$metadata: deserializeMetadata(output),
|
|
257
257
|
});
|
|
258
258
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
259
259
|
if (data.Items != null) {
|
|
260
|
-
contents.Items =
|
|
260
|
+
contents.Items = de_ItemList(data.Items, context);
|
|
261
261
|
}
|
|
262
262
|
if (data.NextToken != null) {
|
|
263
263
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
264
264
|
}
|
|
265
265
|
return contents;
|
|
266
266
|
};
|
|
267
|
-
exports.
|
|
268
|
-
const
|
|
267
|
+
exports.de_ListItemsCommand = de_ListItemsCommand;
|
|
268
|
+
const de_ListItemsCommandError = async (output, context) => {
|
|
269
269
|
const parsedOutput = {
|
|
270
270
|
...output,
|
|
271
271
|
body: await parseErrorBody(output.body, context),
|
|
@@ -274,10 +274,10 @@ const deserializeAws_restJson1ListItemsCommandError = async (output, context) =>
|
|
|
274
274
|
switch (errorCode) {
|
|
275
275
|
case "ContainerNotFoundException":
|
|
276
276
|
case "com.amazonaws.mediastoredata#ContainerNotFoundException":
|
|
277
|
-
throw await
|
|
277
|
+
throw await de_ContainerNotFoundExceptionRes(parsedOutput, context);
|
|
278
278
|
case "InternalServerError":
|
|
279
279
|
case "com.amazonaws.mediastoredata#InternalServerError":
|
|
280
|
-
throw await
|
|
280
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
281
281
|
default:
|
|
282
282
|
const parsedBody = parsedOutput.body;
|
|
283
283
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -288,9 +288,9 @@ const deserializeAws_restJson1ListItemsCommandError = async (output, context) =>
|
|
|
288
288
|
});
|
|
289
289
|
}
|
|
290
290
|
};
|
|
291
|
-
const
|
|
291
|
+
const de_PutObjectCommand = async (output, context) => {
|
|
292
292
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
293
|
-
return
|
|
293
|
+
return de_PutObjectCommandError(output, context);
|
|
294
294
|
}
|
|
295
295
|
const contents = map({
|
|
296
296
|
$metadata: deserializeMetadata(output),
|
|
@@ -307,8 +307,8 @@ const deserializeAws_restJson1PutObjectCommand = async (output, context) => {
|
|
|
307
307
|
}
|
|
308
308
|
return contents;
|
|
309
309
|
};
|
|
310
|
-
exports.
|
|
311
|
-
const
|
|
310
|
+
exports.de_PutObjectCommand = de_PutObjectCommand;
|
|
311
|
+
const de_PutObjectCommandError = async (output, context) => {
|
|
312
312
|
const parsedOutput = {
|
|
313
313
|
...output,
|
|
314
314
|
body: await parseErrorBody(output.body, context),
|
|
@@ -317,10 +317,10 @@ const deserializeAws_restJson1PutObjectCommandError = async (output, context) =>
|
|
|
317
317
|
switch (errorCode) {
|
|
318
318
|
case "ContainerNotFoundException":
|
|
319
319
|
case "com.amazonaws.mediastoredata#ContainerNotFoundException":
|
|
320
|
-
throw await
|
|
320
|
+
throw await de_ContainerNotFoundExceptionRes(parsedOutput, context);
|
|
321
321
|
case "InternalServerError":
|
|
322
322
|
case "com.amazonaws.mediastoredata#InternalServerError":
|
|
323
|
-
throw await
|
|
323
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
324
324
|
default:
|
|
325
325
|
const parsedBody = parsedOutput.body;
|
|
326
326
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -332,7 +332,7 @@ const deserializeAws_restJson1PutObjectCommandError = async (output, context) =>
|
|
|
332
332
|
}
|
|
333
333
|
};
|
|
334
334
|
const map = smithy_client_1.map;
|
|
335
|
-
const
|
|
335
|
+
const de_ContainerNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
336
336
|
const contents = map({});
|
|
337
337
|
const data = parsedOutput.body;
|
|
338
338
|
if (data.Message != null) {
|
|
@@ -344,7 +344,7 @@ const deserializeAws_restJson1ContainerNotFoundExceptionResponse = async (parsed
|
|
|
344
344
|
});
|
|
345
345
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
346
346
|
};
|
|
347
|
-
const
|
|
347
|
+
const de_InternalServerErrorRes = async (parsedOutput, context) => {
|
|
348
348
|
const contents = map({});
|
|
349
349
|
const data = parsedOutput.body;
|
|
350
350
|
if (data.Message != null) {
|
|
@@ -356,7 +356,7 @@ const deserializeAws_restJson1InternalServerErrorResponse = async (parsedOutput,
|
|
|
356
356
|
});
|
|
357
357
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
358
358
|
};
|
|
359
|
-
const
|
|
359
|
+
const de_ObjectNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
360
360
|
const contents = map({});
|
|
361
361
|
const data = parsedOutput.body;
|
|
362
362
|
if (data.Message != null) {
|
|
@@ -368,7 +368,7 @@ const deserializeAws_restJson1ObjectNotFoundExceptionResponse = async (parsedOut
|
|
|
368
368
|
});
|
|
369
369
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
370
370
|
};
|
|
371
|
-
const
|
|
371
|
+
const de_RequestedRangeNotSatisfiableExceptionRes = async (parsedOutput, context) => {
|
|
372
372
|
const contents = map({});
|
|
373
373
|
const data = parsedOutput.body;
|
|
374
374
|
if (data.Message != null) {
|
|
@@ -380,7 +380,7 @@ const deserializeAws_restJson1RequestedRangeNotSatisfiableExceptionResponse = as
|
|
|
380
380
|
});
|
|
381
381
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
382
382
|
};
|
|
383
|
-
const
|
|
383
|
+
const de_Item = (output, context) => {
|
|
384
384
|
return {
|
|
385
385
|
ContentLength: (0, smithy_client_1.expectLong)(output.ContentLength),
|
|
386
386
|
ContentType: (0, smithy_client_1.expectString)(output.ContentType),
|
|
@@ -392,14 +392,14 @@ const deserializeAws_restJson1Item = (output, context) => {
|
|
|
392
392
|
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
393
393
|
};
|
|
394
394
|
};
|
|
395
|
-
const
|
|
395
|
+
const de_ItemList = (output, context) => {
|
|
396
396
|
const retVal = (output || [])
|
|
397
397
|
.filter((e) => e != null)
|
|
398
398
|
.map((entry) => {
|
|
399
399
|
if (entry === null) {
|
|
400
400
|
return null;
|
|
401
401
|
}
|
|
402
|
-
return
|
|
402
|
+
return de_Item(entry, context);
|
|
403
403
|
});
|
|
404
404
|
return retVal;
|
|
405
405
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { de_DeleteObjectCommand, se_DeleteObjectCommand } from "../protocols/Aws_restJson1";
|
|
5
5
|
export class DeleteObjectCommand extends $Command {
|
|
6
6
|
static getEndpointParameterInstructions() {
|
|
7
7
|
return {
|
|
@@ -33,9 +33,9 @@ export class DeleteObjectCommand extends $Command {
|
|
|
33
33
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
34
34
|
}
|
|
35
35
|
serialize(input, context) {
|
|
36
|
-
return
|
|
36
|
+
return se_DeleteObjectCommand(input, context);
|
|
37
37
|
}
|
|
38
38
|
deserialize(output, context) {
|
|
39
|
-
return
|
|
39
|
+
return de_DeleteObjectCommand(output, context);
|
|
40
40
|
}
|
|
41
41
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { de_DescribeObjectCommand, se_DescribeObjectCommand } from "../protocols/Aws_restJson1";
|
|
5
5
|
export class DescribeObjectCommand extends $Command {
|
|
6
6
|
static getEndpointParameterInstructions() {
|
|
7
7
|
return {
|
|
@@ -33,9 +33,9 @@ export class DescribeObjectCommand extends $Command {
|
|
|
33
33
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
34
34
|
}
|
|
35
35
|
serialize(input, context) {
|
|
36
|
-
return
|
|
36
|
+
return se_DescribeObjectCommand(input, context);
|
|
37
37
|
}
|
|
38
38
|
deserialize(output, context) {
|
|
39
|
-
return
|
|
39
|
+
return de_DescribeObjectCommand(output, context);
|
|
40
40
|
}
|
|
41
41
|
}
|
|
@@ -2,7 +2,7 @@ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { GetObjectResponseFilterSensitiveLog } from "../models/models_0";
|
|
5
|
-
import {
|
|
5
|
+
import { de_GetObjectCommand, se_GetObjectCommand } from "../protocols/Aws_restJson1";
|
|
6
6
|
export class GetObjectCommand extends $Command {
|
|
7
7
|
static getEndpointParameterInstructions() {
|
|
8
8
|
return {
|
|
@@ -34,9 +34,9 @@ export class GetObjectCommand extends $Command {
|
|
|
34
34
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
35
|
}
|
|
36
36
|
serialize(input, context) {
|
|
37
|
-
return
|
|
37
|
+
return se_GetObjectCommand(input, context);
|
|
38
38
|
}
|
|
39
39
|
deserialize(output, context) {
|
|
40
|
-
return
|
|
40
|
+
return de_GetObjectCommand(output, context);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { de_ListItemsCommand, se_ListItemsCommand } from "../protocols/Aws_restJson1";
|
|
5
5
|
export class ListItemsCommand extends $Command {
|
|
6
6
|
static getEndpointParameterInstructions() {
|
|
7
7
|
return {
|
|
@@ -33,9 +33,9 @@ export class ListItemsCommand extends $Command {
|
|
|
33
33
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
34
34
|
}
|
|
35
35
|
serialize(input, context) {
|
|
36
|
-
return
|
|
36
|
+
return se_ListItemsCommand(input, context);
|
|
37
37
|
}
|
|
38
38
|
deserialize(output, context) {
|
|
39
|
-
return
|
|
39
|
+
return de_ListItemsCommand(output, context);
|
|
40
40
|
}
|
|
41
41
|
}
|
|
@@ -2,7 +2,7 @@ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { PutObjectRequestFilterSensitiveLog } from "../models/models_0";
|
|
5
|
-
import {
|
|
5
|
+
import { de_PutObjectCommand, se_PutObjectCommand } from "../protocols/Aws_restJson1";
|
|
6
6
|
export class PutObjectCommand extends $Command {
|
|
7
7
|
static getEndpointParameterInstructions() {
|
|
8
8
|
return {
|
|
@@ -34,9 +34,9 @@ export class PutObjectCommand extends $Command {
|
|
|
34
34
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
35
|
}
|
|
36
36
|
serialize(input, context) {
|
|
37
|
-
return
|
|
37
|
+
return se_PutObjectCommand(input, context);
|
|
38
38
|
}
|
|
39
39
|
deserialize(output, context) {
|
|
40
|
-
return
|
|
40
|
+
return de_PutObjectCommand(output, context);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
@@ -2,7 +2,7 @@ import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
|
2
2
|
import { decorateServiceException as __decorateServiceException, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map as __map, parseEpochTimestamp as __parseEpochTimestamp, parseRfc7231DateTime as __parseRfc7231DateTime, resolvedPath as __resolvedPath, strictParseLong as __strictParseLong, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { MediaStoreDataServiceException as __BaseException } from "../models/MediaStoreDataServiceException";
|
|
4
4
|
import { ContainerNotFoundException, InternalServerError, ObjectNotFoundException, RequestedRangeNotSatisfiableException, } from "../models/models_0";
|
|
5
|
-
export const
|
|
5
|
+
export const se_DeleteObjectCommand = async (input, context) => {
|
|
6
6
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
7
7
|
const headers = {};
|
|
8
8
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{Path+}";
|
|
@@ -18,7 +18,7 @@ export const serializeAws_restJson1DeleteObjectCommand = async (input, context)
|
|
|
18
18
|
body,
|
|
19
19
|
});
|
|
20
20
|
};
|
|
21
|
-
export const
|
|
21
|
+
export const se_DescribeObjectCommand = async (input, context) => {
|
|
22
22
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
23
23
|
const headers = {};
|
|
24
24
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{Path+}";
|
|
@@ -34,7 +34,7 @@ export const serializeAws_restJson1DescribeObjectCommand = async (input, context
|
|
|
34
34
|
body,
|
|
35
35
|
});
|
|
36
36
|
};
|
|
37
|
-
export const
|
|
37
|
+
export const se_GetObjectCommand = async (input, context) => {
|
|
38
38
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
39
39
|
const headers = map({}, isSerializableHeaderValue, {
|
|
40
40
|
range: input.Range,
|
|
@@ -52,7 +52,7 @@ export const serializeAws_restJson1GetObjectCommand = async (input, context) =>
|
|
|
52
52
|
body,
|
|
53
53
|
});
|
|
54
54
|
};
|
|
55
|
-
export const
|
|
55
|
+
export const se_ListItemsCommand = async (input, context) => {
|
|
56
56
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
57
57
|
const headers = {};
|
|
58
58
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/";
|
|
@@ -73,7 +73,7 @@ export const serializeAws_restJson1ListItemsCommand = async (input, context) =>
|
|
|
73
73
|
body,
|
|
74
74
|
});
|
|
75
75
|
};
|
|
76
|
-
export const
|
|
76
|
+
export const se_PutObjectCommand = async (input, context) => {
|
|
77
77
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
78
78
|
const headers = map({}, isSerializableHeaderValue, {
|
|
79
79
|
"x-amz-content-sha256": "UNSIGNED-PAYLOAD",
|
|
@@ -98,9 +98,9 @@ export const serializeAws_restJson1PutObjectCommand = async (input, context) =>
|
|
|
98
98
|
body,
|
|
99
99
|
});
|
|
100
100
|
};
|
|
101
|
-
export const
|
|
101
|
+
export const de_DeleteObjectCommand = async (output, context) => {
|
|
102
102
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
103
|
-
return
|
|
103
|
+
return de_DeleteObjectCommandError(output, context);
|
|
104
104
|
}
|
|
105
105
|
const contents = map({
|
|
106
106
|
$metadata: deserializeMetadata(output),
|
|
@@ -108,7 +108,7 @@ export const deserializeAws_restJson1DeleteObjectCommand = async (output, contex
|
|
|
108
108
|
await collectBody(output.body, context);
|
|
109
109
|
return contents;
|
|
110
110
|
};
|
|
111
|
-
const
|
|
111
|
+
const de_DeleteObjectCommandError = async (output, context) => {
|
|
112
112
|
const parsedOutput = {
|
|
113
113
|
...output,
|
|
114
114
|
body: await parseErrorBody(output.body, context),
|
|
@@ -117,13 +117,13 @@ const deserializeAws_restJson1DeleteObjectCommandError = async (output, context)
|
|
|
117
117
|
switch (errorCode) {
|
|
118
118
|
case "ContainerNotFoundException":
|
|
119
119
|
case "com.amazonaws.mediastoredata#ContainerNotFoundException":
|
|
120
|
-
throw await
|
|
120
|
+
throw await de_ContainerNotFoundExceptionRes(parsedOutput, context);
|
|
121
121
|
case "InternalServerError":
|
|
122
122
|
case "com.amazonaws.mediastoredata#InternalServerError":
|
|
123
|
-
throw await
|
|
123
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
124
124
|
case "ObjectNotFoundException":
|
|
125
125
|
case "com.amazonaws.mediastoredata#ObjectNotFoundException":
|
|
126
|
-
throw await
|
|
126
|
+
throw await de_ObjectNotFoundExceptionRes(parsedOutput, context);
|
|
127
127
|
default:
|
|
128
128
|
const parsedBody = parsedOutput.body;
|
|
129
129
|
throwDefaultError({
|
|
@@ -134,9 +134,9 @@ const deserializeAws_restJson1DeleteObjectCommandError = async (output, context)
|
|
|
134
134
|
});
|
|
135
135
|
}
|
|
136
136
|
};
|
|
137
|
-
export const
|
|
137
|
+
export const de_DescribeObjectCommand = async (output, context) => {
|
|
138
138
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
139
|
-
return
|
|
139
|
+
return de_DescribeObjectCommandError(output, context);
|
|
140
140
|
}
|
|
141
141
|
const contents = map({
|
|
142
142
|
$metadata: deserializeMetadata(output),
|
|
@@ -155,7 +155,7 @@ export const deserializeAws_restJson1DescribeObjectCommand = async (output, cont
|
|
|
155
155
|
await collectBody(output.body, context);
|
|
156
156
|
return contents;
|
|
157
157
|
};
|
|
158
|
-
const
|
|
158
|
+
const de_DescribeObjectCommandError = async (output, context) => {
|
|
159
159
|
const parsedOutput = {
|
|
160
160
|
...output,
|
|
161
161
|
body: await parseErrorBody(output.body, context),
|
|
@@ -164,13 +164,13 @@ const deserializeAws_restJson1DescribeObjectCommandError = async (output, contex
|
|
|
164
164
|
switch (errorCode) {
|
|
165
165
|
case "ContainerNotFoundException":
|
|
166
166
|
case "com.amazonaws.mediastoredata#ContainerNotFoundException":
|
|
167
|
-
throw await
|
|
167
|
+
throw await de_ContainerNotFoundExceptionRes(parsedOutput, context);
|
|
168
168
|
case "InternalServerError":
|
|
169
169
|
case "com.amazonaws.mediastoredata#InternalServerError":
|
|
170
|
-
throw await
|
|
170
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
171
171
|
case "ObjectNotFoundException":
|
|
172
172
|
case "com.amazonaws.mediastoredata#ObjectNotFoundException":
|
|
173
|
-
throw await
|
|
173
|
+
throw await de_ObjectNotFoundExceptionRes(parsedOutput, context);
|
|
174
174
|
default:
|
|
175
175
|
const parsedBody = parsedOutput.body;
|
|
176
176
|
throwDefaultError({
|
|
@@ -181,9 +181,9 @@ const deserializeAws_restJson1DescribeObjectCommandError = async (output, contex
|
|
|
181
181
|
});
|
|
182
182
|
}
|
|
183
183
|
};
|
|
184
|
-
export const
|
|
184
|
+
export const de_GetObjectCommand = async (output, context) => {
|
|
185
185
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
186
|
-
return
|
|
186
|
+
return de_GetObjectCommandError(output, context);
|
|
187
187
|
}
|
|
188
188
|
const contents = map({
|
|
189
189
|
$metadata: deserializeMetadata(output),
|
|
@@ -208,7 +208,7 @@ export const deserializeAws_restJson1GetObjectCommand = async (output, context)
|
|
|
208
208
|
});
|
|
209
209
|
return contents;
|
|
210
210
|
};
|
|
211
|
-
const
|
|
211
|
+
const de_GetObjectCommandError = async (output, context) => {
|
|
212
212
|
const parsedOutput = {
|
|
213
213
|
...output,
|
|
214
214
|
body: await parseErrorBody(output.body, context),
|
|
@@ -217,16 +217,16 @@ const deserializeAws_restJson1GetObjectCommandError = async (output, context) =>
|
|
|
217
217
|
switch (errorCode) {
|
|
218
218
|
case "ContainerNotFoundException":
|
|
219
219
|
case "com.amazonaws.mediastoredata#ContainerNotFoundException":
|
|
220
|
-
throw await
|
|
220
|
+
throw await de_ContainerNotFoundExceptionRes(parsedOutput, context);
|
|
221
221
|
case "InternalServerError":
|
|
222
222
|
case "com.amazonaws.mediastoredata#InternalServerError":
|
|
223
|
-
throw await
|
|
223
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
224
224
|
case "ObjectNotFoundException":
|
|
225
225
|
case "com.amazonaws.mediastoredata#ObjectNotFoundException":
|
|
226
|
-
throw await
|
|
226
|
+
throw await de_ObjectNotFoundExceptionRes(parsedOutput, context);
|
|
227
227
|
case "RequestedRangeNotSatisfiableException":
|
|
228
228
|
case "com.amazonaws.mediastoredata#RequestedRangeNotSatisfiableException":
|
|
229
|
-
throw await
|
|
229
|
+
throw await de_RequestedRangeNotSatisfiableExceptionRes(parsedOutput, context);
|
|
230
230
|
default:
|
|
231
231
|
const parsedBody = parsedOutput.body;
|
|
232
232
|
throwDefaultError({
|
|
@@ -237,23 +237,23 @@ const deserializeAws_restJson1GetObjectCommandError = async (output, context) =>
|
|
|
237
237
|
});
|
|
238
238
|
}
|
|
239
239
|
};
|
|
240
|
-
export const
|
|
240
|
+
export const de_ListItemsCommand = async (output, context) => {
|
|
241
241
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
242
|
-
return
|
|
242
|
+
return de_ListItemsCommandError(output, context);
|
|
243
243
|
}
|
|
244
244
|
const contents = map({
|
|
245
245
|
$metadata: deserializeMetadata(output),
|
|
246
246
|
});
|
|
247
247
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
248
248
|
if (data.Items != null) {
|
|
249
|
-
contents.Items =
|
|
249
|
+
contents.Items = de_ItemList(data.Items, context);
|
|
250
250
|
}
|
|
251
251
|
if (data.NextToken != null) {
|
|
252
252
|
contents.NextToken = __expectString(data.NextToken);
|
|
253
253
|
}
|
|
254
254
|
return contents;
|
|
255
255
|
};
|
|
256
|
-
const
|
|
256
|
+
const de_ListItemsCommandError = async (output, context) => {
|
|
257
257
|
const parsedOutput = {
|
|
258
258
|
...output,
|
|
259
259
|
body: await parseErrorBody(output.body, context),
|
|
@@ -262,10 +262,10 @@ const deserializeAws_restJson1ListItemsCommandError = async (output, context) =>
|
|
|
262
262
|
switch (errorCode) {
|
|
263
263
|
case "ContainerNotFoundException":
|
|
264
264
|
case "com.amazonaws.mediastoredata#ContainerNotFoundException":
|
|
265
|
-
throw await
|
|
265
|
+
throw await de_ContainerNotFoundExceptionRes(parsedOutput, context);
|
|
266
266
|
case "InternalServerError":
|
|
267
267
|
case "com.amazonaws.mediastoredata#InternalServerError":
|
|
268
|
-
throw await
|
|
268
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
269
269
|
default:
|
|
270
270
|
const parsedBody = parsedOutput.body;
|
|
271
271
|
throwDefaultError({
|
|
@@ -276,9 +276,9 @@ const deserializeAws_restJson1ListItemsCommandError = async (output, context) =>
|
|
|
276
276
|
});
|
|
277
277
|
}
|
|
278
278
|
};
|
|
279
|
-
export const
|
|
279
|
+
export const de_PutObjectCommand = async (output, context) => {
|
|
280
280
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
281
|
-
return
|
|
281
|
+
return de_PutObjectCommandError(output, context);
|
|
282
282
|
}
|
|
283
283
|
const contents = map({
|
|
284
284
|
$metadata: deserializeMetadata(output),
|
|
@@ -295,7 +295,7 @@ export const deserializeAws_restJson1PutObjectCommand = async (output, context)
|
|
|
295
295
|
}
|
|
296
296
|
return contents;
|
|
297
297
|
};
|
|
298
|
-
const
|
|
298
|
+
const de_PutObjectCommandError = async (output, context) => {
|
|
299
299
|
const parsedOutput = {
|
|
300
300
|
...output,
|
|
301
301
|
body: await parseErrorBody(output.body, context),
|
|
@@ -304,10 +304,10 @@ const deserializeAws_restJson1PutObjectCommandError = async (output, context) =>
|
|
|
304
304
|
switch (errorCode) {
|
|
305
305
|
case "ContainerNotFoundException":
|
|
306
306
|
case "com.amazonaws.mediastoredata#ContainerNotFoundException":
|
|
307
|
-
throw await
|
|
307
|
+
throw await de_ContainerNotFoundExceptionRes(parsedOutput, context);
|
|
308
308
|
case "InternalServerError":
|
|
309
309
|
case "com.amazonaws.mediastoredata#InternalServerError":
|
|
310
|
-
throw await
|
|
310
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
311
311
|
default:
|
|
312
312
|
const parsedBody = parsedOutput.body;
|
|
313
313
|
throwDefaultError({
|
|
@@ -319,7 +319,7 @@ const deserializeAws_restJson1PutObjectCommandError = async (output, context) =>
|
|
|
319
319
|
}
|
|
320
320
|
};
|
|
321
321
|
const map = __map;
|
|
322
|
-
const
|
|
322
|
+
const de_ContainerNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
323
323
|
const contents = map({});
|
|
324
324
|
const data = parsedOutput.body;
|
|
325
325
|
if (data.Message != null) {
|
|
@@ -331,7 +331,7 @@ const deserializeAws_restJson1ContainerNotFoundExceptionResponse = async (parsed
|
|
|
331
331
|
});
|
|
332
332
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
333
333
|
};
|
|
334
|
-
const
|
|
334
|
+
const de_InternalServerErrorRes = async (parsedOutput, context) => {
|
|
335
335
|
const contents = map({});
|
|
336
336
|
const data = parsedOutput.body;
|
|
337
337
|
if (data.Message != null) {
|
|
@@ -343,7 +343,7 @@ const deserializeAws_restJson1InternalServerErrorResponse = async (parsedOutput,
|
|
|
343
343
|
});
|
|
344
344
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
345
345
|
};
|
|
346
|
-
const
|
|
346
|
+
const de_ObjectNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
347
347
|
const contents = map({});
|
|
348
348
|
const data = parsedOutput.body;
|
|
349
349
|
if (data.Message != null) {
|
|
@@ -355,7 +355,7 @@ const deserializeAws_restJson1ObjectNotFoundExceptionResponse = async (parsedOut
|
|
|
355
355
|
});
|
|
356
356
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
357
357
|
};
|
|
358
|
-
const
|
|
358
|
+
const de_RequestedRangeNotSatisfiableExceptionRes = async (parsedOutput, context) => {
|
|
359
359
|
const contents = map({});
|
|
360
360
|
const data = parsedOutput.body;
|
|
361
361
|
if (data.Message != null) {
|
|
@@ -367,7 +367,7 @@ const deserializeAws_restJson1RequestedRangeNotSatisfiableExceptionResponse = as
|
|
|
367
367
|
});
|
|
368
368
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
369
369
|
};
|
|
370
|
-
const
|
|
370
|
+
const de_Item = (output, context) => {
|
|
371
371
|
return {
|
|
372
372
|
ContentLength: __expectLong(output.ContentLength),
|
|
373
373
|
ContentType: __expectString(output.ContentType),
|
|
@@ -379,14 +379,14 @@ const deserializeAws_restJson1Item = (output, context) => {
|
|
|
379
379
|
Type: __expectString(output.Type),
|
|
380
380
|
};
|
|
381
381
|
};
|
|
382
|
-
const
|
|
382
|
+
const de_ItemList = (output, context) => {
|
|
383
383
|
const retVal = (output || [])
|
|
384
384
|
.filter((e) => e != null)
|
|
385
385
|
.map((entry) => {
|
|
386
386
|
if (entry === null) {
|
|
387
387
|
return null;
|
|
388
388
|
}
|
|
389
|
-
return
|
|
389
|
+
return de_Item(entry, context);
|
|
390
390
|
});
|
|
391
391
|
return retVal;
|
|
392
392
|
};
|
|
@@ -5,13 +5,43 @@ import { DescribeObjectCommandInput, DescribeObjectCommandOutput } from "../comm
|
|
|
5
5
|
import { GetObjectCommandInput, GetObjectCommandOutput } from "../commands/GetObjectCommand";
|
|
6
6
|
import { ListItemsCommandInput, ListItemsCommandOutput } from "../commands/ListItemsCommand";
|
|
7
7
|
import { PutObjectCommandInput, PutObjectCommandOutput } from "../commands/PutObjectCommand";
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
export declare const
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
export declare const
|
|
16
|
-
|
|
17
|
-
|
|
8
|
+
/**
|
|
9
|
+
* serializeAws_restJson1DeleteObjectCommand
|
|
10
|
+
*/
|
|
11
|
+
export declare const se_DeleteObjectCommand: (input: DeleteObjectCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
12
|
+
/**
|
|
13
|
+
* serializeAws_restJson1DescribeObjectCommand
|
|
14
|
+
*/
|
|
15
|
+
export declare const se_DescribeObjectCommand: (input: DescribeObjectCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
16
|
+
/**
|
|
17
|
+
* serializeAws_restJson1GetObjectCommand
|
|
18
|
+
*/
|
|
19
|
+
export declare const se_GetObjectCommand: (input: GetObjectCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
20
|
+
/**
|
|
21
|
+
* serializeAws_restJson1ListItemsCommand
|
|
22
|
+
*/
|
|
23
|
+
export declare const se_ListItemsCommand: (input: ListItemsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
24
|
+
/**
|
|
25
|
+
* serializeAws_restJson1PutObjectCommand
|
|
26
|
+
*/
|
|
27
|
+
export declare const se_PutObjectCommand: (input: PutObjectCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
28
|
+
/**
|
|
29
|
+
* deserializeAws_restJson1DeleteObjectCommand
|
|
30
|
+
*/
|
|
31
|
+
export declare const de_DeleteObjectCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteObjectCommandOutput>;
|
|
32
|
+
/**
|
|
33
|
+
* deserializeAws_restJson1DescribeObjectCommand
|
|
34
|
+
*/
|
|
35
|
+
export declare const de_DescribeObjectCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DescribeObjectCommandOutput>;
|
|
36
|
+
/**
|
|
37
|
+
* deserializeAws_restJson1GetObjectCommand
|
|
38
|
+
*/
|
|
39
|
+
export declare const de_GetObjectCommand: (output: __HttpResponse, context: __SerdeContext & __SdkStreamSerdeContext) => Promise<GetObjectCommandOutput>;
|
|
40
|
+
/**
|
|
41
|
+
* deserializeAws_restJson1ListItemsCommand
|
|
42
|
+
*/
|
|
43
|
+
export declare const de_ListItemsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListItemsCommandOutput>;
|
|
44
|
+
/**
|
|
45
|
+
* deserializeAws_restJson1PutObjectCommand
|
|
46
|
+
*/
|
|
47
|
+
export declare const de_PutObjectCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<PutObjectCommandOutput>;
|
|
@@ -26,43 +26,43 @@ import {
|
|
|
26
26
|
PutObjectCommandInput,
|
|
27
27
|
PutObjectCommandOutput,
|
|
28
28
|
} from "../commands/PutObjectCommand";
|
|
29
|
-
export declare const
|
|
29
|
+
export declare const se_DeleteObjectCommand: (
|
|
30
30
|
input: DeleteObjectCommandInput,
|
|
31
31
|
context: __SerdeContext
|
|
32
32
|
) => Promise<__HttpRequest>;
|
|
33
|
-
export declare const
|
|
33
|
+
export declare const se_DescribeObjectCommand: (
|
|
34
34
|
input: DescribeObjectCommandInput,
|
|
35
35
|
context: __SerdeContext
|
|
36
36
|
) => Promise<__HttpRequest>;
|
|
37
|
-
export declare const
|
|
37
|
+
export declare const se_GetObjectCommand: (
|
|
38
38
|
input: GetObjectCommandInput,
|
|
39
39
|
context: __SerdeContext
|
|
40
40
|
) => Promise<__HttpRequest>;
|
|
41
|
-
export declare const
|
|
41
|
+
export declare const se_ListItemsCommand: (
|
|
42
42
|
input: ListItemsCommandInput,
|
|
43
43
|
context: __SerdeContext
|
|
44
44
|
) => Promise<__HttpRequest>;
|
|
45
|
-
export declare const
|
|
45
|
+
export declare const se_PutObjectCommand: (
|
|
46
46
|
input: PutObjectCommandInput,
|
|
47
47
|
context: __SerdeContext
|
|
48
48
|
) => Promise<__HttpRequest>;
|
|
49
|
-
export declare const
|
|
49
|
+
export declare const de_DeleteObjectCommand: (
|
|
50
50
|
output: __HttpResponse,
|
|
51
51
|
context: __SerdeContext
|
|
52
52
|
) => Promise<DeleteObjectCommandOutput>;
|
|
53
|
-
export declare const
|
|
53
|
+
export declare const de_DescribeObjectCommand: (
|
|
54
54
|
output: __HttpResponse,
|
|
55
55
|
context: __SerdeContext
|
|
56
56
|
) => Promise<DescribeObjectCommandOutput>;
|
|
57
|
-
export declare const
|
|
57
|
+
export declare const de_GetObjectCommand: (
|
|
58
58
|
output: __HttpResponse,
|
|
59
59
|
context: __SerdeContext & __SdkStreamSerdeContext
|
|
60
60
|
) => Promise<GetObjectCommandOutput>;
|
|
61
|
-
export declare const
|
|
61
|
+
export declare const de_ListItemsCommand: (
|
|
62
62
|
output: __HttpResponse,
|
|
63
63
|
context: __SerdeContext
|
|
64
64
|
) => Promise<ListItemsCommandOutput>;
|
|
65
|
-
export declare const
|
|
65
|
+
export declare const de_PutObjectCommand: (
|
|
66
66
|
output: __HttpResponse,
|
|
67
67
|
context: __SerdeContext
|
|
68
68
|
) => Promise<PutObjectCommandOutput>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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.
|
|
4
|
+
"version": "3.309.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -23,39 +23,39 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
25
25
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
26
|
-
"@aws-sdk/client-sts": "3.
|
|
27
|
-
"@aws-sdk/config-resolver": "3.
|
|
28
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
29
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
30
|
-
"@aws-sdk/hash-node": "3.
|
|
31
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
32
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
33
|
-
"@aws-sdk/middleware-endpoint": "3.
|
|
34
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
35
|
-
"@aws-sdk/middleware-logger": "3.
|
|
36
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
37
|
-
"@aws-sdk/middleware-retry": "3.
|
|
38
|
-
"@aws-sdk/middleware-serde": "3.
|
|
39
|
-
"@aws-sdk/middleware-signing": "3.
|
|
40
|
-
"@aws-sdk/middleware-stack": "3.
|
|
41
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
42
|
-
"@aws-sdk/node-config-provider": "3.
|
|
43
|
-
"@aws-sdk/node-http-handler": "3.
|
|
44
|
-
"@aws-sdk/protocol-http": "3.
|
|
45
|
-
"@aws-sdk/smithy-client": "3.
|
|
46
|
-
"@aws-sdk/types": "3.
|
|
47
|
-
"@aws-sdk/url-parser": "3.
|
|
26
|
+
"@aws-sdk/client-sts": "3.309.0",
|
|
27
|
+
"@aws-sdk/config-resolver": "3.306.0",
|
|
28
|
+
"@aws-sdk/credential-provider-node": "3.309.0",
|
|
29
|
+
"@aws-sdk/fetch-http-handler": "3.306.0",
|
|
30
|
+
"@aws-sdk/hash-node": "3.306.0",
|
|
31
|
+
"@aws-sdk/invalid-dependency": "3.306.0",
|
|
32
|
+
"@aws-sdk/middleware-content-length": "3.306.0",
|
|
33
|
+
"@aws-sdk/middleware-endpoint": "3.306.0",
|
|
34
|
+
"@aws-sdk/middleware-host-header": "3.306.0",
|
|
35
|
+
"@aws-sdk/middleware-logger": "3.306.0",
|
|
36
|
+
"@aws-sdk/middleware-recursion-detection": "3.306.0",
|
|
37
|
+
"@aws-sdk/middleware-retry": "3.306.0",
|
|
38
|
+
"@aws-sdk/middleware-serde": "3.306.0",
|
|
39
|
+
"@aws-sdk/middleware-signing": "3.306.0",
|
|
40
|
+
"@aws-sdk/middleware-stack": "3.306.0",
|
|
41
|
+
"@aws-sdk/middleware-user-agent": "3.306.0",
|
|
42
|
+
"@aws-sdk/node-config-provider": "3.306.0",
|
|
43
|
+
"@aws-sdk/node-http-handler": "3.306.0",
|
|
44
|
+
"@aws-sdk/protocol-http": "3.306.0",
|
|
45
|
+
"@aws-sdk/smithy-client": "3.309.0",
|
|
46
|
+
"@aws-sdk/types": "3.306.0",
|
|
47
|
+
"@aws-sdk/url-parser": "3.306.0",
|
|
48
48
|
"@aws-sdk/util-base64": "3.303.0",
|
|
49
49
|
"@aws-sdk/util-body-length-browser": "3.303.0",
|
|
50
50
|
"@aws-sdk/util-body-length-node": "3.303.0",
|
|
51
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
52
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
53
|
-
"@aws-sdk/util-endpoints": "3.
|
|
54
|
-
"@aws-sdk/util-retry": "3.
|
|
55
|
-
"@aws-sdk/util-stream-browser": "3.
|
|
56
|
-
"@aws-sdk/util-stream-node": "3.
|
|
57
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
58
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
51
|
+
"@aws-sdk/util-defaults-mode-browser": "3.309.0",
|
|
52
|
+
"@aws-sdk/util-defaults-mode-node": "3.309.0",
|
|
53
|
+
"@aws-sdk/util-endpoints": "3.306.0",
|
|
54
|
+
"@aws-sdk/util-retry": "3.306.0",
|
|
55
|
+
"@aws-sdk/util-stream-browser": "3.306.0",
|
|
56
|
+
"@aws-sdk/util-stream-node": "3.306.0",
|
|
57
|
+
"@aws-sdk/util-user-agent-browser": "3.306.0",
|
|
58
|
+
"@aws-sdk/util-user-agent-node": "3.306.0",
|
|
59
59
|
"@aws-sdk/util-utf8": "3.303.0",
|
|
60
60
|
"tslib": "^2.5.0"
|
|
61
61
|
},
|