@aws-sdk/client-mediaconvert 3.596.0 → 3.598.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -386,6 +386,14 @@ PutPolicy
386
386
 
387
387
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/mediaconvert/command/PutPolicyCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-mediaconvert/Interface/PutPolicyCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-mediaconvert/Interface/PutPolicyCommandOutput/)
388
388
 
389
+ </details>
390
+ <details>
391
+ <summary>
392
+ SearchJobs
393
+ </summary>
394
+
395
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/mediaconvert/command/SearchJobsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-mediaconvert/Interface/SearchJobsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-mediaconvert/Interface/SearchJobsCommandOutput/)
396
+
389
397
  </details>
390
398
  <details>
391
399
  <summary>
package/dist-cjs/index.js CHANGED
@@ -412,6 +412,7 @@ __export(src_exports, {
412
412
  SampleRangeConversion: () => SampleRangeConversion,
413
413
  ScalingBehavior: () => ScalingBehavior,
414
414
  SccDestinationFramerate: () => SccDestinationFramerate,
415
+ SearchJobsCommand: () => SearchJobsCommand,
415
416
  SimulateReservedQueue: () => SimulateReservedQueue,
416
417
  SrtStylePassthrough: () => SrtStylePassthrough,
417
418
  StatusUpdateInterval: () => StatusUpdateInterval,
@@ -484,7 +485,8 @@ __export(src_exports, {
484
485
  paginateListJobTemplates: () => paginateListJobTemplates,
485
486
  paginateListJobs: () => paginateListJobs,
486
487
  paginateListPresets: () => paginateListPresets,
487
- paginateListQueues: () => paginateListQueues
488
+ paginateListQueues: () => paginateListQueues,
489
+ paginateSearchJobs: () => paginateSearchJobs
488
490
  });
489
491
  module.exports = __toCommonJS(src_exports);
490
492
 
@@ -2216,6 +2218,22 @@ var se_PutPolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
2216
2218
  b.m("PUT").h(headers).b(body);
2217
2219
  return b.build();
2218
2220
  }, "se_PutPolicyCommand");
2221
+ var se_SearchJobsCommand = /* @__PURE__ */ __name(async (input, context) => {
2222
+ const b = (0, import_core.requestBuilder)(input, context);
2223
+ const headers = {};
2224
+ b.bp("/2017-08-29/search");
2225
+ const query = (0, import_smithy_client.map)({
2226
+ [_iF]: [, input[_IF]],
2227
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
2228
+ [_nT]: [, input[_NT]],
2229
+ [_o]: [, input[_O]],
2230
+ [_q]: [, input[_Q]],
2231
+ [_s]: [, input[_S]]
2232
+ });
2233
+ let body;
2234
+ b.m("GET").h(headers).q(query).b(body);
2235
+ return b.build();
2236
+ }, "se_SearchJobsCommand");
2219
2237
  var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
2220
2238
  const b = (0, import_core.requestBuilder)(input, context);
2221
2239
  const headers = {
@@ -2606,6 +2624,21 @@ var de_PutPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
2606
2624
  Object.assign(contents, doc);
2607
2625
  return contents;
2608
2626
  }, "de_PutPolicyCommand");
2627
+ var de_SearchJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
2628
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2629
+ return de_CommandError(output, context);
2630
+ }
2631
+ const contents = (0, import_smithy_client.map)({
2632
+ $metadata: deserializeMetadata(output)
2633
+ });
2634
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
2635
+ const doc = (0, import_smithy_client.take)(data, {
2636
+ Jobs: [, (_) => de___listOfJob(_, context), `jobs`],
2637
+ NextToken: [, import_smithy_client.expectString, `nextToken`]
2638
+ });
2639
+ Object.assign(contents, doc);
2640
+ return contents;
2641
+ }, "de_SearchJobsCommand");
2609
2642
  var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
2610
2643
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2611
2644
  return de_CommandError(output, context);
@@ -6974,6 +7007,7 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
6974
7007
  cfId: output.headers["x-amz-cf-id"]
6975
7008
  }), "deserializeMetadata");
6976
7009
  var _C = "Category";
7010
+ var _IF = "InputFile";
6977
7011
  var _LB = "ListBy";
6978
7012
  var _MR = "MaxResults";
6979
7013
  var _NT = "NextToken";
@@ -6981,6 +7015,7 @@ var _O = "Order";
6981
7015
  var _Q = "Queue";
6982
7016
  var _S = "Status";
6983
7017
  var _c = "category";
7018
+ var _iF = "inputFile";
6984
7019
  var _lB = "listBy";
6985
7020
  var _mR = "maxResults";
6986
7021
  var _nT = "nextToken";
@@ -7353,6 +7388,22 @@ var _PutPolicyCommand = class _PutPolicyCommand extends import_smithy_client.Com
7353
7388
  __name(_PutPolicyCommand, "PutPolicyCommand");
7354
7389
  var PutPolicyCommand = _PutPolicyCommand;
7355
7390
 
7391
+ // src/commands/SearchJobsCommand.ts
7392
+
7393
+
7394
+
7395
+ var _SearchJobsCommand = class _SearchJobsCommand extends import_smithy_client.Command.classBuilder().ep({
7396
+ ...commonParams
7397
+ }).m(function(Command, cs, config, o) {
7398
+ return [
7399
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
7400
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
7401
+ ];
7402
+ }).s("MediaConvert", "SearchJobs", {}).n("MediaConvertClient", "SearchJobsCommand").f(void 0, void 0).ser(se_SearchJobsCommand).de(de_SearchJobsCommand).build() {
7403
+ };
7404
+ __name(_SearchJobsCommand, "SearchJobsCommand");
7405
+ var SearchJobsCommand = _SearchJobsCommand;
7406
+
7356
7407
  // src/commands/TagResourceCommand.ts
7357
7408
 
7358
7409
 
@@ -7458,6 +7509,7 @@ var commands = {
7458
7509
  ListQueuesCommand,
7459
7510
  ListTagsForResourceCommand,
7460
7511
  PutPolicyCommand,
7512
+ SearchJobsCommand,
7461
7513
  TagResourceCommand,
7462
7514
  UntagResourceCommand,
7463
7515
  UpdateJobTemplateCommand,
@@ -7490,6 +7542,10 @@ var paginateListPresets = (0, import_core.createPaginator)(MediaConvertClient, L
7490
7542
 
7491
7543
  var paginateListQueues = (0, import_core.createPaginator)(MediaConvertClient, ListQueuesCommand, "NextToken", "NextToken", "MaxResults");
7492
7544
 
7545
+ // src/pagination/SearchJobsPaginator.ts
7546
+
7547
+ var paginateSearchJobs = (0, import_core.createPaginator)(MediaConvertClient, SearchJobsCommand, "NextToken", "NextToken", "MaxResults");
7548
+
7493
7549
  // src/models/models_0.ts
7494
7550
  var RequiredFlag = {
7495
7551
  DISABLED: "DISABLED",
@@ -8682,6 +8738,7 @@ var CmfcScte35Esam = {
8682
8738
  ListQueuesCommand,
8683
8739
  ListTagsForResourceCommand,
8684
8740
  PutPolicyCommand,
8741
+ SearchJobsCommand,
8685
8742
  TagResourceCommand,
8686
8743
  UntagResourceCommand,
8687
8744
  UpdateJobTemplateCommand,
@@ -8692,6 +8749,7 @@ var CmfcScte35Esam = {
8692
8749
  paginateListJobs,
8693
8750
  paginateListPresets,
8694
8751
  paginateListQueues,
8752
+ paginateSearchJobs,
8695
8753
  RequiredFlag,
8696
8754
  AudioChannelTag,
8697
8755
  AudioNormalizationAlgorithm,
@@ -22,6 +22,7 @@ import { ListPresetsCommand } from "./commands/ListPresetsCommand";
22
22
  import { ListQueuesCommand } from "./commands/ListQueuesCommand";
23
23
  import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
24
24
  import { PutPolicyCommand } from "./commands/PutPolicyCommand";
25
+ import { SearchJobsCommand } from "./commands/SearchJobsCommand";
25
26
  import { TagResourceCommand } from "./commands/TagResourceCommand";
26
27
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
27
28
  import { UpdateJobTemplateCommand, } from "./commands/UpdateJobTemplateCommand";
@@ -52,6 +53,7 @@ const commands = {
52
53
  ListQueuesCommand,
53
54
  ListTagsForResourceCommand,
54
55
  PutPolicyCommand,
56
+ SearchJobsCommand,
55
57
  TagResourceCommand,
56
58
  UntagResourceCommand,
57
59
  UpdateJobTemplateCommand,
@@ -0,0 +1,24 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_SearchJobsCommand, se_SearchJobsCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class SearchJobsCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("MediaConvert", "SearchJobs", {})
19
+ .n("MediaConvertClient", "SearchJobsCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_SearchJobsCommand)
22
+ .de(de_SearchJobsCommand)
23
+ .build() {
24
+ }
@@ -21,6 +21,7 @@ export * from "./ListPresetsCommand";
21
21
  export * from "./ListQueuesCommand";
22
22
  export * from "./ListTagsForResourceCommand";
23
23
  export * from "./PutPolicyCommand";
24
+ export * from "./SearchJobsCommand";
24
25
  export * from "./TagResourceCommand";
25
26
  export * from "./UntagResourceCommand";
26
27
  export * from "./UpdateJobTemplateCommand";
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { SearchJobsCommand } from "../commands/SearchJobsCommand";
3
+ import { MediaConvertClient } from "../MediaConvertClient";
4
+ export const paginateSearchJobs = createPaginator(MediaConvertClient, SearchJobsCommand, "NextToken", "NextToken", "MaxResults");
@@ -4,3 +4,4 @@ export * from "./ListJobTemplatesPaginator";
4
4
  export * from "./ListJobsPaginator";
5
5
  export * from "./ListPresetsPaginator";
6
6
  export * from "./ListQueuesPaginator";
7
+ export * from "./SearchJobsPaginator";
@@ -299,6 +299,22 @@ export const se_PutPolicyCommand = async (input, context) => {
299
299
  b.m("PUT").h(headers).b(body);
300
300
  return b.build();
301
301
  };
302
+ export const se_SearchJobsCommand = async (input, context) => {
303
+ const b = rb(input, context);
304
+ const headers = {};
305
+ b.bp("/2017-08-29/search");
306
+ const query = map({
307
+ [_iF]: [, input[_IF]],
308
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
309
+ [_nT]: [, input[_NT]],
310
+ [_o]: [, input[_O]],
311
+ [_q]: [, input[_Q]],
312
+ [_s]: [, input[_S]],
313
+ });
314
+ let body;
315
+ b.m("GET").h(headers).q(query).b(body);
316
+ return b.build();
317
+ };
302
318
  export const se_TagResourceCommand = async (input, context) => {
303
319
  const b = rb(input, context);
304
320
  const headers = {
@@ -679,6 +695,21 @@ export const de_PutPolicyCommand = async (output, context) => {
679
695
  Object.assign(contents, doc);
680
696
  return contents;
681
697
  };
698
+ export const de_SearchJobsCommand = async (output, context) => {
699
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
700
+ return de_CommandError(output, context);
701
+ }
702
+ const contents = map({
703
+ $metadata: deserializeMetadata(output),
704
+ });
705
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
706
+ const doc = take(data, {
707
+ Jobs: [, (_) => de___listOfJob(_, context), `jobs`],
708
+ NextToken: [, __expectString, `nextToken`],
709
+ });
710
+ Object.assign(contents, doc);
711
+ return contents;
712
+ };
682
713
  export const de_TagResourceCommand = async (output, context) => {
683
714
  if (output.statusCode !== 200 && output.statusCode >= 300) {
684
715
  return de_CommandError(output, context);
@@ -5167,6 +5198,7 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
5167
5198
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
5168
5199
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
5169
5200
  const _C = "Category";
5201
+ const _IF = "InputFile";
5170
5202
  const _LB = "ListBy";
5171
5203
  const _MR = "MaxResults";
5172
5204
  const _NT = "NextToken";
@@ -5174,6 +5206,7 @@ const _O = "Order";
5174
5206
  const _Q = "Queue";
5175
5207
  const _S = "Status";
5176
5208
  const _c = "category";
5209
+ const _iF = "inputFile";
5177
5210
  const _lB = "listBy";
5178
5211
  const _mR = "maxResults";
5179
5212
  const _nT = "nextToken";
@@ -22,6 +22,7 @@ import { ListPresetsCommandInput, ListPresetsCommandOutput } from "./commands/Li
22
22
  import { ListQueuesCommandInput, ListQueuesCommandOutput } from "./commands/ListQueuesCommand";
23
23
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
24
24
  import { PutPolicyCommandInput, PutPolicyCommandOutput } from "./commands/PutPolicyCommand";
25
+ import { SearchJobsCommandInput, SearchJobsCommandOutput } from "./commands/SearchJobsCommand";
25
26
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
26
27
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
27
28
  import { UpdateJobTemplateCommandInput, UpdateJobTemplateCommandOutput } from "./commands/UpdateJobTemplateCommand";
@@ -174,6 +175,13 @@ export interface MediaConvert {
174
175
  putPolicy(args: PutPolicyCommandInput, options?: __HttpHandlerOptions): Promise<PutPolicyCommandOutput>;
175
176
  putPolicy(args: PutPolicyCommandInput, cb: (err: any, data?: PutPolicyCommandOutput) => void): void;
176
177
  putPolicy(args: PutPolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutPolicyCommandOutput) => void): void;
178
+ /**
179
+ * @see {@link SearchJobsCommand}
180
+ */
181
+ searchJobs(): Promise<SearchJobsCommandOutput>;
182
+ searchJobs(args: SearchJobsCommandInput, options?: __HttpHandlerOptions): Promise<SearchJobsCommandOutput>;
183
+ searchJobs(args: SearchJobsCommandInput, cb: (err: any, data?: SearchJobsCommandOutput) => void): void;
184
+ searchJobs(args: SearchJobsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SearchJobsCommandOutput) => void): void;
177
185
  /**
178
186
  * @see {@link TagResourceCommand}
179
187
  */
@@ -30,6 +30,7 @@ import { ListPresetsCommandInput, ListPresetsCommandOutput } from "./commands/Li
30
30
  import { ListQueuesCommandInput, ListQueuesCommandOutput } from "./commands/ListQueuesCommand";
31
31
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
32
32
  import { PutPolicyCommandInput, PutPolicyCommandOutput } from "./commands/PutPolicyCommand";
33
+ import { SearchJobsCommandInput, SearchJobsCommandOutput } from "./commands/SearchJobsCommand";
33
34
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
34
35
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
35
36
  import { UpdateJobTemplateCommandInput, UpdateJobTemplateCommandOutput } from "./commands/UpdateJobTemplateCommand";
@@ -41,11 +42,11 @@ export { __Client };
41
42
  /**
42
43
  * @public
43
44
  */
44
- export type ServiceInputTypes = AssociateCertificateCommandInput | CancelJobCommandInput | CreateJobCommandInput | CreateJobTemplateCommandInput | CreatePresetCommandInput | CreateQueueCommandInput | DeleteJobTemplateCommandInput | DeletePolicyCommandInput | DeletePresetCommandInput | DeleteQueueCommandInput | DescribeEndpointsCommandInput | DisassociateCertificateCommandInput | GetJobCommandInput | GetJobTemplateCommandInput | GetPolicyCommandInput | GetPresetCommandInput | GetQueueCommandInput | ListJobTemplatesCommandInput | ListJobsCommandInput | ListPresetsCommandInput | ListQueuesCommandInput | ListTagsForResourceCommandInput | PutPolicyCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateJobTemplateCommandInput | UpdatePresetCommandInput | UpdateQueueCommandInput;
45
+ export type ServiceInputTypes = AssociateCertificateCommandInput | CancelJobCommandInput | CreateJobCommandInput | CreateJobTemplateCommandInput | CreatePresetCommandInput | CreateQueueCommandInput | DeleteJobTemplateCommandInput | DeletePolicyCommandInput | DeletePresetCommandInput | DeleteQueueCommandInput | DescribeEndpointsCommandInput | DisassociateCertificateCommandInput | GetJobCommandInput | GetJobTemplateCommandInput | GetPolicyCommandInput | GetPresetCommandInput | GetQueueCommandInput | ListJobTemplatesCommandInput | ListJobsCommandInput | ListPresetsCommandInput | ListQueuesCommandInput | ListTagsForResourceCommandInput | PutPolicyCommandInput | SearchJobsCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateJobTemplateCommandInput | UpdatePresetCommandInput | UpdateQueueCommandInput;
45
46
  /**
46
47
  * @public
47
48
  */
48
- export type ServiceOutputTypes = AssociateCertificateCommandOutput | CancelJobCommandOutput | CreateJobCommandOutput | CreateJobTemplateCommandOutput | CreatePresetCommandOutput | CreateQueueCommandOutput | DeleteJobTemplateCommandOutput | DeletePolicyCommandOutput | DeletePresetCommandOutput | DeleteQueueCommandOutput | DescribeEndpointsCommandOutput | DisassociateCertificateCommandOutput | GetJobCommandOutput | GetJobTemplateCommandOutput | GetPolicyCommandOutput | GetPresetCommandOutput | GetQueueCommandOutput | ListJobTemplatesCommandOutput | ListJobsCommandOutput | ListPresetsCommandOutput | ListQueuesCommandOutput | ListTagsForResourceCommandOutput | PutPolicyCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateJobTemplateCommandOutput | UpdatePresetCommandOutput | UpdateQueueCommandOutput;
49
+ export type ServiceOutputTypes = AssociateCertificateCommandOutput | CancelJobCommandOutput | CreateJobCommandOutput | CreateJobTemplateCommandOutput | CreatePresetCommandOutput | CreateQueueCommandOutput | DeleteJobTemplateCommandOutput | DeletePolicyCommandOutput | DeletePresetCommandOutput | DeleteQueueCommandOutput | DescribeEndpointsCommandOutput | DisassociateCertificateCommandOutput | GetJobCommandOutput | GetJobTemplateCommandOutput | GetPolicyCommandOutput | GetPresetCommandOutput | GetQueueCommandOutput | ListJobTemplatesCommandOutput | ListJobsCommandOutput | ListPresetsCommandOutput | ListQueuesCommandOutput | ListTagsForResourceCommandOutput | PutPolicyCommandOutput | SearchJobsCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateJobTemplateCommandOutput | UpdatePresetCommandOutput | UpdateQueueCommandOutput;
49
50
  /**
50
51
  * @public
51
52
  */
@@ -27,7 +27,7 @@ declare const DescribeEndpointsCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * Send an request with an empty body to the regional API endpoint to get your account API endpoint.
30
+ * Send a request with an empty body to the regional API endpoint to get your account API endpoint. Note that DescribeEndpoints is no longer required. We recommend that you send your requests directly to the regional endpoint instead.
31
31
  *
32
32
  * @deprecated DescribeEndpoints and account specific endpoints are no longer required. We recommend that you send your requests directly to the regional endpoint instead.
33
33
  * @example