@aws-sdk/client-mediatailor 3.1041.0 → 3.1043.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 (42) hide show
  1. package/README.md +28 -0
  2. package/dist-cjs/index.js +91 -0
  3. package/dist-cjs/schemas/schemas_0.js +135 -17
  4. package/dist-es/MediaTailor.js +10 -0
  5. package/dist-es/commands/DeleteFunctionCommand.js +16 -0
  6. package/dist-es/commands/GetFunctionCommand.js +16 -0
  7. package/dist-es/commands/ListFunctionsCommand.js +16 -0
  8. package/dist-es/commands/PutFunctionCommand.js +16 -0
  9. package/dist-es/commands/index.js +4 -0
  10. package/dist-es/models/enums.js +26 -0
  11. package/dist-es/pagination/ListFunctionsPaginator.js +4 -0
  12. package/dist-es/pagination/index.js +1 -0
  13. package/dist-es/schemas/schemas_0.js +130 -13
  14. package/dist-types/MediaTailor.d.ts +36 -0
  15. package/dist-types/MediaTailorClient.d.ts +6 -2
  16. package/dist-types/commands/ConfigureLogsForPlaybackConfigurationCommand.d.ts +12 -6
  17. package/dist-types/commands/DeleteFunctionCommand.d.ts +72 -0
  18. package/dist-types/commands/GetFunctionCommand.d.ts +112 -0
  19. package/dist-types/commands/GetPlaybackConfigurationCommand.d.ts +9 -3
  20. package/dist-types/commands/ListFunctionsCommand.d.ts +118 -0
  21. package/dist-types/commands/ListPlaybackConfigurationsCommand.d.ts +9 -3
  22. package/dist-types/commands/PutFunctionCommand.d.ts +149 -0
  23. package/dist-types/commands/PutPlaybackConfigurationCommand.d.ts +12 -3
  24. package/dist-types/commands/index.d.ts +4 -0
  25. package/dist-types/models/enums.d.ts +66 -0
  26. package/dist-types/models/models_0.d.ts +362 -3
  27. package/dist-types/pagination/ListFunctionsPaginator.d.ts +7 -0
  28. package/dist-types/pagination/index.d.ts +1 -0
  29. package/dist-types/schemas/schemas_0.d.ts +17 -0
  30. package/dist-types/ts3.4/MediaTailor.d.ts +76 -0
  31. package/dist-types/ts3.4/MediaTailorClient.d.ts +24 -0
  32. package/dist-types/ts3.4/commands/DeleteFunctionCommand.d.ts +50 -0
  33. package/dist-types/ts3.4/commands/GetFunctionCommand.d.ts +47 -0
  34. package/dist-types/ts3.4/commands/ListFunctionsCommand.d.ts +50 -0
  35. package/dist-types/ts3.4/commands/PutFunctionCommand.d.ts +47 -0
  36. package/dist-types/ts3.4/commands/index.d.ts +4 -0
  37. package/dist-types/ts3.4/models/enums.d.ts +32 -0
  38. package/dist-types/ts3.4/models/models_0.d.ts +87 -0
  39. package/dist-types/ts3.4/pagination/ListFunctionsPaginator.d.ts +11 -0
  40. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  41. package/dist-types/ts3.4/schemas/schemas_0.d.ts +17 -0
  42. package/package.json +1 -1
package/README.md CHANGED
@@ -251,6 +251,13 @@ DeleteChannelPolicy
251
251
  </details>
252
252
  <details>
253
253
  <summary>
254
+ DeleteFunction
255
+ </summary>
256
+
257
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/mediatailor/command/DeleteFunctionCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-mediatailor/Interface/DeleteFunctionCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-mediatailor/Interface/DeleteFunctionCommandOutput/)
258
+ </details>
259
+ <details>
260
+ <summary>
254
261
  DeleteLiveSource
255
262
  </summary>
256
263
 
@@ -342,6 +349,13 @@ GetChannelSchedule
342
349
  </details>
343
350
  <details>
344
351
  <summary>
352
+ GetFunction
353
+ </summary>
354
+
355
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/mediatailor/command/GetFunctionCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-mediatailor/Interface/GetFunctionCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-mediatailor/Interface/GetFunctionCommandOutput/)
356
+ </details>
357
+ <details>
358
+ <summary>
345
359
  GetPlaybackConfiguration
346
360
  </summary>
347
361
 
@@ -370,6 +384,13 @@ ListChannels
370
384
  </details>
371
385
  <details>
372
386
  <summary>
387
+ ListFunctions
388
+ </summary>
389
+
390
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/mediatailor/command/ListFunctionsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-mediatailor/Interface/ListFunctionsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-mediatailor/Interface/ListFunctionsCommandOutput/)
391
+ </details>
392
+ <details>
393
+ <summary>
373
394
  ListLiveSources
374
395
  </summary>
375
396
 
@@ -419,6 +440,13 @@ PutChannelPolicy
419
440
  </details>
420
441
  <details>
421
442
  <summary>
443
+ PutFunction
444
+ </summary>
445
+
446
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/mediatailor/command/PutFunctionCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-mediatailor/Interface/PutFunctionCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-mediatailor/Interface/PutFunctionCommandOutput/)
447
+ </details>
448
+ <details>
449
+ <summary>
422
450
  PutPlaybackConfiguration
423
451
  </summary>
424
452
 
package/dist-cjs/index.js CHANGED
@@ -233,6 +233,18 @@ class DeleteChannelPolicyCommand extends smithyClient.Command
233
233
  .build() {
234
234
  }
235
235
 
236
+ class DeleteFunctionCommand extends smithyClient.Command
237
+ .classBuilder()
238
+ .ep(commonParams)
239
+ .m(function (Command, cs, config, o) {
240
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
241
+ })
242
+ .s("MediaTailor", "DeleteFunction", {})
243
+ .n("MediaTailorClient", "DeleteFunctionCommand")
244
+ .sc(schemas_0.DeleteFunction$)
245
+ .build() {
246
+ }
247
+
236
248
  class DeleteLiveSourceCommand extends smithyClient.Command
237
249
  .classBuilder()
238
250
  .ep(commonParams)
@@ -389,6 +401,18 @@ class GetChannelScheduleCommand extends smithyClient.Command
389
401
  .build() {
390
402
  }
391
403
 
404
+ class GetFunctionCommand extends smithyClient.Command
405
+ .classBuilder()
406
+ .ep(commonParams)
407
+ .m(function (Command, cs, config, o) {
408
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
409
+ })
410
+ .s("MediaTailor", "GetFunction", {})
411
+ .n("MediaTailorClient", "GetFunctionCommand")
412
+ .sc(schemas_0.GetFunction$)
413
+ .build() {
414
+ }
415
+
392
416
  class GetPlaybackConfigurationCommand extends smithyClient.Command
393
417
  .classBuilder()
394
418
  .ep(commonParams)
@@ -437,6 +461,18 @@ class ListChannelsCommand extends smithyClient.Command
437
461
  .build() {
438
462
  }
439
463
 
464
+ class ListFunctionsCommand extends smithyClient.Command
465
+ .classBuilder()
466
+ .ep(commonParams)
467
+ .m(function (Command, cs, config, o) {
468
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
469
+ })
470
+ .s("MediaTailor", "ListFunctions", {})
471
+ .n("MediaTailorClient", "ListFunctionsCommand")
472
+ .sc(schemas_0.ListFunctions$)
473
+ .build() {
474
+ }
475
+
440
476
  class ListLiveSourcesCommand extends smithyClient.Command
441
477
  .classBuilder()
442
478
  .ep(commonParams)
@@ -521,6 +557,18 @@ class PutChannelPolicyCommand extends smithyClient.Command
521
557
  .build() {
522
558
  }
523
559
 
560
+ class PutFunctionCommand extends smithyClient.Command
561
+ .classBuilder()
562
+ .ep(commonParams)
563
+ .m(function (Command, cs, config, o) {
564
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
565
+ })
566
+ .s("MediaTailor", "PutFunction", {})
567
+ .n("MediaTailorClient", "PutFunctionCommand")
568
+ .sc(schemas_0.PutFunction$)
569
+ .build() {
570
+ }
571
+
524
572
  class PutPlaybackConfigurationCommand extends smithyClient.Command
525
573
  .classBuilder()
526
574
  .ep(commonParams)
@@ -647,6 +695,8 @@ const paginateListAlerts = core.createPaginator(MediaTailorClient, ListAlertsCom
647
695
 
648
696
  const paginateListChannels = core.createPaginator(MediaTailorClient, ListChannelsCommand, "NextToken", "NextToken", "MaxResults");
649
697
 
698
+ const paginateListFunctions = core.createPaginator(MediaTailorClient, ListFunctionsCommand, "NextToken", "NextToken", "MaxResults");
699
+
650
700
  const paginateListLiveSources = core.createPaginator(MediaTailorClient, ListLiveSourcesCommand, "NextToken", "NextToken", "MaxResults");
651
701
 
652
702
  const paginateListPlaybackConfigurations = core.createPaginator(MediaTailorClient, ListPlaybackConfigurationsCommand, "NextToken", "NextToken", "MaxResults");
@@ -668,6 +718,7 @@ const commands = {
668
718
  CreateVodSourceCommand,
669
719
  DeleteChannelCommand,
670
720
  DeleteChannelPolicyCommand,
721
+ DeleteFunctionCommand,
671
722
  DeleteLiveSourceCommand,
672
723
  DeletePlaybackConfigurationCommand,
673
724
  DeletePrefetchScheduleCommand,
@@ -681,10 +732,12 @@ const commands = {
681
732
  DescribeVodSourceCommand,
682
733
  GetChannelPolicyCommand,
683
734
  GetChannelScheduleCommand,
735
+ GetFunctionCommand,
684
736
  GetPlaybackConfigurationCommand,
685
737
  GetPrefetchScheduleCommand,
686
738
  ListAlertsCommand,
687
739
  ListChannelsCommand,
740
+ ListFunctionsCommand,
688
741
  ListLiveSourcesCommand,
689
742
  ListPlaybackConfigurationsCommand,
690
743
  ListPrefetchSchedulesCommand,
@@ -692,6 +745,7 @@ const commands = {
692
745
  ListTagsForResourceCommand,
693
746
  ListVodSourcesCommand,
694
747
  PutChannelPolicyCommand,
748
+ PutFunctionCommand,
695
749
  PutPlaybackConfigurationCommand,
696
750
  StartChannelCommand,
697
751
  StopChannelCommand,
@@ -707,6 +761,7 @@ const paginators = {
707
761
  paginateGetChannelSchedule,
708
762
  paginateListAlerts,
709
763
  paginateListChannels,
764
+ paginateListFunctions,
710
765
  paginateListLiveSources,
711
766
  paginateListPlaybackConfigurations,
712
767
  paginateListPrefetchSchedules,
@@ -750,6 +805,8 @@ const AdsInteractionExcludeEventType = {
750
805
  MAKING_ADS_REQUEST: "MAKING_ADS_REQUEST",
751
806
  MODIFIED_TARGET_URL: "MODIFIED_TARGET_URL",
752
807
  NON_AD_MARKER_FOUND: "NON_AD_MARKER_FOUND",
808
+ PRE_ADS_REQUEST_FUNCTION_ERROR: "PRE_ADS_REQUEST_FUNCTION_ERROR",
809
+ PRE_ADS_REQUEST_HOOK_ERROR: "PRE_ADS_REQUEST_HOOK_ERROR",
753
810
  REDIRECTED_VAST_RESPONSE: "REDIRECTED_VAST_RESPONSE",
754
811
  VAST_REDIRECT: "VAST_REDIRECT",
755
812
  VAST_RESPONSE: "VAST_RESPONSE",
@@ -761,6 +818,8 @@ const AdsInteractionExcludeEventType = {
761
818
  WARNING_VPAID_AD_DROPPED: "WARNING_VPAID_AD_DROPPED",
762
819
  };
763
820
  const AdsInteractionPublishOptInEventType = {
821
+ PRE_ADS_REQUEST_FUNCTION_COMPLETED: "PRE_ADS_REQUEST_FUNCTION_COMPLETED",
822
+ PRE_ADS_REQUEST_HOOK_SUMMARY: "PRE_ADS_REQUEST_HOOK_SUMMARY",
764
823
  RAW_ADS_REQUEST: "RAW_ADS_REQUEST",
765
824
  RAW_ADS_RESPONSE: "RAW_ADS_RESPONSE",
766
825
  };
@@ -783,6 +842,18 @@ const AdMarkupType = {
783
842
  DATERANGE: "DATERANGE",
784
843
  SCTE35_ENHANCED: "SCTE35_ENHANCED",
785
844
  };
845
+ const RuntimeType = {
846
+ JSONATA: "JSONATA",
847
+ };
848
+ const FunctionType = {
849
+ CUSTOM_OUTPUT: "CUSTOM_OUTPUT",
850
+ HTTP_REQUEST: "HTTP_REQUEST",
851
+ SEQUENTIAL_EXECUTOR: "SEQUENTIAL_EXECUTOR",
852
+ };
853
+ const MethodType = {
854
+ GET: "GET",
855
+ POST: "POST",
856
+ };
786
857
  const Type = {
787
858
  DASH: "DASH",
788
859
  HLS: "HLS",
@@ -816,6 +887,10 @@ const OriginManifestType = {
816
887
  MULTI_PERIOD: "MULTI_PERIOD",
817
888
  SINGLE_PERIOD: "SINGLE_PERIOD",
818
889
  };
890
+ const EventName = {
891
+ PRE_ADS_REQUEST: "PRE_ADS_REQUEST",
892
+ PRE_SESSION_INITIALIZATION: "PRE_SESSION_INITIALIZATION",
893
+ };
819
894
  const InsertionMode = {
820
895
  PLAYER_SELECT: "PLAYER_SELECT",
821
896
  STITCHED_ONLY: "STITCHED_ONLY",
@@ -846,6 +921,8 @@ const ManifestServiceExcludeEventType = {
846
921
  NO_MEDIA_PLAYLIST: "NO_MEDIA_PLAYLIST",
847
922
  ORIGIN_MANIFEST: "ORIGIN_MANIFEST",
848
923
  PARSING_ERROR: "PARSING_ERROR",
924
+ PRE_SESSION_INIT_FUNCTION_ERROR: "PRE_SESSION_INIT_FUNCTION_ERROR",
925
+ PRE_SESSION_INIT_HOOK_ERROR: "PRE_SESSION_INIT_HOOK_ERROR",
849
926
  SCTE35_PARSING_ERROR: "SCTE35_PARSING_ERROR",
850
927
  SESSION_INITIALIZED: "SESSION_INITIALIZED",
851
928
  TIMEOUT_ERROR: "TIMEOUT_ERROR",
@@ -854,6 +931,10 @@ const ManifestServiceExcludeEventType = {
854
931
  UNKNOWN_HOST: "UNKNOWN_HOST",
855
932
  UNSUPPORTED_SINGLE_PERIOD_DASH_MANIFEST: "UNSUPPORTED_SINGLE_PERIOD_DASH_MANIFEST",
856
933
  };
934
+ const ManifestServicePublishOptInEventType = {
935
+ PRE_SESSION_INIT_FUNCTION_COMPLETED: "PRE_SESSION_INIT_FUNCTION_COMPLETED",
936
+ PRE_SESSION_INIT_HOOK_SUMMARY: "PRE_SESSION_INIT_HOOK_SUMMARY",
937
+ };
857
938
  const TrafficShapingType = {
858
939
  RETRIEVAL_WINDOW: "RETRIEVAL_WINDOW",
859
940
  TPS: "TPS",
@@ -914,6 +995,7 @@ exports.CreateSourceLocationCommand = CreateSourceLocationCommand;
914
995
  exports.CreateVodSourceCommand = CreateVodSourceCommand;
915
996
  exports.DeleteChannelCommand = DeleteChannelCommand;
916
997
  exports.DeleteChannelPolicyCommand = DeleteChannelPolicyCommand;
998
+ exports.DeleteFunctionCommand = DeleteFunctionCommand;
917
999
  exports.DeleteLiveSourceCommand = DeleteLiveSourceCommand;
918
1000
  exports.DeletePlaybackConfigurationCommand = DeletePlaybackConfigurationCommand;
919
1001
  exports.DeletePrefetchScheduleCommand = DeletePrefetchScheduleCommand;
@@ -925,14 +1007,18 @@ exports.DescribeLiveSourceCommand = DescribeLiveSourceCommand;
925
1007
  exports.DescribeProgramCommand = DescribeProgramCommand;
926
1008
  exports.DescribeSourceLocationCommand = DescribeSourceLocationCommand;
927
1009
  exports.DescribeVodSourceCommand = DescribeVodSourceCommand;
1010
+ exports.EventName = EventName;
928
1011
  exports.FillPolicy = FillPolicy;
1012
+ exports.FunctionType = FunctionType;
929
1013
  exports.GetChannelPolicyCommand = GetChannelPolicyCommand;
930
1014
  exports.GetChannelScheduleCommand = GetChannelScheduleCommand;
1015
+ exports.GetFunctionCommand = GetFunctionCommand;
931
1016
  exports.GetPlaybackConfigurationCommand = GetPlaybackConfigurationCommand;
932
1017
  exports.GetPrefetchScheduleCommand = GetPrefetchScheduleCommand;
933
1018
  exports.InsertionMode = InsertionMode;
934
1019
  exports.ListAlertsCommand = ListAlertsCommand;
935
1020
  exports.ListChannelsCommand = ListChannelsCommand;
1021
+ exports.ListFunctionsCommand = ListFunctionsCommand;
936
1022
  exports.ListLiveSourcesCommand = ListLiveSourcesCommand;
937
1023
  exports.ListPlaybackConfigurationsCommand = ListPlaybackConfigurationsCommand;
938
1024
  exports.ListPrefetchScheduleType = ListPrefetchScheduleType;
@@ -943,18 +1029,22 @@ exports.ListVodSourcesCommand = ListVodSourcesCommand;
943
1029
  exports.LogType = LogType;
944
1030
  exports.LoggingStrategy = LoggingStrategy;
945
1031
  exports.ManifestServiceExcludeEventType = ManifestServiceExcludeEventType;
1032
+ exports.ManifestServicePublishOptInEventType = ManifestServicePublishOptInEventType;
946
1033
  exports.MediaTailor = MediaTailor;
947
1034
  exports.MediaTailorClient = MediaTailorClient;
948
1035
  exports.MessageType = MessageType;
949
1036
  exports.Method = Method;
1037
+ exports.MethodType = MethodType;
950
1038
  exports.Mode = Mode;
951
1039
  exports.Operator = Operator;
952
1040
  exports.OriginManifestType = OriginManifestType;
953
1041
  exports.PlaybackMode = PlaybackMode;
954
1042
  exports.PrefetchScheduleType = PrefetchScheduleType;
955
1043
  exports.PutChannelPolicyCommand = PutChannelPolicyCommand;
1044
+ exports.PutFunctionCommand = PutFunctionCommand;
956
1045
  exports.PutPlaybackConfigurationCommand = PutPlaybackConfigurationCommand;
957
1046
  exports.RelativePosition = RelativePosition;
1047
+ exports.RuntimeType = RuntimeType;
958
1048
  exports.ScheduleEntryType = ScheduleEntryType;
959
1049
  exports.StartChannelCommand = StartChannelCommand;
960
1050
  exports.StopChannelCommand = StopChannelCommand;
@@ -972,6 +1062,7 @@ exports.UpdateVodSourceCommand = UpdateVodSourceCommand;
972
1062
  exports.paginateGetChannelSchedule = paginateGetChannelSchedule;
973
1063
  exports.paginateListAlerts = paginateListAlerts;
974
1064
  exports.paginateListChannels = paginateListChannels;
1065
+ exports.paginateListFunctions = paginateListFunctions;
975
1066
  exports.paginateListLiveSources = paginateListLiveSources;
976
1067
  exports.paginateListPlaybackConfigurations = paginateListPlaybackConfigurations;
977
1068
  exports.paginateListPrefetchSchedules = paginateListPrefetchSchedules;