@aws-sdk/client-mediastore 3.181.0 → 3.183.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.
Files changed (34) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist-es/MediaStore.js +86 -93
  3. package/dist-es/MediaStoreClient.js +22 -28
  4. package/dist-es/commands/CreateContainerCommand.js +21 -28
  5. package/dist-es/commands/DeleteContainerCommand.js +21 -28
  6. package/dist-es/commands/DeleteContainerPolicyCommand.js +21 -28
  7. package/dist-es/commands/DeleteCorsPolicyCommand.js +21 -28
  8. package/dist-es/commands/DeleteLifecyclePolicyCommand.js +21 -28
  9. package/dist-es/commands/DeleteMetricPolicyCommand.js +21 -28
  10. package/dist-es/commands/DescribeContainerCommand.js +21 -28
  11. package/dist-es/commands/GetContainerPolicyCommand.js +21 -28
  12. package/dist-es/commands/GetCorsPolicyCommand.js +21 -28
  13. package/dist-es/commands/GetLifecyclePolicyCommand.js +21 -28
  14. package/dist-es/commands/GetMetricPolicyCommand.js +21 -28
  15. package/dist-es/commands/ListContainersCommand.js +21 -28
  16. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  17. package/dist-es/commands/PutContainerPolicyCommand.js +21 -28
  18. package/dist-es/commands/PutCorsPolicyCommand.js +21 -28
  19. package/dist-es/commands/PutLifecyclePolicyCommand.js +21 -28
  20. package/dist-es/commands/PutMetricPolicyCommand.js +21 -28
  21. package/dist-es/commands/StartAccessLoggingCommand.js +21 -28
  22. package/dist-es/commands/StopAccessLoggingCommand.js +21 -28
  23. package/dist-es/commands/TagResourceCommand.js +21 -28
  24. package/dist-es/commands/UntagResourceCommand.js +21 -28
  25. package/dist-es/endpoints.js +8 -8
  26. package/dist-es/models/MediaStoreServiceException.js +5 -10
  27. package/dist-es/models/models_0.js +213 -120
  28. package/dist-es/pagination/ListContainersPaginator.js +25 -68
  29. package/dist-es/protocols/Aws_json1_1.js +1331 -1757
  30. package/dist-es/runtimeConfig.browser.js +26 -12
  31. package/dist-es/runtimeConfig.js +30 -12
  32. package/dist-es/runtimeConfig.native.js +8 -5
  33. package/dist-es/runtimeConfig.shared.js +8 -11
  34. package/package.json +33 -33
package/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
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.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-mediastore
9
+
10
+
11
+
12
+
13
+
6
14
  # [3.181.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.180.0...v3.181.0) (2022-09-29)
7
15
 
8
16
 
@@ -1,4 +1,3 @@
1
- import { __extends } from "tslib";
2
1
  import { CreateContainerCommand, } from "./commands/CreateContainerCommand";
3
2
  import { DeleteContainerCommand, } from "./commands/DeleteContainerCommand";
4
3
  import { DeleteContainerPolicyCommand, } from "./commands/DeleteContainerPolicyCommand";
@@ -21,305 +20,299 @@ import { StopAccessLoggingCommand, } from "./commands/StopAccessLoggingCommand";
21
20
  import { TagResourceCommand } from "./commands/TagResourceCommand";
22
21
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
23
22
  import { MediaStoreClient } from "./MediaStoreClient";
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);
23
+ export class MediaStore extends MediaStoreClient {
24
+ createContainer(args, optionsOrCb, cb) {
25
+ const command = new CreateContainerCommand(args);
31
26
  if (typeof optionsOrCb === "function") {
32
27
  this.send(command, optionsOrCb);
33
28
  }
34
29
  else if (typeof cb === "function") {
35
30
  if (typeof optionsOrCb !== "object")
36
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
31
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
37
32
  this.send(command, optionsOrCb || {}, cb);
38
33
  }
39
34
  else {
40
35
  return this.send(command, optionsOrCb);
41
36
  }
42
- };
43
- MediaStore.prototype.deleteContainer = function (args, optionsOrCb, cb) {
44
- var command = new DeleteContainerCommand(args);
37
+ }
38
+ deleteContainer(args, optionsOrCb, cb) {
39
+ const command = new DeleteContainerCommand(args);
45
40
  if (typeof optionsOrCb === "function") {
46
41
  this.send(command, optionsOrCb);
47
42
  }
48
43
  else if (typeof cb === "function") {
49
44
  if (typeof optionsOrCb !== "object")
50
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
45
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
51
46
  this.send(command, optionsOrCb || {}, cb);
52
47
  }
53
48
  else {
54
49
  return this.send(command, optionsOrCb);
55
50
  }
56
- };
57
- MediaStore.prototype.deleteContainerPolicy = function (args, optionsOrCb, cb) {
58
- var command = new DeleteContainerPolicyCommand(args);
51
+ }
52
+ deleteContainerPolicy(args, optionsOrCb, cb) {
53
+ const command = new DeleteContainerPolicyCommand(args);
59
54
  if (typeof optionsOrCb === "function") {
60
55
  this.send(command, optionsOrCb);
61
56
  }
62
57
  else if (typeof cb === "function") {
63
58
  if (typeof optionsOrCb !== "object")
64
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
59
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
65
60
  this.send(command, optionsOrCb || {}, cb);
66
61
  }
67
62
  else {
68
63
  return this.send(command, optionsOrCb);
69
64
  }
70
- };
71
- MediaStore.prototype.deleteCorsPolicy = function (args, optionsOrCb, cb) {
72
- var command = new DeleteCorsPolicyCommand(args);
65
+ }
66
+ deleteCorsPolicy(args, optionsOrCb, cb) {
67
+ const command = new DeleteCorsPolicyCommand(args);
73
68
  if (typeof optionsOrCb === "function") {
74
69
  this.send(command, optionsOrCb);
75
70
  }
76
71
  else if (typeof cb === "function") {
77
72
  if (typeof optionsOrCb !== "object")
78
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
73
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
79
74
  this.send(command, optionsOrCb || {}, cb);
80
75
  }
81
76
  else {
82
77
  return this.send(command, optionsOrCb);
83
78
  }
84
- };
85
- MediaStore.prototype.deleteLifecyclePolicy = function (args, optionsOrCb, cb) {
86
- var command = new DeleteLifecyclePolicyCommand(args);
79
+ }
80
+ deleteLifecyclePolicy(args, optionsOrCb, cb) {
81
+ const command = new DeleteLifecyclePolicyCommand(args);
87
82
  if (typeof optionsOrCb === "function") {
88
83
  this.send(command, optionsOrCb);
89
84
  }
90
85
  else if (typeof cb === "function") {
91
86
  if (typeof optionsOrCb !== "object")
92
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
87
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
93
88
  this.send(command, optionsOrCb || {}, cb);
94
89
  }
95
90
  else {
96
91
  return this.send(command, optionsOrCb);
97
92
  }
98
- };
99
- MediaStore.prototype.deleteMetricPolicy = function (args, optionsOrCb, cb) {
100
- var command = new DeleteMetricPolicyCommand(args);
93
+ }
94
+ deleteMetricPolicy(args, optionsOrCb, cb) {
95
+ const command = new DeleteMetricPolicyCommand(args);
101
96
  if (typeof optionsOrCb === "function") {
102
97
  this.send(command, optionsOrCb);
103
98
  }
104
99
  else if (typeof cb === "function") {
105
100
  if (typeof optionsOrCb !== "object")
106
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
101
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
107
102
  this.send(command, optionsOrCb || {}, cb);
108
103
  }
109
104
  else {
110
105
  return this.send(command, optionsOrCb);
111
106
  }
112
- };
113
- MediaStore.prototype.describeContainer = function (args, optionsOrCb, cb) {
114
- var command = new DescribeContainerCommand(args);
107
+ }
108
+ describeContainer(args, optionsOrCb, cb) {
109
+ const command = new DescribeContainerCommand(args);
115
110
  if (typeof optionsOrCb === "function") {
116
111
  this.send(command, optionsOrCb);
117
112
  }
118
113
  else if (typeof cb === "function") {
119
114
  if (typeof optionsOrCb !== "object")
120
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
115
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
121
116
  this.send(command, optionsOrCb || {}, cb);
122
117
  }
123
118
  else {
124
119
  return this.send(command, optionsOrCb);
125
120
  }
126
- };
127
- MediaStore.prototype.getContainerPolicy = function (args, optionsOrCb, cb) {
128
- var command = new GetContainerPolicyCommand(args);
121
+ }
122
+ getContainerPolicy(args, optionsOrCb, cb) {
123
+ const command = new GetContainerPolicyCommand(args);
129
124
  if (typeof optionsOrCb === "function") {
130
125
  this.send(command, optionsOrCb);
131
126
  }
132
127
  else if (typeof cb === "function") {
133
128
  if (typeof optionsOrCb !== "object")
134
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
129
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
135
130
  this.send(command, optionsOrCb || {}, cb);
136
131
  }
137
132
  else {
138
133
  return this.send(command, optionsOrCb);
139
134
  }
140
- };
141
- MediaStore.prototype.getCorsPolicy = function (args, optionsOrCb, cb) {
142
- var command = new GetCorsPolicyCommand(args);
135
+ }
136
+ getCorsPolicy(args, optionsOrCb, cb) {
137
+ const command = new GetCorsPolicyCommand(args);
143
138
  if (typeof optionsOrCb === "function") {
144
139
  this.send(command, optionsOrCb);
145
140
  }
146
141
  else if (typeof cb === "function") {
147
142
  if (typeof optionsOrCb !== "object")
148
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
143
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
149
144
  this.send(command, optionsOrCb || {}, cb);
150
145
  }
151
146
  else {
152
147
  return this.send(command, optionsOrCb);
153
148
  }
154
- };
155
- MediaStore.prototype.getLifecyclePolicy = function (args, optionsOrCb, cb) {
156
- var command = new GetLifecyclePolicyCommand(args);
149
+ }
150
+ getLifecyclePolicy(args, optionsOrCb, cb) {
151
+ const command = new GetLifecyclePolicyCommand(args);
157
152
  if (typeof optionsOrCb === "function") {
158
153
  this.send(command, optionsOrCb);
159
154
  }
160
155
  else if (typeof cb === "function") {
161
156
  if (typeof optionsOrCb !== "object")
162
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
157
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
163
158
  this.send(command, optionsOrCb || {}, cb);
164
159
  }
165
160
  else {
166
161
  return this.send(command, optionsOrCb);
167
162
  }
168
- };
169
- MediaStore.prototype.getMetricPolicy = function (args, optionsOrCb, cb) {
170
- var command = new GetMetricPolicyCommand(args);
163
+ }
164
+ getMetricPolicy(args, optionsOrCb, cb) {
165
+ const command = new GetMetricPolicyCommand(args);
171
166
  if (typeof optionsOrCb === "function") {
172
167
  this.send(command, optionsOrCb);
173
168
  }
174
169
  else if (typeof cb === "function") {
175
170
  if (typeof optionsOrCb !== "object")
176
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
171
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
177
172
  this.send(command, optionsOrCb || {}, cb);
178
173
  }
179
174
  else {
180
175
  return this.send(command, optionsOrCb);
181
176
  }
182
- };
183
- MediaStore.prototype.listContainers = function (args, optionsOrCb, cb) {
184
- var command = new ListContainersCommand(args);
177
+ }
178
+ listContainers(args, optionsOrCb, cb) {
179
+ const command = new ListContainersCommand(args);
185
180
  if (typeof optionsOrCb === "function") {
186
181
  this.send(command, optionsOrCb);
187
182
  }
188
183
  else if (typeof cb === "function") {
189
184
  if (typeof optionsOrCb !== "object")
190
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
185
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
191
186
  this.send(command, optionsOrCb || {}, cb);
192
187
  }
193
188
  else {
194
189
  return this.send(command, optionsOrCb);
195
190
  }
196
- };
197
- MediaStore.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
198
- var command = new ListTagsForResourceCommand(args);
191
+ }
192
+ listTagsForResource(args, optionsOrCb, cb) {
193
+ const command = new ListTagsForResourceCommand(args);
199
194
  if (typeof optionsOrCb === "function") {
200
195
  this.send(command, optionsOrCb);
201
196
  }
202
197
  else if (typeof cb === "function") {
203
198
  if (typeof optionsOrCb !== "object")
204
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
199
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
205
200
  this.send(command, optionsOrCb || {}, cb);
206
201
  }
207
202
  else {
208
203
  return this.send(command, optionsOrCb);
209
204
  }
210
- };
211
- MediaStore.prototype.putContainerPolicy = function (args, optionsOrCb, cb) {
212
- var command = new PutContainerPolicyCommand(args);
205
+ }
206
+ putContainerPolicy(args, optionsOrCb, cb) {
207
+ const command = new PutContainerPolicyCommand(args);
213
208
  if (typeof optionsOrCb === "function") {
214
209
  this.send(command, optionsOrCb);
215
210
  }
216
211
  else if (typeof cb === "function") {
217
212
  if (typeof optionsOrCb !== "object")
218
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
213
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
219
214
  this.send(command, optionsOrCb || {}, cb);
220
215
  }
221
216
  else {
222
217
  return this.send(command, optionsOrCb);
223
218
  }
224
- };
225
- MediaStore.prototype.putCorsPolicy = function (args, optionsOrCb, cb) {
226
- var command = new PutCorsPolicyCommand(args);
219
+ }
220
+ putCorsPolicy(args, optionsOrCb, cb) {
221
+ const command = new PutCorsPolicyCommand(args);
227
222
  if (typeof optionsOrCb === "function") {
228
223
  this.send(command, optionsOrCb);
229
224
  }
230
225
  else if (typeof cb === "function") {
231
226
  if (typeof optionsOrCb !== "object")
232
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
227
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
233
228
  this.send(command, optionsOrCb || {}, cb);
234
229
  }
235
230
  else {
236
231
  return this.send(command, optionsOrCb);
237
232
  }
238
- };
239
- MediaStore.prototype.putLifecyclePolicy = function (args, optionsOrCb, cb) {
240
- var command = new PutLifecyclePolicyCommand(args);
233
+ }
234
+ putLifecyclePolicy(args, optionsOrCb, cb) {
235
+ const command = new PutLifecyclePolicyCommand(args);
241
236
  if (typeof optionsOrCb === "function") {
242
237
  this.send(command, optionsOrCb);
243
238
  }
244
239
  else if (typeof cb === "function") {
245
240
  if (typeof optionsOrCb !== "object")
246
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
241
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
247
242
  this.send(command, optionsOrCb || {}, cb);
248
243
  }
249
244
  else {
250
245
  return this.send(command, optionsOrCb);
251
246
  }
252
- };
253
- MediaStore.prototype.putMetricPolicy = function (args, optionsOrCb, cb) {
254
- var command = new PutMetricPolicyCommand(args);
247
+ }
248
+ putMetricPolicy(args, optionsOrCb, cb) {
249
+ const command = new PutMetricPolicyCommand(args);
255
250
  if (typeof optionsOrCb === "function") {
256
251
  this.send(command, optionsOrCb);
257
252
  }
258
253
  else if (typeof cb === "function") {
259
254
  if (typeof optionsOrCb !== "object")
260
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
255
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
261
256
  this.send(command, optionsOrCb || {}, cb);
262
257
  }
263
258
  else {
264
259
  return this.send(command, optionsOrCb);
265
260
  }
266
- };
267
- MediaStore.prototype.startAccessLogging = function (args, optionsOrCb, cb) {
268
- var command = new StartAccessLoggingCommand(args);
261
+ }
262
+ startAccessLogging(args, optionsOrCb, cb) {
263
+ const command = new StartAccessLoggingCommand(args);
269
264
  if (typeof optionsOrCb === "function") {
270
265
  this.send(command, optionsOrCb);
271
266
  }
272
267
  else if (typeof cb === "function") {
273
268
  if (typeof optionsOrCb !== "object")
274
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
269
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
275
270
  this.send(command, optionsOrCb || {}, cb);
276
271
  }
277
272
  else {
278
273
  return this.send(command, optionsOrCb);
279
274
  }
280
- };
281
- MediaStore.prototype.stopAccessLogging = function (args, optionsOrCb, cb) {
282
- var command = new StopAccessLoggingCommand(args);
275
+ }
276
+ stopAccessLogging(args, optionsOrCb, cb) {
277
+ const command = new StopAccessLoggingCommand(args);
283
278
  if (typeof optionsOrCb === "function") {
284
279
  this.send(command, optionsOrCb);
285
280
  }
286
281
  else if (typeof cb === "function") {
287
282
  if (typeof optionsOrCb !== "object")
288
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
283
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
289
284
  this.send(command, optionsOrCb || {}, cb);
290
285
  }
291
286
  else {
292
287
  return this.send(command, optionsOrCb);
293
288
  }
294
- };
295
- MediaStore.prototype.tagResource = function (args, optionsOrCb, cb) {
296
- var command = new TagResourceCommand(args);
289
+ }
290
+ tagResource(args, optionsOrCb, cb) {
291
+ const command = new TagResourceCommand(args);
297
292
  if (typeof optionsOrCb === "function") {
298
293
  this.send(command, optionsOrCb);
299
294
  }
300
295
  else if (typeof cb === "function") {
301
296
  if (typeof optionsOrCb !== "object")
302
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
297
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
303
298
  this.send(command, optionsOrCb || {}, cb);
304
299
  }
305
300
  else {
306
301
  return this.send(command, optionsOrCb);
307
302
  }
308
- };
309
- MediaStore.prototype.untagResource = function (args, optionsOrCb, cb) {
310
- var command = new UntagResourceCommand(args);
303
+ }
304
+ untagResource(args, optionsOrCb, cb) {
305
+ const command = new UntagResourceCommand(args);
311
306
  if (typeof optionsOrCb === "function") {
312
307
  this.send(command, optionsOrCb);
313
308
  }
314
309
  else if (typeof cb === "function") {
315
310
  if (typeof optionsOrCb !== "object")
316
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
311
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
317
312
  this.send(command, optionsOrCb || {}, cb);
318
313
  }
319
314
  else {
320
315
  return this.send(command, optionsOrCb);
321
316
  }
322
- };
323
- return MediaStore;
324
- }(MediaStoreClient));
325
- export { MediaStore };
317
+ }
318
+ }
@@ -1,4 +1,3 @@
1
- import { __extends } from "tslib";
2
1
  import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
3
2
  import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
4
3
  import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
@@ -9,31 +8,26 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
9
8
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
10
9
  import { Client as __Client, } from "@aws-sdk/smithy-client";
11
10
  import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
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;
11
+ export class MediaStoreClient extends __Client {
12
+ constructor(configuration) {
13
+ const _config_0 = __getRuntimeConfig(configuration);
14
+ const _config_1 = resolveRegionConfig(_config_0);
15
+ const _config_2 = resolveEndpointsConfig(_config_1);
16
+ const _config_3 = resolveRetryConfig(_config_2);
17
+ const _config_4 = resolveHostHeaderConfig(_config_3);
18
+ const _config_5 = resolveAwsAuthConfig(_config_4);
19
+ const _config_6 = resolveUserAgentConfig(_config_5);
20
+ super(_config_6);
21
+ this.config = _config_6;
22
+ this.middlewareStack.use(getRetryPlugin(this.config));
23
+ this.middlewareStack.use(getContentLengthPlugin(this.config));
24
+ this.middlewareStack.use(getHostHeaderPlugin(this.config));
25
+ this.middlewareStack.use(getLoggerPlugin(this.config));
26
+ this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
27
+ this.middlewareStack.use(getAwsAuthPlugin(this.config));
28
+ this.middlewareStack.use(getUserAgentPlugin(this.config));
33
29
  }
34
- MediaStoreClient.prototype.destroy = function () {
35
- _super.prototype.destroy.call(this);
36
- };
37
- return MediaStoreClient;
38
- }(__Client));
39
- export { MediaStoreClient };
30
+ destroy() {
31
+ super.destroy();
32
+ }
33
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { CreateContainerInputFilterSensitiveLog, CreateContainerOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1CreateContainerCommand, serializeAws_json1_1CreateContainerCommand, } from "../protocols/Aws_json1_1";
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;
5
+ export class CreateContainerCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateContainerCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
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,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "MediaStoreClient";
15
+ const commandName = "CreateContainerCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateContainerInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateContainerOutputFilterSensitiveLog,
25
22
  };
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) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1CreateContainerCommand(input, context);
33
- };
34
- CreateContainerCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1CreateContainerCommand(output, context);
36
- };
37
- return CreateContainerCommand;
38
- }($Command));
39
- export { CreateContainerCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DeleteContainerInputFilterSensitiveLog, DeleteContainerOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DeleteContainerCommand, serializeAws_json1_1DeleteContainerCommand, } from "../protocols/Aws_json1_1";
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;
5
+ export class DeleteContainerCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteContainerCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
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,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "MediaStoreClient";
15
+ const commandName = "DeleteContainerCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteContainerInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DeleteContainerOutputFilterSensitiveLog,
25
22
  };
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) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1DeleteContainerCommand(input, context);
33
- };
34
- DeleteContainerCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DeleteContainerCommand(output, context);
36
- };
37
- return DeleteContainerCommand;
38
- }($Command));
39
- export { DeleteContainerCommand };
31
+ }
32
+ }