@aws-sdk/client-mediapackage-vod 3.183.0 → 3.186.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 (33) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist-cjs/protocols/Aws_restJson1.js +2 -2
  3. package/dist-es/MediaPackageVod.js +77 -70
  4. package/dist-es/MediaPackageVodClient.js +28 -22
  5. package/dist-es/commands/ConfigureLogsCommand.js +28 -21
  6. package/dist-es/commands/CreateAssetCommand.js +28 -21
  7. package/dist-es/commands/CreatePackagingConfigurationCommand.js +28 -21
  8. package/dist-es/commands/CreatePackagingGroupCommand.js +28 -21
  9. package/dist-es/commands/DeleteAssetCommand.js +28 -21
  10. package/dist-es/commands/DeletePackagingConfigurationCommand.js +28 -21
  11. package/dist-es/commands/DeletePackagingGroupCommand.js +28 -21
  12. package/dist-es/commands/DescribeAssetCommand.js +28 -21
  13. package/dist-es/commands/DescribePackagingConfigurationCommand.js +28 -21
  14. package/dist-es/commands/DescribePackagingGroupCommand.js +28 -21
  15. package/dist-es/commands/ListAssetsCommand.js +28 -21
  16. package/dist-es/commands/ListPackagingConfigurationsCommand.js +28 -21
  17. package/dist-es/commands/ListPackagingGroupsCommand.js +28 -21
  18. package/dist-es/commands/ListTagsForResourceCommand.js +28 -21
  19. package/dist-es/commands/TagResourceCommand.js +29 -22
  20. package/dist-es/commands/UntagResourceCommand.js +29 -22
  21. package/dist-es/commands/UpdatePackagingGroupCommand.js +28 -21
  22. package/dist-es/endpoints.js +8 -8
  23. package/dist-es/models/MediaPackageVodServiceException.js +10 -5
  24. package/dist-es/models/models_0.js +124 -225
  25. package/dist-es/pagination/ListAssetsPaginator.js +68 -25
  26. package/dist-es/pagination/ListPackagingConfigurationsPaginator.js +68 -25
  27. package/dist-es/pagination/ListPackagingGroupsPaginator.js +68 -25
  28. package/dist-es/protocols/Aws_restJson1.js +1997 -1530
  29. package/dist-es/runtimeConfig.browser.js +12 -26
  30. package/dist-es/runtimeConfig.js +12 -30
  31. package/dist-es/runtimeConfig.native.js +5 -8
  32. package/dist-es/runtimeConfig.shared.js +11 -8
  33. package/package.json +33 -33
package/CHANGELOG.md CHANGED
@@ -3,6 +3,25 @@
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.186.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.185.0...v3.186.0) (2022-10-06)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-mediapackage-vod
9
+
10
+
11
+
12
+
13
+
14
+ # [3.185.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.184.0...v3.185.0) (2022-10-05)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * **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))
20
+
21
+
22
+
23
+
24
+
6
25
  # [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
7
26
 
8
27
  **Note:** Version bump only for package @aws-sdk/client-mediapackage-vod
@@ -1844,10 +1844,10 @@ const deserializeAws_restJson1Tags = (output, context) => {
1844
1844
  }, {});
1845
1845
  };
1846
1846
  const deserializeMetadata = (output) => {
1847
- var _a;
1847
+ var _a, _b;
1848
1848
  return ({
1849
1849
  httpStatusCode: output.statusCode,
1850
- requestId: (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"],
1850
+ 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"],
1851
1851
  extendedRequestId: output.headers["x-amz-id-2"],
1852
1852
  cfId: output.headers["x-amz-cf-id"],
1853
1853
  });
@@ -1,3 +1,4 @@
1
+ import { __extends } from "tslib";
1
2
  import { ConfigureLogsCommand, } from "./commands/ConfigureLogsCommand";
2
3
  import { CreateAssetCommand } from "./commands/CreateAssetCommand";
3
4
  import { CreatePackagingConfigurationCommand, } from "./commands/CreatePackagingConfigurationCommand";
@@ -16,243 +17,249 @@ import { TagResourceCommand } from "./commands/TagResourceCommand";
16
17
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
17
18
  import { UpdatePackagingGroupCommand, } from "./commands/UpdatePackagingGroupCommand";
18
19
  import { MediaPackageVodClient } from "./MediaPackageVodClient";
19
- export class MediaPackageVod extends MediaPackageVodClient {
20
- configureLogs(args, optionsOrCb, cb) {
21
- const command = new ConfigureLogsCommand(args);
20
+ var MediaPackageVod = (function (_super) {
21
+ __extends(MediaPackageVod, _super);
22
+ function MediaPackageVod() {
23
+ return _super !== null && _super.apply(this, arguments) || this;
24
+ }
25
+ MediaPackageVod.prototype.configureLogs = function (args, optionsOrCb, cb) {
26
+ var command = new ConfigureLogsCommand(args);
22
27
  if (typeof optionsOrCb === "function") {
23
28
  this.send(command, optionsOrCb);
24
29
  }
25
30
  else if (typeof cb === "function") {
26
31
  if (typeof optionsOrCb !== "object")
27
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
32
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
28
33
  this.send(command, optionsOrCb || {}, cb);
29
34
  }
30
35
  else {
31
36
  return this.send(command, optionsOrCb);
32
37
  }
33
- }
34
- createAsset(args, optionsOrCb, cb) {
35
- const command = new CreateAssetCommand(args);
38
+ };
39
+ MediaPackageVod.prototype.createAsset = function (args, optionsOrCb, cb) {
40
+ var command = new CreateAssetCommand(args);
36
41
  if (typeof optionsOrCb === "function") {
37
42
  this.send(command, optionsOrCb);
38
43
  }
39
44
  else if (typeof cb === "function") {
40
45
  if (typeof optionsOrCb !== "object")
41
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
46
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
42
47
  this.send(command, optionsOrCb || {}, cb);
43
48
  }
44
49
  else {
45
50
  return this.send(command, optionsOrCb);
46
51
  }
47
- }
48
- createPackagingConfiguration(args, optionsOrCb, cb) {
49
- const command = new CreatePackagingConfigurationCommand(args);
52
+ };
53
+ MediaPackageVod.prototype.createPackagingConfiguration = function (args, optionsOrCb, cb) {
54
+ var command = new CreatePackagingConfigurationCommand(args);
50
55
  if (typeof optionsOrCb === "function") {
51
56
  this.send(command, optionsOrCb);
52
57
  }
53
58
  else if (typeof cb === "function") {
54
59
  if (typeof optionsOrCb !== "object")
55
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
60
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
56
61
  this.send(command, optionsOrCb || {}, cb);
57
62
  }
58
63
  else {
59
64
  return this.send(command, optionsOrCb);
60
65
  }
61
- }
62
- createPackagingGroup(args, optionsOrCb, cb) {
63
- const command = new CreatePackagingGroupCommand(args);
66
+ };
67
+ MediaPackageVod.prototype.createPackagingGroup = function (args, optionsOrCb, cb) {
68
+ var command = new CreatePackagingGroupCommand(args);
64
69
  if (typeof optionsOrCb === "function") {
65
70
  this.send(command, optionsOrCb);
66
71
  }
67
72
  else if (typeof cb === "function") {
68
73
  if (typeof optionsOrCb !== "object")
69
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
74
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
70
75
  this.send(command, optionsOrCb || {}, cb);
71
76
  }
72
77
  else {
73
78
  return this.send(command, optionsOrCb);
74
79
  }
75
- }
76
- deleteAsset(args, optionsOrCb, cb) {
77
- const command = new DeleteAssetCommand(args);
80
+ };
81
+ MediaPackageVod.prototype.deleteAsset = function (args, optionsOrCb, cb) {
82
+ var command = new DeleteAssetCommand(args);
78
83
  if (typeof optionsOrCb === "function") {
79
84
  this.send(command, optionsOrCb);
80
85
  }
81
86
  else if (typeof cb === "function") {
82
87
  if (typeof optionsOrCb !== "object")
83
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
88
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
84
89
  this.send(command, optionsOrCb || {}, cb);
85
90
  }
86
91
  else {
87
92
  return this.send(command, optionsOrCb);
88
93
  }
89
- }
90
- deletePackagingConfiguration(args, optionsOrCb, cb) {
91
- const command = new DeletePackagingConfigurationCommand(args);
94
+ };
95
+ MediaPackageVod.prototype.deletePackagingConfiguration = function (args, optionsOrCb, cb) {
96
+ var command = new DeletePackagingConfigurationCommand(args);
92
97
  if (typeof optionsOrCb === "function") {
93
98
  this.send(command, optionsOrCb);
94
99
  }
95
100
  else if (typeof cb === "function") {
96
101
  if (typeof optionsOrCb !== "object")
97
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
102
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
98
103
  this.send(command, optionsOrCb || {}, cb);
99
104
  }
100
105
  else {
101
106
  return this.send(command, optionsOrCb);
102
107
  }
103
- }
104
- deletePackagingGroup(args, optionsOrCb, cb) {
105
- const command = new DeletePackagingGroupCommand(args);
108
+ };
109
+ MediaPackageVod.prototype.deletePackagingGroup = function (args, optionsOrCb, cb) {
110
+ var command = new DeletePackagingGroupCommand(args);
106
111
  if (typeof optionsOrCb === "function") {
107
112
  this.send(command, optionsOrCb);
108
113
  }
109
114
  else if (typeof cb === "function") {
110
115
  if (typeof optionsOrCb !== "object")
111
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
116
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
112
117
  this.send(command, optionsOrCb || {}, cb);
113
118
  }
114
119
  else {
115
120
  return this.send(command, optionsOrCb);
116
121
  }
117
- }
118
- describeAsset(args, optionsOrCb, cb) {
119
- const command = new DescribeAssetCommand(args);
122
+ };
123
+ MediaPackageVod.prototype.describeAsset = function (args, optionsOrCb, cb) {
124
+ var command = new DescribeAssetCommand(args);
120
125
  if (typeof optionsOrCb === "function") {
121
126
  this.send(command, optionsOrCb);
122
127
  }
123
128
  else if (typeof cb === "function") {
124
129
  if (typeof optionsOrCb !== "object")
125
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
130
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
126
131
  this.send(command, optionsOrCb || {}, cb);
127
132
  }
128
133
  else {
129
134
  return this.send(command, optionsOrCb);
130
135
  }
131
- }
132
- describePackagingConfiguration(args, optionsOrCb, cb) {
133
- const command = new DescribePackagingConfigurationCommand(args);
136
+ };
137
+ MediaPackageVod.prototype.describePackagingConfiguration = function (args, optionsOrCb, cb) {
138
+ var command = new DescribePackagingConfigurationCommand(args);
134
139
  if (typeof optionsOrCb === "function") {
135
140
  this.send(command, optionsOrCb);
136
141
  }
137
142
  else if (typeof cb === "function") {
138
143
  if (typeof optionsOrCb !== "object")
139
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
144
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
140
145
  this.send(command, optionsOrCb || {}, cb);
141
146
  }
142
147
  else {
143
148
  return this.send(command, optionsOrCb);
144
149
  }
145
- }
146
- describePackagingGroup(args, optionsOrCb, cb) {
147
- const command = new DescribePackagingGroupCommand(args);
150
+ };
151
+ MediaPackageVod.prototype.describePackagingGroup = function (args, optionsOrCb, cb) {
152
+ var command = new DescribePackagingGroupCommand(args);
148
153
  if (typeof optionsOrCb === "function") {
149
154
  this.send(command, optionsOrCb);
150
155
  }
151
156
  else if (typeof cb === "function") {
152
157
  if (typeof optionsOrCb !== "object")
153
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
158
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
154
159
  this.send(command, optionsOrCb || {}, cb);
155
160
  }
156
161
  else {
157
162
  return this.send(command, optionsOrCb);
158
163
  }
159
- }
160
- listAssets(args, optionsOrCb, cb) {
161
- const command = new ListAssetsCommand(args);
164
+ };
165
+ MediaPackageVod.prototype.listAssets = function (args, optionsOrCb, cb) {
166
+ var command = new ListAssetsCommand(args);
162
167
  if (typeof optionsOrCb === "function") {
163
168
  this.send(command, optionsOrCb);
164
169
  }
165
170
  else if (typeof cb === "function") {
166
171
  if (typeof optionsOrCb !== "object")
167
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
172
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
168
173
  this.send(command, optionsOrCb || {}, cb);
169
174
  }
170
175
  else {
171
176
  return this.send(command, optionsOrCb);
172
177
  }
173
- }
174
- listPackagingConfigurations(args, optionsOrCb, cb) {
175
- const command = new ListPackagingConfigurationsCommand(args);
178
+ };
179
+ MediaPackageVod.prototype.listPackagingConfigurations = function (args, optionsOrCb, cb) {
180
+ var command = new ListPackagingConfigurationsCommand(args);
176
181
  if (typeof optionsOrCb === "function") {
177
182
  this.send(command, optionsOrCb);
178
183
  }
179
184
  else if (typeof cb === "function") {
180
185
  if (typeof optionsOrCb !== "object")
181
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
186
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
182
187
  this.send(command, optionsOrCb || {}, cb);
183
188
  }
184
189
  else {
185
190
  return this.send(command, optionsOrCb);
186
191
  }
187
- }
188
- listPackagingGroups(args, optionsOrCb, cb) {
189
- const command = new ListPackagingGroupsCommand(args);
192
+ };
193
+ MediaPackageVod.prototype.listPackagingGroups = function (args, optionsOrCb, cb) {
194
+ var command = new ListPackagingGroupsCommand(args);
190
195
  if (typeof optionsOrCb === "function") {
191
196
  this.send(command, optionsOrCb);
192
197
  }
193
198
  else if (typeof cb === "function") {
194
199
  if (typeof optionsOrCb !== "object")
195
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
200
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
196
201
  this.send(command, optionsOrCb || {}, cb);
197
202
  }
198
203
  else {
199
204
  return this.send(command, optionsOrCb);
200
205
  }
201
- }
202
- listTagsForResource(args, optionsOrCb, cb) {
203
- const command = new ListTagsForResourceCommand(args);
206
+ };
207
+ MediaPackageVod.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
208
+ var command = new ListTagsForResourceCommand(args);
204
209
  if (typeof optionsOrCb === "function") {
205
210
  this.send(command, optionsOrCb);
206
211
  }
207
212
  else if (typeof cb === "function") {
208
213
  if (typeof optionsOrCb !== "object")
209
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
214
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
210
215
  this.send(command, optionsOrCb || {}, cb);
211
216
  }
212
217
  else {
213
218
  return this.send(command, optionsOrCb);
214
219
  }
215
- }
216
- tagResource(args, optionsOrCb, cb) {
217
- const command = new TagResourceCommand(args);
220
+ };
221
+ MediaPackageVod.prototype.tagResource = function (args, optionsOrCb, cb) {
222
+ var command = new TagResourceCommand(args);
218
223
  if (typeof optionsOrCb === "function") {
219
224
  this.send(command, optionsOrCb);
220
225
  }
221
226
  else if (typeof cb === "function") {
222
227
  if (typeof optionsOrCb !== "object")
223
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
228
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
224
229
  this.send(command, optionsOrCb || {}, cb);
225
230
  }
226
231
  else {
227
232
  return this.send(command, optionsOrCb);
228
233
  }
229
- }
230
- untagResource(args, optionsOrCb, cb) {
231
- const command = new UntagResourceCommand(args);
234
+ };
235
+ MediaPackageVod.prototype.untagResource = function (args, optionsOrCb, cb) {
236
+ var command = new UntagResourceCommand(args);
232
237
  if (typeof optionsOrCb === "function") {
233
238
  this.send(command, optionsOrCb);
234
239
  }
235
240
  else if (typeof cb === "function") {
236
241
  if (typeof optionsOrCb !== "object")
237
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
242
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
238
243
  this.send(command, optionsOrCb || {}, cb);
239
244
  }
240
245
  else {
241
246
  return this.send(command, optionsOrCb);
242
247
  }
243
- }
244
- updatePackagingGroup(args, optionsOrCb, cb) {
245
- const command = new UpdatePackagingGroupCommand(args);
248
+ };
249
+ MediaPackageVod.prototype.updatePackagingGroup = function (args, optionsOrCb, cb) {
250
+ var command = new UpdatePackagingGroupCommand(args);
246
251
  if (typeof optionsOrCb === "function") {
247
252
  this.send(command, optionsOrCb);
248
253
  }
249
254
  else if (typeof cb === "function") {
250
255
  if (typeof optionsOrCb !== "object")
251
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
256
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
252
257
  this.send(command, optionsOrCb || {}, cb);
253
258
  }
254
259
  else {
255
260
  return this.send(command, optionsOrCb);
256
261
  }
257
- }
258
- }
262
+ };
263
+ return MediaPackageVod;
264
+ }(MediaPackageVodClient));
265
+ export { MediaPackageVod };
@@ -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
- export class MediaPackageVodClient 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));
12
+ var MediaPackageVodClient = (function (_super) {
13
+ __extends(MediaPackageVodClient, _super);
14
+ function MediaPackageVodClient(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
- super.destroy();
32
- }
33
- }
34
+ MediaPackageVodClient.prototype.destroy = function () {
35
+ _super.prototype.destroy.call(this);
36
+ };
37
+ return MediaPackageVodClient;
38
+ }(__Client));
39
+ export { MediaPackageVodClient };
@@ -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 { ConfigureLogsRequestFilterSensitiveLog, ConfigureLogsResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1ConfigureLogsCommand, serializeAws_restJson1ConfigureLogsCommand, } from "../protocols/Aws_restJson1";
5
- export class ConfigureLogsCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var ConfigureLogsCommand = (function (_super) {
7
+ __extends(ConfigureLogsCommand, _super);
8
+ function ConfigureLogsCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ ConfigureLogsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "MediaPackageVodClient";
15
- const commandName = "ConfigureLogsCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "MediaPackageVodClient";
18
+ var commandName = "ConfigureLogsCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: ConfigureLogsRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: ConfigureLogsResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ ConfigureLogsCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1ConfigureLogsCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ ConfigureLogsCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1ConfigureLogsCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return ConfigureLogsCommand;
38
+ }($Command));
39
+ export { ConfigureLogsCommand };
@@ -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 { CreateAssetRequestFilterSensitiveLog, CreateAssetResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1CreateAssetCommand, serializeAws_restJson1CreateAssetCommand, } from "../protocols/Aws_restJson1";
5
- export class CreateAssetCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var CreateAssetCommand = (function (_super) {
7
+ __extends(CreateAssetCommand, _super);
8
+ function CreateAssetCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ CreateAssetCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "MediaPackageVodClient";
15
- const commandName = "CreateAssetCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "MediaPackageVodClient";
18
+ var commandName = "CreateAssetCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: CreateAssetRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: CreateAssetResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ CreateAssetCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1CreateAssetCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ CreateAssetCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1CreateAssetCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return CreateAssetCommand;
38
+ }($Command));
39
+ export { CreateAssetCommand };
@@ -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 { CreatePackagingConfigurationRequestFilterSensitiveLog, CreatePackagingConfigurationResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1CreatePackagingConfigurationCommand, serializeAws_restJson1CreatePackagingConfigurationCommand, } from "../protocols/Aws_restJson1";
5
- export class CreatePackagingConfigurationCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var CreatePackagingConfigurationCommand = (function (_super) {
7
+ __extends(CreatePackagingConfigurationCommand, _super);
8
+ function CreatePackagingConfigurationCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ CreatePackagingConfigurationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "MediaPackageVodClient";
15
- const commandName = "CreatePackagingConfigurationCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "MediaPackageVodClient";
18
+ var commandName = "CreatePackagingConfigurationCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: CreatePackagingConfigurationRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: CreatePackagingConfigurationResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ CreatePackagingConfigurationCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1CreatePackagingConfigurationCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ CreatePackagingConfigurationCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1CreatePackagingConfigurationCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return CreatePackagingConfigurationCommand;
38
+ }($Command));
39
+ export { CreatePackagingConfigurationCommand };