@aws-sdk/client-mediaconvert 3.873.0 → 3.876.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 (38) hide show
  1. package/README.md +8 -0
  2. package/dist-cjs/index.js +77 -5
  3. package/dist-es/MediaConvert.js +2 -0
  4. package/dist-es/commands/CreateResourceShareCommand.js +22 -0
  5. package/dist-es/commands/index.js +1 -0
  6. package/dist-es/models/models_0.js +8 -8
  7. package/dist-es/models/models_1.js +9 -0
  8. package/dist-es/models/models_2.js +5 -0
  9. package/dist-es/protocols/Aws_restJson1.js +32 -0
  10. package/dist-types/MediaConvert.d.ts +7 -0
  11. package/dist-types/MediaConvertClient.d.ts +3 -2
  12. package/dist-types/commands/CreateJobCommand.d.ts +14 -2
  13. package/dist-types/commands/CreateJobTemplateCommand.d.ts +12 -2
  14. package/dist-types/commands/CreatePresetCommand.d.ts +2 -0
  15. package/dist-types/commands/CreateResourceShareCommand.d.ts +89 -0
  16. package/dist-types/commands/GetJobCommand.d.ts +8 -1
  17. package/dist-types/commands/GetJobTemplateCommand.d.ts +6 -1
  18. package/dist-types/commands/GetPresetCommand.d.ts +1 -0
  19. package/dist-types/commands/ListJobTemplatesCommand.d.ts +6 -1
  20. package/dist-types/commands/ListJobsCommand.d.ts +8 -1
  21. package/dist-types/commands/ListPresetsCommand.d.ts +1 -0
  22. package/dist-types/commands/SearchJobsCommand.d.ts +8 -1
  23. package/dist-types/commands/UpdateJobTemplateCommand.d.ts +12 -2
  24. package/dist-types/commands/UpdatePresetCommand.d.ts +2 -0
  25. package/dist-types/commands/index.d.ts +1 -0
  26. package/dist-types/models/models_0.d.ts +43 -28
  27. package/dist-types/models/models_1.d.ts +27 -39
  28. package/dist-types/models/models_2.d.ts +82 -2
  29. package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
  30. package/dist-types/ts3.4/MediaConvert.d.ts +17 -0
  31. package/dist-types/ts3.4/MediaConvertClient.d.ts +6 -0
  32. package/dist-types/ts3.4/commands/CreateResourceShareCommand.d.ts +51 -0
  33. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  34. package/dist-types/ts3.4/models/models_0.d.ts +15 -12
  35. package/dist-types/ts3.4/models/models_1.d.ts +13 -12
  36. package/dist-types/ts3.4/models/models_2.d.ts +24 -2
  37. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
  38. package/package.json +6 -6
package/README.md CHANGED
@@ -250,6 +250,14 @@ CreateQueue
250
250
 
251
251
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/mediaconvert/command/CreateQueueCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-mediaconvert/Interface/CreateQueueCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-mediaconvert/Interface/CreateQueueCommandOutput/)
252
252
 
253
+ </details>
254
+ <details>
255
+ <summary>
256
+ CreateResourceShare
257
+ </summary>
258
+
259
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/mediaconvert/command/CreateResourceShareCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-mediaconvert/Interface/CreateResourceShareCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-mediaconvert/Interface/CreateResourceShareCommandOutput/)
260
+
253
261
  </details>
254
262
  <details>
255
263
  <summary>
package/dist-cjs/index.js CHANGED
@@ -137,6 +137,7 @@ __export(index_exports, {
137
137
  CreateJobTemplateCommand: () => CreateJobTemplateCommand,
138
138
  CreatePresetCommand: () => CreatePresetCommand,
139
139
  CreateQueueCommand: () => CreateQueueCommand,
140
+ CreateResourceShareCommand: () => CreateResourceShareCommand,
140
141
  DashIsoGroupAudioChannelConfigSchemeIdUri: () => DashIsoGroupAudioChannelConfigSchemeIdUri,
141
142
  DashIsoHbbtvCompliance: () => DashIsoHbbtvCompliance,
142
143
  DashIsoImageBasedTrickPlay: () => DashIsoImageBasedTrickPlay,
@@ -354,6 +355,7 @@ __export(index_exports, {
354
355
  MovMpeg2FourCCControl: () => MovMpeg2FourCCControl,
355
356
  MovPaddingControl: () => MovPaddingControl,
356
357
  MovReference: () => MovReference,
358
+ Mp2AudioDescriptionMix: () => Mp2AudioDescriptionMix,
357
359
  Mp3RateControlMode: () => Mp3RateControlMode,
358
360
  Mp4C2paManifest: () => Mp4C2paManifest,
359
361
  Mp4CslgAtom: () => Mp4CslgAtom,
@@ -434,6 +436,7 @@ __export(index_exports, {
434
436
  ScalingBehavior: () => ScalingBehavior,
435
437
  SccDestinationFramerate: () => SccDestinationFramerate,
436
438
  SearchJobsCommand: () => SearchJobsCommand,
439
+ ShareStatus: () => ShareStatus,
437
440
  SimulateReservedQueue: () => SimulateReservedQueue,
438
441
  SrtStylePassthrough: () => SrtStylePassthrough,
439
442
  StatusUpdateInterval: () => StatusUpdateInterval,
@@ -472,6 +475,7 @@ __export(index_exports, {
472
475
  VideoCodec: () => VideoCodec,
473
476
  VideoOverlayPlayBackMode: () => VideoOverlayPlayBackMode,
474
477
  VideoOverlayUnit: () => VideoOverlayUnit,
478
+ VideoSelectorType: () => VideoSelectorType,
475
479
  VideoTimecodeInsertion: () => VideoTimecodeInsertion,
476
480
  Vp8FramerateControl: () => Vp8FramerateControl,
477
481
  Vp8FramerateConversionAlgorithm: () => Vp8FramerateConversionAlgorithm,
@@ -689,6 +693,11 @@ var MediaConvertServiceException = class _MediaConvertServiceException extends i
689
693
  };
690
694
 
691
695
  // src/models/models_2.ts
696
+ var ShareStatus = {
697
+ INITIATED: "INITIATED",
698
+ NOT_SHARED: "NOT_SHARED",
699
+ SHARED: "SHARED"
700
+ };
692
701
  var SimulateReservedQueue = {
693
702
  DISABLED: "DISABLED",
694
703
  ENABLED: "ENABLED"
@@ -1100,6 +1109,22 @@ var se_CreateQueueCommand = /* @__PURE__ */ __name(async (input, context) => {
1100
1109
  b.m("POST").h(headers).b(body);
1101
1110
  return b.build();
1102
1111
  }, "se_CreateQueueCommand");
1112
+ var se_CreateResourceShareCommand = /* @__PURE__ */ __name(async (input, context) => {
1113
+ const b = (0, import_core.requestBuilder)(input, context);
1114
+ const headers = {
1115
+ "content-type": "application/json"
1116
+ };
1117
+ b.bp("/2017-08-29/resourceShares");
1118
+ let body;
1119
+ body = JSON.stringify(
1120
+ (0, import_smithy_client.take)(input, {
1121
+ jobId: [, , `JobId`],
1122
+ supportCaseId: [, , `SupportCaseId`]
1123
+ })
1124
+ );
1125
+ b.m("POST").h(headers).b(body);
1126
+ return b.build();
1127
+ }, "se_CreateResourceShareCommand");
1103
1128
  var se_DeleteJobTemplateCommand = /* @__PURE__ */ __name(async (input, context) => {
1104
1129
  const b = (0, import_core.requestBuilder)(input, context);
1105
1130
  const headers = {};
@@ -1499,6 +1524,16 @@ var de_CreateQueueCommand = /* @__PURE__ */ __name(async (output, context) => {
1499
1524
  Object.assign(contents, doc);
1500
1525
  return contents;
1501
1526
  }, "de_CreateQueueCommand");
1527
+ var de_CreateResourceShareCommand = /* @__PURE__ */ __name(async (output, context) => {
1528
+ if (output.statusCode !== 202 && output.statusCode >= 300) {
1529
+ return de_CommandError(output, context);
1530
+ }
1531
+ const contents = (0, import_smithy_client.map)({
1532
+ $metadata: deserializeMetadata(output)
1533
+ });
1534
+ await (0, import_smithy_client.collectBody)(output.body, context);
1535
+ return contents;
1536
+ }, "de_CreateResourceShareCommand");
1502
1537
  var de_DeleteJobTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
1503
1538
  if (output.statusCode !== 202 && output.statusCode >= 300) {
1504
1539
  return de_CommandError(output, context);
@@ -3371,6 +3406,7 @@ var se_MovSettings = /* @__PURE__ */ __name((input, context) => {
3371
3406
  }, "se_MovSettings");
3372
3407
  var se_Mp2Settings = /* @__PURE__ */ __name((input, context) => {
3373
3408
  return (0, import_smithy_client.take)(input, {
3409
+ audioDescriptionMix: [, , `AudioDescriptionMix`],
3374
3410
  bitrate: [, , `Bitrate`],
3375
3411
  channels: [, , `Channels`],
3376
3412
  sampleRate: [, , `SampleRate`]
@@ -3906,7 +3942,9 @@ var se_VideoSelector = /* @__PURE__ */ __name((input, context) => {
3906
3942
  pid: [, , `Pid`],
3907
3943
  programNumber: [, , `ProgramNumber`],
3908
3944
  rotate: [, , `Rotate`],
3909
- sampleRange: [, , `SampleRange`]
3945
+ sampleRange: [, , `SampleRange`],
3946
+ selectorType: [, , `SelectorType`],
3947
+ streams: [, import_smithy_client._json, `Streams`]
3910
3948
  });
3911
3949
  }, "se_VideoSelector");
3912
3950
  var se_VorbisSettings = /* @__PURE__ */ __name((input, context) => {
@@ -5466,6 +5504,7 @@ var de_Job = /* @__PURE__ */ __name((output, context) => {
5466
5504
  JobEngineVersionUsed: [, import_smithy_client.expectString, `jobEngineVersionUsed`],
5467
5505
  JobPercentComplete: [, import_smithy_client.expectInt32, `jobPercentComplete`],
5468
5506
  JobTemplate: [, import_smithy_client.expectString, `jobTemplate`],
5507
+ LastShareDetails: [, import_smithy_client.expectString, `lastShareDetails`],
5469
5508
  Messages: [, (_) => de_JobMessages(_, context), `messages`],
5470
5509
  OutputGroupDetails: [, (_) => de___listOfOutputGroupDetail(_, context), `outputGroupDetails`],
5471
5510
  Priority: [, import_smithy_client.expectInt32, `priority`],
@@ -5474,6 +5513,7 @@ var de_Job = /* @__PURE__ */ __name((output, context) => {
5474
5513
  RetryCount: [, import_smithy_client.expectInt32, `retryCount`],
5475
5514
  Role: [, import_smithy_client.expectString, `role`],
5476
5515
  Settings: [, (_) => de_JobSettings(_, context), `settings`],
5516
+ ShareStatus: [, import_smithy_client.expectString, `shareStatus`],
5477
5517
  SimulateReservedQueue: [, import_smithy_client.expectString, `simulateReservedQueue`],
5478
5518
  Status: [, import_smithy_client.expectString, `status`],
5479
5519
  StatusUpdateInterval: [, import_smithy_client.expectString, `statusUpdateInterval`],
@@ -5711,6 +5751,7 @@ var de_MovSettings = /* @__PURE__ */ __name((output, context) => {
5711
5751
  }, "de_MovSettings");
5712
5752
  var de_Mp2Settings = /* @__PURE__ */ __name((output, context) => {
5713
5753
  return (0, import_smithy_client.take)(output, {
5754
+ AudioDescriptionMix: [, import_smithy_client.expectString, `audioDescriptionMix`],
5714
5755
  Bitrate: [, import_smithy_client.expectInt32, `bitrate`],
5715
5756
  Channels: [, import_smithy_client.expectInt32, `channels`],
5716
5757
  SampleRate: [, import_smithy_client.expectInt32, `sampleRate`]
@@ -6355,7 +6396,9 @@ var de_VideoSelector = /* @__PURE__ */ __name((output, context) => {
6355
6396
  Pid: [, import_smithy_client.expectInt32, `pid`],
6356
6397
  ProgramNumber: [, import_smithy_client.expectInt32, `programNumber`],
6357
6398
  Rotate: [, import_smithy_client.expectString, `rotate`],
6358
- SampleRange: [, import_smithy_client.expectString, `sampleRange`]
6399
+ SampleRange: [, import_smithy_client.expectString, `sampleRange`],
6400
+ SelectorType: [, import_smithy_client.expectString, `selectorType`],
6401
+ Streams: [, import_smithy_client._json, `streams`]
6359
6402
  });
6360
6403
  }, "de_VideoSelector");
6361
6404
  var de_VorbisSettings = /* @__PURE__ */ __name((output, context) => {
@@ -6609,6 +6652,21 @@ var CreateQueueCommand = class extends import_smithy_client.Command.classBuilder
6609
6652
  }
6610
6653
  };
6611
6654
 
6655
+ // src/commands/CreateResourceShareCommand.ts
6656
+
6657
+
6658
+
6659
+ var CreateResourceShareCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
6660
+ return [
6661
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
6662
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
6663
+ ];
6664
+ }).s("MediaConvert", "CreateResourceShare", {}).n("MediaConvertClient", "CreateResourceShareCommand").f(void 0, void 0).ser(se_CreateResourceShareCommand).de(de_CreateResourceShareCommand).build() {
6665
+ static {
6666
+ __name(this, "CreateResourceShareCommand");
6667
+ }
6668
+ };
6669
+
6612
6670
  // src/commands/DeleteJobTemplateCommand.ts
6613
6671
 
6614
6672
 
@@ -6992,6 +7050,7 @@ var commands = {
6992
7050
  CreateJobTemplateCommand,
6993
7051
  CreatePresetCommand,
6994
7052
  CreateQueueCommand,
7053
+ CreateResourceShareCommand,
6995
7054
  DeleteJobTemplateCommand,
6996
7055
  DeletePolicyCommand,
6997
7056
  DeletePresetCommand,
@@ -7334,6 +7393,10 @@ var Eac3SurroundMode = {
7334
7393
  ENABLED: "ENABLED",
7335
7394
  NOT_INDICATED: "NOT_INDICATED"
7336
7395
  };
7396
+ var Mp2AudioDescriptionMix = {
7397
+ BROADCASTER_MIXED_AD: "BROADCASTER_MIXED_AD",
7398
+ NONE: "NONE"
7399
+ };
7337
7400
  var Mp3RateControlMode = {
7338
7401
  CBR: "CBR",
7339
7402
  VBR: "VBR"
@@ -7913,6 +7976,10 @@ var InputSampleRange = {
7913
7976
  FULL_RANGE: "FULL_RANGE",
7914
7977
  LIMITED_RANGE: "LIMITED_RANGE"
7915
7978
  };
7979
+ var VideoSelectorType = {
7980
+ AUTO: "AUTO",
7981
+ STREAM: "STREAM"
7982
+ };
7916
7983
  var AccelerationMode = {
7917
7984
  DISABLED: "DISABLED",
7918
7985
  ENABLED: "ENABLED",
@@ -8221,6 +8288,8 @@ var HlsSegmentLengthControl = {
8221
8288
  GOP_MULTIPLE: "GOP_MULTIPLE",
8222
8289
  MATCH: "MATCH"
8223
8290
  };
8291
+
8292
+ // src/models/models_1.ts
8224
8293
  var HlsStreamInfResolution = {
8225
8294
  EXCLUDE: "EXCLUDE",
8226
8295
  INCLUDE: "INCLUDE"
@@ -8229,8 +8298,6 @@ var HlsTargetDurationCompatibilityMode = {
8229
8298
  LEGACY: "LEGACY",
8230
8299
  SPEC_COMPLIANT: "SPEC_COMPLIANT"
8231
8300
  };
8232
-
8233
- // src/models/models_1.ts
8234
8301
  var HlsTimedMetadataId3Frame = {
8235
8302
  NONE: "NONE",
8236
8303
  PRIV: "PRIV",
@@ -8523,7 +8590,8 @@ var HlsDescriptiveVideoServiceFlag = {
8523
8590
  };
8524
8591
  var HlsIFrameOnlyManifest = {
8525
8592
  EXCLUDE: "EXCLUDE",
8526
- INCLUDE: "INCLUDE"
8593
+ INCLUDE: "INCLUDE",
8594
+ INCLUDE_AS_TS: "INCLUDE_AS_TS"
8527
8595
  };
8528
8596
  var AfdSignaling = {
8529
8597
  AUTO: "AUTO",
@@ -9406,6 +9474,7 @@ var TimecodeSource = {
9406
9474
  CreateJobTemplateCommand,
9407
9475
  CreatePresetCommand,
9408
9476
  CreateQueueCommand,
9477
+ CreateResourceShareCommand,
9409
9478
  DeleteJobTemplateCommand,
9410
9479
  DeletePolicyCommand,
9411
9480
  DeletePresetCommand,
@@ -9485,6 +9554,7 @@ var TimecodeSource = {
9485
9554
  Eac3StereoDownmix,
9486
9555
  Eac3SurroundExMode,
9487
9556
  Eac3SurroundMode,
9557
+ Mp2AudioDescriptionMix,
9488
9558
  Mp3RateControlMode,
9489
9559
  WavFormat,
9490
9560
  LanguageCode,
@@ -9557,6 +9627,7 @@ var TimecodeSource = {
9557
9627
  PadVideo,
9558
9628
  InputRotate,
9559
9629
  InputSampleRange,
9630
+ VideoSelectorType,
9560
9631
  AccelerationMode,
9561
9632
  AccelerationStatus,
9562
9633
  BillingTagsSource,
@@ -9863,6 +9934,7 @@ var TimecodeSource = {
9863
9934
  WatermarkingStrength,
9864
9935
  TimecodeBurninPosition,
9865
9936
  TimecodeSource,
9937
+ ShareStatus,
9866
9938
  SimulateReservedQueue,
9867
9939
  JobStatus,
9868
9940
  StatusUpdateInterval,
@@ -5,6 +5,7 @@ import { CreateJobCommand } from "./commands/CreateJobCommand";
5
5
  import { CreateJobTemplateCommand, } from "./commands/CreateJobTemplateCommand";
6
6
  import { CreatePresetCommand, } from "./commands/CreatePresetCommand";
7
7
  import { CreateQueueCommand } from "./commands/CreateQueueCommand";
8
+ import { CreateResourceShareCommand, } from "./commands/CreateResourceShareCommand";
8
9
  import { DeleteJobTemplateCommand, } from "./commands/DeleteJobTemplateCommand";
9
10
  import { DeletePolicyCommand, } from "./commands/DeletePolicyCommand";
10
11
  import { DeletePresetCommand, } from "./commands/DeletePresetCommand";
@@ -38,6 +39,7 @@ const commands = {
38
39
  CreateJobTemplateCommand,
39
40
  CreatePresetCommand,
40
41
  CreateQueueCommand,
42
+ CreateResourceShareCommand,
41
43
  DeleteJobTemplateCommand,
42
44
  DeletePolicyCommand,
43
45
  DeletePresetCommand,
@@ -0,0 +1,22 @@
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_CreateResourceShareCommand, se_CreateResourceShareCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class CreateResourceShareCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("MediaConvert", "CreateResourceShare", {})
17
+ .n("MediaConvertClient", "CreateResourceShareCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_CreateResourceShareCommand)
20
+ .de(de_CreateResourceShareCommand)
21
+ .build() {
22
+ }
@@ -4,6 +4,7 @@ export * from "./CreateJobCommand";
4
4
  export * from "./CreateJobTemplateCommand";
5
5
  export * from "./CreatePresetCommand";
6
6
  export * from "./CreateQueueCommand";
7
+ export * from "./CreateResourceShareCommand";
7
8
  export * from "./DeleteJobTemplateCommand";
8
9
  export * from "./DeletePolicyCommand";
9
10
  export * from "./DeletePresetCommand";
@@ -278,6 +278,10 @@ export const Eac3SurroundMode = {
278
278
  ENABLED: "ENABLED",
279
279
  NOT_INDICATED: "NOT_INDICATED",
280
280
  };
281
+ export const Mp2AudioDescriptionMix = {
282
+ BROADCASTER_MIXED_AD: "BROADCASTER_MIXED_AD",
283
+ NONE: "NONE",
284
+ };
281
285
  export const Mp3RateControlMode = {
282
286
  CBR: "CBR",
283
287
  VBR: "VBR",
@@ -857,6 +861,10 @@ export const InputSampleRange = {
857
861
  FULL_RANGE: "FULL_RANGE",
858
862
  LIMITED_RANGE: "LIMITED_RANGE",
859
863
  };
864
+ export const VideoSelectorType = {
865
+ AUTO: "AUTO",
866
+ STREAM: "STREAM",
867
+ };
860
868
  export const AccelerationMode = {
861
869
  DISABLED: "DISABLED",
862
870
  ENABLED: "ENABLED",
@@ -1165,11 +1173,3 @@ export const HlsSegmentLengthControl = {
1165
1173
  GOP_MULTIPLE: "GOP_MULTIPLE",
1166
1174
  MATCH: "MATCH",
1167
1175
  };
1168
- export const HlsStreamInfResolution = {
1169
- EXCLUDE: "EXCLUDE",
1170
- INCLUDE: "INCLUDE",
1171
- };
1172
- export const HlsTargetDurationCompatibilityMode = {
1173
- LEGACY: "LEGACY",
1174
- SPEC_COMPLIANT: "SPEC_COMPLIANT",
1175
- };
@@ -1,3 +1,11 @@
1
+ export const HlsStreamInfResolution = {
2
+ EXCLUDE: "EXCLUDE",
3
+ INCLUDE: "INCLUDE",
4
+ };
5
+ export const HlsTargetDurationCompatibilityMode = {
6
+ LEGACY: "LEGACY",
7
+ SPEC_COMPLIANT: "SPEC_COMPLIANT",
8
+ };
1
9
  export const HlsTimedMetadataId3Frame = {
2
10
  NONE: "NONE",
3
11
  PRIV: "PRIV",
@@ -291,6 +299,7 @@ export const HlsDescriptiveVideoServiceFlag = {
291
299
  export const HlsIFrameOnlyManifest = {
292
300
  EXCLUDE: "EXCLUDE",
293
301
  INCLUDE: "INCLUDE",
302
+ INCLUDE_AS_TS: "INCLUDE_AS_TS",
294
303
  };
295
304
  export const AfdSignaling = {
296
305
  AUTO: "AUTO",
@@ -1,4 +1,9 @@
1
1
  import { MediaConvertServiceException as __BaseException } from "./MediaConvertServiceException";
2
+ export const ShareStatus = {
3
+ INITIATED: "INITIATED",
4
+ NOT_SHARED: "NOT_SHARED",
5
+ SHARED: "SHARED",
6
+ };
2
7
  export const SimulateReservedQueue = {
3
8
  DISABLED: "DISABLED",
4
9
  ENABLED: "ENABLED",
@@ -110,6 +110,20 @@ export const se_CreateQueueCommand = async (input, context) => {
110
110
  b.m("POST").h(headers).b(body);
111
111
  return b.build();
112
112
  };
113
+ export const se_CreateResourceShareCommand = async (input, context) => {
114
+ const b = rb(input, context);
115
+ const headers = {
116
+ "content-type": "application/json",
117
+ };
118
+ b.bp("/2017-08-29/resourceShares");
119
+ let body;
120
+ body = JSON.stringify(take(input, {
121
+ jobId: [, , `JobId`],
122
+ supportCaseId: [, , `SupportCaseId`],
123
+ }));
124
+ b.m("POST").h(headers).b(body);
125
+ return b.build();
126
+ };
113
127
  export const se_DeleteJobTemplateCommand = async (input, context) => {
114
128
  const b = rb(input, context);
115
129
  const headers = {};
@@ -493,6 +507,16 @@ export const de_CreateQueueCommand = async (output, context) => {
493
507
  Object.assign(contents, doc);
494
508
  return contents;
495
509
  };
510
+ export const de_CreateResourceShareCommand = async (output, context) => {
511
+ if (output.statusCode !== 202 && output.statusCode >= 300) {
512
+ return de_CommandError(output, context);
513
+ }
514
+ const contents = map({
515
+ $metadata: deserializeMetadata(output),
516
+ });
517
+ await collectBody(output.body, context);
518
+ return contents;
519
+ };
496
520
  export const de_DeleteJobTemplateCommand = async (output, context) => {
497
521
  if (output.statusCode !== 202 && output.statusCode >= 300) {
498
522
  return de_CommandError(output, context);
@@ -2417,6 +2441,7 @@ const se_MovSettings = (input, context) => {
2417
2441
  };
2418
2442
  const se_Mp2Settings = (input, context) => {
2419
2443
  return take(input, {
2444
+ audioDescriptionMix: [, , `AudioDescriptionMix`],
2420
2445
  bitrate: [, , `Bitrate`],
2421
2446
  channels: [, , `Channels`],
2422
2447
  sampleRate: [, , `SampleRate`],
@@ -2953,6 +2978,8 @@ const se_VideoSelector = (input, context) => {
2953
2978
  programNumber: [, , `ProgramNumber`],
2954
2979
  rotate: [, , `Rotate`],
2955
2980
  sampleRange: [, , `SampleRange`],
2981
+ selectorType: [, , `SelectorType`],
2982
+ streams: [, _json, `Streams`],
2956
2983
  });
2957
2984
  };
2958
2985
  const se_VorbisSettings = (input, context) => {
@@ -4590,6 +4617,7 @@ const de_Job = (output, context) => {
4590
4617
  JobEngineVersionUsed: [, __expectString, `jobEngineVersionUsed`],
4591
4618
  JobPercentComplete: [, __expectInt32, `jobPercentComplete`],
4592
4619
  JobTemplate: [, __expectString, `jobTemplate`],
4620
+ LastShareDetails: [, __expectString, `lastShareDetails`],
4593
4621
  Messages: [, (_) => de_JobMessages(_, context), `messages`],
4594
4622
  OutputGroupDetails: [, (_) => de___listOfOutputGroupDetail(_, context), `outputGroupDetails`],
4595
4623
  Priority: [, __expectInt32, `priority`],
@@ -4598,6 +4626,7 @@ const de_Job = (output, context) => {
4598
4626
  RetryCount: [, __expectInt32, `retryCount`],
4599
4627
  Role: [, __expectString, `role`],
4600
4628
  Settings: [, (_) => de_JobSettings(_, context), `settings`],
4629
+ ShareStatus: [, __expectString, `shareStatus`],
4601
4630
  SimulateReservedQueue: [, __expectString, `simulateReservedQueue`],
4602
4631
  Status: [, __expectString, `status`],
4603
4632
  StatusUpdateInterval: [, __expectString, `statusUpdateInterval`],
@@ -4835,6 +4864,7 @@ const de_MovSettings = (output, context) => {
4835
4864
  };
4836
4865
  const de_Mp2Settings = (output, context) => {
4837
4866
  return take(output, {
4867
+ AudioDescriptionMix: [, __expectString, `audioDescriptionMix`],
4838
4868
  Bitrate: [, __expectInt32, `bitrate`],
4839
4869
  Channels: [, __expectInt32, `channels`],
4840
4870
  SampleRate: [, __expectInt32, `sampleRate`],
@@ -5480,6 +5510,8 @@ const de_VideoSelector = (output, context) => {
5480
5510
  ProgramNumber: [, __expectInt32, `programNumber`],
5481
5511
  Rotate: [, __expectString, `rotate`],
5482
5512
  SampleRange: [, __expectString, `sampleRange`],
5513
+ SelectorType: [, __expectString, `selectorType`],
5514
+ Streams: [, _json, `streams`],
5483
5515
  });
5484
5516
  };
5485
5517
  const de_VorbisSettings = (output, context) => {
@@ -5,6 +5,7 @@ import { CreateJobCommandInput, CreateJobCommandOutput } from "./commands/Create
5
5
  import { CreateJobTemplateCommandInput, CreateJobTemplateCommandOutput } from "./commands/CreateJobTemplateCommand";
6
6
  import { CreatePresetCommandInput, CreatePresetCommandOutput } from "./commands/CreatePresetCommand";
7
7
  import { CreateQueueCommandInput, CreateQueueCommandOutput } from "./commands/CreateQueueCommand";
8
+ import { CreateResourceShareCommandInput, CreateResourceShareCommandOutput } from "./commands/CreateResourceShareCommand";
8
9
  import { DeleteJobTemplateCommandInput, DeleteJobTemplateCommandOutput } from "./commands/DeleteJobTemplateCommand";
9
10
  import { DeletePolicyCommandInput, DeletePolicyCommandOutput } from "./commands/DeletePolicyCommand";
10
11
  import { DeletePresetCommandInput, DeletePresetCommandOutput } from "./commands/DeletePresetCommand";
@@ -68,6 +69,12 @@ export interface MediaConvert {
68
69
  createQueue(args: CreateQueueCommandInput, options?: __HttpHandlerOptions): Promise<CreateQueueCommandOutput>;
69
70
  createQueue(args: CreateQueueCommandInput, cb: (err: any, data?: CreateQueueCommandOutput) => void): void;
70
71
  createQueue(args: CreateQueueCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateQueueCommandOutput) => void): void;
72
+ /**
73
+ * @see {@link CreateResourceShareCommand}
74
+ */
75
+ createResourceShare(args: CreateResourceShareCommandInput, options?: __HttpHandlerOptions): Promise<CreateResourceShareCommandOutput>;
76
+ createResourceShare(args: CreateResourceShareCommandInput, cb: (err: any, data?: CreateResourceShareCommandOutput) => void): void;
77
+ createResourceShare(args: CreateResourceShareCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateResourceShareCommandOutput) => void): void;
71
78
  /**
72
79
  * @see {@link DeleteJobTemplateCommand}
73
80
  */
@@ -13,6 +13,7 @@ import { CreateJobCommandInput, CreateJobCommandOutput } from "./commands/Create
13
13
  import { CreateJobTemplateCommandInput, CreateJobTemplateCommandOutput } from "./commands/CreateJobTemplateCommand";
14
14
  import { CreatePresetCommandInput, CreatePresetCommandOutput } from "./commands/CreatePresetCommand";
15
15
  import { CreateQueueCommandInput, CreateQueueCommandOutput } from "./commands/CreateQueueCommand";
16
+ import { CreateResourceShareCommandInput, CreateResourceShareCommandOutput } from "./commands/CreateResourceShareCommand";
16
17
  import { DeleteJobTemplateCommandInput, DeleteJobTemplateCommandOutput } from "./commands/DeleteJobTemplateCommand";
17
18
  import { DeletePolicyCommandInput, DeletePolicyCommandOutput } from "./commands/DeletePolicyCommand";
18
19
  import { DeletePresetCommandInput, DeletePresetCommandOutput } from "./commands/DeletePresetCommand";
@@ -44,11 +45,11 @@ export { __Client };
44
45
  /**
45
46
  * @public
46
47
  */
47
- 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 | ListVersionsCommandInput | ProbeCommandInput | PutPolicyCommandInput | SearchJobsCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateJobTemplateCommandInput | UpdatePresetCommandInput | UpdateQueueCommandInput;
48
+ export type ServiceInputTypes = AssociateCertificateCommandInput | CancelJobCommandInput | CreateJobCommandInput | CreateJobTemplateCommandInput | CreatePresetCommandInput | CreateQueueCommandInput | CreateResourceShareCommandInput | DeleteJobTemplateCommandInput | DeletePolicyCommandInput | DeletePresetCommandInput | DeleteQueueCommandInput | DescribeEndpointsCommandInput | DisassociateCertificateCommandInput | GetJobCommandInput | GetJobTemplateCommandInput | GetPolicyCommandInput | GetPresetCommandInput | GetQueueCommandInput | ListJobTemplatesCommandInput | ListJobsCommandInput | ListPresetsCommandInput | ListQueuesCommandInput | ListTagsForResourceCommandInput | ListVersionsCommandInput | ProbeCommandInput | PutPolicyCommandInput | SearchJobsCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateJobTemplateCommandInput | UpdatePresetCommandInput | UpdateQueueCommandInput;
48
49
  /**
49
50
  * @public
50
51
  */
51
- 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 | ListVersionsCommandOutput | ProbeCommandOutput | PutPolicyCommandOutput | SearchJobsCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateJobTemplateCommandOutput | UpdatePresetCommandOutput | UpdateQueueCommandOutput;
52
+ export type ServiceOutputTypes = AssociateCertificateCommandOutput | CancelJobCommandOutput | CreateJobCommandOutput | CreateJobTemplateCommandOutput | CreatePresetCommandOutput | CreateQueueCommandOutput | CreateResourceShareCommandOutput | DeleteJobTemplateCommandOutput | DeletePolicyCommandOutput | DeletePresetCommandOutput | DeleteQueueCommandOutput | DescribeEndpointsCommandOutput | DisassociateCertificateCommandOutput | GetJobCommandOutput | GetJobTemplateCommandOutput | GetPolicyCommandOutput | GetPresetCommandOutput | GetQueueCommandOutput | ListJobTemplatesCommandOutput | ListJobsCommandOutput | ListPresetsCommandOutput | ListQueuesCommandOutput | ListTagsForResourceCommandOutput | ListVersionsCommandOutput | ProbeCommandOutput | PutPolicyCommandOutput | SearchJobsCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateJobTemplateCommandOutput | UpdatePresetCommandOutput | UpdateQueueCommandOutput;
52
53
  /**
53
54
  * @public
54
55
  */
@@ -330,6 +330,10 @@ declare const CreateJobCommand_base: {
330
330
  * ProgramNumber: Number("int"),
331
331
  * Rotate: "DEGREE_0" || "DEGREES_90" || "DEGREES_180" || "DEGREES_270" || "AUTO",
332
332
  * SampleRange: "FOLLOW" || "FULL_RANGE" || "LIMITED_RANGE",
333
+ * SelectorType: "AUTO" || "STREAM",
334
+ * Streams: [
335
+ * Number("int"),
336
+ * ],
333
337
  * },
334
338
  * },
335
339
  * ],
@@ -823,6 +827,7 @@ declare const CreateJobCommand_base: {
823
827
  * SampleRate: Number("int"),
824
828
  * },
825
829
  * Mp2Settings: { // Mp2Settings
830
+ * AudioDescriptionMix: "BROADCASTER_MIXED_AD" || "NONE",
826
831
  * Bitrate: Number("int"),
827
832
  * Channels: Number("int"),
828
833
  * SampleRate: Number("int"),
@@ -1132,7 +1137,7 @@ declare const CreateJobCommand_base: {
1132
1137
  * AudioRenditionSets: "STRING_VALUE",
1133
1138
  * AudioTrackType: "ALTERNATE_AUDIO_AUTO_SELECT_DEFAULT" || "ALTERNATE_AUDIO_AUTO_SELECT" || "ALTERNATE_AUDIO_NOT_AUTO_SELECT" || "AUDIO_ONLY_VARIANT_STREAM",
1134
1139
  * DescriptiveVideoServiceFlag: "DONT_FLAG" || "FLAG",
1135
- * IFrameOnlyManifest: "INCLUDE" || "EXCLUDE",
1140
+ * IFrameOnlyManifest: "INCLUDE" || "INCLUDE_AS_TS" || "EXCLUDE",
1136
1141
  * SegmentModifier: "STRING_VALUE",
1137
1142
  * },
1138
1143
  * },
@@ -1634,6 +1639,7 @@ declare const CreateJobCommand_base: {
1634
1639
  * // JobEngineVersionUsed: "STRING_VALUE",
1635
1640
  * // JobPercentComplete: Number("int"),
1636
1641
  * // JobTemplate: "STRING_VALUE",
1642
+ * // LastShareDetails: "STRING_VALUE",
1637
1643
  * // Messages: { // JobMessages
1638
1644
  * // Info: [ // __listOf__string
1639
1645
  * // "STRING_VALUE",
@@ -1944,6 +1950,10 @@ declare const CreateJobCommand_base: {
1944
1950
  * // ProgramNumber: Number("int"),
1945
1951
  * // Rotate: "DEGREE_0" || "DEGREES_90" || "DEGREES_180" || "DEGREES_270" || "AUTO",
1946
1952
  * // SampleRange: "FOLLOW" || "FULL_RANGE" || "LIMITED_RANGE",
1953
+ * // SelectorType: "AUTO" || "STREAM",
1954
+ * // Streams: [
1955
+ * // Number("int"),
1956
+ * // ],
1947
1957
  * // },
1948
1958
  * // },
1949
1959
  * // ],
@@ -2437,6 +2447,7 @@ declare const CreateJobCommand_base: {
2437
2447
  * // SampleRate: Number("int"),
2438
2448
  * // },
2439
2449
  * // Mp2Settings: { // Mp2Settings
2450
+ * // AudioDescriptionMix: "BROADCASTER_MIXED_AD" || "NONE",
2440
2451
  * // Bitrate: Number("int"),
2441
2452
  * // Channels: Number("int"),
2442
2453
  * // SampleRate: Number("int"),
@@ -2746,7 +2757,7 @@ declare const CreateJobCommand_base: {
2746
2757
  * // AudioRenditionSets: "STRING_VALUE",
2747
2758
  * // AudioTrackType: "ALTERNATE_AUDIO_AUTO_SELECT_DEFAULT" || "ALTERNATE_AUDIO_AUTO_SELECT" || "ALTERNATE_AUDIO_NOT_AUTO_SELECT" || "AUDIO_ONLY_VARIANT_STREAM",
2748
2759
  * // DescriptiveVideoServiceFlag: "DONT_FLAG" || "FLAG",
2749
- * // IFrameOnlyManifest: "INCLUDE" || "EXCLUDE",
2760
+ * // IFrameOnlyManifest: "INCLUDE" || "INCLUDE_AS_TS" || "EXCLUDE",
2750
2761
  * // SegmentModifier: "STRING_VALUE",
2751
2762
  * // },
2752
2763
  * // },
@@ -3212,6 +3223,7 @@ declare const CreateJobCommand_base: {
3212
3223
  * // ],
3213
3224
  * // },
3214
3225
  * // },
3226
+ * // ShareStatus: "NOT_SHARED" || "INITIATED" || "SHARED",
3215
3227
  * // SimulateReservedQueue: "DISABLED" || "ENABLED",
3216
3228
  * // Status: "SUBMITTED" || "PROGRESSING" || "COMPLETE" || "CANCELED" || "ERROR",
3217
3229
  * // StatusUpdateInterval: "SECONDS_10" || "SECONDS_12" || "SECONDS_15" || "SECONDS_20" || "SECONDS_30" || "SECONDS_60" || "SECONDS_120" || "SECONDS_180" || "SECONDS_240" || "SECONDS_300" || "SECONDS_360" || "SECONDS_420" || "SECONDS_480" || "SECONDS_540" || "SECONDS_600",
@@ -305,6 +305,10 @@ declare const CreateJobTemplateCommand_base: {
305
305
  * ProgramNumber: Number("int"),
306
306
  * Rotate: "DEGREE_0" || "DEGREES_90" || "DEGREES_180" || "DEGREES_270" || "AUTO",
307
307
  * SampleRange: "FOLLOW" || "FULL_RANGE" || "LIMITED_RANGE",
308
+ * SelectorType: "AUTO" || "STREAM",
309
+ * Streams: [
310
+ * Number("int"),
311
+ * ],
308
312
  * },
309
313
  * },
310
314
  * ],
@@ -798,6 +802,7 @@ declare const CreateJobTemplateCommand_base: {
798
802
  * SampleRate: Number("int"),
799
803
  * },
800
804
  * Mp2Settings: { // Mp2Settings
805
+ * AudioDescriptionMix: "BROADCASTER_MIXED_AD" || "NONE",
801
806
  * Bitrate: Number("int"),
802
807
  * Channels: Number("int"),
803
808
  * SampleRate: Number("int"),
@@ -1107,7 +1112,7 @@ declare const CreateJobTemplateCommand_base: {
1107
1112
  * AudioRenditionSets: "STRING_VALUE",
1108
1113
  * AudioTrackType: "ALTERNATE_AUDIO_AUTO_SELECT_DEFAULT" || "ALTERNATE_AUDIO_AUTO_SELECT" || "ALTERNATE_AUDIO_NOT_AUTO_SELECT" || "AUDIO_ONLY_VARIANT_STREAM",
1109
1114
  * DescriptiveVideoServiceFlag: "DONT_FLAG" || "FLAG",
1110
- * IFrameOnlyManifest: "INCLUDE" || "EXCLUDE",
1115
+ * IFrameOnlyManifest: "INCLUDE" || "INCLUDE_AS_TS" || "EXCLUDE",
1111
1116
  * SegmentModifier: "STRING_VALUE",
1112
1117
  * },
1113
1118
  * },
@@ -1855,6 +1860,10 @@ declare const CreateJobTemplateCommand_base: {
1855
1860
  * // ProgramNumber: Number("int"),
1856
1861
  * // Rotate: "DEGREE_0" || "DEGREES_90" || "DEGREES_180" || "DEGREES_270" || "AUTO",
1857
1862
  * // SampleRange: "FOLLOW" || "FULL_RANGE" || "LIMITED_RANGE",
1863
+ * // SelectorType: "AUTO" || "STREAM",
1864
+ * // Streams: [
1865
+ * // Number("int"),
1866
+ * // ],
1858
1867
  * // },
1859
1868
  * // },
1860
1869
  * // ],
@@ -2348,6 +2357,7 @@ declare const CreateJobTemplateCommand_base: {
2348
2357
  * // SampleRate: Number("int"),
2349
2358
  * // },
2350
2359
  * // Mp2Settings: { // Mp2Settings
2360
+ * // AudioDescriptionMix: "BROADCASTER_MIXED_AD" || "NONE",
2351
2361
  * // Bitrate: Number("int"),
2352
2362
  * // Channels: Number("int"),
2353
2363
  * // SampleRate: Number("int"),
@@ -2657,7 +2667,7 @@ declare const CreateJobTemplateCommand_base: {
2657
2667
  * // AudioRenditionSets: "STRING_VALUE",
2658
2668
  * // AudioTrackType: "ALTERNATE_AUDIO_AUTO_SELECT_DEFAULT" || "ALTERNATE_AUDIO_AUTO_SELECT" || "ALTERNATE_AUDIO_NOT_AUTO_SELECT" || "AUDIO_ONLY_VARIANT_STREAM",
2659
2669
  * // DescriptiveVideoServiceFlag: "DONT_FLAG" || "FLAG",
2660
- * // IFrameOnlyManifest: "INCLUDE" || "EXCLUDE",
2670
+ * // IFrameOnlyManifest: "INCLUDE" || "INCLUDE_AS_TS" || "EXCLUDE",
2661
2671
  * // SegmentModifier: "STRING_VALUE",
2662
2672
  * // },
2663
2673
  * // },
@@ -140,6 +140,7 @@ declare const CreatePresetCommand_base: {
140
140
  * SampleRate: Number("int"),
141
141
  * },
142
142
  * Mp2Settings: { // Mp2Settings
143
+ * AudioDescriptionMix: "BROADCASTER_MIXED_AD" || "NONE",
143
144
  * Bitrate: Number("int"),
144
145
  * Channels: Number("int"),
145
146
  * SampleRate: Number("int"),
@@ -1000,6 +1001,7 @@ declare const CreatePresetCommand_base: {
1000
1001
  * // SampleRate: Number("int"),
1001
1002
  * // },
1002
1003
  * // Mp2Settings: { // Mp2Settings
1004
+ * // AudioDescriptionMix: "BROADCASTER_MIXED_AD" || "NONE",
1003
1005
  * // Bitrate: Number("int"),
1004
1006
  * // Channels: Number("int"),
1005
1007
  * // SampleRate: Number("int"),