@aws-sdk/client-mediastore-data 3.489.0 → 3.495.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/MediaStoreData.js +1 -21
- package/dist-cjs/MediaStoreDataClient.js +1 -43
- package/dist-cjs/commands/DeleteObjectCommand.js +1 -28
- package/dist-cjs/commands/DescribeObjectCommand.js +1 -28
- package/dist-cjs/commands/GetObjectCommand.js +1 -29
- package/dist-cjs/commands/ListItemsCommand.js +1 -28
- package/dist-cjs/commands/PutObjectCommand.js +1 -29
- package/dist-cjs/commands/index.js +1 -8
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +769 -11
- package/dist-cjs/models/MediaStoreDataServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -79
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListItemsPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -5
- package/dist-cjs/protocols/Aws_restJson1.js +1 -420
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +41 -41
package/dist-cjs/index.js
CHANGED
|
@@ -1,12 +1,770 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
|
|
21
|
+
// src/index.ts
|
|
22
|
+
var src_exports = {};
|
|
23
|
+
__export(src_exports, {
|
|
24
|
+
ContainerNotFoundException: () => ContainerNotFoundException,
|
|
25
|
+
DeleteObjectCommand: () => DeleteObjectCommand,
|
|
26
|
+
DescribeObjectCommand: () => DescribeObjectCommand,
|
|
27
|
+
GetObjectCommand: () => GetObjectCommand,
|
|
28
|
+
GetObjectResponseFilterSensitiveLog: () => GetObjectResponseFilterSensitiveLog,
|
|
29
|
+
InternalServerError: () => InternalServerError,
|
|
30
|
+
ItemType: () => ItemType,
|
|
31
|
+
ListItemsCommand: () => ListItemsCommand,
|
|
32
|
+
MediaStoreData: () => MediaStoreData,
|
|
33
|
+
MediaStoreDataClient: () => MediaStoreDataClient,
|
|
34
|
+
MediaStoreDataServiceException: () => MediaStoreDataServiceException,
|
|
35
|
+
ObjectNotFoundException: () => ObjectNotFoundException,
|
|
36
|
+
PutObjectCommand: () => PutObjectCommand,
|
|
37
|
+
PutObjectRequestFilterSensitiveLog: () => PutObjectRequestFilterSensitiveLog,
|
|
38
|
+
RequestedRangeNotSatisfiableException: () => RequestedRangeNotSatisfiableException,
|
|
39
|
+
StorageClass: () => StorageClass,
|
|
40
|
+
UploadAvailability: () => UploadAvailability,
|
|
41
|
+
__Client: () => import_smithy_client.Client,
|
|
42
|
+
paginateListItems: () => paginateListItems
|
|
43
|
+
});
|
|
44
|
+
module.exports = __toCommonJS(src_exports);
|
|
45
|
+
|
|
46
|
+
// src/MediaStoreDataClient.ts
|
|
47
|
+
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
48
|
+
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
49
|
+
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
50
|
+
var import_middleware_signing = require("@aws-sdk/middleware-signing");
|
|
51
|
+
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
52
|
+
var import_config_resolver = require("@smithy/config-resolver");
|
|
53
|
+
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
54
|
+
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
55
|
+
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
// src/endpoint/EndpointParameters.ts
|
|
59
|
+
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
60
|
+
return {
|
|
61
|
+
...options,
|
|
62
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
63
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
64
|
+
defaultSigningName: "mediastore"
|
|
65
|
+
};
|
|
66
|
+
}, "resolveClientEndpointParameters");
|
|
67
|
+
var commonParams = {
|
|
68
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
69
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
70
|
+
Region: { type: "builtInParams", name: "region" },
|
|
71
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
// src/MediaStoreDataClient.ts
|
|
75
|
+
var import_runtimeConfig = require("././runtimeConfig");
|
|
76
|
+
|
|
77
|
+
// src/runtimeExtensions.ts
|
|
78
|
+
var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
|
|
79
|
+
var import_protocol_http = require("@smithy/protocol-http");
|
|
80
|
+
var import_smithy_client = require("@smithy/smithy-client");
|
|
81
|
+
var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
|
|
82
|
+
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
83
|
+
const extensionConfiguration = {
|
|
84
|
+
...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
|
|
85
|
+
...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
|
|
86
|
+
...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
|
|
87
|
+
};
|
|
88
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
89
|
+
return {
|
|
90
|
+
...runtimeConfig,
|
|
91
|
+
...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
92
|
+
...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
93
|
+
...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
|
|
94
|
+
};
|
|
95
|
+
}, "resolveRuntimeExtensions");
|
|
96
|
+
|
|
97
|
+
// src/MediaStoreDataClient.ts
|
|
98
|
+
var _MediaStoreDataClient = class _MediaStoreDataClient extends import_smithy_client.Client {
|
|
99
|
+
constructor(...[configuration]) {
|
|
100
|
+
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
|
101
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
102
|
+
const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
|
|
103
|
+
const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
|
|
104
|
+
const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
|
|
105
|
+
const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
|
|
106
|
+
const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
|
|
107
|
+
const _config_7 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_6);
|
|
108
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
|
|
109
|
+
super(_config_8);
|
|
110
|
+
this.config = _config_8;
|
|
111
|
+
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
112
|
+
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
|
113
|
+
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
114
|
+
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
115
|
+
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
116
|
+
this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
|
|
117
|
+
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
121
|
+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
122
|
+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
123
|
+
*/
|
|
124
|
+
destroy() {
|
|
125
|
+
super.destroy();
|
|
126
|
+
}
|
|
127
|
+
};
|
|
128
|
+
__name(_MediaStoreDataClient, "MediaStoreDataClient");
|
|
129
|
+
var MediaStoreDataClient = _MediaStoreDataClient;
|
|
130
|
+
|
|
131
|
+
// src/MediaStoreData.ts
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
// src/commands/DeleteObjectCommand.ts
|
|
135
|
+
|
|
136
|
+
var import_middleware_serde = require("@smithy/middleware-serde");
|
|
137
|
+
|
|
138
|
+
var import_types = require("@smithy/types");
|
|
139
|
+
|
|
140
|
+
// src/protocols/Aws_restJson1.ts
|
|
141
|
+
var import_core = require("@smithy/core");
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
// src/models/MediaStoreDataServiceException.ts
|
|
145
|
+
|
|
146
|
+
var _MediaStoreDataServiceException = class _MediaStoreDataServiceException extends import_smithy_client.ServiceException {
|
|
147
|
+
/**
|
|
148
|
+
* @internal
|
|
149
|
+
*/
|
|
150
|
+
constructor(options) {
|
|
151
|
+
super(options);
|
|
152
|
+
Object.setPrototypeOf(this, _MediaStoreDataServiceException.prototype);
|
|
153
|
+
}
|
|
154
|
+
};
|
|
155
|
+
__name(_MediaStoreDataServiceException, "MediaStoreDataServiceException");
|
|
156
|
+
var MediaStoreDataServiceException = _MediaStoreDataServiceException;
|
|
157
|
+
|
|
158
|
+
// src/models/models_0.ts
|
|
159
|
+
var _ContainerNotFoundException = class _ContainerNotFoundException extends MediaStoreDataServiceException {
|
|
160
|
+
/**
|
|
161
|
+
* @internal
|
|
162
|
+
*/
|
|
163
|
+
constructor(opts) {
|
|
164
|
+
super({
|
|
165
|
+
name: "ContainerNotFoundException",
|
|
166
|
+
$fault: "client",
|
|
167
|
+
...opts
|
|
168
|
+
});
|
|
169
|
+
this.name = "ContainerNotFoundException";
|
|
170
|
+
this.$fault = "client";
|
|
171
|
+
Object.setPrototypeOf(this, _ContainerNotFoundException.prototype);
|
|
172
|
+
this.Message = opts.Message;
|
|
173
|
+
}
|
|
174
|
+
};
|
|
175
|
+
__name(_ContainerNotFoundException, "ContainerNotFoundException");
|
|
176
|
+
var ContainerNotFoundException = _ContainerNotFoundException;
|
|
177
|
+
var _InternalServerError = class _InternalServerError extends MediaStoreDataServiceException {
|
|
178
|
+
/**
|
|
179
|
+
* @internal
|
|
180
|
+
*/
|
|
181
|
+
constructor(opts) {
|
|
182
|
+
super({
|
|
183
|
+
name: "InternalServerError",
|
|
184
|
+
$fault: "server",
|
|
185
|
+
...opts
|
|
186
|
+
});
|
|
187
|
+
this.name = "InternalServerError";
|
|
188
|
+
this.$fault = "server";
|
|
189
|
+
Object.setPrototypeOf(this, _InternalServerError.prototype);
|
|
190
|
+
this.Message = opts.Message;
|
|
191
|
+
}
|
|
192
|
+
};
|
|
193
|
+
__name(_InternalServerError, "InternalServerError");
|
|
194
|
+
var InternalServerError = _InternalServerError;
|
|
195
|
+
var _ObjectNotFoundException = class _ObjectNotFoundException extends MediaStoreDataServiceException {
|
|
196
|
+
/**
|
|
197
|
+
* @internal
|
|
198
|
+
*/
|
|
199
|
+
constructor(opts) {
|
|
200
|
+
super({
|
|
201
|
+
name: "ObjectNotFoundException",
|
|
202
|
+
$fault: "client",
|
|
203
|
+
...opts
|
|
204
|
+
});
|
|
205
|
+
this.name = "ObjectNotFoundException";
|
|
206
|
+
this.$fault = "client";
|
|
207
|
+
Object.setPrototypeOf(this, _ObjectNotFoundException.prototype);
|
|
208
|
+
this.Message = opts.Message;
|
|
209
|
+
}
|
|
210
|
+
};
|
|
211
|
+
__name(_ObjectNotFoundException, "ObjectNotFoundException");
|
|
212
|
+
var ObjectNotFoundException = _ObjectNotFoundException;
|
|
213
|
+
var _RequestedRangeNotSatisfiableException = class _RequestedRangeNotSatisfiableException extends MediaStoreDataServiceException {
|
|
214
|
+
/**
|
|
215
|
+
* @internal
|
|
216
|
+
*/
|
|
217
|
+
constructor(opts) {
|
|
218
|
+
super({
|
|
219
|
+
name: "RequestedRangeNotSatisfiableException",
|
|
220
|
+
$fault: "client",
|
|
221
|
+
...opts
|
|
222
|
+
});
|
|
223
|
+
this.name = "RequestedRangeNotSatisfiableException";
|
|
224
|
+
this.$fault = "client";
|
|
225
|
+
Object.setPrototypeOf(this, _RequestedRangeNotSatisfiableException.prototype);
|
|
226
|
+
this.Message = opts.Message;
|
|
227
|
+
}
|
|
228
|
+
};
|
|
229
|
+
__name(_RequestedRangeNotSatisfiableException, "RequestedRangeNotSatisfiableException");
|
|
230
|
+
var RequestedRangeNotSatisfiableException = _RequestedRangeNotSatisfiableException;
|
|
231
|
+
var ItemType = {
|
|
232
|
+
FOLDER: "FOLDER",
|
|
233
|
+
OBJECT: "OBJECT"
|
|
234
|
+
};
|
|
235
|
+
var StorageClass = {
|
|
236
|
+
TEMPORAL: "TEMPORAL"
|
|
237
|
+
};
|
|
238
|
+
var UploadAvailability = {
|
|
239
|
+
STANDARD: "STANDARD",
|
|
240
|
+
STREAMING: "STREAMING"
|
|
241
|
+
};
|
|
242
|
+
var GetObjectResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
243
|
+
...obj
|
|
244
|
+
}), "GetObjectResponseFilterSensitiveLog");
|
|
245
|
+
var PutObjectRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
246
|
+
...obj
|
|
247
|
+
}), "PutObjectRequestFilterSensitiveLog");
|
|
248
|
+
|
|
249
|
+
// src/protocols/Aws_restJson1.ts
|
|
250
|
+
var se_DeleteObjectCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
251
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
252
|
+
const headers = {};
|
|
253
|
+
b.bp("/{Path+}");
|
|
254
|
+
b.p("Path", () => input.Path, "{Path+}", true);
|
|
255
|
+
let body;
|
|
256
|
+
b.m("DELETE").h(headers).b(body);
|
|
257
|
+
return b.build();
|
|
258
|
+
}, "se_DeleteObjectCommand");
|
|
259
|
+
var se_DescribeObjectCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
260
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
261
|
+
const headers = {};
|
|
262
|
+
b.bp("/{Path+}");
|
|
263
|
+
b.p("Path", () => input.Path, "{Path+}", true);
|
|
264
|
+
let body;
|
|
265
|
+
b.m("HEAD").h(headers).b(body);
|
|
266
|
+
return b.build();
|
|
267
|
+
}, "se_DescribeObjectCommand");
|
|
268
|
+
var se_GetObjectCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
269
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
270
|
+
const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
|
|
271
|
+
[_r]: input[_R]
|
|
272
|
+
});
|
|
273
|
+
b.bp("/{Path+}");
|
|
274
|
+
b.p("Path", () => input.Path, "{Path+}", true);
|
|
275
|
+
let body;
|
|
276
|
+
b.m("GET").h(headers).b(body);
|
|
277
|
+
return b.build();
|
|
278
|
+
}, "se_GetObjectCommand");
|
|
279
|
+
var se_ListItemsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
280
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
281
|
+
const headers = {};
|
|
282
|
+
b.bp("/");
|
|
283
|
+
const query = (0, import_smithy_client.map)({
|
|
284
|
+
[_P]: [, input[_P]],
|
|
285
|
+
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
286
|
+
[_NT]: [, input[_NT]]
|
|
287
|
+
});
|
|
288
|
+
let body;
|
|
289
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
290
|
+
return b.build();
|
|
291
|
+
}, "se_ListItemsCommand");
|
|
292
|
+
var se_PutObjectCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
293
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
294
|
+
const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
|
|
295
|
+
"x-amz-content-sha256": "UNSIGNED-PAYLOAD",
|
|
296
|
+
[_ct]: input[_CT] || "application/octet-stream",
|
|
297
|
+
[_cc]: input[_CC],
|
|
298
|
+
[_xasc]: input[_SC],
|
|
299
|
+
[_xaua]: input[_UA]
|
|
300
|
+
});
|
|
301
|
+
b.bp("/{Path+}");
|
|
302
|
+
b.p("Path", () => input.Path, "{Path+}", true);
|
|
303
|
+
let body;
|
|
304
|
+
if (input.Body !== void 0) {
|
|
305
|
+
body = input.Body;
|
|
306
|
+
}
|
|
307
|
+
b.m("PUT").h(headers).b(body);
|
|
308
|
+
return b.build();
|
|
309
|
+
}, "se_PutObjectCommand");
|
|
310
|
+
var de_DeleteObjectCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
311
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
312
|
+
return de_DeleteObjectCommandError(output, context);
|
|
313
|
+
}
|
|
314
|
+
const contents = (0, import_smithy_client.map)({
|
|
315
|
+
$metadata: deserializeMetadata(output)
|
|
316
|
+
});
|
|
317
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
318
|
+
return contents;
|
|
319
|
+
}, "de_DeleteObjectCommand");
|
|
320
|
+
var de_DeleteObjectCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
321
|
+
const parsedOutput = {
|
|
322
|
+
...output,
|
|
323
|
+
body: await parseErrorBody(output.body, context)
|
|
324
|
+
};
|
|
325
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
326
|
+
switch (errorCode) {
|
|
327
|
+
case "ContainerNotFoundException":
|
|
328
|
+
case "com.amazonaws.mediastoredata#ContainerNotFoundException":
|
|
329
|
+
throw await de_ContainerNotFoundExceptionRes(parsedOutput, context);
|
|
330
|
+
case "InternalServerError":
|
|
331
|
+
case "com.amazonaws.mediastoredata#InternalServerError":
|
|
332
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
333
|
+
case "ObjectNotFoundException":
|
|
334
|
+
case "com.amazonaws.mediastoredata#ObjectNotFoundException":
|
|
335
|
+
throw await de_ObjectNotFoundExceptionRes(parsedOutput, context);
|
|
336
|
+
default:
|
|
337
|
+
const parsedBody = parsedOutput.body;
|
|
338
|
+
return throwDefaultError({
|
|
339
|
+
output,
|
|
340
|
+
parsedBody,
|
|
341
|
+
errorCode
|
|
342
|
+
});
|
|
343
|
+
}
|
|
344
|
+
}, "de_DeleteObjectCommandError");
|
|
345
|
+
var de_DescribeObjectCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
346
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
347
|
+
return de_DescribeObjectCommandError(output, context);
|
|
348
|
+
}
|
|
349
|
+
const contents = (0, import_smithy_client.map)({
|
|
350
|
+
$metadata: deserializeMetadata(output),
|
|
351
|
+
[_ET]: [, output.headers[_e]],
|
|
352
|
+
[_CT]: [, output.headers[_ct]],
|
|
353
|
+
[_CL]: [() => void 0 !== output.headers[_cl], () => (0, import_smithy_client.strictParseLong)(output.headers[_cl])],
|
|
354
|
+
[_CC]: [, output.headers[_cc]],
|
|
355
|
+
[_LM]: [() => void 0 !== output.headers[_lm], () => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc7231DateTime)(output.headers[_lm]))]
|
|
356
|
+
});
|
|
357
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
358
|
+
return contents;
|
|
359
|
+
}, "de_DescribeObjectCommand");
|
|
360
|
+
var de_DescribeObjectCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
361
|
+
const parsedOutput = {
|
|
362
|
+
...output,
|
|
363
|
+
body: await parseErrorBody(output.body, context)
|
|
364
|
+
};
|
|
365
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
366
|
+
switch (errorCode) {
|
|
367
|
+
case "ContainerNotFoundException":
|
|
368
|
+
case "com.amazonaws.mediastoredata#ContainerNotFoundException":
|
|
369
|
+
throw await de_ContainerNotFoundExceptionRes(parsedOutput, context);
|
|
370
|
+
case "InternalServerError":
|
|
371
|
+
case "com.amazonaws.mediastoredata#InternalServerError":
|
|
372
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
373
|
+
case "ObjectNotFoundException":
|
|
374
|
+
case "com.amazonaws.mediastoredata#ObjectNotFoundException":
|
|
375
|
+
throw await de_ObjectNotFoundExceptionRes(parsedOutput, context);
|
|
376
|
+
default:
|
|
377
|
+
const parsedBody = parsedOutput.body;
|
|
378
|
+
return throwDefaultError({
|
|
379
|
+
output,
|
|
380
|
+
parsedBody,
|
|
381
|
+
errorCode
|
|
382
|
+
});
|
|
383
|
+
}
|
|
384
|
+
}, "de_DescribeObjectCommandError");
|
|
385
|
+
var de_GetObjectCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
386
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
387
|
+
return de_GetObjectCommandError(output, context);
|
|
388
|
+
}
|
|
389
|
+
const contents = (0, import_smithy_client.map)({
|
|
390
|
+
$metadata: deserializeMetadata(output),
|
|
391
|
+
[_CC]: [, output.headers[_cc]],
|
|
392
|
+
[_CR]: [, output.headers[_cr]],
|
|
393
|
+
[_CL]: [() => void 0 !== output.headers[_cl], () => (0, import_smithy_client.strictParseLong)(output.headers[_cl])],
|
|
394
|
+
[_CT]: [, output.headers[_ct]],
|
|
395
|
+
[_ET]: [, output.headers[_e]],
|
|
396
|
+
[_LM]: [() => void 0 !== output.headers[_lm], () => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc7231DateTime)(output.headers[_lm]))]
|
|
397
|
+
});
|
|
398
|
+
const data = output.body;
|
|
399
|
+
context.sdkStreamMixin(data);
|
|
400
|
+
contents.Body = data;
|
|
401
|
+
(0, import_smithy_client.map)(contents, {
|
|
402
|
+
StatusCode: [, output.statusCode]
|
|
403
|
+
});
|
|
404
|
+
return contents;
|
|
405
|
+
}, "de_GetObjectCommand");
|
|
406
|
+
var de_GetObjectCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
407
|
+
const parsedOutput = {
|
|
408
|
+
...output,
|
|
409
|
+
body: await parseErrorBody(output.body, context)
|
|
410
|
+
};
|
|
411
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
412
|
+
switch (errorCode) {
|
|
413
|
+
case "ContainerNotFoundException":
|
|
414
|
+
case "com.amazonaws.mediastoredata#ContainerNotFoundException":
|
|
415
|
+
throw await de_ContainerNotFoundExceptionRes(parsedOutput, context);
|
|
416
|
+
case "InternalServerError":
|
|
417
|
+
case "com.amazonaws.mediastoredata#InternalServerError":
|
|
418
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
419
|
+
case "ObjectNotFoundException":
|
|
420
|
+
case "com.amazonaws.mediastoredata#ObjectNotFoundException":
|
|
421
|
+
throw await de_ObjectNotFoundExceptionRes(parsedOutput, context);
|
|
422
|
+
case "RequestedRangeNotSatisfiableException":
|
|
423
|
+
case "com.amazonaws.mediastoredata#RequestedRangeNotSatisfiableException":
|
|
424
|
+
throw await de_RequestedRangeNotSatisfiableExceptionRes(parsedOutput, context);
|
|
425
|
+
default:
|
|
426
|
+
const parsedBody = parsedOutput.body;
|
|
427
|
+
return throwDefaultError({
|
|
428
|
+
output,
|
|
429
|
+
parsedBody,
|
|
430
|
+
errorCode
|
|
431
|
+
});
|
|
432
|
+
}
|
|
433
|
+
}, "de_GetObjectCommandError");
|
|
434
|
+
var de_ListItemsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
435
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
436
|
+
return de_ListItemsCommandError(output, context);
|
|
437
|
+
}
|
|
438
|
+
const contents = (0, import_smithy_client.map)({
|
|
439
|
+
$metadata: deserializeMetadata(output)
|
|
440
|
+
});
|
|
441
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
442
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
443
|
+
Items: (_) => de_ItemList(_, context),
|
|
444
|
+
NextToken: import_smithy_client.expectString
|
|
445
|
+
});
|
|
446
|
+
Object.assign(contents, doc);
|
|
447
|
+
return contents;
|
|
448
|
+
}, "de_ListItemsCommand");
|
|
449
|
+
var de_ListItemsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
450
|
+
const parsedOutput = {
|
|
451
|
+
...output,
|
|
452
|
+
body: await parseErrorBody(output.body, context)
|
|
453
|
+
};
|
|
454
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
455
|
+
switch (errorCode) {
|
|
456
|
+
case "ContainerNotFoundException":
|
|
457
|
+
case "com.amazonaws.mediastoredata#ContainerNotFoundException":
|
|
458
|
+
throw await de_ContainerNotFoundExceptionRes(parsedOutput, context);
|
|
459
|
+
case "InternalServerError":
|
|
460
|
+
case "com.amazonaws.mediastoredata#InternalServerError":
|
|
461
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
462
|
+
default:
|
|
463
|
+
const parsedBody = parsedOutput.body;
|
|
464
|
+
return throwDefaultError({
|
|
465
|
+
output,
|
|
466
|
+
parsedBody,
|
|
467
|
+
errorCode
|
|
468
|
+
});
|
|
469
|
+
}
|
|
470
|
+
}, "de_ListItemsCommandError");
|
|
471
|
+
var de_PutObjectCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
472
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
473
|
+
return de_PutObjectCommandError(output, context);
|
|
474
|
+
}
|
|
475
|
+
const contents = (0, import_smithy_client.map)({
|
|
476
|
+
$metadata: deserializeMetadata(output)
|
|
477
|
+
});
|
|
478
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
479
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
480
|
+
ContentSHA256: import_smithy_client.expectString,
|
|
481
|
+
ETag: import_smithy_client.expectString,
|
|
482
|
+
StorageClass: import_smithy_client.expectString
|
|
483
|
+
});
|
|
484
|
+
Object.assign(contents, doc);
|
|
485
|
+
return contents;
|
|
486
|
+
}, "de_PutObjectCommand");
|
|
487
|
+
var de_PutObjectCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
488
|
+
const parsedOutput = {
|
|
489
|
+
...output,
|
|
490
|
+
body: await parseErrorBody(output.body, context)
|
|
491
|
+
};
|
|
492
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
493
|
+
switch (errorCode) {
|
|
494
|
+
case "ContainerNotFoundException":
|
|
495
|
+
case "com.amazonaws.mediastoredata#ContainerNotFoundException":
|
|
496
|
+
throw await de_ContainerNotFoundExceptionRes(parsedOutput, context);
|
|
497
|
+
case "InternalServerError":
|
|
498
|
+
case "com.amazonaws.mediastoredata#InternalServerError":
|
|
499
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
500
|
+
default:
|
|
501
|
+
const parsedBody = parsedOutput.body;
|
|
502
|
+
return throwDefaultError({
|
|
503
|
+
output,
|
|
504
|
+
parsedBody,
|
|
505
|
+
errorCode
|
|
506
|
+
});
|
|
507
|
+
}
|
|
508
|
+
}, "de_PutObjectCommandError");
|
|
509
|
+
var throwDefaultError = (0, import_smithy_client.withBaseException)(MediaStoreDataServiceException);
|
|
510
|
+
var de_ContainerNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
511
|
+
const contents = (0, import_smithy_client.map)({});
|
|
512
|
+
const data = parsedOutput.body;
|
|
513
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
514
|
+
Message: import_smithy_client.expectString
|
|
515
|
+
});
|
|
516
|
+
Object.assign(contents, doc);
|
|
517
|
+
const exception = new ContainerNotFoundException({
|
|
518
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
519
|
+
...contents
|
|
520
|
+
});
|
|
521
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
522
|
+
}, "de_ContainerNotFoundExceptionRes");
|
|
523
|
+
var de_InternalServerErrorRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
524
|
+
const contents = (0, import_smithy_client.map)({});
|
|
525
|
+
const data = parsedOutput.body;
|
|
526
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
527
|
+
Message: import_smithy_client.expectString
|
|
528
|
+
});
|
|
529
|
+
Object.assign(contents, doc);
|
|
530
|
+
const exception = new InternalServerError({
|
|
531
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
532
|
+
...contents
|
|
533
|
+
});
|
|
534
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
535
|
+
}, "de_InternalServerErrorRes");
|
|
536
|
+
var de_ObjectNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
537
|
+
const contents = (0, import_smithy_client.map)({});
|
|
538
|
+
const data = parsedOutput.body;
|
|
539
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
540
|
+
Message: import_smithy_client.expectString
|
|
541
|
+
});
|
|
542
|
+
Object.assign(contents, doc);
|
|
543
|
+
const exception = new ObjectNotFoundException({
|
|
544
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
545
|
+
...contents
|
|
546
|
+
});
|
|
547
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
548
|
+
}, "de_ObjectNotFoundExceptionRes");
|
|
549
|
+
var de_RequestedRangeNotSatisfiableExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
550
|
+
const contents = (0, import_smithy_client.map)({});
|
|
551
|
+
const data = parsedOutput.body;
|
|
552
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
553
|
+
Message: import_smithy_client.expectString
|
|
554
|
+
});
|
|
555
|
+
Object.assign(contents, doc);
|
|
556
|
+
const exception = new RequestedRangeNotSatisfiableException({
|
|
557
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
558
|
+
...contents
|
|
559
|
+
});
|
|
560
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
561
|
+
}, "de_RequestedRangeNotSatisfiableExceptionRes");
|
|
562
|
+
var de_Item = /* @__PURE__ */ __name((output, context) => {
|
|
563
|
+
return (0, import_smithy_client.take)(output, {
|
|
564
|
+
ContentLength: import_smithy_client.expectLong,
|
|
565
|
+
ContentType: import_smithy_client.expectString,
|
|
566
|
+
ETag: import_smithy_client.expectString,
|
|
567
|
+
LastModified: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
568
|
+
Name: import_smithy_client.expectString,
|
|
569
|
+
Type: import_smithy_client.expectString
|
|
570
|
+
});
|
|
571
|
+
}, "de_Item");
|
|
572
|
+
var de_ItemList = /* @__PURE__ */ __name((output, context) => {
|
|
573
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
574
|
+
return de_Item(entry, context);
|
|
575
|
+
});
|
|
576
|
+
return retVal;
|
|
577
|
+
}, "de_ItemList");
|
|
578
|
+
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
579
|
+
httpStatusCode: output.statusCode,
|
|
580
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
581
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
582
|
+
cfId: output.headers["x-amz-cf-id"]
|
|
583
|
+
}), "deserializeMetadata");
|
|
584
|
+
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
585
|
+
var isSerializableHeaderValue = /* @__PURE__ */ __name((value) => value !== void 0 && value !== null && value !== "" && (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0), "isSerializableHeaderValue");
|
|
586
|
+
var _CC = "CacheControl";
|
|
587
|
+
var _CL = "ContentLength";
|
|
588
|
+
var _CR = "ContentRange";
|
|
589
|
+
var _CT = "ContentType";
|
|
590
|
+
var _ET = "ETag";
|
|
591
|
+
var _LM = "LastModified";
|
|
592
|
+
var _MR = "MaxResults";
|
|
593
|
+
var _NT = "NextToken";
|
|
594
|
+
var _P = "Path";
|
|
595
|
+
var _R = "Range";
|
|
596
|
+
var _SC = "StorageClass";
|
|
597
|
+
var _UA = "UploadAvailability";
|
|
598
|
+
var _cc = "cache-control";
|
|
599
|
+
var _cl = "content-length";
|
|
600
|
+
var _cr = "content-range";
|
|
601
|
+
var _ct = "content-type";
|
|
602
|
+
var _e = "etag";
|
|
603
|
+
var _lm = "last-modified";
|
|
604
|
+
var _r = "range";
|
|
605
|
+
var _xasc = "x-amz-storage-class";
|
|
606
|
+
var _xaua = "x-amz-upload-availability";
|
|
607
|
+
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
608
|
+
if (encoded.length) {
|
|
609
|
+
return JSON.parse(encoded);
|
|
610
|
+
}
|
|
611
|
+
return {};
|
|
612
|
+
}), "parseBody");
|
|
613
|
+
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
614
|
+
const value = await parseBody(errorBody, context);
|
|
615
|
+
value.message = value.message ?? value.Message;
|
|
616
|
+
return value;
|
|
617
|
+
}, "parseErrorBody");
|
|
618
|
+
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
619
|
+
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
620
|
+
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
621
|
+
let cleanValue = rawValue;
|
|
622
|
+
if (typeof cleanValue === "number") {
|
|
623
|
+
cleanValue = cleanValue.toString();
|
|
624
|
+
}
|
|
625
|
+
if (cleanValue.indexOf(",") >= 0) {
|
|
626
|
+
cleanValue = cleanValue.split(",")[0];
|
|
627
|
+
}
|
|
628
|
+
if (cleanValue.indexOf(":") >= 0) {
|
|
629
|
+
cleanValue = cleanValue.split(":")[0];
|
|
630
|
+
}
|
|
631
|
+
if (cleanValue.indexOf("#") >= 0) {
|
|
632
|
+
cleanValue = cleanValue.split("#")[1];
|
|
633
|
+
}
|
|
634
|
+
return cleanValue;
|
|
635
|
+
}, "sanitizeErrorCode");
|
|
636
|
+
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
637
|
+
if (headerKey !== void 0) {
|
|
638
|
+
return sanitizeErrorCode(output.headers[headerKey]);
|
|
639
|
+
}
|
|
640
|
+
if (data.code !== void 0) {
|
|
641
|
+
return sanitizeErrorCode(data.code);
|
|
642
|
+
}
|
|
643
|
+
if (data["__type"] !== void 0) {
|
|
644
|
+
return sanitizeErrorCode(data["__type"]);
|
|
645
|
+
}
|
|
646
|
+
}, "loadRestJsonErrorCode");
|
|
647
|
+
|
|
648
|
+
// src/commands/DeleteObjectCommand.ts
|
|
649
|
+
var _DeleteObjectCommand = class _DeleteObjectCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
650
|
+
...commonParams
|
|
651
|
+
}).m(function(Command, cs, config, o) {
|
|
652
|
+
return [
|
|
653
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
654
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
655
|
+
];
|
|
656
|
+
}).s("MediaStoreObject_20170901", "DeleteObject", {}).n("MediaStoreDataClient", "DeleteObjectCommand").f(void 0, void 0).ser(se_DeleteObjectCommand).de(de_DeleteObjectCommand).build() {
|
|
657
|
+
};
|
|
658
|
+
__name(_DeleteObjectCommand, "DeleteObjectCommand");
|
|
659
|
+
var DeleteObjectCommand = _DeleteObjectCommand;
|
|
660
|
+
|
|
661
|
+
// src/commands/DescribeObjectCommand.ts
|
|
662
|
+
|
|
663
|
+
|
|
664
|
+
|
|
665
|
+
|
|
666
|
+
var _DescribeObjectCommand = class _DescribeObjectCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
667
|
+
...commonParams
|
|
668
|
+
}).m(function(Command, cs, config, o) {
|
|
669
|
+
return [
|
|
670
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
671
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
672
|
+
];
|
|
673
|
+
}).s("MediaStoreObject_20170901", "DescribeObject", {}).n("MediaStoreDataClient", "DescribeObjectCommand").f(void 0, void 0).ser(se_DescribeObjectCommand).de(de_DescribeObjectCommand).build() {
|
|
674
|
+
};
|
|
675
|
+
__name(_DescribeObjectCommand, "DescribeObjectCommand");
|
|
676
|
+
var DescribeObjectCommand = _DescribeObjectCommand;
|
|
677
|
+
|
|
678
|
+
// src/commands/GetObjectCommand.ts
|
|
679
|
+
|
|
680
|
+
|
|
681
|
+
|
|
682
|
+
|
|
683
|
+
var _GetObjectCommand = class _GetObjectCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
684
|
+
...commonParams
|
|
685
|
+
}).m(function(Command, cs, config, o) {
|
|
686
|
+
return [
|
|
687
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
688
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
689
|
+
];
|
|
690
|
+
}).s("MediaStoreObject_20170901", "GetObject", {}).n("MediaStoreDataClient", "GetObjectCommand").f(void 0, GetObjectResponseFilterSensitiveLog).ser(se_GetObjectCommand).de(de_GetObjectCommand).build() {
|
|
691
|
+
};
|
|
692
|
+
__name(_GetObjectCommand, "GetObjectCommand");
|
|
693
|
+
var GetObjectCommand = _GetObjectCommand;
|
|
694
|
+
|
|
695
|
+
// src/commands/ListItemsCommand.ts
|
|
696
|
+
|
|
697
|
+
|
|
698
|
+
|
|
699
|
+
|
|
700
|
+
var _ListItemsCommand = class _ListItemsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
701
|
+
...commonParams
|
|
702
|
+
}).m(function(Command, cs, config, o) {
|
|
703
|
+
return [
|
|
704
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
705
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
706
|
+
];
|
|
707
|
+
}).s("MediaStoreObject_20170901", "ListItems", {}).n("MediaStoreDataClient", "ListItemsCommand").f(void 0, void 0).ser(se_ListItemsCommand).de(de_ListItemsCommand).build() {
|
|
708
|
+
};
|
|
709
|
+
__name(_ListItemsCommand, "ListItemsCommand");
|
|
710
|
+
var ListItemsCommand = _ListItemsCommand;
|
|
711
|
+
|
|
712
|
+
// src/commands/PutObjectCommand.ts
|
|
713
|
+
|
|
714
|
+
|
|
715
|
+
|
|
716
|
+
|
|
717
|
+
var _PutObjectCommand = class _PutObjectCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
718
|
+
...commonParams
|
|
719
|
+
}).m(function(Command, cs, config, o) {
|
|
720
|
+
return [
|
|
721
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
722
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
723
|
+
];
|
|
724
|
+
}).s("MediaStoreObject_20170901", "PutObject", {}).n("MediaStoreDataClient", "PutObjectCommand").f(PutObjectRequestFilterSensitiveLog, void 0).ser(se_PutObjectCommand).de(de_PutObjectCommand).build() {
|
|
725
|
+
};
|
|
726
|
+
__name(_PutObjectCommand, "PutObjectCommand");
|
|
727
|
+
var PutObjectCommand = _PutObjectCommand;
|
|
728
|
+
|
|
729
|
+
// src/MediaStoreData.ts
|
|
730
|
+
var commands = {
|
|
731
|
+
DeleteObjectCommand,
|
|
732
|
+
DescribeObjectCommand,
|
|
733
|
+
GetObjectCommand,
|
|
734
|
+
ListItemsCommand,
|
|
735
|
+
PutObjectCommand
|
|
736
|
+
};
|
|
737
|
+
var _MediaStoreData = class _MediaStoreData extends MediaStoreDataClient {
|
|
738
|
+
};
|
|
739
|
+
__name(_MediaStoreData, "MediaStoreData");
|
|
740
|
+
var MediaStoreData = _MediaStoreData;
|
|
741
|
+
(0, import_smithy_client.createAggregatedClient)(commands, MediaStoreData);
|
|
742
|
+
|
|
743
|
+
// src/pagination/ListItemsPaginator.ts
|
|
744
|
+
|
|
745
|
+
var paginateListItems = (0, import_core.createPaginator)(MediaStoreDataClient, ListItemsCommand, "NextToken", "NextToken", "MaxResults");
|
|
746
|
+
|
|
747
|
+
// src/index.ts
|
|
748
|
+
var import_util_endpoints = require("@aws-sdk/util-endpoints");
|
|
749
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
750
|
+
0 && (module.exports = {
|
|
751
|
+
ContainerNotFoundException,
|
|
752
|
+
DeleteObjectCommand,
|
|
753
|
+
DescribeObjectCommand,
|
|
754
|
+
GetObjectCommand,
|
|
755
|
+
GetObjectResponseFilterSensitiveLog,
|
|
756
|
+
InternalServerError,
|
|
757
|
+
ItemType,
|
|
758
|
+
ListItemsCommand,
|
|
759
|
+
MediaStoreData,
|
|
760
|
+
MediaStoreDataClient,
|
|
761
|
+
MediaStoreDataServiceException,
|
|
762
|
+
ObjectNotFoundException,
|
|
763
|
+
PutObjectCommand,
|
|
764
|
+
PutObjectRequestFilterSensitiveLog,
|
|
765
|
+
RequestedRangeNotSatisfiableException,
|
|
766
|
+
StorageClass,
|
|
767
|
+
UploadAvailability,
|
|
768
|
+
__Client,
|
|
769
|
+
paginateListItems
|
|
770
|
+
});
|