@aws-sdk/client-mediastore-data 3.183.0 → 3.185.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/CHANGELOG.md +11 -0
- package/dist-cjs/protocols/Aws_restJson1.js +2 -2
- package/dist-es/MediaStoreData.js +29 -22
- package/dist-es/MediaStoreDataClient.js +28 -22
- package/dist-es/commands/DeleteObjectCommand.js +28 -21
- package/dist-es/commands/DescribeObjectCommand.js +28 -21
- package/dist-es/commands/GetObjectCommand.js +28 -21
- package/dist-es/commands/ListItemsCommand.js +28 -21
- package/dist-es/commands/PutObjectCommand.js +28 -21
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/MediaStoreDataServiceException.js +10 -5
- package/dist-es/models/models_0.js +60 -81
- package/dist-es/pagination/ListItemsPaginator.js +68 -25
- package/dist-es/protocols/Aws_restJson1.js +541 -379
- package/dist-es/runtimeConfig.browser.js +12 -26
- package/dist-es/runtimeConfig.js +12 -30
- package/dist-es/runtimeConfig.native.js +5 -8
- package/dist-es/runtimeConfig.shared.js +11 -8
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.185.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.184.0...v3.185.0) (2022-10-05)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **codegen:** add deser check for x-amz-request-id ([#4015](https://github.com/aws/aws-sdk-js-v3/issues/4015)) ([6ff07bd](https://github.com/aws/aws-sdk-js-v3/commit/6ff07bd7e72bd56725f318013ac1d6d0fbbcdd9a))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @aws-sdk/client-mediastore-data
|
|
@@ -403,10 +403,10 @@ const deserializeAws_restJson1ItemList = (output, context) => {
|
|
|
403
403
|
return retVal;
|
|
404
404
|
};
|
|
405
405
|
const deserializeMetadata = (output) => {
|
|
406
|
-
var _a;
|
|
406
|
+
var _a, _b;
|
|
407
407
|
return ({
|
|
408
408
|
httpStatusCode: output.statusCode,
|
|
409
|
-
requestId: (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"],
|
|
409
|
+
requestId: (_b = (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"]) !== null && _b !== void 0 ? _b : output.headers["x-amz-request-id"],
|
|
410
410
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
411
411
|
cfId: output.headers["x-amz-cf-id"],
|
|
412
412
|
});
|
|
@@ -1,78 +1,85 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { DeleteObjectCommand, } from "./commands/DeleteObjectCommand";
|
|
2
3
|
import { DescribeObjectCommand, } from "./commands/DescribeObjectCommand";
|
|
3
4
|
import { GetObjectCommand } from "./commands/GetObjectCommand";
|
|
4
5
|
import { ListItemsCommand } from "./commands/ListItemsCommand";
|
|
5
6
|
import { PutObjectCommand } from "./commands/PutObjectCommand";
|
|
6
7
|
import { MediaStoreDataClient } from "./MediaStoreDataClient";
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
var MediaStoreData = (function (_super) {
|
|
9
|
+
__extends(MediaStoreData, _super);
|
|
10
|
+
function MediaStoreData() {
|
|
11
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
12
|
+
}
|
|
13
|
+
MediaStoreData.prototype.deleteObject = function (args, optionsOrCb, cb) {
|
|
14
|
+
var command = new DeleteObjectCommand(args);
|
|
10
15
|
if (typeof optionsOrCb === "function") {
|
|
11
16
|
this.send(command, optionsOrCb);
|
|
12
17
|
}
|
|
13
18
|
else if (typeof cb === "function") {
|
|
14
19
|
if (typeof optionsOrCb !== "object")
|
|
15
|
-
throw new Error(
|
|
20
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
16
21
|
this.send(command, optionsOrCb || {}, cb);
|
|
17
22
|
}
|
|
18
23
|
else {
|
|
19
24
|
return this.send(command, optionsOrCb);
|
|
20
25
|
}
|
|
21
|
-
}
|
|
22
|
-
describeObject(args, optionsOrCb, cb) {
|
|
23
|
-
|
|
26
|
+
};
|
|
27
|
+
MediaStoreData.prototype.describeObject = function (args, optionsOrCb, cb) {
|
|
28
|
+
var command = new DescribeObjectCommand(args);
|
|
24
29
|
if (typeof optionsOrCb === "function") {
|
|
25
30
|
this.send(command, optionsOrCb);
|
|
26
31
|
}
|
|
27
32
|
else if (typeof cb === "function") {
|
|
28
33
|
if (typeof optionsOrCb !== "object")
|
|
29
|
-
throw new Error(
|
|
34
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
30
35
|
this.send(command, optionsOrCb || {}, cb);
|
|
31
36
|
}
|
|
32
37
|
else {
|
|
33
38
|
return this.send(command, optionsOrCb);
|
|
34
39
|
}
|
|
35
|
-
}
|
|
36
|
-
getObject(args, optionsOrCb, cb) {
|
|
37
|
-
|
|
40
|
+
};
|
|
41
|
+
MediaStoreData.prototype.getObject = function (args, optionsOrCb, cb) {
|
|
42
|
+
var command = new GetObjectCommand(args);
|
|
38
43
|
if (typeof optionsOrCb === "function") {
|
|
39
44
|
this.send(command, optionsOrCb);
|
|
40
45
|
}
|
|
41
46
|
else if (typeof cb === "function") {
|
|
42
47
|
if (typeof optionsOrCb !== "object")
|
|
43
|
-
throw new Error(
|
|
48
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
44
49
|
this.send(command, optionsOrCb || {}, cb);
|
|
45
50
|
}
|
|
46
51
|
else {
|
|
47
52
|
return this.send(command, optionsOrCb);
|
|
48
53
|
}
|
|
49
|
-
}
|
|
50
|
-
listItems(args, optionsOrCb, cb) {
|
|
51
|
-
|
|
54
|
+
};
|
|
55
|
+
MediaStoreData.prototype.listItems = function (args, optionsOrCb, cb) {
|
|
56
|
+
var command = new ListItemsCommand(args);
|
|
52
57
|
if (typeof optionsOrCb === "function") {
|
|
53
58
|
this.send(command, optionsOrCb);
|
|
54
59
|
}
|
|
55
60
|
else if (typeof cb === "function") {
|
|
56
61
|
if (typeof optionsOrCb !== "object")
|
|
57
|
-
throw new Error(
|
|
62
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
58
63
|
this.send(command, optionsOrCb || {}, cb);
|
|
59
64
|
}
|
|
60
65
|
else {
|
|
61
66
|
return this.send(command, optionsOrCb);
|
|
62
67
|
}
|
|
63
|
-
}
|
|
64
|
-
putObject(args, optionsOrCb, cb) {
|
|
65
|
-
|
|
68
|
+
};
|
|
69
|
+
MediaStoreData.prototype.putObject = function (args, optionsOrCb, cb) {
|
|
70
|
+
var command = new PutObjectCommand(args);
|
|
66
71
|
if (typeof optionsOrCb === "function") {
|
|
67
72
|
this.send(command, optionsOrCb);
|
|
68
73
|
}
|
|
69
74
|
else if (typeof cb === "function") {
|
|
70
75
|
if (typeof optionsOrCb !== "object")
|
|
71
|
-
throw new Error(
|
|
76
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
72
77
|
this.send(command, optionsOrCb || {}, cb);
|
|
73
78
|
}
|
|
74
79
|
else {
|
|
75
80
|
return this.send(command, optionsOrCb);
|
|
76
81
|
}
|
|
77
|
-
}
|
|
78
|
-
|
|
82
|
+
};
|
|
83
|
+
return MediaStoreData;
|
|
84
|
+
}(MediaStoreDataClient));
|
|
85
|
+
export { MediaStoreData };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
|
|
2
3
|
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
|
|
3
4
|
import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
|
|
@@ -8,26 +9,31 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
|
|
|
8
9
|
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
9
10
|
import { Client as __Client, } from "@aws-sdk/smithy-client";
|
|
10
11
|
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
12
|
+
var MediaStoreDataClient = (function (_super) {
|
|
13
|
+
__extends(MediaStoreDataClient, _super);
|
|
14
|
+
function MediaStoreDataClient(configuration) {
|
|
15
|
+
var _this = this;
|
|
16
|
+
var _config_0 = __getRuntimeConfig(configuration);
|
|
17
|
+
var _config_1 = resolveRegionConfig(_config_0);
|
|
18
|
+
var _config_2 = resolveEndpointsConfig(_config_1);
|
|
19
|
+
var _config_3 = resolveRetryConfig(_config_2);
|
|
20
|
+
var _config_4 = resolveHostHeaderConfig(_config_3);
|
|
21
|
+
var _config_5 = resolveAwsAuthConfig(_config_4);
|
|
22
|
+
var _config_6 = resolveUserAgentConfig(_config_5);
|
|
23
|
+
_this = _super.call(this, _config_6) || this;
|
|
24
|
+
_this.config = _config_6;
|
|
25
|
+
_this.middlewareStack.use(getRetryPlugin(_this.config));
|
|
26
|
+
_this.middlewareStack.use(getContentLengthPlugin(_this.config));
|
|
27
|
+
_this.middlewareStack.use(getHostHeaderPlugin(_this.config));
|
|
28
|
+
_this.middlewareStack.use(getLoggerPlugin(_this.config));
|
|
29
|
+
_this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
|
|
30
|
+
_this.middlewareStack.use(getAwsAuthPlugin(_this.config));
|
|
31
|
+
_this.middlewareStack.use(getUserAgentPlugin(_this.config));
|
|
32
|
+
return _this;
|
|
29
33
|
}
|
|
30
|
-
destroy() {
|
|
31
|
-
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
+
MediaStoreDataClient.prototype.destroy = function () {
|
|
35
|
+
_super.prototype.destroy.call(this);
|
|
36
|
+
};
|
|
37
|
+
return MediaStoreDataClient;
|
|
38
|
+
}(__Client));
|
|
39
|
+
export { MediaStoreDataClient };
|
|
@@ -1,32 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { DeleteObjectRequestFilterSensitiveLog, DeleteObjectResponseFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_restJson1DeleteObjectCommand, serializeAws_restJson1DeleteObjectCommand, } from "../protocols/Aws_restJson1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var DeleteObjectCommand = (function (_super) {
|
|
7
|
+
__extends(DeleteObjectCommand, _super);
|
|
8
|
+
function DeleteObjectCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
DeleteObjectCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
logger,
|
|
18
|
-
clientName,
|
|
19
|
-
commandName,
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "MediaStoreDataClient";
|
|
18
|
+
var commandName = "DeleteObjectCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: DeleteObjectRequestFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: DeleteObjectResponseFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
DeleteObjectCommand.prototype.serialize = function (input, context) {
|
|
27
32
|
return serializeAws_restJson1DeleteObjectCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
DeleteObjectCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_restJson1DeleteObjectCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return DeleteObjectCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { DeleteObjectCommand };
|
|
@@ -1,32 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { DescribeObjectRequestFilterSensitiveLog, DescribeObjectResponseFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_restJson1DescribeObjectCommand, serializeAws_restJson1DescribeObjectCommand, } from "../protocols/Aws_restJson1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var DescribeObjectCommand = (function (_super) {
|
|
7
|
+
__extends(DescribeObjectCommand, _super);
|
|
8
|
+
function DescribeObjectCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
DescribeObjectCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
logger,
|
|
18
|
-
clientName,
|
|
19
|
-
commandName,
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "MediaStoreDataClient";
|
|
18
|
+
var commandName = "DescribeObjectCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: DescribeObjectRequestFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: DescribeObjectResponseFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
DescribeObjectCommand.prototype.serialize = function (input, context) {
|
|
27
32
|
return serializeAws_restJson1DescribeObjectCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
DescribeObjectCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_restJson1DescribeObjectCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return DescribeObjectCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { DescribeObjectCommand };
|
|
@@ -1,32 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { GetObjectRequestFilterSensitiveLog, GetObjectResponseFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_restJson1GetObjectCommand, serializeAws_restJson1GetObjectCommand, } from "../protocols/Aws_restJson1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var GetObjectCommand = (function (_super) {
|
|
7
|
+
__extends(GetObjectCommand, _super);
|
|
8
|
+
function GetObjectCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
GetObjectCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
logger,
|
|
18
|
-
clientName,
|
|
19
|
-
commandName,
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "MediaStoreDataClient";
|
|
18
|
+
var commandName = "GetObjectCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: GetObjectRequestFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: GetObjectResponseFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
GetObjectCommand.prototype.serialize = function (input, context) {
|
|
27
32
|
return serializeAws_restJson1GetObjectCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
GetObjectCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_restJson1GetObjectCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return GetObjectCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { GetObjectCommand };
|
|
@@ -1,32 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { ListItemsRequestFilterSensitiveLog, ListItemsResponseFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_restJson1ListItemsCommand, serializeAws_restJson1ListItemsCommand, } from "../protocols/Aws_restJson1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var ListItemsCommand = (function (_super) {
|
|
7
|
+
__extends(ListItemsCommand, _super);
|
|
8
|
+
function ListItemsCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
ListItemsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
logger,
|
|
18
|
-
clientName,
|
|
19
|
-
commandName,
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "MediaStoreDataClient";
|
|
18
|
+
var commandName = "ListItemsCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: ListItemsRequestFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: ListItemsResponseFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
ListItemsCommand.prototype.serialize = function (input, context) {
|
|
27
32
|
return serializeAws_restJson1ListItemsCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
ListItemsCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_restJson1ListItemsCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return ListItemsCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { ListItemsCommand };
|
|
@@ -1,32 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { PutObjectRequestFilterSensitiveLog, PutObjectResponseFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_restJson1PutObjectCommand, serializeAws_restJson1PutObjectCommand, } from "../protocols/Aws_restJson1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var PutObjectCommand = (function (_super) {
|
|
7
|
+
__extends(PutObjectCommand, _super);
|
|
8
|
+
function PutObjectCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
PutObjectCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
logger,
|
|
18
|
-
clientName,
|
|
19
|
-
commandName,
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "MediaStoreDataClient";
|
|
18
|
+
var commandName = "PutObjectCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: PutObjectRequestFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: PutObjectResponseFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
PutObjectCommand.prototype.serialize = function (input, context) {
|
|
27
32
|
return serializeAws_restJson1PutObjectCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
PutObjectCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_restJson1PutObjectCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return PutObjectCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { PutObjectCommand };
|
package/dist-es/endpoints.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { __assign, __awaiter, __generator } from "tslib";
|
|
1
2
|
import { getRegionInfo } from "@aws-sdk/config-resolver";
|
|
2
|
-
|
|
3
|
-
|
|
3
|
+
var regionHash = {};
|
|
4
|
+
var partitionHash = {
|
|
4
5
|
aws: {
|
|
5
6
|
regions: [
|
|
6
7
|
"af-south-1",
|
|
@@ -120,9 +121,8 @@ const partitionHash = {
|
|
|
120
121
|
],
|
|
121
122
|
},
|
|
122
123
|
};
|
|
123
|
-
export
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
});
|
|
124
|
+
export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {
|
|
125
|
+
return __generator(this, function (_a) {
|
|
126
|
+
return [2, getRegionInfo(region, __assign(__assign({}, options), { signingService: "mediastore", regionHash: regionHash, partitionHash: partitionHash }))];
|
|
127
|
+
});
|
|
128
|
+
}); };
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
var MediaStoreDataServiceException = (function (_super) {
|
|
4
|
+
__extends(MediaStoreDataServiceException, _super);
|
|
5
|
+
function MediaStoreDataServiceException(options) {
|
|
6
|
+
var _this = _super.call(this, options) || this;
|
|
7
|
+
Object.setPrototypeOf(_this, MediaStoreDataServiceException.prototype);
|
|
8
|
+
return _this;
|
|
6
9
|
}
|
|
7
|
-
|
|
10
|
+
return MediaStoreDataServiceException;
|
|
11
|
+
}(__ServiceException));
|
|
12
|
+
export { MediaStoreDataServiceException };
|