@aws-sdk/client-mediastore 3.315.0 → 3.319.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/MediaStore.js +25 -294
- package/dist-es/MediaStore.js +25 -294
- package/dist-types/MediaStore.d.ts +29 -94
- package/dist-types/ts3.4/MediaStore.d.ts +4 -1
- package/package.json +8 -8
package/dist-cjs/MediaStore.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.MediaStore = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
4
5
|
const CreateContainerCommand_1 = require("./commands/CreateContainerCommand");
|
|
5
6
|
const DeleteContainerCommand_1 = require("./commands/DeleteContainerCommand");
|
|
6
7
|
const DeleteContainerPolicyCommand_1 = require("./commands/DeleteContainerPolicyCommand");
|
|
@@ -23,300 +24,30 @@ const StopAccessLoggingCommand_1 = require("./commands/StopAccessLoggingCommand"
|
|
|
23
24
|
const TagResourceCommand_1 = require("./commands/TagResourceCommand");
|
|
24
25
|
const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
|
|
25
26
|
const MediaStoreClient_1 = require("./MediaStoreClient");
|
|
27
|
+
const commands = {
|
|
28
|
+
CreateContainerCommand: CreateContainerCommand_1.CreateContainerCommand,
|
|
29
|
+
DeleteContainerCommand: DeleteContainerCommand_1.DeleteContainerCommand,
|
|
30
|
+
DeleteContainerPolicyCommand: DeleteContainerPolicyCommand_1.DeleteContainerPolicyCommand,
|
|
31
|
+
DeleteCorsPolicyCommand: DeleteCorsPolicyCommand_1.DeleteCorsPolicyCommand,
|
|
32
|
+
DeleteLifecyclePolicyCommand: DeleteLifecyclePolicyCommand_1.DeleteLifecyclePolicyCommand,
|
|
33
|
+
DeleteMetricPolicyCommand: DeleteMetricPolicyCommand_1.DeleteMetricPolicyCommand,
|
|
34
|
+
DescribeContainerCommand: DescribeContainerCommand_1.DescribeContainerCommand,
|
|
35
|
+
GetContainerPolicyCommand: GetContainerPolicyCommand_1.GetContainerPolicyCommand,
|
|
36
|
+
GetCorsPolicyCommand: GetCorsPolicyCommand_1.GetCorsPolicyCommand,
|
|
37
|
+
GetLifecyclePolicyCommand: GetLifecyclePolicyCommand_1.GetLifecyclePolicyCommand,
|
|
38
|
+
GetMetricPolicyCommand: GetMetricPolicyCommand_1.GetMetricPolicyCommand,
|
|
39
|
+
ListContainersCommand: ListContainersCommand_1.ListContainersCommand,
|
|
40
|
+
ListTagsForResourceCommand: ListTagsForResourceCommand_1.ListTagsForResourceCommand,
|
|
41
|
+
PutContainerPolicyCommand: PutContainerPolicyCommand_1.PutContainerPolicyCommand,
|
|
42
|
+
PutCorsPolicyCommand: PutCorsPolicyCommand_1.PutCorsPolicyCommand,
|
|
43
|
+
PutLifecyclePolicyCommand: PutLifecyclePolicyCommand_1.PutLifecyclePolicyCommand,
|
|
44
|
+
PutMetricPolicyCommand: PutMetricPolicyCommand_1.PutMetricPolicyCommand,
|
|
45
|
+
StartAccessLoggingCommand: StartAccessLoggingCommand_1.StartAccessLoggingCommand,
|
|
46
|
+
StopAccessLoggingCommand: StopAccessLoggingCommand_1.StopAccessLoggingCommand,
|
|
47
|
+
TagResourceCommand: TagResourceCommand_1.TagResourceCommand,
|
|
48
|
+
UntagResourceCommand: UntagResourceCommand_1.UntagResourceCommand,
|
|
49
|
+
};
|
|
26
50
|
class MediaStore extends MediaStoreClient_1.MediaStoreClient {
|
|
27
|
-
createContainer(args, optionsOrCb, cb) {
|
|
28
|
-
const command = new CreateContainerCommand_1.CreateContainerCommand(args);
|
|
29
|
-
if (typeof optionsOrCb === "function") {
|
|
30
|
-
this.send(command, optionsOrCb);
|
|
31
|
-
}
|
|
32
|
-
else if (typeof cb === "function") {
|
|
33
|
-
if (typeof optionsOrCb !== "object")
|
|
34
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
35
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
36
|
-
}
|
|
37
|
-
else {
|
|
38
|
-
return this.send(command, optionsOrCb);
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
deleteContainer(args, optionsOrCb, cb) {
|
|
42
|
-
const command = new DeleteContainerCommand_1.DeleteContainerCommand(args);
|
|
43
|
-
if (typeof optionsOrCb === "function") {
|
|
44
|
-
this.send(command, optionsOrCb);
|
|
45
|
-
}
|
|
46
|
-
else if (typeof cb === "function") {
|
|
47
|
-
if (typeof optionsOrCb !== "object")
|
|
48
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
49
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
50
|
-
}
|
|
51
|
-
else {
|
|
52
|
-
return this.send(command, optionsOrCb);
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
deleteContainerPolicy(args, optionsOrCb, cb) {
|
|
56
|
-
const command = new DeleteContainerPolicyCommand_1.DeleteContainerPolicyCommand(args);
|
|
57
|
-
if (typeof optionsOrCb === "function") {
|
|
58
|
-
this.send(command, optionsOrCb);
|
|
59
|
-
}
|
|
60
|
-
else if (typeof cb === "function") {
|
|
61
|
-
if (typeof optionsOrCb !== "object")
|
|
62
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
63
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
64
|
-
}
|
|
65
|
-
else {
|
|
66
|
-
return this.send(command, optionsOrCb);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
deleteCorsPolicy(args, optionsOrCb, cb) {
|
|
70
|
-
const command = new DeleteCorsPolicyCommand_1.DeleteCorsPolicyCommand(args);
|
|
71
|
-
if (typeof optionsOrCb === "function") {
|
|
72
|
-
this.send(command, optionsOrCb);
|
|
73
|
-
}
|
|
74
|
-
else if (typeof cb === "function") {
|
|
75
|
-
if (typeof optionsOrCb !== "object")
|
|
76
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
77
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
78
|
-
}
|
|
79
|
-
else {
|
|
80
|
-
return this.send(command, optionsOrCb);
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
deleteLifecyclePolicy(args, optionsOrCb, cb) {
|
|
84
|
-
const command = new DeleteLifecyclePolicyCommand_1.DeleteLifecyclePolicyCommand(args);
|
|
85
|
-
if (typeof optionsOrCb === "function") {
|
|
86
|
-
this.send(command, optionsOrCb);
|
|
87
|
-
}
|
|
88
|
-
else if (typeof cb === "function") {
|
|
89
|
-
if (typeof optionsOrCb !== "object")
|
|
90
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
91
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
92
|
-
}
|
|
93
|
-
else {
|
|
94
|
-
return this.send(command, optionsOrCb);
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
deleteMetricPolicy(args, optionsOrCb, cb) {
|
|
98
|
-
const command = new DeleteMetricPolicyCommand_1.DeleteMetricPolicyCommand(args);
|
|
99
|
-
if (typeof optionsOrCb === "function") {
|
|
100
|
-
this.send(command, optionsOrCb);
|
|
101
|
-
}
|
|
102
|
-
else if (typeof cb === "function") {
|
|
103
|
-
if (typeof optionsOrCb !== "object")
|
|
104
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
105
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
106
|
-
}
|
|
107
|
-
else {
|
|
108
|
-
return this.send(command, optionsOrCb);
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
describeContainer(args, optionsOrCb, cb) {
|
|
112
|
-
const command = new DescribeContainerCommand_1.DescribeContainerCommand(args);
|
|
113
|
-
if (typeof optionsOrCb === "function") {
|
|
114
|
-
this.send(command, optionsOrCb);
|
|
115
|
-
}
|
|
116
|
-
else if (typeof cb === "function") {
|
|
117
|
-
if (typeof optionsOrCb !== "object")
|
|
118
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
119
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
120
|
-
}
|
|
121
|
-
else {
|
|
122
|
-
return this.send(command, optionsOrCb);
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
getContainerPolicy(args, optionsOrCb, cb) {
|
|
126
|
-
const command = new GetContainerPolicyCommand_1.GetContainerPolicyCommand(args);
|
|
127
|
-
if (typeof optionsOrCb === "function") {
|
|
128
|
-
this.send(command, optionsOrCb);
|
|
129
|
-
}
|
|
130
|
-
else if (typeof cb === "function") {
|
|
131
|
-
if (typeof optionsOrCb !== "object")
|
|
132
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
133
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
134
|
-
}
|
|
135
|
-
else {
|
|
136
|
-
return this.send(command, optionsOrCb);
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
getCorsPolicy(args, optionsOrCb, cb) {
|
|
140
|
-
const command = new GetCorsPolicyCommand_1.GetCorsPolicyCommand(args);
|
|
141
|
-
if (typeof optionsOrCb === "function") {
|
|
142
|
-
this.send(command, optionsOrCb);
|
|
143
|
-
}
|
|
144
|
-
else if (typeof cb === "function") {
|
|
145
|
-
if (typeof optionsOrCb !== "object")
|
|
146
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
147
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
148
|
-
}
|
|
149
|
-
else {
|
|
150
|
-
return this.send(command, optionsOrCb);
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
getLifecyclePolicy(args, optionsOrCb, cb) {
|
|
154
|
-
const command = new GetLifecyclePolicyCommand_1.GetLifecyclePolicyCommand(args);
|
|
155
|
-
if (typeof optionsOrCb === "function") {
|
|
156
|
-
this.send(command, optionsOrCb);
|
|
157
|
-
}
|
|
158
|
-
else if (typeof cb === "function") {
|
|
159
|
-
if (typeof optionsOrCb !== "object")
|
|
160
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
161
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
162
|
-
}
|
|
163
|
-
else {
|
|
164
|
-
return this.send(command, optionsOrCb);
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
getMetricPolicy(args, optionsOrCb, cb) {
|
|
168
|
-
const command = new GetMetricPolicyCommand_1.GetMetricPolicyCommand(args);
|
|
169
|
-
if (typeof optionsOrCb === "function") {
|
|
170
|
-
this.send(command, optionsOrCb);
|
|
171
|
-
}
|
|
172
|
-
else if (typeof cb === "function") {
|
|
173
|
-
if (typeof optionsOrCb !== "object")
|
|
174
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
175
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
176
|
-
}
|
|
177
|
-
else {
|
|
178
|
-
return this.send(command, optionsOrCb);
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
listContainers(args, optionsOrCb, cb) {
|
|
182
|
-
const command = new ListContainersCommand_1.ListContainersCommand(args);
|
|
183
|
-
if (typeof optionsOrCb === "function") {
|
|
184
|
-
this.send(command, optionsOrCb);
|
|
185
|
-
}
|
|
186
|
-
else if (typeof cb === "function") {
|
|
187
|
-
if (typeof optionsOrCb !== "object")
|
|
188
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
189
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
190
|
-
}
|
|
191
|
-
else {
|
|
192
|
-
return this.send(command, optionsOrCb);
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
listTagsForResource(args, optionsOrCb, cb) {
|
|
196
|
-
const command = new ListTagsForResourceCommand_1.ListTagsForResourceCommand(args);
|
|
197
|
-
if (typeof optionsOrCb === "function") {
|
|
198
|
-
this.send(command, optionsOrCb);
|
|
199
|
-
}
|
|
200
|
-
else if (typeof cb === "function") {
|
|
201
|
-
if (typeof optionsOrCb !== "object")
|
|
202
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
203
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
204
|
-
}
|
|
205
|
-
else {
|
|
206
|
-
return this.send(command, optionsOrCb);
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
putContainerPolicy(args, optionsOrCb, cb) {
|
|
210
|
-
const command = new PutContainerPolicyCommand_1.PutContainerPolicyCommand(args);
|
|
211
|
-
if (typeof optionsOrCb === "function") {
|
|
212
|
-
this.send(command, optionsOrCb);
|
|
213
|
-
}
|
|
214
|
-
else if (typeof cb === "function") {
|
|
215
|
-
if (typeof optionsOrCb !== "object")
|
|
216
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
217
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
218
|
-
}
|
|
219
|
-
else {
|
|
220
|
-
return this.send(command, optionsOrCb);
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
putCorsPolicy(args, optionsOrCb, cb) {
|
|
224
|
-
const command = new PutCorsPolicyCommand_1.PutCorsPolicyCommand(args);
|
|
225
|
-
if (typeof optionsOrCb === "function") {
|
|
226
|
-
this.send(command, optionsOrCb);
|
|
227
|
-
}
|
|
228
|
-
else if (typeof cb === "function") {
|
|
229
|
-
if (typeof optionsOrCb !== "object")
|
|
230
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
231
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
232
|
-
}
|
|
233
|
-
else {
|
|
234
|
-
return this.send(command, optionsOrCb);
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
|
-
putLifecyclePolicy(args, optionsOrCb, cb) {
|
|
238
|
-
const command = new PutLifecyclePolicyCommand_1.PutLifecyclePolicyCommand(args);
|
|
239
|
-
if (typeof optionsOrCb === "function") {
|
|
240
|
-
this.send(command, optionsOrCb);
|
|
241
|
-
}
|
|
242
|
-
else if (typeof cb === "function") {
|
|
243
|
-
if (typeof optionsOrCb !== "object")
|
|
244
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
245
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
246
|
-
}
|
|
247
|
-
else {
|
|
248
|
-
return this.send(command, optionsOrCb);
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
putMetricPolicy(args, optionsOrCb, cb) {
|
|
252
|
-
const command = new PutMetricPolicyCommand_1.PutMetricPolicyCommand(args);
|
|
253
|
-
if (typeof optionsOrCb === "function") {
|
|
254
|
-
this.send(command, optionsOrCb);
|
|
255
|
-
}
|
|
256
|
-
else if (typeof cb === "function") {
|
|
257
|
-
if (typeof optionsOrCb !== "object")
|
|
258
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
259
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
260
|
-
}
|
|
261
|
-
else {
|
|
262
|
-
return this.send(command, optionsOrCb);
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
startAccessLogging(args, optionsOrCb, cb) {
|
|
266
|
-
const command = new StartAccessLoggingCommand_1.StartAccessLoggingCommand(args);
|
|
267
|
-
if (typeof optionsOrCb === "function") {
|
|
268
|
-
this.send(command, optionsOrCb);
|
|
269
|
-
}
|
|
270
|
-
else if (typeof cb === "function") {
|
|
271
|
-
if (typeof optionsOrCb !== "object")
|
|
272
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
273
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
274
|
-
}
|
|
275
|
-
else {
|
|
276
|
-
return this.send(command, optionsOrCb);
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
stopAccessLogging(args, optionsOrCb, cb) {
|
|
280
|
-
const command = new StopAccessLoggingCommand_1.StopAccessLoggingCommand(args);
|
|
281
|
-
if (typeof optionsOrCb === "function") {
|
|
282
|
-
this.send(command, optionsOrCb);
|
|
283
|
-
}
|
|
284
|
-
else if (typeof cb === "function") {
|
|
285
|
-
if (typeof optionsOrCb !== "object")
|
|
286
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
287
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
288
|
-
}
|
|
289
|
-
else {
|
|
290
|
-
return this.send(command, optionsOrCb);
|
|
291
|
-
}
|
|
292
|
-
}
|
|
293
|
-
tagResource(args, optionsOrCb, cb) {
|
|
294
|
-
const command = new TagResourceCommand_1.TagResourceCommand(args);
|
|
295
|
-
if (typeof optionsOrCb === "function") {
|
|
296
|
-
this.send(command, optionsOrCb);
|
|
297
|
-
}
|
|
298
|
-
else if (typeof cb === "function") {
|
|
299
|
-
if (typeof optionsOrCb !== "object")
|
|
300
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
301
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
302
|
-
}
|
|
303
|
-
else {
|
|
304
|
-
return this.send(command, optionsOrCb);
|
|
305
|
-
}
|
|
306
|
-
}
|
|
307
|
-
untagResource(args, optionsOrCb, cb) {
|
|
308
|
-
const command = new UntagResourceCommand_1.UntagResourceCommand(args);
|
|
309
|
-
if (typeof optionsOrCb === "function") {
|
|
310
|
-
this.send(command, optionsOrCb);
|
|
311
|
-
}
|
|
312
|
-
else if (typeof cb === "function") {
|
|
313
|
-
if (typeof optionsOrCb !== "object")
|
|
314
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
315
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
316
|
-
}
|
|
317
|
-
else {
|
|
318
|
-
return this.send(command, optionsOrCb);
|
|
319
|
-
}
|
|
320
|
-
}
|
|
321
51
|
}
|
|
322
52
|
exports.MediaStore = MediaStore;
|
|
53
|
+
(0, smithy_client_1.createAggregatedClient)(commands, MediaStore);
|
package/dist-es/MediaStore.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { createAggregatedClient } from "@aws-sdk/smithy-client";
|
|
1
2
|
import { CreateContainerCommand, } from "./commands/CreateContainerCommand";
|
|
2
3
|
import { DeleteContainerCommand, } from "./commands/DeleteContainerCommand";
|
|
3
4
|
import { DeleteContainerPolicyCommand, } from "./commands/DeleteContainerPolicyCommand";
|
|
@@ -20,299 +21,29 @@ 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";
|
|
24
|
+
const commands = {
|
|
25
|
+
CreateContainerCommand,
|
|
26
|
+
DeleteContainerCommand,
|
|
27
|
+
DeleteContainerPolicyCommand,
|
|
28
|
+
DeleteCorsPolicyCommand,
|
|
29
|
+
DeleteLifecyclePolicyCommand,
|
|
30
|
+
DeleteMetricPolicyCommand,
|
|
31
|
+
DescribeContainerCommand,
|
|
32
|
+
GetContainerPolicyCommand,
|
|
33
|
+
GetCorsPolicyCommand,
|
|
34
|
+
GetLifecyclePolicyCommand,
|
|
35
|
+
GetMetricPolicyCommand,
|
|
36
|
+
ListContainersCommand,
|
|
37
|
+
ListTagsForResourceCommand,
|
|
38
|
+
PutContainerPolicyCommand,
|
|
39
|
+
PutCorsPolicyCommand,
|
|
40
|
+
PutLifecyclePolicyCommand,
|
|
41
|
+
PutMetricPolicyCommand,
|
|
42
|
+
StartAccessLoggingCommand,
|
|
43
|
+
StopAccessLoggingCommand,
|
|
44
|
+
TagResourceCommand,
|
|
45
|
+
UntagResourceCommand,
|
|
46
|
+
};
|
|
23
47
|
export class MediaStore extends MediaStoreClient {
|
|
24
|
-
createContainer(args, optionsOrCb, cb) {
|
|
25
|
-
const command = new CreateContainerCommand(args);
|
|
26
|
-
if (typeof optionsOrCb === "function") {
|
|
27
|
-
this.send(command, optionsOrCb);
|
|
28
|
-
}
|
|
29
|
-
else if (typeof cb === "function") {
|
|
30
|
-
if (typeof optionsOrCb !== "object")
|
|
31
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
32
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
33
|
-
}
|
|
34
|
-
else {
|
|
35
|
-
return this.send(command, optionsOrCb);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
deleteContainer(args, optionsOrCb, cb) {
|
|
39
|
-
const command = new DeleteContainerCommand(args);
|
|
40
|
-
if (typeof optionsOrCb === "function") {
|
|
41
|
-
this.send(command, optionsOrCb);
|
|
42
|
-
}
|
|
43
|
-
else if (typeof cb === "function") {
|
|
44
|
-
if (typeof optionsOrCb !== "object")
|
|
45
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
46
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
47
|
-
}
|
|
48
|
-
else {
|
|
49
|
-
return this.send(command, optionsOrCb);
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
deleteContainerPolicy(args, optionsOrCb, cb) {
|
|
53
|
-
const command = new DeleteContainerPolicyCommand(args);
|
|
54
|
-
if (typeof optionsOrCb === "function") {
|
|
55
|
-
this.send(command, optionsOrCb);
|
|
56
|
-
}
|
|
57
|
-
else if (typeof cb === "function") {
|
|
58
|
-
if (typeof optionsOrCb !== "object")
|
|
59
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
60
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
61
|
-
}
|
|
62
|
-
else {
|
|
63
|
-
return this.send(command, optionsOrCb);
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
deleteCorsPolicy(args, optionsOrCb, cb) {
|
|
67
|
-
const command = new DeleteCorsPolicyCommand(args);
|
|
68
|
-
if (typeof optionsOrCb === "function") {
|
|
69
|
-
this.send(command, optionsOrCb);
|
|
70
|
-
}
|
|
71
|
-
else if (typeof cb === "function") {
|
|
72
|
-
if (typeof optionsOrCb !== "object")
|
|
73
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
74
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
75
|
-
}
|
|
76
|
-
else {
|
|
77
|
-
return this.send(command, optionsOrCb);
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
deleteLifecyclePolicy(args, optionsOrCb, cb) {
|
|
81
|
-
const command = new DeleteLifecyclePolicyCommand(args);
|
|
82
|
-
if (typeof optionsOrCb === "function") {
|
|
83
|
-
this.send(command, optionsOrCb);
|
|
84
|
-
}
|
|
85
|
-
else if (typeof cb === "function") {
|
|
86
|
-
if (typeof optionsOrCb !== "object")
|
|
87
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
88
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
89
|
-
}
|
|
90
|
-
else {
|
|
91
|
-
return this.send(command, optionsOrCb);
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
deleteMetricPolicy(args, optionsOrCb, cb) {
|
|
95
|
-
const command = new DeleteMetricPolicyCommand(args);
|
|
96
|
-
if (typeof optionsOrCb === "function") {
|
|
97
|
-
this.send(command, optionsOrCb);
|
|
98
|
-
}
|
|
99
|
-
else if (typeof cb === "function") {
|
|
100
|
-
if (typeof optionsOrCb !== "object")
|
|
101
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
102
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
103
|
-
}
|
|
104
|
-
else {
|
|
105
|
-
return this.send(command, optionsOrCb);
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
describeContainer(args, optionsOrCb, cb) {
|
|
109
|
-
const command = new DescribeContainerCommand(args);
|
|
110
|
-
if (typeof optionsOrCb === "function") {
|
|
111
|
-
this.send(command, optionsOrCb);
|
|
112
|
-
}
|
|
113
|
-
else if (typeof cb === "function") {
|
|
114
|
-
if (typeof optionsOrCb !== "object")
|
|
115
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
116
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
117
|
-
}
|
|
118
|
-
else {
|
|
119
|
-
return this.send(command, optionsOrCb);
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
getContainerPolicy(args, optionsOrCb, cb) {
|
|
123
|
-
const command = new GetContainerPolicyCommand(args);
|
|
124
|
-
if (typeof optionsOrCb === "function") {
|
|
125
|
-
this.send(command, optionsOrCb);
|
|
126
|
-
}
|
|
127
|
-
else if (typeof cb === "function") {
|
|
128
|
-
if (typeof optionsOrCb !== "object")
|
|
129
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
130
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
131
|
-
}
|
|
132
|
-
else {
|
|
133
|
-
return this.send(command, optionsOrCb);
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
getCorsPolicy(args, optionsOrCb, cb) {
|
|
137
|
-
const command = new GetCorsPolicyCommand(args);
|
|
138
|
-
if (typeof optionsOrCb === "function") {
|
|
139
|
-
this.send(command, optionsOrCb);
|
|
140
|
-
}
|
|
141
|
-
else if (typeof cb === "function") {
|
|
142
|
-
if (typeof optionsOrCb !== "object")
|
|
143
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
144
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
145
|
-
}
|
|
146
|
-
else {
|
|
147
|
-
return this.send(command, optionsOrCb);
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
getLifecyclePolicy(args, optionsOrCb, cb) {
|
|
151
|
-
const command = new GetLifecyclePolicyCommand(args);
|
|
152
|
-
if (typeof optionsOrCb === "function") {
|
|
153
|
-
this.send(command, optionsOrCb);
|
|
154
|
-
}
|
|
155
|
-
else if (typeof cb === "function") {
|
|
156
|
-
if (typeof optionsOrCb !== "object")
|
|
157
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
158
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
159
|
-
}
|
|
160
|
-
else {
|
|
161
|
-
return this.send(command, optionsOrCb);
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
getMetricPolicy(args, optionsOrCb, cb) {
|
|
165
|
-
const command = new GetMetricPolicyCommand(args);
|
|
166
|
-
if (typeof optionsOrCb === "function") {
|
|
167
|
-
this.send(command, optionsOrCb);
|
|
168
|
-
}
|
|
169
|
-
else if (typeof cb === "function") {
|
|
170
|
-
if (typeof optionsOrCb !== "object")
|
|
171
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
172
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
173
|
-
}
|
|
174
|
-
else {
|
|
175
|
-
return this.send(command, optionsOrCb);
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
listContainers(args, optionsOrCb, cb) {
|
|
179
|
-
const command = new ListContainersCommand(args);
|
|
180
|
-
if (typeof optionsOrCb === "function") {
|
|
181
|
-
this.send(command, optionsOrCb);
|
|
182
|
-
}
|
|
183
|
-
else if (typeof cb === "function") {
|
|
184
|
-
if (typeof optionsOrCb !== "object")
|
|
185
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
186
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
187
|
-
}
|
|
188
|
-
else {
|
|
189
|
-
return this.send(command, optionsOrCb);
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
listTagsForResource(args, optionsOrCb, cb) {
|
|
193
|
-
const command = new ListTagsForResourceCommand(args);
|
|
194
|
-
if (typeof optionsOrCb === "function") {
|
|
195
|
-
this.send(command, optionsOrCb);
|
|
196
|
-
}
|
|
197
|
-
else if (typeof cb === "function") {
|
|
198
|
-
if (typeof optionsOrCb !== "object")
|
|
199
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
200
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
201
|
-
}
|
|
202
|
-
else {
|
|
203
|
-
return this.send(command, optionsOrCb);
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
putContainerPolicy(args, optionsOrCb, cb) {
|
|
207
|
-
const command = new PutContainerPolicyCommand(args);
|
|
208
|
-
if (typeof optionsOrCb === "function") {
|
|
209
|
-
this.send(command, optionsOrCb);
|
|
210
|
-
}
|
|
211
|
-
else if (typeof cb === "function") {
|
|
212
|
-
if (typeof optionsOrCb !== "object")
|
|
213
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
214
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
215
|
-
}
|
|
216
|
-
else {
|
|
217
|
-
return this.send(command, optionsOrCb);
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
putCorsPolicy(args, optionsOrCb, cb) {
|
|
221
|
-
const command = new PutCorsPolicyCommand(args);
|
|
222
|
-
if (typeof optionsOrCb === "function") {
|
|
223
|
-
this.send(command, optionsOrCb);
|
|
224
|
-
}
|
|
225
|
-
else if (typeof cb === "function") {
|
|
226
|
-
if (typeof optionsOrCb !== "object")
|
|
227
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
228
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
229
|
-
}
|
|
230
|
-
else {
|
|
231
|
-
return this.send(command, optionsOrCb);
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
putLifecyclePolicy(args, optionsOrCb, cb) {
|
|
235
|
-
const command = new PutLifecyclePolicyCommand(args);
|
|
236
|
-
if (typeof optionsOrCb === "function") {
|
|
237
|
-
this.send(command, optionsOrCb);
|
|
238
|
-
}
|
|
239
|
-
else if (typeof cb === "function") {
|
|
240
|
-
if (typeof optionsOrCb !== "object")
|
|
241
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
242
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
243
|
-
}
|
|
244
|
-
else {
|
|
245
|
-
return this.send(command, optionsOrCb);
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
putMetricPolicy(args, optionsOrCb, cb) {
|
|
249
|
-
const command = new PutMetricPolicyCommand(args);
|
|
250
|
-
if (typeof optionsOrCb === "function") {
|
|
251
|
-
this.send(command, optionsOrCb);
|
|
252
|
-
}
|
|
253
|
-
else if (typeof cb === "function") {
|
|
254
|
-
if (typeof optionsOrCb !== "object")
|
|
255
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
256
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
257
|
-
}
|
|
258
|
-
else {
|
|
259
|
-
return this.send(command, optionsOrCb);
|
|
260
|
-
}
|
|
261
|
-
}
|
|
262
|
-
startAccessLogging(args, optionsOrCb, cb) {
|
|
263
|
-
const command = new StartAccessLoggingCommand(args);
|
|
264
|
-
if (typeof optionsOrCb === "function") {
|
|
265
|
-
this.send(command, optionsOrCb);
|
|
266
|
-
}
|
|
267
|
-
else if (typeof cb === "function") {
|
|
268
|
-
if (typeof optionsOrCb !== "object")
|
|
269
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
270
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
271
|
-
}
|
|
272
|
-
else {
|
|
273
|
-
return this.send(command, optionsOrCb);
|
|
274
|
-
}
|
|
275
|
-
}
|
|
276
|
-
stopAccessLogging(args, optionsOrCb, cb) {
|
|
277
|
-
const command = new StopAccessLoggingCommand(args);
|
|
278
|
-
if (typeof optionsOrCb === "function") {
|
|
279
|
-
this.send(command, optionsOrCb);
|
|
280
|
-
}
|
|
281
|
-
else if (typeof cb === "function") {
|
|
282
|
-
if (typeof optionsOrCb !== "object")
|
|
283
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
284
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
285
|
-
}
|
|
286
|
-
else {
|
|
287
|
-
return this.send(command, optionsOrCb);
|
|
288
|
-
}
|
|
289
|
-
}
|
|
290
|
-
tagResource(args, optionsOrCb, cb) {
|
|
291
|
-
const command = new TagResourceCommand(args);
|
|
292
|
-
if (typeof optionsOrCb === "function") {
|
|
293
|
-
this.send(command, optionsOrCb);
|
|
294
|
-
}
|
|
295
|
-
else if (typeof cb === "function") {
|
|
296
|
-
if (typeof optionsOrCb !== "object")
|
|
297
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
298
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
299
|
-
}
|
|
300
|
-
else {
|
|
301
|
-
return this.send(command, optionsOrCb);
|
|
302
|
-
}
|
|
303
|
-
}
|
|
304
|
-
untagResource(args, optionsOrCb, cb) {
|
|
305
|
-
const command = new UntagResourceCommand(args);
|
|
306
|
-
if (typeof optionsOrCb === "function") {
|
|
307
|
-
this.send(command, optionsOrCb);
|
|
308
|
-
}
|
|
309
|
-
else if (typeof cb === "function") {
|
|
310
|
-
if (typeof optionsOrCb !== "object")
|
|
311
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
312
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
313
|
-
}
|
|
314
|
-
else {
|
|
315
|
-
return this.send(command, optionsOrCb);
|
|
316
|
-
}
|
|
317
|
-
}
|
|
318
48
|
}
|
|
49
|
+
createAggregatedClient(commands, MediaStore);
|
|
@@ -21,203 +21,138 @@ import { StopAccessLoggingCommandInput, StopAccessLoggingCommandOutput } from ".
|
|
|
21
21
|
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
22
22
|
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
23
23
|
import { MediaStoreClient } from "./MediaStoreClient";
|
|
24
|
-
|
|
25
|
-
* @public
|
|
26
|
-
* <p>An AWS Elemental MediaStore container is a namespace that holds folders and objects.
|
|
27
|
-
* You use a container endpoint to create, read, and delete objects. </p>
|
|
28
|
-
*/
|
|
29
|
-
export declare class MediaStore extends MediaStoreClient {
|
|
24
|
+
export interface MediaStore {
|
|
30
25
|
/**
|
|
31
|
-
* @
|
|
32
|
-
* <p>Creates a storage container to hold objects. A container is similar to a bucket in
|
|
33
|
-
* the Amazon S3 service.</p>
|
|
26
|
+
* @see {@link CreateContainerCommand}
|
|
34
27
|
*/
|
|
35
28
|
createContainer(args: CreateContainerCommandInput, options?: __HttpHandlerOptions): Promise<CreateContainerCommandOutput>;
|
|
36
29
|
createContainer(args: CreateContainerCommandInput, cb: (err: any, data?: CreateContainerCommandOutput) => void): void;
|
|
37
30
|
createContainer(args: CreateContainerCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateContainerCommandOutput) => void): void;
|
|
38
31
|
/**
|
|
39
|
-
* @
|
|
40
|
-
* <p>Deletes the specified container. Before you make a <code>DeleteContainer</code>
|
|
41
|
-
* request, delete any objects in the container or in any folders in the container. You can
|
|
42
|
-
* delete only empty containers. </p>
|
|
32
|
+
* @see {@link DeleteContainerCommand}
|
|
43
33
|
*/
|
|
44
34
|
deleteContainer(args: DeleteContainerCommandInput, options?: __HttpHandlerOptions): Promise<DeleteContainerCommandOutput>;
|
|
45
35
|
deleteContainer(args: DeleteContainerCommandInput, cb: (err: any, data?: DeleteContainerCommandOutput) => void): void;
|
|
46
36
|
deleteContainer(args: DeleteContainerCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteContainerCommandOutput) => void): void;
|
|
47
37
|
/**
|
|
48
|
-
* @
|
|
49
|
-
* <p>Deletes the access policy that is associated with the specified container.</p>
|
|
38
|
+
* @see {@link DeleteContainerPolicyCommand}
|
|
50
39
|
*/
|
|
51
40
|
deleteContainerPolicy(args: DeleteContainerPolicyCommandInput, options?: __HttpHandlerOptions): Promise<DeleteContainerPolicyCommandOutput>;
|
|
52
41
|
deleteContainerPolicy(args: DeleteContainerPolicyCommandInput, cb: (err: any, data?: DeleteContainerPolicyCommandOutput) => void): void;
|
|
53
42
|
deleteContainerPolicy(args: DeleteContainerPolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteContainerPolicyCommandOutput) => void): void;
|
|
54
43
|
/**
|
|
55
|
-
* @
|
|
56
|
-
* <p>Deletes the cross-origin resource sharing (CORS) configuration information that is
|
|
57
|
-
* set for the container.</p>
|
|
58
|
-
* <p>To use this operation, you must have permission to perform the
|
|
59
|
-
* <code>MediaStore:DeleteCorsPolicy</code> action. The container owner has this permission
|
|
60
|
-
* by default and can grant this permission to others.</p>
|
|
44
|
+
* @see {@link DeleteCorsPolicyCommand}
|
|
61
45
|
*/
|
|
62
46
|
deleteCorsPolicy(args: DeleteCorsPolicyCommandInput, options?: __HttpHandlerOptions): Promise<DeleteCorsPolicyCommandOutput>;
|
|
63
47
|
deleteCorsPolicy(args: DeleteCorsPolicyCommandInput, cb: (err: any, data?: DeleteCorsPolicyCommandOutput) => void): void;
|
|
64
48
|
deleteCorsPolicy(args: DeleteCorsPolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteCorsPolicyCommandOutput) => void): void;
|
|
65
49
|
/**
|
|
66
|
-
* @
|
|
67
|
-
* <p>Removes an object lifecycle policy from a container. It takes up to 20 minutes for the change to take effect.</p>
|
|
50
|
+
* @see {@link DeleteLifecyclePolicyCommand}
|
|
68
51
|
*/
|
|
69
52
|
deleteLifecyclePolicy(args: DeleteLifecyclePolicyCommandInput, options?: __HttpHandlerOptions): Promise<DeleteLifecyclePolicyCommandOutput>;
|
|
70
53
|
deleteLifecyclePolicy(args: DeleteLifecyclePolicyCommandInput, cb: (err: any, data?: DeleteLifecyclePolicyCommandOutput) => void): void;
|
|
71
54
|
deleteLifecyclePolicy(args: DeleteLifecyclePolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteLifecyclePolicyCommandOutput) => void): void;
|
|
72
55
|
/**
|
|
73
|
-
* @
|
|
74
|
-
* <p>Deletes the metric policy that is associated with the specified container. If there is no metric policy associated with the container, MediaStore doesn't send metrics to CloudWatch.</p>
|
|
56
|
+
* @see {@link DeleteMetricPolicyCommand}
|
|
75
57
|
*/
|
|
76
58
|
deleteMetricPolicy(args: DeleteMetricPolicyCommandInput, options?: __HttpHandlerOptions): Promise<DeleteMetricPolicyCommandOutput>;
|
|
77
59
|
deleteMetricPolicy(args: DeleteMetricPolicyCommandInput, cb: (err: any, data?: DeleteMetricPolicyCommandOutput) => void): void;
|
|
78
60
|
deleteMetricPolicy(args: DeleteMetricPolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteMetricPolicyCommandOutput) => void): void;
|
|
79
61
|
/**
|
|
80
|
-
* @
|
|
81
|
-
* <p>Retrieves the properties of the requested container. This request is commonly used to
|
|
82
|
-
* retrieve the endpoint of a container. An endpoint is a value assigned by the service when a
|
|
83
|
-
* new container is created. A container's endpoint does not change after it has been
|
|
84
|
-
* assigned. The <code>DescribeContainer</code> request returns a single
|
|
85
|
-
* <code>Container</code> object based on <code>ContainerName</code>. To return all
|
|
86
|
-
* <code>Container</code> objects that are associated with a specified AWS account, use
|
|
87
|
-
* <a>ListContainers</a>.</p>
|
|
62
|
+
* @see {@link DescribeContainerCommand}
|
|
88
63
|
*/
|
|
89
64
|
describeContainer(args: DescribeContainerCommandInput, options?: __HttpHandlerOptions): Promise<DescribeContainerCommandOutput>;
|
|
90
65
|
describeContainer(args: DescribeContainerCommandInput, cb: (err: any, data?: DescribeContainerCommandOutput) => void): void;
|
|
91
66
|
describeContainer(args: DescribeContainerCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeContainerCommandOutput) => void): void;
|
|
92
67
|
/**
|
|
93
|
-
* @
|
|
94
|
-
* <p>Retrieves the access policy for the specified container. For information about the
|
|
95
|
-
* data that is included in an access policy, see the <a href="https://aws.amazon.com/documentation/iam/">AWS Identity and Access Management User
|
|
96
|
-
* Guide</a>.</p>
|
|
68
|
+
* @see {@link GetContainerPolicyCommand}
|
|
97
69
|
*/
|
|
98
70
|
getContainerPolicy(args: GetContainerPolicyCommandInput, options?: __HttpHandlerOptions): Promise<GetContainerPolicyCommandOutput>;
|
|
99
71
|
getContainerPolicy(args: GetContainerPolicyCommandInput, cb: (err: any, data?: GetContainerPolicyCommandOutput) => void): void;
|
|
100
72
|
getContainerPolicy(args: GetContainerPolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetContainerPolicyCommandOutput) => void): void;
|
|
101
73
|
/**
|
|
102
|
-
* @
|
|
103
|
-
* <p>Returns the cross-origin resource sharing (CORS) configuration information that is
|
|
104
|
-
* set for the container.</p>
|
|
105
|
-
* <p>To use this operation, you must have permission to perform the
|
|
106
|
-
* <code>MediaStore:GetCorsPolicy</code> action. By default, the container owner has this
|
|
107
|
-
* permission and can grant it to others.</p>
|
|
74
|
+
* @see {@link GetCorsPolicyCommand}
|
|
108
75
|
*/
|
|
109
76
|
getCorsPolicy(args: GetCorsPolicyCommandInput, options?: __HttpHandlerOptions): Promise<GetCorsPolicyCommandOutput>;
|
|
110
77
|
getCorsPolicy(args: GetCorsPolicyCommandInput, cb: (err: any, data?: GetCorsPolicyCommandOutput) => void): void;
|
|
111
78
|
getCorsPolicy(args: GetCorsPolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetCorsPolicyCommandOutput) => void): void;
|
|
112
79
|
/**
|
|
113
|
-
* @
|
|
114
|
-
* <p>Retrieves the object lifecycle policy that is assigned to a container.</p>
|
|
80
|
+
* @see {@link GetLifecyclePolicyCommand}
|
|
115
81
|
*/
|
|
116
82
|
getLifecyclePolicy(args: GetLifecyclePolicyCommandInput, options?: __HttpHandlerOptions): Promise<GetLifecyclePolicyCommandOutput>;
|
|
117
83
|
getLifecyclePolicy(args: GetLifecyclePolicyCommandInput, cb: (err: any, data?: GetLifecyclePolicyCommandOutput) => void): void;
|
|
118
84
|
getLifecyclePolicy(args: GetLifecyclePolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetLifecyclePolicyCommandOutput) => void): void;
|
|
119
85
|
/**
|
|
120
|
-
* @
|
|
121
|
-
* <p>Returns the metric policy for the specified container. </p>
|
|
86
|
+
* @see {@link GetMetricPolicyCommand}
|
|
122
87
|
*/
|
|
123
88
|
getMetricPolicy(args: GetMetricPolicyCommandInput, options?: __HttpHandlerOptions): Promise<GetMetricPolicyCommandOutput>;
|
|
124
89
|
getMetricPolicy(args: GetMetricPolicyCommandInput, cb: (err: any, data?: GetMetricPolicyCommandOutput) => void): void;
|
|
125
90
|
getMetricPolicy(args: GetMetricPolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetMetricPolicyCommandOutput) => void): void;
|
|
126
91
|
/**
|
|
127
|
-
* @
|
|
128
|
-
* <p>Lists the properties of all containers in AWS Elemental MediaStore. </p>
|
|
129
|
-
* <p>You can query to receive all the containers in one response. Or you can include the
|
|
130
|
-
* <code>MaxResults</code> parameter to receive a limited number of containers in each
|
|
131
|
-
* response. In this case, the response includes a token. To get the next set of containers,
|
|
132
|
-
* send the command again, this time with the <code>NextToken</code> parameter (with the
|
|
133
|
-
* returned token as its value). The next set of responses appears, with a token if there are
|
|
134
|
-
* still more containers to receive. </p>
|
|
135
|
-
* <p>See also <a>DescribeContainer</a>, which gets the properties of one
|
|
136
|
-
* container. </p>
|
|
92
|
+
* @see {@link ListContainersCommand}
|
|
137
93
|
*/
|
|
138
94
|
listContainers(args: ListContainersCommandInput, options?: __HttpHandlerOptions): Promise<ListContainersCommandOutput>;
|
|
139
95
|
listContainers(args: ListContainersCommandInput, cb: (err: any, data?: ListContainersCommandOutput) => void): void;
|
|
140
96
|
listContainers(args: ListContainersCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListContainersCommandOutput) => void): void;
|
|
141
97
|
/**
|
|
142
|
-
* @
|
|
143
|
-
* <p>Returns a list of the tags assigned to the specified container. </p>
|
|
98
|
+
* @see {@link ListTagsForResourceCommand}
|
|
144
99
|
*/
|
|
145
100
|
listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
|
|
146
101
|
listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
147
102
|
listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
148
103
|
/**
|
|
149
|
-
* @
|
|
150
|
-
* <p>Creates an access policy for the specified container to restrict the users and
|
|
151
|
-
* clients that can access it. For information about the data that is included in an access
|
|
152
|
-
* policy, see the <a href="https://aws.amazon.com/documentation/iam/">AWS Identity and
|
|
153
|
-
* Access Management User Guide</a>.</p>
|
|
154
|
-
* <p>For this release of the REST API, you can create only one policy for a container. If
|
|
155
|
-
* you enter <code>PutContainerPolicy</code> twice, the second command modifies the existing
|
|
156
|
-
* policy. </p>
|
|
104
|
+
* @see {@link PutContainerPolicyCommand}
|
|
157
105
|
*/
|
|
158
106
|
putContainerPolicy(args: PutContainerPolicyCommandInput, options?: __HttpHandlerOptions): Promise<PutContainerPolicyCommandOutput>;
|
|
159
107
|
putContainerPolicy(args: PutContainerPolicyCommandInput, cb: (err: any, data?: PutContainerPolicyCommandOutput) => void): void;
|
|
160
108
|
putContainerPolicy(args: PutContainerPolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutContainerPolicyCommandOutput) => void): void;
|
|
161
109
|
/**
|
|
162
|
-
* @
|
|
163
|
-
* <p>Sets the cross-origin resource sharing (CORS) configuration on a container so that
|
|
164
|
-
* the container can service cross-origin requests. For example, you might want to enable a
|
|
165
|
-
* request whose origin is http://www.example.com to access your AWS Elemental MediaStore
|
|
166
|
-
* container at my.example.container.com by using the browser's XMLHttpRequest
|
|
167
|
-
* capability.</p>
|
|
168
|
-
* <p>To enable CORS on a container, you attach a CORS policy to the container. In the CORS
|
|
169
|
-
* policy, you configure rules that identify origins and the HTTP methods that can be executed
|
|
170
|
-
* on your container. The policy can contain up to 398,000 characters. You can add up to 100
|
|
171
|
-
* rules to a CORS policy. If more than one rule applies, the service uses the first
|
|
172
|
-
* applicable rule listed.</p>
|
|
173
|
-
* <p>To learn more about CORS, see <a href="https://docs.aws.amazon.com/mediastore/latest/ug/cors-policy.html">Cross-Origin Resource Sharing (CORS) in AWS Elemental MediaStore</a>.</p>
|
|
110
|
+
* @see {@link PutCorsPolicyCommand}
|
|
174
111
|
*/
|
|
175
112
|
putCorsPolicy(args: PutCorsPolicyCommandInput, options?: __HttpHandlerOptions): Promise<PutCorsPolicyCommandOutput>;
|
|
176
113
|
putCorsPolicy(args: PutCorsPolicyCommandInput, cb: (err: any, data?: PutCorsPolicyCommandOutput) => void): void;
|
|
177
114
|
putCorsPolicy(args: PutCorsPolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutCorsPolicyCommandOutput) => void): void;
|
|
178
115
|
/**
|
|
179
|
-
* @
|
|
180
|
-
* <p>Writes an object lifecycle policy to a container. If the container already has an object lifecycle policy, the service replaces the existing policy with the new policy. It takes up to 20 minutes for the change to take effect.</p>
|
|
181
|
-
* <p>For information about how to construct an object lifecycle policy, see <a href="https://docs.aws.amazon.com/mediastore/latest/ug/policies-object-lifecycle-components.html">Components of an Object Lifecycle Policy</a>.</p>
|
|
116
|
+
* @see {@link PutLifecyclePolicyCommand}
|
|
182
117
|
*/
|
|
183
118
|
putLifecyclePolicy(args: PutLifecyclePolicyCommandInput, options?: __HttpHandlerOptions): Promise<PutLifecyclePolicyCommandOutput>;
|
|
184
119
|
putLifecyclePolicy(args: PutLifecyclePolicyCommandInput, cb: (err: any, data?: PutLifecyclePolicyCommandOutput) => void): void;
|
|
185
120
|
putLifecyclePolicy(args: PutLifecyclePolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutLifecyclePolicyCommandOutput) => void): void;
|
|
186
121
|
/**
|
|
187
|
-
* @
|
|
188
|
-
* <p>The metric policy that you want to add to the container. A metric policy allows AWS Elemental MediaStore to send metrics to Amazon CloudWatch. It takes up to 20 minutes for the new policy to take effect.</p>
|
|
122
|
+
* @see {@link PutMetricPolicyCommand}
|
|
189
123
|
*/
|
|
190
124
|
putMetricPolicy(args: PutMetricPolicyCommandInput, options?: __HttpHandlerOptions): Promise<PutMetricPolicyCommandOutput>;
|
|
191
125
|
putMetricPolicy(args: PutMetricPolicyCommandInput, cb: (err: any, data?: PutMetricPolicyCommandOutput) => void): void;
|
|
192
126
|
putMetricPolicy(args: PutMetricPolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutMetricPolicyCommandOutput) => void): void;
|
|
193
127
|
/**
|
|
194
|
-
* @
|
|
195
|
-
* <p>Starts access logging on the specified container. When you enable access logging on a container, MediaStore delivers access logs for objects stored in that container to Amazon CloudWatch Logs.</p>
|
|
128
|
+
* @see {@link StartAccessLoggingCommand}
|
|
196
129
|
*/
|
|
197
130
|
startAccessLogging(args: StartAccessLoggingCommandInput, options?: __HttpHandlerOptions): Promise<StartAccessLoggingCommandOutput>;
|
|
198
131
|
startAccessLogging(args: StartAccessLoggingCommandInput, cb: (err: any, data?: StartAccessLoggingCommandOutput) => void): void;
|
|
199
132
|
startAccessLogging(args: StartAccessLoggingCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartAccessLoggingCommandOutput) => void): void;
|
|
200
133
|
/**
|
|
201
|
-
* @
|
|
202
|
-
* <p>Stops access logging on the specified container. When you stop access logging on a container, MediaStore stops sending access logs to Amazon CloudWatch Logs. These access logs are not saved and are not retrievable.</p>
|
|
134
|
+
* @see {@link StopAccessLoggingCommand}
|
|
203
135
|
*/
|
|
204
136
|
stopAccessLogging(args: StopAccessLoggingCommandInput, options?: __HttpHandlerOptions): Promise<StopAccessLoggingCommandOutput>;
|
|
205
137
|
stopAccessLogging(args: StopAccessLoggingCommandInput, cb: (err: any, data?: StopAccessLoggingCommandOutput) => void): void;
|
|
206
138
|
stopAccessLogging(args: StopAccessLoggingCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StopAccessLoggingCommandOutput) => void): void;
|
|
207
139
|
/**
|
|
208
|
-
* @
|
|
209
|
-
* <p>Adds tags to the specified AWS Elemental MediaStore container. Tags are key:value pairs that you can associate with AWS resources. For example, the
|
|
210
|
-
* tag key might be "customer" and the tag value might be "companyA." You can specify one or more tags to add to each container. You can add up to 50
|
|
211
|
-
* tags to each container. For more information about tagging, including naming and usage conventions, see <a href="https://docs.aws.amazon.com/mediastore/latest/ug/tagging.html">Tagging Resources in MediaStore</a>.</p>
|
|
140
|
+
* @see {@link TagResourceCommand}
|
|
212
141
|
*/
|
|
213
142
|
tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
|
|
214
143
|
tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
|
|
215
144
|
tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
|
|
216
145
|
/**
|
|
217
|
-
* @
|
|
218
|
-
* <p>Removes tags from the specified container. You can specify one or more tags to remove. </p>
|
|
146
|
+
* @see {@link UntagResourceCommand}
|
|
219
147
|
*/
|
|
220
148
|
untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
|
|
221
149
|
untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
222
150
|
untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
223
151
|
}
|
|
152
|
+
/**
|
|
153
|
+
* @public
|
|
154
|
+
* <p>An AWS Elemental MediaStore container is a namespace that holds folders and objects.
|
|
155
|
+
* You use a container endpoint to create, read, and delete objects. </p>
|
|
156
|
+
*/
|
|
157
|
+
export declare class MediaStore extends MediaStoreClient implements MediaStore {
|
|
158
|
+
}
|
|
@@ -84,7 +84,7 @@ import {
|
|
|
84
84
|
UntagResourceCommandOutput,
|
|
85
85
|
} from "./commands/UntagResourceCommand";
|
|
86
86
|
import { MediaStoreClient } from "./MediaStoreClient";
|
|
87
|
-
export
|
|
87
|
+
export interface MediaStore {
|
|
88
88
|
createContainer(
|
|
89
89
|
args: CreateContainerCommandInput,
|
|
90
90
|
options?: __HttpHandlerOptions
|
|
@@ -359,3 +359,6 @@ export declare class MediaStore extends MediaStoreClient {
|
|
|
359
359
|
cb: (err: any, data?: UntagResourceCommandOutput) => void
|
|
360
360
|
): void;
|
|
361
361
|
}
|
|
362
|
+
export declare class MediaStore
|
|
363
|
+
extends MediaStoreClient
|
|
364
|
+
implements MediaStore {}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-mediastore",
|
|
3
3
|
"description": "AWS SDK for JavaScript Mediastore Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.319.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.319.0",
|
|
25
25
|
"@aws-sdk/config-resolver": "3.310.0",
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.319.0",
|
|
27
27
|
"@aws-sdk/fetch-http-handler": "3.310.0",
|
|
28
28
|
"@aws-sdk/hash-node": "3.310.0",
|
|
29
29
|
"@aws-sdk/invalid-dependency": "3.310.0",
|
|
@@ -36,19 +36,19 @@
|
|
|
36
36
|
"@aws-sdk/middleware-serde": "3.310.0",
|
|
37
37
|
"@aws-sdk/middleware-signing": "3.310.0",
|
|
38
38
|
"@aws-sdk/middleware-stack": "3.310.0",
|
|
39
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
39
|
+
"@aws-sdk/middleware-user-agent": "3.319.0",
|
|
40
40
|
"@aws-sdk/node-config-provider": "3.310.0",
|
|
41
41
|
"@aws-sdk/node-http-handler": "3.310.0",
|
|
42
42
|
"@aws-sdk/protocol-http": "3.310.0",
|
|
43
|
-
"@aws-sdk/smithy-client": "3.
|
|
43
|
+
"@aws-sdk/smithy-client": "3.316.0",
|
|
44
44
|
"@aws-sdk/types": "3.310.0",
|
|
45
45
|
"@aws-sdk/url-parser": "3.310.0",
|
|
46
46
|
"@aws-sdk/util-base64": "3.310.0",
|
|
47
47
|
"@aws-sdk/util-body-length-browser": "3.310.0",
|
|
48
48
|
"@aws-sdk/util-body-length-node": "3.310.0",
|
|
49
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
50
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
51
|
-
"@aws-sdk/util-endpoints": "3.
|
|
49
|
+
"@aws-sdk/util-defaults-mode-browser": "3.316.0",
|
|
50
|
+
"@aws-sdk/util-defaults-mode-node": "3.316.0",
|
|
51
|
+
"@aws-sdk/util-endpoints": "3.319.0",
|
|
52
52
|
"@aws-sdk/util-retry": "3.310.0",
|
|
53
53
|
"@aws-sdk/util-user-agent-browser": "3.310.0",
|
|
54
54
|
"@aws-sdk/util-user-agent-node": "3.310.0",
|