@aws-sdk/client-mediastore 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_json1_1.js +2 -2
- package/dist-es/MediaStore.js +93 -86
- package/dist-es/MediaStoreClient.js +28 -22
- package/dist-es/commands/CreateContainerCommand.js +28 -21
- package/dist-es/commands/DeleteContainerCommand.js +28 -21
- package/dist-es/commands/DeleteContainerPolicyCommand.js +28 -21
- package/dist-es/commands/DeleteCorsPolicyCommand.js +28 -21
- package/dist-es/commands/DeleteLifecyclePolicyCommand.js +28 -21
- package/dist-es/commands/DeleteMetricPolicyCommand.js +28 -21
- package/dist-es/commands/DescribeContainerCommand.js +28 -21
- package/dist-es/commands/GetContainerPolicyCommand.js +28 -21
- package/dist-es/commands/GetCorsPolicyCommand.js +28 -21
- package/dist-es/commands/GetLifecyclePolicyCommand.js +28 -21
- package/dist-es/commands/GetMetricPolicyCommand.js +28 -21
- package/dist-es/commands/ListContainersCommand.js +28 -21
- package/dist-es/commands/ListTagsForResourceCommand.js +28 -21
- package/dist-es/commands/PutContainerPolicyCommand.js +28 -21
- package/dist-es/commands/PutCorsPolicyCommand.js +28 -21
- package/dist-es/commands/PutLifecyclePolicyCommand.js +28 -21
- package/dist-es/commands/PutMetricPolicyCommand.js +28 -21
- package/dist-es/commands/StartAccessLoggingCommand.js +28 -21
- package/dist-es/commands/StopAccessLoggingCommand.js +28 -21
- package/dist-es/commands/TagResourceCommand.js +28 -21
- package/dist-es/commands/UntagResourceCommand.js +28 -21
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/MediaStoreServiceException.js +10 -5
- package/dist-es/models/models_0.js +120 -213
- package/dist-es/pagination/ListContainersPaginator.js +68 -25
- package/dist-es/protocols/Aws_json1_1.js +1757 -1331
- 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
|
|
@@ -1570,10 +1570,10 @@ const deserializeAws_json1_1UntagResourceOutput = (output, context) => {
|
|
|
1570
1570
|
return {};
|
|
1571
1571
|
};
|
|
1572
1572
|
const deserializeMetadata = (output) => {
|
|
1573
|
-
var _a;
|
|
1573
|
+
var _a, _b;
|
|
1574
1574
|
return ({
|
|
1575
1575
|
httpStatusCode: output.statusCode,
|
|
1576
|
-
requestId: (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"],
|
|
1576
|
+
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"],
|
|
1577
1577
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1578
1578
|
cfId: output.headers["x-amz-cf-id"],
|
|
1579
1579
|
});
|
package/dist-es/MediaStore.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { CreateContainerCommand, } from "./commands/CreateContainerCommand";
|
|
2
3
|
import { DeleteContainerCommand, } from "./commands/DeleteContainerCommand";
|
|
3
4
|
import { DeleteContainerPolicyCommand, } from "./commands/DeleteContainerPolicyCommand";
|
|
@@ -20,299 +21,305 @@ import { StopAccessLoggingCommand, } from "./commands/StopAccessLoggingCommand";
|
|
|
20
21
|
import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
21
22
|
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
22
23
|
import { MediaStoreClient } from "./MediaStoreClient";
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
var MediaStore = (function (_super) {
|
|
25
|
+
__extends(MediaStore, _super);
|
|
26
|
+
function MediaStore() {
|
|
27
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
28
|
+
}
|
|
29
|
+
MediaStore.prototype.createContainer = function (args, optionsOrCb, cb) {
|
|
30
|
+
var command = new CreateContainerCommand(args);
|
|
26
31
|
if (typeof optionsOrCb === "function") {
|
|
27
32
|
this.send(command, optionsOrCb);
|
|
28
33
|
}
|
|
29
34
|
else if (typeof cb === "function") {
|
|
30
35
|
if (typeof optionsOrCb !== "object")
|
|
31
|
-
throw new Error(
|
|
36
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
32
37
|
this.send(command, optionsOrCb || {}, cb);
|
|
33
38
|
}
|
|
34
39
|
else {
|
|
35
40
|
return this.send(command, optionsOrCb);
|
|
36
41
|
}
|
|
37
|
-
}
|
|
38
|
-
deleteContainer(args, optionsOrCb, cb) {
|
|
39
|
-
|
|
42
|
+
};
|
|
43
|
+
MediaStore.prototype.deleteContainer = function (args, optionsOrCb, cb) {
|
|
44
|
+
var command = new DeleteContainerCommand(args);
|
|
40
45
|
if (typeof optionsOrCb === "function") {
|
|
41
46
|
this.send(command, optionsOrCb);
|
|
42
47
|
}
|
|
43
48
|
else if (typeof cb === "function") {
|
|
44
49
|
if (typeof optionsOrCb !== "object")
|
|
45
|
-
throw new Error(
|
|
50
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
46
51
|
this.send(command, optionsOrCb || {}, cb);
|
|
47
52
|
}
|
|
48
53
|
else {
|
|
49
54
|
return this.send(command, optionsOrCb);
|
|
50
55
|
}
|
|
51
|
-
}
|
|
52
|
-
deleteContainerPolicy(args, optionsOrCb, cb) {
|
|
53
|
-
|
|
56
|
+
};
|
|
57
|
+
MediaStore.prototype.deleteContainerPolicy = function (args, optionsOrCb, cb) {
|
|
58
|
+
var command = new DeleteContainerPolicyCommand(args);
|
|
54
59
|
if (typeof optionsOrCb === "function") {
|
|
55
60
|
this.send(command, optionsOrCb);
|
|
56
61
|
}
|
|
57
62
|
else if (typeof cb === "function") {
|
|
58
63
|
if (typeof optionsOrCb !== "object")
|
|
59
|
-
throw new Error(
|
|
64
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
60
65
|
this.send(command, optionsOrCb || {}, cb);
|
|
61
66
|
}
|
|
62
67
|
else {
|
|
63
68
|
return this.send(command, optionsOrCb);
|
|
64
69
|
}
|
|
65
|
-
}
|
|
66
|
-
deleteCorsPolicy(args, optionsOrCb, cb) {
|
|
67
|
-
|
|
70
|
+
};
|
|
71
|
+
MediaStore.prototype.deleteCorsPolicy = function (args, optionsOrCb, cb) {
|
|
72
|
+
var command = new DeleteCorsPolicyCommand(args);
|
|
68
73
|
if (typeof optionsOrCb === "function") {
|
|
69
74
|
this.send(command, optionsOrCb);
|
|
70
75
|
}
|
|
71
76
|
else if (typeof cb === "function") {
|
|
72
77
|
if (typeof optionsOrCb !== "object")
|
|
73
|
-
throw new Error(
|
|
78
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
74
79
|
this.send(command, optionsOrCb || {}, cb);
|
|
75
80
|
}
|
|
76
81
|
else {
|
|
77
82
|
return this.send(command, optionsOrCb);
|
|
78
83
|
}
|
|
79
|
-
}
|
|
80
|
-
deleteLifecyclePolicy(args, optionsOrCb, cb) {
|
|
81
|
-
|
|
84
|
+
};
|
|
85
|
+
MediaStore.prototype.deleteLifecyclePolicy = function (args, optionsOrCb, cb) {
|
|
86
|
+
var command = new DeleteLifecyclePolicyCommand(args);
|
|
82
87
|
if (typeof optionsOrCb === "function") {
|
|
83
88
|
this.send(command, optionsOrCb);
|
|
84
89
|
}
|
|
85
90
|
else if (typeof cb === "function") {
|
|
86
91
|
if (typeof optionsOrCb !== "object")
|
|
87
|
-
throw new Error(
|
|
92
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
88
93
|
this.send(command, optionsOrCb || {}, cb);
|
|
89
94
|
}
|
|
90
95
|
else {
|
|
91
96
|
return this.send(command, optionsOrCb);
|
|
92
97
|
}
|
|
93
|
-
}
|
|
94
|
-
deleteMetricPolicy(args, optionsOrCb, cb) {
|
|
95
|
-
|
|
98
|
+
};
|
|
99
|
+
MediaStore.prototype.deleteMetricPolicy = function (args, optionsOrCb, cb) {
|
|
100
|
+
var command = new DeleteMetricPolicyCommand(args);
|
|
96
101
|
if (typeof optionsOrCb === "function") {
|
|
97
102
|
this.send(command, optionsOrCb);
|
|
98
103
|
}
|
|
99
104
|
else if (typeof cb === "function") {
|
|
100
105
|
if (typeof optionsOrCb !== "object")
|
|
101
|
-
throw new Error(
|
|
106
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
102
107
|
this.send(command, optionsOrCb || {}, cb);
|
|
103
108
|
}
|
|
104
109
|
else {
|
|
105
110
|
return this.send(command, optionsOrCb);
|
|
106
111
|
}
|
|
107
|
-
}
|
|
108
|
-
describeContainer(args, optionsOrCb, cb) {
|
|
109
|
-
|
|
112
|
+
};
|
|
113
|
+
MediaStore.prototype.describeContainer = function (args, optionsOrCb, cb) {
|
|
114
|
+
var command = new DescribeContainerCommand(args);
|
|
110
115
|
if (typeof optionsOrCb === "function") {
|
|
111
116
|
this.send(command, optionsOrCb);
|
|
112
117
|
}
|
|
113
118
|
else if (typeof cb === "function") {
|
|
114
119
|
if (typeof optionsOrCb !== "object")
|
|
115
|
-
throw new Error(
|
|
120
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
116
121
|
this.send(command, optionsOrCb || {}, cb);
|
|
117
122
|
}
|
|
118
123
|
else {
|
|
119
124
|
return this.send(command, optionsOrCb);
|
|
120
125
|
}
|
|
121
|
-
}
|
|
122
|
-
getContainerPolicy(args, optionsOrCb, cb) {
|
|
123
|
-
|
|
126
|
+
};
|
|
127
|
+
MediaStore.prototype.getContainerPolicy = function (args, optionsOrCb, cb) {
|
|
128
|
+
var command = new GetContainerPolicyCommand(args);
|
|
124
129
|
if (typeof optionsOrCb === "function") {
|
|
125
130
|
this.send(command, optionsOrCb);
|
|
126
131
|
}
|
|
127
132
|
else if (typeof cb === "function") {
|
|
128
133
|
if (typeof optionsOrCb !== "object")
|
|
129
|
-
throw new Error(
|
|
134
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
130
135
|
this.send(command, optionsOrCb || {}, cb);
|
|
131
136
|
}
|
|
132
137
|
else {
|
|
133
138
|
return this.send(command, optionsOrCb);
|
|
134
139
|
}
|
|
135
|
-
}
|
|
136
|
-
getCorsPolicy(args, optionsOrCb, cb) {
|
|
137
|
-
|
|
140
|
+
};
|
|
141
|
+
MediaStore.prototype.getCorsPolicy = function (args, optionsOrCb, cb) {
|
|
142
|
+
var command = new GetCorsPolicyCommand(args);
|
|
138
143
|
if (typeof optionsOrCb === "function") {
|
|
139
144
|
this.send(command, optionsOrCb);
|
|
140
145
|
}
|
|
141
146
|
else if (typeof cb === "function") {
|
|
142
147
|
if (typeof optionsOrCb !== "object")
|
|
143
|
-
throw new Error(
|
|
148
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
144
149
|
this.send(command, optionsOrCb || {}, cb);
|
|
145
150
|
}
|
|
146
151
|
else {
|
|
147
152
|
return this.send(command, optionsOrCb);
|
|
148
153
|
}
|
|
149
|
-
}
|
|
150
|
-
getLifecyclePolicy(args, optionsOrCb, cb) {
|
|
151
|
-
|
|
154
|
+
};
|
|
155
|
+
MediaStore.prototype.getLifecyclePolicy = function (args, optionsOrCb, cb) {
|
|
156
|
+
var command = new GetLifecyclePolicyCommand(args);
|
|
152
157
|
if (typeof optionsOrCb === "function") {
|
|
153
158
|
this.send(command, optionsOrCb);
|
|
154
159
|
}
|
|
155
160
|
else if (typeof cb === "function") {
|
|
156
161
|
if (typeof optionsOrCb !== "object")
|
|
157
|
-
throw new Error(
|
|
162
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
158
163
|
this.send(command, optionsOrCb || {}, cb);
|
|
159
164
|
}
|
|
160
165
|
else {
|
|
161
166
|
return this.send(command, optionsOrCb);
|
|
162
167
|
}
|
|
163
|
-
}
|
|
164
|
-
getMetricPolicy(args, optionsOrCb, cb) {
|
|
165
|
-
|
|
168
|
+
};
|
|
169
|
+
MediaStore.prototype.getMetricPolicy = function (args, optionsOrCb, cb) {
|
|
170
|
+
var command = new GetMetricPolicyCommand(args);
|
|
166
171
|
if (typeof optionsOrCb === "function") {
|
|
167
172
|
this.send(command, optionsOrCb);
|
|
168
173
|
}
|
|
169
174
|
else if (typeof cb === "function") {
|
|
170
175
|
if (typeof optionsOrCb !== "object")
|
|
171
|
-
throw new Error(
|
|
176
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
172
177
|
this.send(command, optionsOrCb || {}, cb);
|
|
173
178
|
}
|
|
174
179
|
else {
|
|
175
180
|
return this.send(command, optionsOrCb);
|
|
176
181
|
}
|
|
177
|
-
}
|
|
178
|
-
listContainers(args, optionsOrCb, cb) {
|
|
179
|
-
|
|
182
|
+
};
|
|
183
|
+
MediaStore.prototype.listContainers = function (args, optionsOrCb, cb) {
|
|
184
|
+
var command = new ListContainersCommand(args);
|
|
180
185
|
if (typeof optionsOrCb === "function") {
|
|
181
186
|
this.send(command, optionsOrCb);
|
|
182
187
|
}
|
|
183
188
|
else if (typeof cb === "function") {
|
|
184
189
|
if (typeof optionsOrCb !== "object")
|
|
185
|
-
throw new Error(
|
|
190
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
186
191
|
this.send(command, optionsOrCb || {}, cb);
|
|
187
192
|
}
|
|
188
193
|
else {
|
|
189
194
|
return this.send(command, optionsOrCb);
|
|
190
195
|
}
|
|
191
|
-
}
|
|
192
|
-
listTagsForResource(args, optionsOrCb, cb) {
|
|
193
|
-
|
|
196
|
+
};
|
|
197
|
+
MediaStore.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
|
|
198
|
+
var command = new ListTagsForResourceCommand(args);
|
|
194
199
|
if (typeof optionsOrCb === "function") {
|
|
195
200
|
this.send(command, optionsOrCb);
|
|
196
201
|
}
|
|
197
202
|
else if (typeof cb === "function") {
|
|
198
203
|
if (typeof optionsOrCb !== "object")
|
|
199
|
-
throw new Error(
|
|
204
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
200
205
|
this.send(command, optionsOrCb || {}, cb);
|
|
201
206
|
}
|
|
202
207
|
else {
|
|
203
208
|
return this.send(command, optionsOrCb);
|
|
204
209
|
}
|
|
205
|
-
}
|
|
206
|
-
putContainerPolicy(args, optionsOrCb, cb) {
|
|
207
|
-
|
|
210
|
+
};
|
|
211
|
+
MediaStore.prototype.putContainerPolicy = function (args, optionsOrCb, cb) {
|
|
212
|
+
var command = new PutContainerPolicyCommand(args);
|
|
208
213
|
if (typeof optionsOrCb === "function") {
|
|
209
214
|
this.send(command, optionsOrCb);
|
|
210
215
|
}
|
|
211
216
|
else if (typeof cb === "function") {
|
|
212
217
|
if (typeof optionsOrCb !== "object")
|
|
213
|
-
throw new Error(
|
|
218
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
214
219
|
this.send(command, optionsOrCb || {}, cb);
|
|
215
220
|
}
|
|
216
221
|
else {
|
|
217
222
|
return this.send(command, optionsOrCb);
|
|
218
223
|
}
|
|
219
|
-
}
|
|
220
|
-
putCorsPolicy(args, optionsOrCb, cb) {
|
|
221
|
-
|
|
224
|
+
};
|
|
225
|
+
MediaStore.prototype.putCorsPolicy = function (args, optionsOrCb, cb) {
|
|
226
|
+
var command = new PutCorsPolicyCommand(args);
|
|
222
227
|
if (typeof optionsOrCb === "function") {
|
|
223
228
|
this.send(command, optionsOrCb);
|
|
224
229
|
}
|
|
225
230
|
else if (typeof cb === "function") {
|
|
226
231
|
if (typeof optionsOrCb !== "object")
|
|
227
|
-
throw new Error(
|
|
232
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
228
233
|
this.send(command, optionsOrCb || {}, cb);
|
|
229
234
|
}
|
|
230
235
|
else {
|
|
231
236
|
return this.send(command, optionsOrCb);
|
|
232
237
|
}
|
|
233
|
-
}
|
|
234
|
-
putLifecyclePolicy(args, optionsOrCb, cb) {
|
|
235
|
-
|
|
238
|
+
};
|
|
239
|
+
MediaStore.prototype.putLifecyclePolicy = function (args, optionsOrCb, cb) {
|
|
240
|
+
var command = new PutLifecyclePolicyCommand(args);
|
|
236
241
|
if (typeof optionsOrCb === "function") {
|
|
237
242
|
this.send(command, optionsOrCb);
|
|
238
243
|
}
|
|
239
244
|
else if (typeof cb === "function") {
|
|
240
245
|
if (typeof optionsOrCb !== "object")
|
|
241
|
-
throw new Error(
|
|
246
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
242
247
|
this.send(command, optionsOrCb || {}, cb);
|
|
243
248
|
}
|
|
244
249
|
else {
|
|
245
250
|
return this.send(command, optionsOrCb);
|
|
246
251
|
}
|
|
247
|
-
}
|
|
248
|
-
putMetricPolicy(args, optionsOrCb, cb) {
|
|
249
|
-
|
|
252
|
+
};
|
|
253
|
+
MediaStore.prototype.putMetricPolicy = function (args, optionsOrCb, cb) {
|
|
254
|
+
var command = new PutMetricPolicyCommand(args);
|
|
250
255
|
if (typeof optionsOrCb === "function") {
|
|
251
256
|
this.send(command, optionsOrCb);
|
|
252
257
|
}
|
|
253
258
|
else if (typeof cb === "function") {
|
|
254
259
|
if (typeof optionsOrCb !== "object")
|
|
255
|
-
throw new Error(
|
|
260
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
256
261
|
this.send(command, optionsOrCb || {}, cb);
|
|
257
262
|
}
|
|
258
263
|
else {
|
|
259
264
|
return this.send(command, optionsOrCb);
|
|
260
265
|
}
|
|
261
|
-
}
|
|
262
|
-
startAccessLogging(args, optionsOrCb, cb) {
|
|
263
|
-
|
|
266
|
+
};
|
|
267
|
+
MediaStore.prototype.startAccessLogging = function (args, optionsOrCb, cb) {
|
|
268
|
+
var command = new StartAccessLoggingCommand(args);
|
|
264
269
|
if (typeof optionsOrCb === "function") {
|
|
265
270
|
this.send(command, optionsOrCb);
|
|
266
271
|
}
|
|
267
272
|
else if (typeof cb === "function") {
|
|
268
273
|
if (typeof optionsOrCb !== "object")
|
|
269
|
-
throw new Error(
|
|
274
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
270
275
|
this.send(command, optionsOrCb || {}, cb);
|
|
271
276
|
}
|
|
272
277
|
else {
|
|
273
278
|
return this.send(command, optionsOrCb);
|
|
274
279
|
}
|
|
275
|
-
}
|
|
276
|
-
stopAccessLogging(args, optionsOrCb, cb) {
|
|
277
|
-
|
|
280
|
+
};
|
|
281
|
+
MediaStore.prototype.stopAccessLogging = function (args, optionsOrCb, cb) {
|
|
282
|
+
var command = new StopAccessLoggingCommand(args);
|
|
278
283
|
if (typeof optionsOrCb === "function") {
|
|
279
284
|
this.send(command, optionsOrCb);
|
|
280
285
|
}
|
|
281
286
|
else if (typeof cb === "function") {
|
|
282
287
|
if (typeof optionsOrCb !== "object")
|
|
283
|
-
throw new Error(
|
|
288
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
284
289
|
this.send(command, optionsOrCb || {}, cb);
|
|
285
290
|
}
|
|
286
291
|
else {
|
|
287
292
|
return this.send(command, optionsOrCb);
|
|
288
293
|
}
|
|
289
|
-
}
|
|
290
|
-
tagResource(args, optionsOrCb, cb) {
|
|
291
|
-
|
|
294
|
+
};
|
|
295
|
+
MediaStore.prototype.tagResource = function (args, optionsOrCb, cb) {
|
|
296
|
+
var command = new TagResourceCommand(args);
|
|
292
297
|
if (typeof optionsOrCb === "function") {
|
|
293
298
|
this.send(command, optionsOrCb);
|
|
294
299
|
}
|
|
295
300
|
else if (typeof cb === "function") {
|
|
296
301
|
if (typeof optionsOrCb !== "object")
|
|
297
|
-
throw new Error(
|
|
302
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
298
303
|
this.send(command, optionsOrCb || {}, cb);
|
|
299
304
|
}
|
|
300
305
|
else {
|
|
301
306
|
return this.send(command, optionsOrCb);
|
|
302
307
|
}
|
|
303
|
-
}
|
|
304
|
-
untagResource(args, optionsOrCb, cb) {
|
|
305
|
-
|
|
308
|
+
};
|
|
309
|
+
MediaStore.prototype.untagResource = function (args, optionsOrCb, cb) {
|
|
310
|
+
var command = new UntagResourceCommand(args);
|
|
306
311
|
if (typeof optionsOrCb === "function") {
|
|
307
312
|
this.send(command, optionsOrCb);
|
|
308
313
|
}
|
|
309
314
|
else if (typeof cb === "function") {
|
|
310
315
|
if (typeof optionsOrCb !== "object")
|
|
311
|
-
throw new Error(
|
|
316
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
312
317
|
this.send(command, optionsOrCb || {}, cb);
|
|
313
318
|
}
|
|
314
319
|
else {
|
|
315
320
|
return this.send(command, optionsOrCb);
|
|
316
321
|
}
|
|
317
|
-
}
|
|
318
|
-
|
|
322
|
+
};
|
|
323
|
+
return MediaStore;
|
|
324
|
+
}(MediaStoreClient));
|
|
325
|
+
export { MediaStore };
|
|
@@ -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 MediaStoreClient = (function (_super) {
|
|
13
|
+
__extends(MediaStoreClient, _super);
|
|
14
|
+
function MediaStoreClient(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
|
+
MediaStoreClient.prototype.destroy = function () {
|
|
35
|
+
_super.prototype.destroy.call(this);
|
|
36
|
+
};
|
|
37
|
+
return MediaStoreClient;
|
|
38
|
+
}(__Client));
|
|
39
|
+
export { MediaStoreClient };
|
|
@@ -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 { CreateContainerInputFilterSensitiveLog, CreateContainerOutputFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_json1_1CreateContainerCommand, serializeAws_json1_1CreateContainerCommand, } from "../protocols/Aws_json1_1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var CreateContainerCommand = (function (_super) {
|
|
7
|
+
__extends(CreateContainerCommand, _super);
|
|
8
|
+
function CreateContainerCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
CreateContainerCommand.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 = "MediaStoreClient";
|
|
18
|
+
var commandName = "CreateContainerCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: CreateContainerInputFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: CreateContainerOutputFilterSensitiveLog,
|
|
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
|
+
CreateContainerCommand.prototype.serialize = function (input, context) {
|
|
27
32
|
return serializeAws_json1_1CreateContainerCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
CreateContainerCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_json1_1CreateContainerCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return CreateContainerCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { CreateContainerCommand };
|
|
@@ -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 { DeleteContainerInputFilterSensitiveLog, DeleteContainerOutputFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_json1_1DeleteContainerCommand, serializeAws_json1_1DeleteContainerCommand, } from "../protocols/Aws_json1_1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var DeleteContainerCommand = (function (_super) {
|
|
7
|
+
__extends(DeleteContainerCommand, _super);
|
|
8
|
+
function DeleteContainerCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
DeleteContainerCommand.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 = "MediaStoreClient";
|
|
18
|
+
var commandName = "DeleteContainerCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: DeleteContainerInputFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: DeleteContainerOutputFilterSensitiveLog,
|
|
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
|
+
DeleteContainerCommand.prototype.serialize = function (input, context) {
|
|
27
32
|
return serializeAws_json1_1DeleteContainerCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
DeleteContainerCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_json1_1DeleteContainerCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return DeleteContainerCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { DeleteContainerCommand };
|