@aws-sdk/client-mediaconvert 3.186.0 → 3.189.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 (50) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist-cjs/protocols/Aws_restJson1.js +12 -0
  3. package/dist-es/MediaConvert.js +114 -121
  4. package/dist-es/MediaConvertClient.js +22 -28
  5. package/dist-es/commands/AssociateCertificateCommand.js +21 -28
  6. package/dist-es/commands/CancelJobCommand.js +21 -28
  7. package/dist-es/commands/CreateJobCommand.js +21 -28
  8. package/dist-es/commands/CreateJobTemplateCommand.js +21 -28
  9. package/dist-es/commands/CreatePresetCommand.js +21 -28
  10. package/dist-es/commands/CreateQueueCommand.js +21 -28
  11. package/dist-es/commands/DeleteJobTemplateCommand.js +21 -28
  12. package/dist-es/commands/DeletePolicyCommand.js +21 -28
  13. package/dist-es/commands/DeletePresetCommand.js +21 -28
  14. package/dist-es/commands/DeleteQueueCommand.js +21 -28
  15. package/dist-es/commands/DescribeEndpointsCommand.js +21 -28
  16. package/dist-es/commands/DisassociateCertificateCommand.js +21 -28
  17. package/dist-es/commands/GetJobCommand.js +21 -28
  18. package/dist-es/commands/GetJobTemplateCommand.js +21 -28
  19. package/dist-es/commands/GetPolicyCommand.js +21 -28
  20. package/dist-es/commands/GetPresetCommand.js +21 -28
  21. package/dist-es/commands/GetQueueCommand.js +21 -28
  22. package/dist-es/commands/ListJobTemplatesCommand.js +21 -28
  23. package/dist-es/commands/ListJobsCommand.js +21 -28
  24. package/dist-es/commands/ListPresetsCommand.js +21 -28
  25. package/dist-es/commands/ListQueuesCommand.js +21 -28
  26. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  27. package/dist-es/commands/PutPolicyCommand.js +21 -28
  28. package/dist-es/commands/TagResourceCommand.js +21 -28
  29. package/dist-es/commands/UntagResourceCommand.js +21 -28
  30. package/dist-es/commands/UpdateJobTemplateCommand.js +21 -28
  31. package/dist-es/commands/UpdatePresetCommand.js +21 -28
  32. package/dist-es/commands/UpdateQueueCommand.js +21 -28
  33. package/dist-es/endpoints.js +8 -8
  34. package/dist-es/models/MediaConvertServiceException.js +5 -10
  35. package/dist-es/models/models_0.js +327 -110
  36. package/dist-es/models/models_1.js +360 -169
  37. package/dist-es/models/models_2.js +66 -23
  38. package/dist-es/pagination/DescribeEndpointsPaginator.js +25 -68
  39. package/dist-es/pagination/ListJobTemplatesPaginator.js +25 -68
  40. package/dist-es/pagination/ListJobsPaginator.js +25 -68
  41. package/dist-es/pagination/ListPresetsPaginator.js +25 -68
  42. package/dist-es/pagination/ListQueuesPaginator.js +25 -68
  43. package/dist-es/protocols/Aws_restJson1.js +4602 -4287
  44. package/dist-es/runtimeConfig.browser.js +26 -12
  45. package/dist-es/runtimeConfig.js +30 -12
  46. package/dist-es/runtimeConfig.native.js +8 -5
  47. package/dist-es/runtimeConfig.shared.js +8 -11
  48. package/dist-types/models/models_1.d.ts +12 -0
  49. package/dist-types/ts3.4/models/models_1.d.ts +3 -0
  50. 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.189.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.188.0...v3.189.0) (2022-10-14)
7
+
8
+
9
+ ### Features
10
+
11
+ * **client-mediaconvert:** MediaConvert now supports specifying the minimum percentage of the HRD buffer available at the end of each encoded video segment. ([4564705](https://github.com/aws/aws-sdk-js-v3/commit/4564705d7365cba6e3be2d7d828f9d50382da2a6))
12
+
13
+
14
+
15
+
16
+
17
+ # [3.188.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.187.0...v3.188.0) (2022-10-13)
18
+
19
+ **Note:** Version bump only for package @aws-sdk/client-mediaconvert
20
+
21
+
22
+
23
+
24
+
6
25
  # [3.186.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.185.0...v3.186.0) (2022-10-06)
7
26
 
8
27
  **Note:** Version bump only for package @aws-sdk/client-mediaconvert
@@ -3139,6 +3139,9 @@ const serializeAws_restJson1H264Settings = (input, context) => {
3139
3139
  ...(input.GopClosedCadence != null && { gopClosedCadence: input.GopClosedCadence }),
3140
3140
  ...(input.GopSize != null && { gopSize: (0, smithy_client_1.serializeFloat)(input.GopSize) }),
3141
3141
  ...(input.GopSizeUnits != null && { gopSizeUnits: input.GopSizeUnits }),
3142
+ ...(input.HrdBufferFinalFillPercentage != null && {
3143
+ hrdBufferFinalFillPercentage: input.HrdBufferFinalFillPercentage,
3144
+ }),
3142
3145
  ...(input.HrdBufferInitialFillPercentage != null && {
3143
3146
  hrdBufferInitialFillPercentage: input.HrdBufferInitialFillPercentage,
3144
3147
  }),
@@ -3207,6 +3210,9 @@ const serializeAws_restJson1H265Settings = (input, context) => {
3207
3210
  ...(input.GopClosedCadence != null && { gopClosedCadence: input.GopClosedCadence }),
3208
3211
  ...(input.GopSize != null && { gopSize: (0, smithy_client_1.serializeFloat)(input.GopSize) }),
3209
3212
  ...(input.GopSizeUnits != null && { gopSizeUnits: input.GopSizeUnits }),
3213
+ ...(input.HrdBufferFinalFillPercentage != null && {
3214
+ hrdBufferFinalFillPercentage: input.HrdBufferFinalFillPercentage,
3215
+ }),
3210
3216
  ...(input.HrdBufferInitialFillPercentage != null && {
3211
3217
  hrdBufferInitialFillPercentage: input.HrdBufferInitialFillPercentage,
3212
3218
  }),
@@ -3788,6 +3794,9 @@ const serializeAws_restJson1Mpeg2Settings = (input, context) => {
3788
3794
  ...(input.GopClosedCadence != null && { gopClosedCadence: input.GopClosedCadence }),
3789
3795
  ...(input.GopSize != null && { gopSize: (0, smithy_client_1.serializeFloat)(input.GopSize) }),
3790
3796
  ...(input.GopSizeUnits != null && { gopSizeUnits: input.GopSizeUnits }),
3797
+ ...(input.HrdBufferFinalFillPercentage != null && {
3798
+ hrdBufferFinalFillPercentage: input.HrdBufferFinalFillPercentage,
3799
+ }),
3791
3800
  ...(input.HrdBufferInitialFillPercentage != null && {
3792
3801
  hrdBufferInitialFillPercentage: input.HrdBufferInitialFillPercentage,
3793
3802
  }),
@@ -5660,6 +5669,7 @@ const deserializeAws_restJson1H264Settings = (output, context) => {
5660
5669
  GopClosedCadence: (0, smithy_client_1.expectInt32)(output.gopClosedCadence),
5661
5670
  GopSize: (0, smithy_client_1.limitedParseDouble)(output.gopSize),
5662
5671
  GopSizeUnits: (0, smithy_client_1.expectString)(output.gopSizeUnits),
5672
+ HrdBufferFinalFillPercentage: (0, smithy_client_1.expectInt32)(output.hrdBufferFinalFillPercentage),
5663
5673
  HrdBufferInitialFillPercentage: (0, smithy_client_1.expectInt32)(output.hrdBufferInitialFillPercentage),
5664
5674
  HrdBufferSize: (0, smithy_client_1.expectInt32)(output.hrdBufferSize),
5665
5675
  InterlaceMode: (0, smithy_client_1.expectString)(output.interlaceMode),
@@ -5710,6 +5720,7 @@ const deserializeAws_restJson1H265Settings = (output, context) => {
5710
5720
  GopClosedCadence: (0, smithy_client_1.expectInt32)(output.gopClosedCadence),
5711
5721
  GopSize: (0, smithy_client_1.limitedParseDouble)(output.gopSize),
5712
5722
  GopSizeUnits: (0, smithy_client_1.expectString)(output.gopSizeUnits),
5723
+ HrdBufferFinalFillPercentage: (0, smithy_client_1.expectInt32)(output.hrdBufferFinalFillPercentage),
5713
5724
  HrdBufferInitialFillPercentage: (0, smithy_client_1.expectInt32)(output.hrdBufferInitialFillPercentage),
5714
5725
  HrdBufferSize: (0, smithy_client_1.expectInt32)(output.hrdBufferSize),
5715
5726
  InterlaceMode: (0, smithy_client_1.expectString)(output.interlaceMode),
@@ -6317,6 +6328,7 @@ const deserializeAws_restJson1Mpeg2Settings = (output, context) => {
6317
6328
  GopClosedCadence: (0, smithy_client_1.expectInt32)(output.gopClosedCadence),
6318
6329
  GopSize: (0, smithy_client_1.limitedParseDouble)(output.gopSize),
6319
6330
  GopSizeUnits: (0, smithy_client_1.expectString)(output.gopSizeUnits),
6331
+ HrdBufferFinalFillPercentage: (0, smithy_client_1.expectInt32)(output.hrdBufferFinalFillPercentage),
6320
6332
  HrdBufferInitialFillPercentage: (0, smithy_client_1.expectInt32)(output.hrdBufferInitialFillPercentage),
6321
6333
  HrdBufferSize: (0, smithy_client_1.expectInt32)(output.hrdBufferSize),
6322
6334
  InterlaceMode: (0, smithy_client_1.expectString)(output.interlaceMode),
@@ -1,4 +1,3 @@
1
- import { __extends } from "tslib";
2
1
  import { AssociateCertificateCommand, } from "./commands/AssociateCertificateCommand";
3
2
  import { CancelJobCommand } from "./commands/CancelJobCommand";
4
3
  import { CreateJobCommand } from "./commands/CreateJobCommand";
@@ -28,403 +27,397 @@ import { UpdateJobTemplateCommand, } from "./commands/UpdateJobTemplateCommand";
28
27
  import { UpdatePresetCommand, } from "./commands/UpdatePresetCommand";
29
28
  import { UpdateQueueCommand } from "./commands/UpdateQueueCommand";
30
29
  import { MediaConvertClient } from "./MediaConvertClient";
31
- var MediaConvert = (function (_super) {
32
- __extends(MediaConvert, _super);
33
- function MediaConvert() {
34
- return _super !== null && _super.apply(this, arguments) || this;
35
- }
36
- MediaConvert.prototype.associateCertificate = function (args, optionsOrCb, cb) {
37
- var command = new AssociateCertificateCommand(args);
30
+ export class MediaConvert extends MediaConvertClient {
31
+ associateCertificate(args, optionsOrCb, cb) {
32
+ const command = new AssociateCertificateCommand(args);
38
33
  if (typeof optionsOrCb === "function") {
39
34
  this.send(command, optionsOrCb);
40
35
  }
41
36
  else if (typeof cb === "function") {
42
37
  if (typeof optionsOrCb !== "object")
43
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
38
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
44
39
  this.send(command, optionsOrCb || {}, cb);
45
40
  }
46
41
  else {
47
42
  return this.send(command, optionsOrCb);
48
43
  }
49
- };
50
- MediaConvert.prototype.cancelJob = function (args, optionsOrCb, cb) {
51
- var command = new CancelJobCommand(args);
44
+ }
45
+ cancelJob(args, optionsOrCb, cb) {
46
+ const command = new CancelJobCommand(args);
52
47
  if (typeof optionsOrCb === "function") {
53
48
  this.send(command, optionsOrCb);
54
49
  }
55
50
  else if (typeof cb === "function") {
56
51
  if (typeof optionsOrCb !== "object")
57
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
52
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
58
53
  this.send(command, optionsOrCb || {}, cb);
59
54
  }
60
55
  else {
61
56
  return this.send(command, optionsOrCb);
62
57
  }
63
- };
64
- MediaConvert.prototype.createJob = function (args, optionsOrCb, cb) {
65
- var command = new CreateJobCommand(args);
58
+ }
59
+ createJob(args, optionsOrCb, cb) {
60
+ const command = new CreateJobCommand(args);
66
61
  if (typeof optionsOrCb === "function") {
67
62
  this.send(command, optionsOrCb);
68
63
  }
69
64
  else if (typeof cb === "function") {
70
65
  if (typeof optionsOrCb !== "object")
71
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
66
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
72
67
  this.send(command, optionsOrCb || {}, cb);
73
68
  }
74
69
  else {
75
70
  return this.send(command, optionsOrCb);
76
71
  }
77
- };
78
- MediaConvert.prototype.createJobTemplate = function (args, optionsOrCb, cb) {
79
- var command = new CreateJobTemplateCommand(args);
72
+ }
73
+ createJobTemplate(args, optionsOrCb, cb) {
74
+ const command = new CreateJobTemplateCommand(args);
80
75
  if (typeof optionsOrCb === "function") {
81
76
  this.send(command, optionsOrCb);
82
77
  }
83
78
  else if (typeof cb === "function") {
84
79
  if (typeof optionsOrCb !== "object")
85
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
80
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
86
81
  this.send(command, optionsOrCb || {}, cb);
87
82
  }
88
83
  else {
89
84
  return this.send(command, optionsOrCb);
90
85
  }
91
- };
92
- MediaConvert.prototype.createPreset = function (args, optionsOrCb, cb) {
93
- var command = new CreatePresetCommand(args);
86
+ }
87
+ createPreset(args, optionsOrCb, cb) {
88
+ const command = new CreatePresetCommand(args);
94
89
  if (typeof optionsOrCb === "function") {
95
90
  this.send(command, optionsOrCb);
96
91
  }
97
92
  else if (typeof cb === "function") {
98
93
  if (typeof optionsOrCb !== "object")
99
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
94
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
100
95
  this.send(command, optionsOrCb || {}, cb);
101
96
  }
102
97
  else {
103
98
  return this.send(command, optionsOrCb);
104
99
  }
105
- };
106
- MediaConvert.prototype.createQueue = function (args, optionsOrCb, cb) {
107
- var command = new CreateQueueCommand(args);
100
+ }
101
+ createQueue(args, optionsOrCb, cb) {
102
+ const command = new CreateQueueCommand(args);
108
103
  if (typeof optionsOrCb === "function") {
109
104
  this.send(command, optionsOrCb);
110
105
  }
111
106
  else if (typeof cb === "function") {
112
107
  if (typeof optionsOrCb !== "object")
113
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
108
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
114
109
  this.send(command, optionsOrCb || {}, cb);
115
110
  }
116
111
  else {
117
112
  return this.send(command, optionsOrCb);
118
113
  }
119
- };
120
- MediaConvert.prototype.deleteJobTemplate = function (args, optionsOrCb, cb) {
121
- var command = new DeleteJobTemplateCommand(args);
114
+ }
115
+ deleteJobTemplate(args, optionsOrCb, cb) {
116
+ const command = new DeleteJobTemplateCommand(args);
122
117
  if (typeof optionsOrCb === "function") {
123
118
  this.send(command, optionsOrCb);
124
119
  }
125
120
  else if (typeof cb === "function") {
126
121
  if (typeof optionsOrCb !== "object")
127
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
122
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
128
123
  this.send(command, optionsOrCb || {}, cb);
129
124
  }
130
125
  else {
131
126
  return this.send(command, optionsOrCb);
132
127
  }
133
- };
134
- MediaConvert.prototype.deletePolicy = function (args, optionsOrCb, cb) {
135
- var command = new DeletePolicyCommand(args);
128
+ }
129
+ deletePolicy(args, optionsOrCb, cb) {
130
+ const command = new DeletePolicyCommand(args);
136
131
  if (typeof optionsOrCb === "function") {
137
132
  this.send(command, optionsOrCb);
138
133
  }
139
134
  else if (typeof cb === "function") {
140
135
  if (typeof optionsOrCb !== "object")
141
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
136
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
142
137
  this.send(command, optionsOrCb || {}, cb);
143
138
  }
144
139
  else {
145
140
  return this.send(command, optionsOrCb);
146
141
  }
147
- };
148
- MediaConvert.prototype.deletePreset = function (args, optionsOrCb, cb) {
149
- var command = new DeletePresetCommand(args);
142
+ }
143
+ deletePreset(args, optionsOrCb, cb) {
144
+ const command = new DeletePresetCommand(args);
150
145
  if (typeof optionsOrCb === "function") {
151
146
  this.send(command, optionsOrCb);
152
147
  }
153
148
  else if (typeof cb === "function") {
154
149
  if (typeof optionsOrCb !== "object")
155
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
150
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
156
151
  this.send(command, optionsOrCb || {}, cb);
157
152
  }
158
153
  else {
159
154
  return this.send(command, optionsOrCb);
160
155
  }
161
- };
162
- MediaConvert.prototype.deleteQueue = function (args, optionsOrCb, cb) {
163
- var command = new DeleteQueueCommand(args);
156
+ }
157
+ deleteQueue(args, optionsOrCb, cb) {
158
+ const command = new DeleteQueueCommand(args);
164
159
  if (typeof optionsOrCb === "function") {
165
160
  this.send(command, optionsOrCb);
166
161
  }
167
162
  else if (typeof cb === "function") {
168
163
  if (typeof optionsOrCb !== "object")
169
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
164
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
170
165
  this.send(command, optionsOrCb || {}, cb);
171
166
  }
172
167
  else {
173
168
  return this.send(command, optionsOrCb);
174
169
  }
175
- };
176
- MediaConvert.prototype.describeEndpoints = function (args, optionsOrCb, cb) {
177
- var command = new DescribeEndpointsCommand(args);
170
+ }
171
+ describeEndpoints(args, optionsOrCb, cb) {
172
+ const command = new DescribeEndpointsCommand(args);
178
173
  if (typeof optionsOrCb === "function") {
179
174
  this.send(command, optionsOrCb);
180
175
  }
181
176
  else if (typeof cb === "function") {
182
177
  if (typeof optionsOrCb !== "object")
183
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
178
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
184
179
  this.send(command, optionsOrCb || {}, cb);
185
180
  }
186
181
  else {
187
182
  return this.send(command, optionsOrCb);
188
183
  }
189
- };
190
- MediaConvert.prototype.disassociateCertificate = function (args, optionsOrCb, cb) {
191
- var command = new DisassociateCertificateCommand(args);
184
+ }
185
+ disassociateCertificate(args, optionsOrCb, cb) {
186
+ const command = new DisassociateCertificateCommand(args);
192
187
  if (typeof optionsOrCb === "function") {
193
188
  this.send(command, optionsOrCb);
194
189
  }
195
190
  else if (typeof cb === "function") {
196
191
  if (typeof optionsOrCb !== "object")
197
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
192
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
198
193
  this.send(command, optionsOrCb || {}, cb);
199
194
  }
200
195
  else {
201
196
  return this.send(command, optionsOrCb);
202
197
  }
203
- };
204
- MediaConvert.prototype.getJob = function (args, optionsOrCb, cb) {
205
- var command = new GetJobCommand(args);
198
+ }
199
+ getJob(args, optionsOrCb, cb) {
200
+ const command = new GetJobCommand(args);
206
201
  if (typeof optionsOrCb === "function") {
207
202
  this.send(command, optionsOrCb);
208
203
  }
209
204
  else if (typeof cb === "function") {
210
205
  if (typeof optionsOrCb !== "object")
211
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
206
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
212
207
  this.send(command, optionsOrCb || {}, cb);
213
208
  }
214
209
  else {
215
210
  return this.send(command, optionsOrCb);
216
211
  }
217
- };
218
- MediaConvert.prototype.getJobTemplate = function (args, optionsOrCb, cb) {
219
- var command = new GetJobTemplateCommand(args);
212
+ }
213
+ getJobTemplate(args, optionsOrCb, cb) {
214
+ const command = new GetJobTemplateCommand(args);
220
215
  if (typeof optionsOrCb === "function") {
221
216
  this.send(command, optionsOrCb);
222
217
  }
223
218
  else if (typeof cb === "function") {
224
219
  if (typeof optionsOrCb !== "object")
225
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
220
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
226
221
  this.send(command, optionsOrCb || {}, cb);
227
222
  }
228
223
  else {
229
224
  return this.send(command, optionsOrCb);
230
225
  }
231
- };
232
- MediaConvert.prototype.getPolicy = function (args, optionsOrCb, cb) {
233
- var command = new GetPolicyCommand(args);
226
+ }
227
+ getPolicy(args, optionsOrCb, cb) {
228
+ const command = new GetPolicyCommand(args);
234
229
  if (typeof optionsOrCb === "function") {
235
230
  this.send(command, optionsOrCb);
236
231
  }
237
232
  else if (typeof cb === "function") {
238
233
  if (typeof optionsOrCb !== "object")
239
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
234
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
240
235
  this.send(command, optionsOrCb || {}, cb);
241
236
  }
242
237
  else {
243
238
  return this.send(command, optionsOrCb);
244
239
  }
245
- };
246
- MediaConvert.prototype.getPreset = function (args, optionsOrCb, cb) {
247
- var command = new GetPresetCommand(args);
240
+ }
241
+ getPreset(args, optionsOrCb, cb) {
242
+ const command = new GetPresetCommand(args);
248
243
  if (typeof optionsOrCb === "function") {
249
244
  this.send(command, optionsOrCb);
250
245
  }
251
246
  else if (typeof cb === "function") {
252
247
  if (typeof optionsOrCb !== "object")
253
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
248
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
254
249
  this.send(command, optionsOrCb || {}, cb);
255
250
  }
256
251
  else {
257
252
  return this.send(command, optionsOrCb);
258
253
  }
259
- };
260
- MediaConvert.prototype.getQueue = function (args, optionsOrCb, cb) {
261
- var command = new GetQueueCommand(args);
254
+ }
255
+ getQueue(args, optionsOrCb, cb) {
256
+ const command = new GetQueueCommand(args);
262
257
  if (typeof optionsOrCb === "function") {
263
258
  this.send(command, optionsOrCb);
264
259
  }
265
260
  else if (typeof cb === "function") {
266
261
  if (typeof optionsOrCb !== "object")
267
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
262
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
268
263
  this.send(command, optionsOrCb || {}, cb);
269
264
  }
270
265
  else {
271
266
  return this.send(command, optionsOrCb);
272
267
  }
273
- };
274
- MediaConvert.prototype.listJobs = function (args, optionsOrCb, cb) {
275
- var command = new ListJobsCommand(args);
268
+ }
269
+ listJobs(args, optionsOrCb, cb) {
270
+ const command = new ListJobsCommand(args);
276
271
  if (typeof optionsOrCb === "function") {
277
272
  this.send(command, optionsOrCb);
278
273
  }
279
274
  else if (typeof cb === "function") {
280
275
  if (typeof optionsOrCb !== "object")
281
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
276
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
282
277
  this.send(command, optionsOrCb || {}, cb);
283
278
  }
284
279
  else {
285
280
  return this.send(command, optionsOrCb);
286
281
  }
287
- };
288
- MediaConvert.prototype.listJobTemplates = function (args, optionsOrCb, cb) {
289
- var command = new ListJobTemplatesCommand(args);
282
+ }
283
+ listJobTemplates(args, optionsOrCb, cb) {
284
+ const command = new ListJobTemplatesCommand(args);
290
285
  if (typeof optionsOrCb === "function") {
291
286
  this.send(command, optionsOrCb);
292
287
  }
293
288
  else if (typeof cb === "function") {
294
289
  if (typeof optionsOrCb !== "object")
295
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
290
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
296
291
  this.send(command, optionsOrCb || {}, cb);
297
292
  }
298
293
  else {
299
294
  return this.send(command, optionsOrCb);
300
295
  }
301
- };
302
- MediaConvert.prototype.listPresets = function (args, optionsOrCb, cb) {
303
- var command = new ListPresetsCommand(args);
296
+ }
297
+ listPresets(args, optionsOrCb, cb) {
298
+ const command = new ListPresetsCommand(args);
304
299
  if (typeof optionsOrCb === "function") {
305
300
  this.send(command, optionsOrCb);
306
301
  }
307
302
  else if (typeof cb === "function") {
308
303
  if (typeof optionsOrCb !== "object")
309
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
304
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
310
305
  this.send(command, optionsOrCb || {}, cb);
311
306
  }
312
307
  else {
313
308
  return this.send(command, optionsOrCb);
314
309
  }
315
- };
316
- MediaConvert.prototype.listQueues = function (args, optionsOrCb, cb) {
317
- var command = new ListQueuesCommand(args);
310
+ }
311
+ listQueues(args, optionsOrCb, cb) {
312
+ const command = new ListQueuesCommand(args);
318
313
  if (typeof optionsOrCb === "function") {
319
314
  this.send(command, optionsOrCb);
320
315
  }
321
316
  else if (typeof cb === "function") {
322
317
  if (typeof optionsOrCb !== "object")
323
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
318
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
324
319
  this.send(command, optionsOrCb || {}, cb);
325
320
  }
326
321
  else {
327
322
  return this.send(command, optionsOrCb);
328
323
  }
329
- };
330
- MediaConvert.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
331
- var command = new ListTagsForResourceCommand(args);
324
+ }
325
+ listTagsForResource(args, optionsOrCb, cb) {
326
+ const command = new ListTagsForResourceCommand(args);
332
327
  if (typeof optionsOrCb === "function") {
333
328
  this.send(command, optionsOrCb);
334
329
  }
335
330
  else if (typeof cb === "function") {
336
331
  if (typeof optionsOrCb !== "object")
337
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
332
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
338
333
  this.send(command, optionsOrCb || {}, cb);
339
334
  }
340
335
  else {
341
336
  return this.send(command, optionsOrCb);
342
337
  }
343
- };
344
- MediaConvert.prototype.putPolicy = function (args, optionsOrCb, cb) {
345
- var command = new PutPolicyCommand(args);
338
+ }
339
+ putPolicy(args, optionsOrCb, cb) {
340
+ const command = new PutPolicyCommand(args);
346
341
  if (typeof optionsOrCb === "function") {
347
342
  this.send(command, optionsOrCb);
348
343
  }
349
344
  else if (typeof cb === "function") {
350
345
  if (typeof optionsOrCb !== "object")
351
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
346
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
352
347
  this.send(command, optionsOrCb || {}, cb);
353
348
  }
354
349
  else {
355
350
  return this.send(command, optionsOrCb);
356
351
  }
357
- };
358
- MediaConvert.prototype.tagResource = function (args, optionsOrCb, cb) {
359
- var command = new TagResourceCommand(args);
352
+ }
353
+ tagResource(args, optionsOrCb, cb) {
354
+ const command = new TagResourceCommand(args);
360
355
  if (typeof optionsOrCb === "function") {
361
356
  this.send(command, optionsOrCb);
362
357
  }
363
358
  else if (typeof cb === "function") {
364
359
  if (typeof optionsOrCb !== "object")
365
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
360
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
366
361
  this.send(command, optionsOrCb || {}, cb);
367
362
  }
368
363
  else {
369
364
  return this.send(command, optionsOrCb);
370
365
  }
371
- };
372
- MediaConvert.prototype.untagResource = function (args, optionsOrCb, cb) {
373
- var command = new UntagResourceCommand(args);
366
+ }
367
+ untagResource(args, optionsOrCb, cb) {
368
+ const command = new UntagResourceCommand(args);
374
369
  if (typeof optionsOrCb === "function") {
375
370
  this.send(command, optionsOrCb);
376
371
  }
377
372
  else if (typeof cb === "function") {
378
373
  if (typeof optionsOrCb !== "object")
379
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
374
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
380
375
  this.send(command, optionsOrCb || {}, cb);
381
376
  }
382
377
  else {
383
378
  return this.send(command, optionsOrCb);
384
379
  }
385
- };
386
- MediaConvert.prototype.updateJobTemplate = function (args, optionsOrCb, cb) {
387
- var command = new UpdateJobTemplateCommand(args);
380
+ }
381
+ updateJobTemplate(args, optionsOrCb, cb) {
382
+ const command = new UpdateJobTemplateCommand(args);
388
383
  if (typeof optionsOrCb === "function") {
389
384
  this.send(command, optionsOrCb);
390
385
  }
391
386
  else if (typeof cb === "function") {
392
387
  if (typeof optionsOrCb !== "object")
393
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
388
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
394
389
  this.send(command, optionsOrCb || {}, cb);
395
390
  }
396
391
  else {
397
392
  return this.send(command, optionsOrCb);
398
393
  }
399
- };
400
- MediaConvert.prototype.updatePreset = function (args, optionsOrCb, cb) {
401
- var command = new UpdatePresetCommand(args);
394
+ }
395
+ updatePreset(args, optionsOrCb, cb) {
396
+ const command = new UpdatePresetCommand(args);
402
397
  if (typeof optionsOrCb === "function") {
403
398
  this.send(command, optionsOrCb);
404
399
  }
405
400
  else if (typeof cb === "function") {
406
401
  if (typeof optionsOrCb !== "object")
407
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
402
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
408
403
  this.send(command, optionsOrCb || {}, cb);
409
404
  }
410
405
  else {
411
406
  return this.send(command, optionsOrCb);
412
407
  }
413
- };
414
- MediaConvert.prototype.updateQueue = function (args, optionsOrCb, cb) {
415
- var command = new UpdateQueueCommand(args);
408
+ }
409
+ updateQueue(args, optionsOrCb, cb) {
410
+ const command = new UpdateQueueCommand(args);
416
411
  if (typeof optionsOrCb === "function") {
417
412
  this.send(command, optionsOrCb);
418
413
  }
419
414
  else if (typeof cb === "function") {
420
415
  if (typeof optionsOrCb !== "object")
421
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
416
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
422
417
  this.send(command, optionsOrCb || {}, cb);
423
418
  }
424
419
  else {
425
420
  return this.send(command, optionsOrCb);
426
421
  }
427
- };
428
- return MediaConvert;
429
- }(MediaConvertClient));
430
- export { MediaConvert };
422
+ }
423
+ }