@aws-sdk/client-mediapackage 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 (35) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist-cjs/protocols/Aws_restJson1.js +2 -2
  3. package/dist-es/MediaPackage.js +85 -78
  4. package/dist-es/MediaPackageClient.js +28 -22
  5. package/dist-es/commands/ConfigureLogsCommand.js +28 -21
  6. package/dist-es/commands/CreateChannelCommand.js +28 -21
  7. package/dist-es/commands/CreateHarvestJobCommand.js +28 -21
  8. package/dist-es/commands/CreateOriginEndpointCommand.js +28 -21
  9. package/dist-es/commands/DeleteChannelCommand.js +28 -21
  10. package/dist-es/commands/DeleteOriginEndpointCommand.js +28 -21
  11. package/dist-es/commands/DescribeChannelCommand.js +28 -21
  12. package/dist-es/commands/DescribeHarvestJobCommand.js +28 -21
  13. package/dist-es/commands/DescribeOriginEndpointCommand.js +28 -21
  14. package/dist-es/commands/ListChannelsCommand.js +28 -21
  15. package/dist-es/commands/ListHarvestJobsCommand.js +28 -21
  16. package/dist-es/commands/ListOriginEndpointsCommand.js +28 -21
  17. package/dist-es/commands/ListTagsForResourceCommand.js +28 -21
  18. package/dist-es/commands/RotateChannelCredentialsCommand.js +28 -21
  19. package/dist-es/commands/RotateIngestEndpointCredentialsCommand.js +28 -21
  20. package/dist-es/commands/TagResourceCommand.js +29 -22
  21. package/dist-es/commands/UntagResourceCommand.js +29 -22
  22. package/dist-es/commands/UpdateChannelCommand.js +28 -21
  23. package/dist-es/commands/UpdateOriginEndpointCommand.js +28 -21
  24. package/dist-es/endpoints.js +8 -8
  25. package/dist-es/models/MediaPackageServiceException.js +10 -5
  26. package/dist-es/models/models_0.js +132 -249
  27. package/dist-es/pagination/ListChannelsPaginator.js +68 -25
  28. package/dist-es/pagination/ListHarvestJobsPaginator.js +68 -25
  29. package/dist-es/pagination/ListOriginEndpointsPaginator.js +68 -25
  30. package/dist-es/protocols/Aws_restJson1.js +2343 -1853
  31. package/dist-es/runtimeConfig.browser.js +12 -26
  32. package/dist-es/runtimeConfig.js +12 -30
  33. package/dist-es/runtimeConfig.native.js +5 -8
  34. package/dist-es/runtimeConfig.shared.js +11 -8
  35. 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
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
@@ -2213,10 +2213,10 @@ const deserializeAws_restJson1Tags = (output, context) => {
2213
2213
  }, {});
2214
2214
  };
2215
2215
  const deserializeMetadata = (output) => {
2216
- var _a;
2216
+ var _a, _b;
2217
2217
  return ({
2218
2218
  httpStatusCode: output.statusCode,
2219
- requestId: (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"],
2219
+ 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"],
2220
2220
  extendedRequestId: output.headers["x-amz-id-2"],
2221
2221
  cfId: output.headers["x-amz-cf-id"],
2222
2222
  });
@@ -1,3 +1,4 @@
1
+ import { __extends } from "tslib";
1
2
  import { ConfigureLogsCommand, } from "./commands/ConfigureLogsCommand";
2
3
  import { CreateChannelCommand, } from "./commands/CreateChannelCommand";
3
4
  import { CreateHarvestJobCommand, } from "./commands/CreateHarvestJobCommand";
@@ -18,271 +19,277 @@ import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
18
19
  import { UpdateChannelCommand, } from "./commands/UpdateChannelCommand";
19
20
  import { UpdateOriginEndpointCommand, } from "./commands/UpdateOriginEndpointCommand";
20
21
  import { MediaPackageClient } from "./MediaPackageClient";
21
- export class MediaPackage extends MediaPackageClient {
22
- configureLogs(args, optionsOrCb, cb) {
23
- const command = new ConfigureLogsCommand(args);
22
+ var MediaPackage = (function (_super) {
23
+ __extends(MediaPackage, _super);
24
+ function MediaPackage() {
25
+ return _super !== null && _super.apply(this, arguments) || this;
26
+ }
27
+ MediaPackage.prototype.configureLogs = function (args, optionsOrCb, cb) {
28
+ var command = new ConfigureLogsCommand(args);
24
29
  if (typeof optionsOrCb === "function") {
25
30
  this.send(command, optionsOrCb);
26
31
  }
27
32
  else if (typeof cb === "function") {
28
33
  if (typeof optionsOrCb !== "object")
29
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
34
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
30
35
  this.send(command, optionsOrCb || {}, cb);
31
36
  }
32
37
  else {
33
38
  return this.send(command, optionsOrCb);
34
39
  }
35
- }
36
- createChannel(args, optionsOrCb, cb) {
37
- const command = new CreateChannelCommand(args);
40
+ };
41
+ MediaPackage.prototype.createChannel = function (args, optionsOrCb, cb) {
42
+ var command = new CreateChannelCommand(args);
38
43
  if (typeof optionsOrCb === "function") {
39
44
  this.send(command, optionsOrCb);
40
45
  }
41
46
  else if (typeof cb === "function") {
42
47
  if (typeof optionsOrCb !== "object")
43
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
48
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
44
49
  this.send(command, optionsOrCb || {}, cb);
45
50
  }
46
51
  else {
47
52
  return this.send(command, optionsOrCb);
48
53
  }
49
- }
50
- createHarvestJob(args, optionsOrCb, cb) {
51
- const command = new CreateHarvestJobCommand(args);
54
+ };
55
+ MediaPackage.prototype.createHarvestJob = function (args, optionsOrCb, cb) {
56
+ var command = new CreateHarvestJobCommand(args);
52
57
  if (typeof optionsOrCb === "function") {
53
58
  this.send(command, optionsOrCb);
54
59
  }
55
60
  else if (typeof cb === "function") {
56
61
  if (typeof optionsOrCb !== "object")
57
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
62
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
58
63
  this.send(command, optionsOrCb || {}, cb);
59
64
  }
60
65
  else {
61
66
  return this.send(command, optionsOrCb);
62
67
  }
63
- }
64
- createOriginEndpoint(args, optionsOrCb, cb) {
65
- const command = new CreateOriginEndpointCommand(args);
68
+ };
69
+ MediaPackage.prototype.createOriginEndpoint = function (args, optionsOrCb, cb) {
70
+ var command = new CreateOriginEndpointCommand(args);
66
71
  if (typeof optionsOrCb === "function") {
67
72
  this.send(command, optionsOrCb);
68
73
  }
69
74
  else if (typeof cb === "function") {
70
75
  if (typeof optionsOrCb !== "object")
71
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
76
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
72
77
  this.send(command, optionsOrCb || {}, cb);
73
78
  }
74
79
  else {
75
80
  return this.send(command, optionsOrCb);
76
81
  }
77
- }
78
- deleteChannel(args, optionsOrCb, cb) {
79
- const command = new DeleteChannelCommand(args);
82
+ };
83
+ MediaPackage.prototype.deleteChannel = function (args, optionsOrCb, cb) {
84
+ var command = new DeleteChannelCommand(args);
80
85
  if (typeof optionsOrCb === "function") {
81
86
  this.send(command, optionsOrCb);
82
87
  }
83
88
  else if (typeof cb === "function") {
84
89
  if (typeof optionsOrCb !== "object")
85
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
90
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
86
91
  this.send(command, optionsOrCb || {}, cb);
87
92
  }
88
93
  else {
89
94
  return this.send(command, optionsOrCb);
90
95
  }
91
- }
92
- deleteOriginEndpoint(args, optionsOrCb, cb) {
93
- const command = new DeleteOriginEndpointCommand(args);
96
+ };
97
+ MediaPackage.prototype.deleteOriginEndpoint = function (args, optionsOrCb, cb) {
98
+ var command = new DeleteOriginEndpointCommand(args);
94
99
  if (typeof optionsOrCb === "function") {
95
100
  this.send(command, optionsOrCb);
96
101
  }
97
102
  else if (typeof cb === "function") {
98
103
  if (typeof optionsOrCb !== "object")
99
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
104
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
100
105
  this.send(command, optionsOrCb || {}, cb);
101
106
  }
102
107
  else {
103
108
  return this.send(command, optionsOrCb);
104
109
  }
105
- }
106
- describeChannel(args, optionsOrCb, cb) {
107
- const command = new DescribeChannelCommand(args);
110
+ };
111
+ MediaPackage.prototype.describeChannel = function (args, optionsOrCb, cb) {
112
+ var command = new DescribeChannelCommand(args);
108
113
  if (typeof optionsOrCb === "function") {
109
114
  this.send(command, optionsOrCb);
110
115
  }
111
116
  else if (typeof cb === "function") {
112
117
  if (typeof optionsOrCb !== "object")
113
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
118
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
114
119
  this.send(command, optionsOrCb || {}, cb);
115
120
  }
116
121
  else {
117
122
  return this.send(command, optionsOrCb);
118
123
  }
119
- }
120
- describeHarvestJob(args, optionsOrCb, cb) {
121
- const command = new DescribeHarvestJobCommand(args);
124
+ };
125
+ MediaPackage.prototype.describeHarvestJob = function (args, optionsOrCb, cb) {
126
+ var command = new DescribeHarvestJobCommand(args);
122
127
  if (typeof optionsOrCb === "function") {
123
128
  this.send(command, optionsOrCb);
124
129
  }
125
130
  else if (typeof cb === "function") {
126
131
  if (typeof optionsOrCb !== "object")
127
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
132
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
128
133
  this.send(command, optionsOrCb || {}, cb);
129
134
  }
130
135
  else {
131
136
  return this.send(command, optionsOrCb);
132
137
  }
133
- }
134
- describeOriginEndpoint(args, optionsOrCb, cb) {
135
- const command = new DescribeOriginEndpointCommand(args);
138
+ };
139
+ MediaPackage.prototype.describeOriginEndpoint = function (args, optionsOrCb, cb) {
140
+ var command = new DescribeOriginEndpointCommand(args);
136
141
  if (typeof optionsOrCb === "function") {
137
142
  this.send(command, optionsOrCb);
138
143
  }
139
144
  else if (typeof cb === "function") {
140
145
  if (typeof optionsOrCb !== "object")
141
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
146
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
142
147
  this.send(command, optionsOrCb || {}, cb);
143
148
  }
144
149
  else {
145
150
  return this.send(command, optionsOrCb);
146
151
  }
147
- }
148
- listChannels(args, optionsOrCb, cb) {
149
- const command = new ListChannelsCommand(args);
152
+ };
153
+ MediaPackage.prototype.listChannels = function (args, optionsOrCb, cb) {
154
+ var command = new ListChannelsCommand(args);
150
155
  if (typeof optionsOrCb === "function") {
151
156
  this.send(command, optionsOrCb);
152
157
  }
153
158
  else if (typeof cb === "function") {
154
159
  if (typeof optionsOrCb !== "object")
155
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
160
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
156
161
  this.send(command, optionsOrCb || {}, cb);
157
162
  }
158
163
  else {
159
164
  return this.send(command, optionsOrCb);
160
165
  }
161
- }
162
- listHarvestJobs(args, optionsOrCb, cb) {
163
- const command = new ListHarvestJobsCommand(args);
166
+ };
167
+ MediaPackage.prototype.listHarvestJobs = function (args, optionsOrCb, cb) {
168
+ var command = new ListHarvestJobsCommand(args);
164
169
  if (typeof optionsOrCb === "function") {
165
170
  this.send(command, optionsOrCb);
166
171
  }
167
172
  else if (typeof cb === "function") {
168
173
  if (typeof optionsOrCb !== "object")
169
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
174
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
170
175
  this.send(command, optionsOrCb || {}, cb);
171
176
  }
172
177
  else {
173
178
  return this.send(command, optionsOrCb);
174
179
  }
175
- }
176
- listOriginEndpoints(args, optionsOrCb, cb) {
177
- const command = new ListOriginEndpointsCommand(args);
180
+ };
181
+ MediaPackage.prototype.listOriginEndpoints = function (args, optionsOrCb, cb) {
182
+ var command = new ListOriginEndpointsCommand(args);
178
183
  if (typeof optionsOrCb === "function") {
179
184
  this.send(command, optionsOrCb);
180
185
  }
181
186
  else if (typeof cb === "function") {
182
187
  if (typeof optionsOrCb !== "object")
183
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
188
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
184
189
  this.send(command, optionsOrCb || {}, cb);
185
190
  }
186
191
  else {
187
192
  return this.send(command, optionsOrCb);
188
193
  }
189
- }
190
- listTagsForResource(args, optionsOrCb, cb) {
191
- const command = new ListTagsForResourceCommand(args);
194
+ };
195
+ MediaPackage.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
196
+ var command = new ListTagsForResourceCommand(args);
192
197
  if (typeof optionsOrCb === "function") {
193
198
  this.send(command, optionsOrCb);
194
199
  }
195
200
  else if (typeof cb === "function") {
196
201
  if (typeof optionsOrCb !== "object")
197
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
202
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
198
203
  this.send(command, optionsOrCb || {}, cb);
199
204
  }
200
205
  else {
201
206
  return this.send(command, optionsOrCb);
202
207
  }
203
- }
204
- rotateChannelCredentials(args, optionsOrCb, cb) {
205
- const command = new RotateChannelCredentialsCommand(args);
208
+ };
209
+ MediaPackage.prototype.rotateChannelCredentials = function (args, optionsOrCb, cb) {
210
+ var command = new RotateChannelCredentialsCommand(args);
206
211
  if (typeof optionsOrCb === "function") {
207
212
  this.send(command, optionsOrCb);
208
213
  }
209
214
  else if (typeof cb === "function") {
210
215
  if (typeof optionsOrCb !== "object")
211
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
216
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
212
217
  this.send(command, optionsOrCb || {}, cb);
213
218
  }
214
219
  else {
215
220
  return this.send(command, optionsOrCb);
216
221
  }
217
- }
218
- rotateIngestEndpointCredentials(args, optionsOrCb, cb) {
219
- const command = new RotateIngestEndpointCredentialsCommand(args);
222
+ };
223
+ MediaPackage.prototype.rotateIngestEndpointCredentials = function (args, optionsOrCb, cb) {
224
+ var command = new RotateIngestEndpointCredentialsCommand(args);
220
225
  if (typeof optionsOrCb === "function") {
221
226
  this.send(command, optionsOrCb);
222
227
  }
223
228
  else if (typeof cb === "function") {
224
229
  if (typeof optionsOrCb !== "object")
225
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
230
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
226
231
  this.send(command, optionsOrCb || {}, cb);
227
232
  }
228
233
  else {
229
234
  return this.send(command, optionsOrCb);
230
235
  }
231
- }
232
- tagResource(args, optionsOrCb, cb) {
233
- const command = new TagResourceCommand(args);
236
+ };
237
+ MediaPackage.prototype.tagResource = function (args, optionsOrCb, cb) {
238
+ var command = new TagResourceCommand(args);
234
239
  if (typeof optionsOrCb === "function") {
235
240
  this.send(command, optionsOrCb);
236
241
  }
237
242
  else if (typeof cb === "function") {
238
243
  if (typeof optionsOrCb !== "object")
239
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
244
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
240
245
  this.send(command, optionsOrCb || {}, cb);
241
246
  }
242
247
  else {
243
248
  return this.send(command, optionsOrCb);
244
249
  }
245
- }
246
- untagResource(args, optionsOrCb, cb) {
247
- const command = new UntagResourceCommand(args);
250
+ };
251
+ MediaPackage.prototype.untagResource = function (args, optionsOrCb, cb) {
252
+ var command = new UntagResourceCommand(args);
248
253
  if (typeof optionsOrCb === "function") {
249
254
  this.send(command, optionsOrCb);
250
255
  }
251
256
  else if (typeof cb === "function") {
252
257
  if (typeof optionsOrCb !== "object")
253
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
258
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
254
259
  this.send(command, optionsOrCb || {}, cb);
255
260
  }
256
261
  else {
257
262
  return this.send(command, optionsOrCb);
258
263
  }
259
- }
260
- updateChannel(args, optionsOrCb, cb) {
261
- const command = new UpdateChannelCommand(args);
264
+ };
265
+ MediaPackage.prototype.updateChannel = function (args, optionsOrCb, cb) {
266
+ var command = new UpdateChannelCommand(args);
262
267
  if (typeof optionsOrCb === "function") {
263
268
  this.send(command, optionsOrCb);
264
269
  }
265
270
  else if (typeof cb === "function") {
266
271
  if (typeof optionsOrCb !== "object")
267
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
272
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
268
273
  this.send(command, optionsOrCb || {}, cb);
269
274
  }
270
275
  else {
271
276
  return this.send(command, optionsOrCb);
272
277
  }
273
- }
274
- updateOriginEndpoint(args, optionsOrCb, cb) {
275
- const command = new UpdateOriginEndpointCommand(args);
278
+ };
279
+ MediaPackage.prototype.updateOriginEndpoint = function (args, optionsOrCb, cb) {
280
+ var command = new UpdateOriginEndpointCommand(args);
276
281
  if (typeof optionsOrCb === "function") {
277
282
  this.send(command, optionsOrCb);
278
283
  }
279
284
  else if (typeof cb === "function") {
280
285
  if (typeof optionsOrCb !== "object")
281
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
286
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
282
287
  this.send(command, optionsOrCb || {}, cb);
283
288
  }
284
289
  else {
285
290
  return this.send(command, optionsOrCb);
286
291
  }
287
- }
288
- }
292
+ };
293
+ return MediaPackage;
294
+ }(MediaPackageClient));
295
+ export { MediaPackage };
@@ -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 MediaPackageClient 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 MediaPackageClient = (function (_super) {
13
+ __extends(MediaPackageClient, _super);
14
+ function MediaPackageClient(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
+ MediaPackageClient.prototype.destroy = function () {
35
+ _super.prototype.destroy.call(this);
36
+ };
37
+ return MediaPackageClient;
38
+ }(__Client));
39
+ export { MediaPackageClient };
@@ -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 = "MediaPackageClient";
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 = "MediaPackageClient";
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 { CreateChannelRequestFilterSensitiveLog, CreateChannelResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1CreateChannelCommand, serializeAws_restJson1CreateChannelCommand, } from "../protocols/Aws_restJson1";
5
- export class CreateChannelCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var CreateChannelCommand = (function (_super) {
7
+ __extends(CreateChannelCommand, _super);
8
+ function CreateChannelCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ CreateChannelCommand.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 = "MediaPackageClient";
15
- const commandName = "CreateChannelCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "MediaPackageClient";
18
+ var commandName = "CreateChannelCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: CreateChannelRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: CreateChannelResponseFilterSensitiveLog,
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
+ CreateChannelCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1CreateChannelCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ CreateChannelCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1CreateChannelCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return CreateChannelCommand;
38
+ }($Command));
39
+ export { CreateChannelCommand };
@@ -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 { CreateHarvestJobRequestFilterSensitiveLog, CreateHarvestJobResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1CreateHarvestJobCommand, serializeAws_restJson1CreateHarvestJobCommand, } from "../protocols/Aws_restJson1";
5
- export class CreateHarvestJobCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var CreateHarvestJobCommand = (function (_super) {
7
+ __extends(CreateHarvestJobCommand, _super);
8
+ function CreateHarvestJobCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ CreateHarvestJobCommand.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 = "MediaPackageClient";
15
- const commandName = "CreateHarvestJobCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "MediaPackageClient";
18
+ var commandName = "CreateHarvestJobCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: CreateHarvestJobRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: CreateHarvestJobResponseFilterSensitiveLog,
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
+ CreateHarvestJobCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1CreateHarvestJobCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ CreateHarvestJobCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1CreateHarvestJobCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return CreateHarvestJobCommand;
38
+ }($Command));
39
+ export { CreateHarvestJobCommand };