aws-sdk-mediatailor 1.59.0 → 1.61.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5a410a7034e92b2873860c2dd477fa3d5f0f266263505f78a5a98f0ec4d64e68
4
- data.tar.gz: df5495059c315e0fa976131fd48d4ea8312b756ea5f424cf0126677451ca15a8
3
+ metadata.gz: 0f059d827e7a220eb949acb120c84dbd6863422b123163365933751d71ac9c65
4
+ data.tar.gz: 4665cdef2514cede5d490f53b4dc7cee8a4ec2c622a41ca77feeafcafcf20ea6
5
5
  SHA512:
6
- metadata.gz: 627c7cf7d55ff45706b2e85fff68f468ab7350df8bbecd0e424e31008315d54ceb84375b49fd7b46a309bf57a4358237c2026f61d931fc9645618aa7105a13d1
7
- data.tar.gz: fa3972f14846c4635c2ccc6f2ffa119cc9cf785c876ed2682ade12e297b9377e7c9cb98a03d7350932a0aa562b8f599f001df1024b7574d5450d7118c7601496
6
+ metadata.gz: eba7ad08e3b6a8d4d5da54256bf8f41bc7ef2b9caa5f9f9e193bd70e0df8fc9948ec68933139e7363ba21419ce8dd8cdb89db33f3217ef0e156a4b55ac5ca16a
7
+ data.tar.gz: ae1e394ffe12e663b5a82a15ba16bfc59e52234424fdac77e32e6c7689545f552644dc44f45d90814168cc83aea3b55e5d93e707a8e6f5124b9ab269fbc992eb
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.61.0 (2023-05-05)
5
+ ------------------
6
+
7
+ * Feature - This release adds support for AFTER_LIVE_EDGE mode configuration for avail suppression, and adding a fill-policy setting that sets the avail suppression to PARTIAL_AVAIL or FULL_AVAIL_ONLY when AFTER_LIVE_EDGE is enabled.
8
+
9
+ 1.60.0 (2023-02-01)
10
+ ------------------
11
+
12
+ * Feature - The AWS Elemental MediaTailor SDK for Channel Assembly has added support for program updates, and the ability to clip the end of VOD sources in programs.
13
+
4
14
  1.59.0 (2023-01-27)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.59.0
1
+ 1.61.0
@@ -765,7 +765,9 @@ module Aws::MediaTailor
765
765
  # * {Types::CreateProgramResponse#ad_breaks #ad_breaks} => Array<Types::AdBreak>
766
766
  # * {Types::CreateProgramResponse#arn #arn} => String
767
767
  # * {Types::CreateProgramResponse#channel_name #channel_name} => String
768
+ # * {Types::CreateProgramResponse#clip_range #clip_range} => Types::ClipRange
768
769
  # * {Types::CreateProgramResponse#creation_time #creation_time} => Time
770
+ # * {Types::CreateProgramResponse#duration_millis #duration_millis} => Integer
769
771
  # * {Types::CreateProgramResponse#live_source_name #live_source_name} => String
770
772
  # * {Types::CreateProgramResponse#program_name #program_name} => String
771
773
  # * {Types::CreateProgramResponse#scheduled_start_time #scheduled_start_time} => Time
@@ -809,6 +811,9 @@ module Aws::MediaTailor
809
811
  # live_source_name: "__string",
810
812
  # program_name: "__string", # required
811
813
  # schedule_configuration: { # required
814
+ # clip_range: {
815
+ # end_offset_millis: 1, # required
816
+ # },
812
817
  # transition: { # required
813
818
  # duration_millis: 1,
814
819
  # relative_position: "BEFORE_PROGRAM", # required, accepts BEFORE_PROGRAM, AFTER_PROGRAM
@@ -843,7 +848,9 @@ module Aws::MediaTailor
843
848
  # resp.ad_breaks[0].time_signal_message.segmentation_descriptors[0].sub_segments_expected #=> Integer
844
849
  # resp.arn #=> String
845
850
  # resp.channel_name #=> String
851
+ # resp.clip_range.end_offset_millis #=> Integer
846
852
  # resp.creation_time #=> Time
853
+ # resp.duration_millis #=> Integer
847
854
  # resp.live_source_name #=> String
848
855
  # resp.program_name #=> String
849
856
  # resp.scheduled_start_time #=> Time
@@ -1386,7 +1393,9 @@ module Aws::MediaTailor
1386
1393
  # * {Types::DescribeProgramResponse#ad_breaks #ad_breaks} => Array<Types::AdBreak>
1387
1394
  # * {Types::DescribeProgramResponse#arn #arn} => String
1388
1395
  # * {Types::DescribeProgramResponse#channel_name #channel_name} => String
1396
+ # * {Types::DescribeProgramResponse#clip_range #clip_range} => Types::ClipRange
1389
1397
  # * {Types::DescribeProgramResponse#creation_time #creation_time} => Time
1398
+ # * {Types::DescribeProgramResponse#duration_millis #duration_millis} => Integer
1390
1399
  # * {Types::DescribeProgramResponse#live_source_name #live_source_name} => String
1391
1400
  # * {Types::DescribeProgramResponse#program_name #program_name} => String
1392
1401
  # * {Types::DescribeProgramResponse#scheduled_start_time #scheduled_start_time} => Time
@@ -1422,7 +1431,9 @@ module Aws::MediaTailor
1422
1431
  # resp.ad_breaks[0].time_signal_message.segmentation_descriptors[0].sub_segments_expected #=> Integer
1423
1432
  # resp.arn #=> String
1424
1433
  # resp.channel_name #=> String
1434
+ # resp.clip_range.end_offset_millis #=> Integer
1425
1435
  # resp.creation_time #=> Time
1436
+ # resp.duration_millis #=> Integer
1426
1437
  # resp.live_source_name #=> String
1427
1438
  # resp.program_name #=> String
1428
1439
  # resp.scheduled_start_time #=> Time
@@ -1686,7 +1697,8 @@ module Aws::MediaTailor
1686
1697
  # @example Response structure
1687
1698
  #
1688
1699
  # resp.ad_decision_server_url #=> String
1689
- # resp.avail_suppression.mode #=> String, one of "OFF", "BEHIND_LIVE_EDGE"
1700
+ # resp.avail_suppression.fill_policy #=> String, one of "FULL_AVAIL_ONLY", "PARTIAL_AVAIL"
1701
+ # resp.avail_suppression.mode #=> String, one of "OFF", "BEHIND_LIVE_EDGE", "AFTER_LIVE_EDGE"
1690
1702
  # resp.avail_suppression.value #=> String
1691
1703
  # resp.bumper.end_url #=> String
1692
1704
  # resp.bumper.start_url #=> String
@@ -1992,7 +2004,8 @@ module Aws::MediaTailor
1992
2004
  #
1993
2005
  # resp.items #=> Array
1994
2006
  # resp.items[0].ad_decision_server_url #=> String
1995
- # resp.items[0].avail_suppression.mode #=> String, one of "OFF", "BEHIND_LIVE_EDGE"
2007
+ # resp.items[0].avail_suppression.fill_policy #=> String, one of "FULL_AVAIL_ONLY", "PARTIAL_AVAIL"
2008
+ # resp.items[0].avail_suppression.mode #=> String, one of "OFF", "BEHIND_LIVE_EDGE", "AFTER_LIVE_EDGE"
1996
2009
  # resp.items[0].avail_suppression.value #=> String
1997
2010
  # resp.items[0].bumper.end_url #=> String
1998
2011
  # resp.items[0].bumper.start_url #=> String
@@ -2408,7 +2421,8 @@ module Aws::MediaTailor
2408
2421
  # resp = client.put_playback_configuration({
2409
2422
  # ad_decision_server_url: "__string",
2410
2423
  # avail_suppression: {
2411
- # mode: "OFF", # accepts OFF, BEHIND_LIVE_EDGE
2424
+ # fill_policy: "FULL_AVAIL_ONLY", # accepts FULL_AVAIL_ONLY, PARTIAL_AVAIL
2425
+ # mode: "OFF", # accepts OFF, BEHIND_LIVE_EDGE, AFTER_LIVE_EDGE
2412
2426
  # value: "__string",
2413
2427
  # },
2414
2428
  # bumper: {
@@ -2450,7 +2464,8 @@ module Aws::MediaTailor
2450
2464
  # @example Response structure
2451
2465
  #
2452
2466
  # resp.ad_decision_server_url #=> String
2453
- # resp.avail_suppression.mode #=> String, one of "OFF", "BEHIND_LIVE_EDGE"
2467
+ # resp.avail_suppression.fill_policy #=> String, one of "FULL_AVAIL_ONLY", "PARTIAL_AVAIL"
2468
+ # resp.avail_suppression.mode #=> String, one of "OFF", "BEHIND_LIVE_EDGE", "AFTER_LIVE_EDGE"
2454
2469
  # resp.avail_suppression.value #=> String
2455
2470
  # resp.bumper.end_url #=> String
2456
2471
  # resp.bumper.start_url #=> String
@@ -2757,6 +2772,120 @@ module Aws::MediaTailor
2757
2772
  req.send_request(options)
2758
2773
  end
2759
2774
 
2775
+ # Updates a program within a channel.
2776
+ #
2777
+ # @option params [Array<Types::AdBreak>] :ad_breaks
2778
+ # The ad break configuration settings.
2779
+ #
2780
+ # @option params [required, String] :channel_name
2781
+ # The name of the channel for this Program.
2782
+ #
2783
+ # @option params [required, String] :program_name
2784
+ # The name of the Program.
2785
+ #
2786
+ # @option params [required, Types::UpdateProgramScheduleConfiguration] :schedule_configuration
2787
+ # The schedule configuration settings.
2788
+ #
2789
+ # @return [Types::UpdateProgramResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2790
+ #
2791
+ # * {Types::UpdateProgramResponse#ad_breaks #ad_breaks} => Array&lt;Types::AdBreak&gt;
2792
+ # * {Types::UpdateProgramResponse#arn #arn} => String
2793
+ # * {Types::UpdateProgramResponse#channel_name #channel_name} => String
2794
+ # * {Types::UpdateProgramResponse#clip_range #clip_range} => Types::ClipRange
2795
+ # * {Types::UpdateProgramResponse#creation_time #creation_time} => Time
2796
+ # * {Types::UpdateProgramResponse#duration_millis #duration_millis} => Integer
2797
+ # * {Types::UpdateProgramResponse#live_source_name #live_source_name} => String
2798
+ # * {Types::UpdateProgramResponse#program_name #program_name} => String
2799
+ # * {Types::UpdateProgramResponse#scheduled_start_time #scheduled_start_time} => Time
2800
+ # * {Types::UpdateProgramResponse#source_location_name #source_location_name} => String
2801
+ # * {Types::UpdateProgramResponse#vod_source_name #vod_source_name} => String
2802
+ #
2803
+ # @example Request syntax with placeholder values
2804
+ #
2805
+ # resp = client.update_program({
2806
+ # ad_breaks: [
2807
+ # {
2808
+ # message_type: "SPLICE_INSERT", # accepts SPLICE_INSERT, TIME_SIGNAL
2809
+ # offset_millis: 1,
2810
+ # slate: {
2811
+ # source_location_name: "__string",
2812
+ # vod_source_name: "__string",
2813
+ # },
2814
+ # splice_insert_message: {
2815
+ # avail_num: 1,
2816
+ # avails_expected: 1,
2817
+ # splice_event_id: 1,
2818
+ # unique_program_id: 1,
2819
+ # },
2820
+ # time_signal_message: {
2821
+ # segmentation_descriptors: [
2822
+ # {
2823
+ # segment_num: 1,
2824
+ # segmentation_event_id: 1,
2825
+ # segmentation_type_id: 1,
2826
+ # segmentation_upid: "String",
2827
+ # segmentation_upid_type: 1,
2828
+ # segments_expected: 1,
2829
+ # sub_segment_num: 1,
2830
+ # sub_segments_expected: 1,
2831
+ # },
2832
+ # ],
2833
+ # },
2834
+ # },
2835
+ # ],
2836
+ # channel_name: "__string", # required
2837
+ # program_name: "__string", # required
2838
+ # schedule_configuration: { # required
2839
+ # clip_range: {
2840
+ # end_offset_millis: 1, # required
2841
+ # },
2842
+ # transition: {
2843
+ # duration_millis: 1,
2844
+ # scheduled_start_time_millis: 1,
2845
+ # },
2846
+ # },
2847
+ # })
2848
+ #
2849
+ # @example Response structure
2850
+ #
2851
+ # resp.ad_breaks #=> Array
2852
+ # resp.ad_breaks[0].message_type #=> String, one of "SPLICE_INSERT", "TIME_SIGNAL"
2853
+ # resp.ad_breaks[0].offset_millis #=> Integer
2854
+ # resp.ad_breaks[0].slate.source_location_name #=> String
2855
+ # resp.ad_breaks[0].slate.vod_source_name #=> String
2856
+ # resp.ad_breaks[0].splice_insert_message.avail_num #=> Integer
2857
+ # resp.ad_breaks[0].splice_insert_message.avails_expected #=> Integer
2858
+ # resp.ad_breaks[0].splice_insert_message.splice_event_id #=> Integer
2859
+ # resp.ad_breaks[0].splice_insert_message.unique_program_id #=> Integer
2860
+ # resp.ad_breaks[0].time_signal_message.segmentation_descriptors #=> Array
2861
+ # resp.ad_breaks[0].time_signal_message.segmentation_descriptors[0].segment_num #=> Integer
2862
+ # resp.ad_breaks[0].time_signal_message.segmentation_descriptors[0].segmentation_event_id #=> Integer
2863
+ # resp.ad_breaks[0].time_signal_message.segmentation_descriptors[0].segmentation_type_id #=> Integer
2864
+ # resp.ad_breaks[0].time_signal_message.segmentation_descriptors[0].segmentation_upid #=> String
2865
+ # resp.ad_breaks[0].time_signal_message.segmentation_descriptors[0].segmentation_upid_type #=> Integer
2866
+ # resp.ad_breaks[0].time_signal_message.segmentation_descriptors[0].segments_expected #=> Integer
2867
+ # resp.ad_breaks[0].time_signal_message.segmentation_descriptors[0].sub_segment_num #=> Integer
2868
+ # resp.ad_breaks[0].time_signal_message.segmentation_descriptors[0].sub_segments_expected #=> Integer
2869
+ # resp.arn #=> String
2870
+ # resp.channel_name #=> String
2871
+ # resp.clip_range.end_offset_millis #=> Integer
2872
+ # resp.creation_time #=> Time
2873
+ # resp.duration_millis #=> Integer
2874
+ # resp.live_source_name #=> String
2875
+ # resp.program_name #=> String
2876
+ # resp.scheduled_start_time #=> Time
2877
+ # resp.source_location_name #=> String
2878
+ # resp.vod_source_name #=> String
2879
+ #
2880
+ # @see http://docs.aws.amazon.com/goto/WebAPI/mediatailor-2018-04-23/UpdateProgram AWS API Documentation
2881
+ #
2882
+ # @overload update_program(params = {})
2883
+ # @param [Hash] params ({})
2884
+ def update_program(params = {}, options = {})
2885
+ req = build_request(:update_program, params)
2886
+ req.send_request(options)
2887
+ end
2888
+
2760
2889
  # Updates a source location. A source location is a container for
2761
2890
  # sources. For more information about source locations, see [Working
2762
2891
  # with source locations][1] in the *MediaTailor User Guide*.
@@ -2919,7 +3048,7 @@ module Aws::MediaTailor
2919
3048
  params: params,
2920
3049
  config: config)
2921
3050
  context[:gem_name] = 'aws-sdk-mediatailor'
2922
- context[:gem_version] = '1.59.0'
3051
+ context[:gem_version] = '1.61.0'
2923
3052
  Seahorse::Client::Request.new(handlers, context)
2924
3053
  end
2925
3054
 
@@ -25,6 +25,7 @@ module Aws::MediaTailor
25
25
  CdnConfiguration = Shapes::StructureShape.new(name: 'CdnConfiguration')
26
26
  Channel = Shapes::StructureShape.new(name: 'Channel')
27
27
  ChannelState = Shapes::StringShape.new(name: 'ChannelState')
28
+ ClipRange = Shapes::StructureShape.new(name: 'ClipRange')
28
29
  ConfigurationAliasesRequest = Shapes::MapShape.new(name: 'ConfigurationAliasesRequest')
29
30
  ConfigurationAliasesResponse = Shapes::MapShape.new(name: 'ConfigurationAliasesResponse')
30
31
  ConfigureLogsForChannelRequest = Shapes::StructureShape.new(name: 'ConfigureLogsForChannelRequest')
@@ -73,6 +74,7 @@ module Aws::MediaTailor
73
74
  DescribeSourceLocationResponse = Shapes::StructureShape.new(name: 'DescribeSourceLocationResponse')
74
75
  DescribeVodSourceRequest = Shapes::StructureShape.new(name: 'DescribeVodSourceRequest')
75
76
  DescribeVodSourceResponse = Shapes::StructureShape.new(name: 'DescribeVodSourceResponse')
77
+ FillPolicy = Shapes::StringShape.new(name: 'FillPolicy')
76
78
  GetChannelPolicyRequest = Shapes::StructureShape.new(name: 'GetChannelPolicyRequest')
77
79
  GetChannelPolicyResponse = Shapes::StructureShape.new(name: 'GetChannelPolicyResponse')
78
80
  GetChannelScheduleRequest = Shapes::StructureShape.new(name: 'GetChannelScheduleRequest')
@@ -109,6 +111,7 @@ module Aws::MediaTailor
109
111
  LogConfigurationForChannel = Shapes::StructureShape.new(name: 'LogConfigurationForChannel')
110
112
  LogType = Shapes::StringShape.new(name: 'LogType')
111
113
  LogTypes = Shapes::ListShape.new(name: 'LogTypes')
114
+ Long = Shapes::IntegerShape.new(name: 'Long')
112
115
  ManifestProcessingRules = Shapes::StructureShape.new(name: 'ManifestProcessingRules')
113
116
  MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
114
117
  MessageType = Shapes::StringShape.new(name: 'MessageType')
@@ -155,6 +158,10 @@ module Aws::MediaTailor
155
158
  UpdateChannelResponse = Shapes::StructureShape.new(name: 'UpdateChannelResponse')
156
159
  UpdateLiveSourceRequest = Shapes::StructureShape.new(name: 'UpdateLiveSourceRequest')
157
160
  UpdateLiveSourceResponse = Shapes::StructureShape.new(name: 'UpdateLiveSourceResponse')
161
+ UpdateProgramRequest = Shapes::StructureShape.new(name: 'UpdateProgramRequest')
162
+ UpdateProgramResponse = Shapes::StructureShape.new(name: 'UpdateProgramResponse')
163
+ UpdateProgramScheduleConfiguration = Shapes::StructureShape.new(name: 'UpdateProgramScheduleConfiguration')
164
+ UpdateProgramTransition = Shapes::StructureShape.new(name: 'UpdateProgramTransition')
158
165
  UpdateSourceLocationRequest = Shapes::StructureShape.new(name: 'UpdateSourceLocationRequest')
159
166
  UpdateSourceLocationResponse = Shapes::StructureShape.new(name: 'UpdateSourceLocationResponse')
160
167
  UpdateVodSourceRequest = Shapes::StructureShape.new(name: 'UpdateVodSourceRequest')
@@ -207,6 +214,7 @@ module Aws::MediaTailor
207
214
  AvailMatchingCriteria.add_member(:operator, Shapes::ShapeRef.new(shape: Operator, required: true, location_name: "Operator"))
208
215
  AvailMatchingCriteria.struct_class = Types::AvailMatchingCriteria
209
216
 
217
+ AvailSuppression.add_member(:fill_policy, Shapes::ShapeRef.new(shape: FillPolicy, location_name: "FillPolicy"))
210
218
  AvailSuppression.add_member(:mode, Shapes::ShapeRef.new(shape: Mode, location_name: "Mode"))
211
219
  AvailSuppression.add_member(:value, Shapes::ShapeRef.new(shape: __string, location_name: "Value"))
212
220
  AvailSuppression.struct_class = Types::AvailSuppression
@@ -235,6 +243,9 @@ module Aws::MediaTailor
235
243
  Channel.add_member(:tier, Shapes::ShapeRef.new(shape: __string, required: true, location_name: "Tier"))
236
244
  Channel.struct_class = Types::Channel
237
245
 
246
+ ClipRange.add_member(:end_offset_millis, Shapes::ShapeRef.new(shape: __long, required: true, location_name: "EndOffsetMillis"))
247
+ ClipRange.struct_class = Types::ClipRange
248
+
238
249
  ConfigurationAliasesRequest.key = Shapes::ShapeRef.new(shape: __string)
239
250
  ConfigurationAliasesRequest.value = Shapes::ShapeRef.new(shape: __mapOf__string)
240
251
 
@@ -319,7 +330,9 @@ module Aws::MediaTailor
319
330
  CreateProgramResponse.add_member(:ad_breaks, Shapes::ShapeRef.new(shape: __listOfAdBreak, location_name: "AdBreaks"))
320
331
  CreateProgramResponse.add_member(:arn, Shapes::ShapeRef.new(shape: __string, location_name: "Arn"))
321
332
  CreateProgramResponse.add_member(:channel_name, Shapes::ShapeRef.new(shape: __string, location_name: "ChannelName"))
333
+ CreateProgramResponse.add_member(:clip_range, Shapes::ShapeRef.new(shape: ClipRange, location_name: "ClipRange"))
322
334
  CreateProgramResponse.add_member(:creation_time, Shapes::ShapeRef.new(shape: __timestampUnix, location_name: "CreationTime"))
335
+ CreateProgramResponse.add_member(:duration_millis, Shapes::ShapeRef.new(shape: __long, location_name: "DurationMillis"))
323
336
  CreateProgramResponse.add_member(:live_source_name, Shapes::ShapeRef.new(shape: __string, location_name: "LiveSourceName"))
324
337
  CreateProgramResponse.add_member(:program_name, Shapes::ShapeRef.new(shape: __string, location_name: "ProgramName"))
325
338
  CreateProgramResponse.add_member(:scheduled_start_time, Shapes::ShapeRef.new(shape: __timestampUnix, location_name: "ScheduledStartTime"))
@@ -459,7 +472,9 @@ module Aws::MediaTailor
459
472
  DescribeProgramResponse.add_member(:ad_breaks, Shapes::ShapeRef.new(shape: __listOfAdBreak, location_name: "AdBreaks"))
460
473
  DescribeProgramResponse.add_member(:arn, Shapes::ShapeRef.new(shape: __string, location_name: "Arn"))
461
474
  DescribeProgramResponse.add_member(:channel_name, Shapes::ShapeRef.new(shape: __string, location_name: "ChannelName"))
475
+ DescribeProgramResponse.add_member(:clip_range, Shapes::ShapeRef.new(shape: ClipRange, location_name: "ClipRange"))
462
476
  DescribeProgramResponse.add_member(:creation_time, Shapes::ShapeRef.new(shape: __timestampUnix, location_name: "CreationTime"))
477
+ DescribeProgramResponse.add_member(:duration_millis, Shapes::ShapeRef.new(shape: Long, location_name: "DurationMillis"))
463
478
  DescribeProgramResponse.add_member(:live_source_name, Shapes::ShapeRef.new(shape: __string, location_name: "LiveSourceName"))
464
479
  DescribeProgramResponse.add_member(:program_name, Shapes::ShapeRef.new(shape: __string, location_name: "ProgramName"))
465
480
  DescribeProgramResponse.add_member(:scheduled_start_time, Shapes::ShapeRef.new(shape: __timestampUnix, location_name: "ScheduledStartTime"))
@@ -758,6 +773,7 @@ module Aws::MediaTailor
758
773
  ScheduleAdBreak.add_member(:vod_source_name, Shapes::ShapeRef.new(shape: __string, location_name: "VodSourceName"))
759
774
  ScheduleAdBreak.struct_class = Types::ScheduleAdBreak
760
775
 
776
+ ScheduleConfiguration.add_member(:clip_range, Shapes::ShapeRef.new(shape: ClipRange, location_name: "ClipRange"))
761
777
  ScheduleConfiguration.add_member(:transition, Shapes::ShapeRef.new(shape: Transition, required: true, location_name: "Transition"))
762
778
  ScheduleConfiguration.struct_class = Types::ScheduleConfiguration
763
779
 
@@ -874,6 +890,33 @@ module Aws::MediaTailor
874
890
  UpdateLiveSourceResponse.add_member(:tags, Shapes::ShapeRef.new(shape: __mapOf__string, location_name: "tags"))
875
891
  UpdateLiveSourceResponse.struct_class = Types::UpdateLiveSourceResponse
876
892
 
893
+ UpdateProgramRequest.add_member(:ad_breaks, Shapes::ShapeRef.new(shape: __listOfAdBreak, location_name: "AdBreaks"))
894
+ UpdateProgramRequest.add_member(:channel_name, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "ChannelName"))
895
+ UpdateProgramRequest.add_member(:program_name, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "ProgramName"))
896
+ UpdateProgramRequest.add_member(:schedule_configuration, Shapes::ShapeRef.new(shape: UpdateProgramScheduleConfiguration, required: true, location_name: "ScheduleConfiguration"))
897
+ UpdateProgramRequest.struct_class = Types::UpdateProgramRequest
898
+
899
+ UpdateProgramResponse.add_member(:ad_breaks, Shapes::ShapeRef.new(shape: __listOfAdBreak, location_name: "AdBreaks"))
900
+ UpdateProgramResponse.add_member(:arn, Shapes::ShapeRef.new(shape: __string, location_name: "Arn"))
901
+ UpdateProgramResponse.add_member(:channel_name, Shapes::ShapeRef.new(shape: __string, location_name: "ChannelName"))
902
+ UpdateProgramResponse.add_member(:clip_range, Shapes::ShapeRef.new(shape: ClipRange, location_name: "ClipRange"))
903
+ UpdateProgramResponse.add_member(:creation_time, Shapes::ShapeRef.new(shape: __timestampUnix, location_name: "CreationTime"))
904
+ UpdateProgramResponse.add_member(:duration_millis, Shapes::ShapeRef.new(shape: __long, location_name: "DurationMillis"))
905
+ UpdateProgramResponse.add_member(:live_source_name, Shapes::ShapeRef.new(shape: __string, location_name: "LiveSourceName"))
906
+ UpdateProgramResponse.add_member(:program_name, Shapes::ShapeRef.new(shape: __string, location_name: "ProgramName"))
907
+ UpdateProgramResponse.add_member(:scheduled_start_time, Shapes::ShapeRef.new(shape: __timestampUnix, location_name: "ScheduledStartTime"))
908
+ UpdateProgramResponse.add_member(:source_location_name, Shapes::ShapeRef.new(shape: __string, location_name: "SourceLocationName"))
909
+ UpdateProgramResponse.add_member(:vod_source_name, Shapes::ShapeRef.new(shape: __string, location_name: "VodSourceName"))
910
+ UpdateProgramResponse.struct_class = Types::UpdateProgramResponse
911
+
912
+ UpdateProgramScheduleConfiguration.add_member(:clip_range, Shapes::ShapeRef.new(shape: ClipRange, location_name: "ClipRange"))
913
+ UpdateProgramScheduleConfiguration.add_member(:transition, Shapes::ShapeRef.new(shape: UpdateProgramTransition, location_name: "Transition"))
914
+ UpdateProgramScheduleConfiguration.struct_class = Types::UpdateProgramScheduleConfiguration
915
+
916
+ UpdateProgramTransition.add_member(:duration_millis, Shapes::ShapeRef.new(shape: __long, location_name: "DurationMillis"))
917
+ UpdateProgramTransition.add_member(:scheduled_start_time_millis, Shapes::ShapeRef.new(shape: __long, location_name: "ScheduledStartTimeMillis"))
918
+ UpdateProgramTransition.struct_class = Types::UpdateProgramTransition
919
+
877
920
  UpdateSourceLocationRequest.add_member(:access_configuration, Shapes::ShapeRef.new(shape: AccessConfiguration, location_name: "AccessConfiguration"))
878
921
  UpdateSourceLocationRequest.add_member(:default_segment_delivery_configuration, Shapes::ShapeRef.new(shape: DefaultSegmentDeliveryConfiguration, location_name: "DefaultSegmentDeliveryConfiguration"))
879
922
  UpdateSourceLocationRequest.add_member(:http_configuration, Shapes::ShapeRef.new(shape: HttpConfiguration, required: true, location_name: "HttpConfiguration"))
@@ -1342,6 +1385,14 @@ module Aws::MediaTailor
1342
1385
  o.output = Shapes::ShapeRef.new(shape: UpdateLiveSourceResponse)
1343
1386
  end)
1344
1387
 
1388
+ api.add_operation(:update_program, Seahorse::Model::Operation.new.tap do |o|
1389
+ o.name = "UpdateProgram"
1390
+ o.http_method = "PUT"
1391
+ o.http_request_uri = "/channel/{ChannelName}/program/{ProgramName}"
1392
+ o.input = Shapes::ShapeRef.new(shape: UpdateProgramRequest)
1393
+ o.output = Shapes::ShapeRef.new(shape: UpdateProgramResponse)
1394
+ end)
1395
+
1345
1396
  api.add_operation(:update_source_location, Seahorse::Model::Operation.new.tap do |o|
1346
1397
  o.name = "UpdateSourceLocation"
1347
1398
  o.http_method = "PUT"
@@ -50,9 +50,6 @@ module Aws::MediaTailor
50
50
 
51
51
  def initialize(options = {})
52
52
  self[:region] = options[:region]
53
- if self[:region].nil?
54
- raise ArgumentError, "Missing required EndpointParameter: :region"
55
- end
56
53
  self[:use_dual_stack] = options[:use_dual_stack]
57
54
  self[:use_dual_stack] = false if self[:use_dual_stack].nil?
58
55
  if self[:use_dual_stack].nil?
@@ -14,36 +14,39 @@ module Aws::MediaTailor
14
14
  use_dual_stack = parameters.use_dual_stack
15
15
  use_fips = parameters.use_fips
16
16
  endpoint = parameters.endpoint
17
- if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
18
- if Aws::Endpoints::Matchers.set?(endpoint)
19
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
20
- raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
21
- end
22
- if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
23
- raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
24
- end
25
- return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
26
- end
27
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
28
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
29
- return Aws::Endpoints::Endpoint.new(url: "https://api.mediatailor-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
30
- end
31
- raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
32
- end
17
+ if Aws::Endpoints::Matchers.set?(endpoint)
33
18
  if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
34
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
35
- return Aws::Endpoints::Endpoint.new(url: "https://api.mediatailor-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
36
- end
37
- raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
19
+ raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
38
20
  end
39
21
  if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
40
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
41
- return Aws::Endpoints::Endpoint.new(url: "https://api.mediatailor.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
22
+ raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
23
+ end
24
+ return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
25
+ end
26
+ if Aws::Endpoints::Matchers.set?(region)
27
+ if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
28
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
29
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
30
+ return Aws::Endpoints::Endpoint.new(url: "https://api.mediatailor-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
31
+ end
32
+ raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
33
+ end
34
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
35
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
36
+ return Aws::Endpoints::Endpoint.new(url: "https://api.mediatailor-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
37
+ end
38
+ raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
39
+ end
40
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
41
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
42
+ return Aws::Endpoints::Endpoint.new(url: "https://api.mediatailor.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
43
+ end
44
+ raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
42
45
  end
43
- raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
46
+ return Aws::Endpoints::Endpoint.new(url: "https://api.mediatailor.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
44
47
  end
45
- return Aws::Endpoints::Endpoint.new(url: "https://api.mediatailor.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
46
48
  end
49
+ raise ArgumentError, "Invalid Configuration: Missing Region"
47
50
  raise ArgumentError, 'No endpoint could be resolved'
48
51
 
49
52
  end
@@ -585,6 +585,20 @@ module Aws::MediaTailor
585
585
  end
586
586
  end
587
587
 
588
+ class UpdateProgram
589
+ def self.build(context)
590
+ unless context.config.regional_endpoint
591
+ endpoint = context.config.endpoint.to_s
592
+ end
593
+ Aws::MediaTailor::EndpointParameters.new(
594
+ region: context.config.region,
595
+ use_dual_stack: context.config.use_dualstack_endpoint,
596
+ use_fips: context.config.use_fips_endpoint,
597
+ endpoint: endpoint,
598
+ )
599
+ end
600
+ end
601
+
588
602
  class UpdateSourceLocation
589
603
  def self.build(context)
590
604
  unless context.config.regional_endpoint
@@ -138,6 +138,8 @@ module Aws::MediaTailor
138
138
  Aws::MediaTailor::Endpoints::UpdateChannel.build(context)
139
139
  when :update_live_source
140
140
  Aws::MediaTailor::Endpoints::UpdateLiveSource.build(context)
141
+ when :update_program
142
+ Aws::MediaTailor::Endpoints::UpdateProgram.build(context)
141
143
  when :update_source_location
142
144
  Aws::MediaTailor::Endpoints::UpdateSourceLocation.build(context)
143
145
  when :update_vod_source
@@ -210,12 +210,21 @@ module Aws::MediaTailor
210
210
  #
211
211
  # [1]: https://docs.aws.amazon.com/mediatailor/latest/ug/ad-behavior.html
212
212
  #
213
+ # @!attribute [rw] fill_policy
214
+ # Defines the policy to apply to the avail suppression mode.
215
+ # `BEHIND_LIVE_EDGE` will always use the full avail suppression
216
+ # policy. `AFTER_LIVE_EDGE` mode can be used to invoke partial ad
217
+ # break fills when a session starts mid-break.
218
+ # @return [String]
219
+ #
213
220
  # @!attribute [rw] mode
214
221
  # Sets the ad suppression mode. By default, ad suppression is off and
215
222
  # all ad breaks are filled with ads or slate. When Mode is set to
216
223
  # `BEHIND_LIVE_EDGE`, ad suppression is active and MediaTailor won't
217
224
  # fill ad breaks on or behind the ad suppression Value time in the
218
- # manifest lookback window.
225
+ # manifest lookback window. When Mode is set to `AFTER_LIVE_EDGE`, ad
226
+ # suppression is active and MediaTailor won't fill ad breaks that are
227
+ # within the live edge plus the avail suppression value.
219
228
  # @return [String]
220
229
  #
221
230
  # @!attribute [rw] value
@@ -233,6 +242,7 @@ module Aws::MediaTailor
233
242
  # @see http://docs.aws.amazon.com/goto/WebAPI/mediatailor-2018-04-23/AvailSuppression AWS API Documentation
234
243
  #
235
244
  class AvailSuppression < Struct.new(
245
+ :fill_policy,
236
246
  :mode,
237
247
  :value)
238
248
  SENSITIVE = []
@@ -396,6 +406,22 @@ module Aws::MediaTailor
396
406
  include Aws::Structure
397
407
  end
398
408
 
409
+ # Clip range configuration for the VOD source associated with the
410
+ # program.
411
+ #
412
+ # @!attribute [rw] end_offset_millis
413
+ # The end offset of the clip range, in milliseconds, starting from the
414
+ # beginning of the VOD source associated with the program.
415
+ # @return [Integer]
416
+ #
417
+ # @see http://docs.aws.amazon.com/goto/WebAPI/mediatailor-2018-04-23/ClipRange AWS API Documentation
418
+ #
419
+ class ClipRange < Struct.new(
420
+ :end_offset_millis)
421
+ SENSITIVE = []
422
+ include Aws::Structure
423
+ end
424
+
399
425
  # @!attribute [rw] channel_name
400
426
  # The name of the channel.
401
427
  # @return [String]
@@ -829,10 +855,18 @@ module Aws::MediaTailor
829
855
  # The name to assign to the channel for this program.
830
856
  # @return [String]
831
857
  #
858
+ # @!attribute [rw] clip_range
859
+ # The clip range configuration settings.
860
+ # @return [Types::ClipRange]
861
+ #
832
862
  # @!attribute [rw] creation_time
833
863
  # The time the program was created.
834
864
  # @return [Time]
835
865
  #
866
+ # @!attribute [rw] duration_millis
867
+ # The duration of the live program in milliseconds.
868
+ # @return [Integer]
869
+ #
836
870
  # @!attribute [rw] live_source_name
837
871
  # The name of the LiveSource for this Program.
838
872
  # @return [String]
@@ -859,7 +893,9 @@ module Aws::MediaTailor
859
893
  :ad_breaks,
860
894
  :arn,
861
895
  :channel_name,
896
+ :clip_range,
862
897
  :creation_time,
898
+ :duration_millis,
863
899
  :live_source_name,
864
900
  :program_name,
865
901
  :scheduled_start_time,
@@ -1518,10 +1554,18 @@ module Aws::MediaTailor
1518
1554
  # The name of the channel that the program belongs to.
1519
1555
  # @return [String]
1520
1556
  #
1557
+ # @!attribute [rw] clip_range
1558
+ # The clip range configuration settings.
1559
+ # @return [Types::ClipRange]
1560
+ #
1521
1561
  # @!attribute [rw] creation_time
1522
1562
  # The timestamp of when the program was created.
1523
1563
  # @return [Time]
1524
1564
  #
1565
+ # @!attribute [rw] duration_millis
1566
+ # The duration of the live program in milliseconds.
1567
+ # @return [Integer]
1568
+ #
1525
1569
  # @!attribute [rw] live_source_name
1526
1570
  # The name of the LiveSource for this Program.
1527
1571
  # @return [String]
@@ -1551,7 +1595,9 @@ module Aws::MediaTailor
1551
1595
  :ad_breaks,
1552
1596
  :arn,
1553
1597
  :channel_name,
1598
+ :clip_range,
1554
1599
  :creation_time,
1600
+ :duration_millis,
1555
1601
  :live_source_name,
1556
1602
  :program_name,
1557
1603
  :scheduled_start_time,
@@ -3310,6 +3356,10 @@ module Aws::MediaTailor
3310
3356
  # Schedule configuration parameters. A channel must be stopped before
3311
3357
  # changes can be made to the schedule.
3312
3358
  #
3359
+ # @!attribute [rw] clip_range
3360
+ # Program clip range configuration.
3361
+ # @return [Types::ClipRange]
3362
+ #
3313
3363
  # @!attribute [rw] transition
3314
3364
  # Program transition configurations.
3315
3365
  # @return [Types::Transition]
@@ -3317,6 +3367,7 @@ module Aws::MediaTailor
3317
3367
  # @see http://docs.aws.amazon.com/goto/WebAPI/mediatailor-2018-04-23/ScheduleConfiguration AWS API Documentation
3318
3368
  #
3319
3369
  class ScheduleConfiguration < Struct.new(
3370
+ :clip_range,
3320
3371
  :transition)
3321
3372
  SENSITIVE = []
3322
3373
  include Aws::Structure
@@ -3977,6 +4028,134 @@ module Aws::MediaTailor
3977
4028
  include Aws::Structure
3978
4029
  end
3979
4030
 
4031
+ # @!attribute [rw] ad_breaks
4032
+ # The ad break configuration settings.
4033
+ # @return [Array<Types::AdBreak>]
4034
+ #
4035
+ # @!attribute [rw] channel_name
4036
+ # The name of the channel for this Program.
4037
+ # @return [String]
4038
+ #
4039
+ # @!attribute [rw] program_name
4040
+ # The name of the Program.
4041
+ # @return [String]
4042
+ #
4043
+ # @!attribute [rw] schedule_configuration
4044
+ # The schedule configuration settings.
4045
+ # @return [Types::UpdateProgramScheduleConfiguration]
4046
+ #
4047
+ # @see http://docs.aws.amazon.com/goto/WebAPI/mediatailor-2018-04-23/UpdateProgramRequest AWS API Documentation
4048
+ #
4049
+ class UpdateProgramRequest < Struct.new(
4050
+ :ad_breaks,
4051
+ :channel_name,
4052
+ :program_name,
4053
+ :schedule_configuration)
4054
+ SENSITIVE = []
4055
+ include Aws::Structure
4056
+ end
4057
+
4058
+ # @!attribute [rw] ad_breaks
4059
+ # The ad break configuration settings.
4060
+ # @return [Array<Types::AdBreak>]
4061
+ #
4062
+ # @!attribute [rw] arn
4063
+ # The ARN to assign to the program.
4064
+ # @return [String]
4065
+ #
4066
+ # @!attribute [rw] channel_name
4067
+ # The name to assign to the channel for this program.
4068
+ # @return [String]
4069
+ #
4070
+ # @!attribute [rw] clip_range
4071
+ # The clip range configuration settings.
4072
+ # @return [Types::ClipRange]
4073
+ #
4074
+ # @!attribute [rw] creation_time
4075
+ # The time the program was created.
4076
+ # @return [Time]
4077
+ #
4078
+ # @!attribute [rw] duration_millis
4079
+ # The duration of the live program in milliseconds.
4080
+ # @return [Integer]
4081
+ #
4082
+ # @!attribute [rw] live_source_name
4083
+ # The name of the LiveSource for this Program.
4084
+ # @return [String]
4085
+ #
4086
+ # @!attribute [rw] program_name
4087
+ # The name to assign to this program.
4088
+ # @return [String]
4089
+ #
4090
+ # @!attribute [rw] scheduled_start_time
4091
+ # The scheduled start time for this Program.
4092
+ # @return [Time]
4093
+ #
4094
+ # @!attribute [rw] source_location_name
4095
+ # The name to assign to the source location for this program.
4096
+ # @return [String]
4097
+ #
4098
+ # @!attribute [rw] vod_source_name
4099
+ # The name that's used to refer to a VOD source.
4100
+ # @return [String]
4101
+ #
4102
+ # @see http://docs.aws.amazon.com/goto/WebAPI/mediatailor-2018-04-23/UpdateProgramResponse AWS API Documentation
4103
+ #
4104
+ class UpdateProgramResponse < Struct.new(
4105
+ :ad_breaks,
4106
+ :arn,
4107
+ :channel_name,
4108
+ :clip_range,
4109
+ :creation_time,
4110
+ :duration_millis,
4111
+ :live_source_name,
4112
+ :program_name,
4113
+ :scheduled_start_time,
4114
+ :source_location_name,
4115
+ :vod_source_name)
4116
+ SENSITIVE = []
4117
+ include Aws::Structure
4118
+ end
4119
+
4120
+ # Schedule configuration parameters.
4121
+ #
4122
+ # @!attribute [rw] clip_range
4123
+ # Program clip range configuration.
4124
+ # @return [Types::ClipRange]
4125
+ #
4126
+ # @!attribute [rw] transition
4127
+ # Program transition configuration.
4128
+ # @return [Types::UpdateProgramTransition]
4129
+ #
4130
+ # @see http://docs.aws.amazon.com/goto/WebAPI/mediatailor-2018-04-23/UpdateProgramScheduleConfiguration AWS API Documentation
4131
+ #
4132
+ class UpdateProgramScheduleConfiguration < Struct.new(
4133
+ :clip_range,
4134
+ :transition)
4135
+ SENSITIVE = []
4136
+ include Aws::Structure
4137
+ end
4138
+
4139
+ # Program transition configuration.
4140
+ #
4141
+ # @!attribute [rw] duration_millis
4142
+ # The duration of the live program in seconds.
4143
+ # @return [Integer]
4144
+ #
4145
+ # @!attribute [rw] scheduled_start_time_millis
4146
+ # The date and time that the program is scheduled to start, in epoch
4147
+ # milliseconds.
4148
+ # @return [Integer]
4149
+ #
4150
+ # @see http://docs.aws.amazon.com/goto/WebAPI/mediatailor-2018-04-23/UpdateProgramTransition AWS API Documentation
4151
+ #
4152
+ class UpdateProgramTransition < Struct.new(
4153
+ :duration_millis,
4154
+ :scheduled_start_time_millis)
4155
+ SENSITIVE = []
4156
+ include Aws::Structure
4157
+ end
4158
+
3980
4159
  # @!attribute [rw] access_configuration
3981
4160
  # Access configuration parameters. Configures the type of
3982
4161
  # authentication used to access content from your source location.
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-mediatailor/customizations'
52
52
  # @!group service
53
53
  module Aws::MediaTailor
54
54
 
55
- GEM_VERSION = '1.59.0'
55
+ GEM_VERSION = '1.61.0'
56
56
 
57
57
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-mediatailor
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.59.0
4
+ version: 1.61.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-01-27 00:00:00.000000000 Z
11
+ date: 2023-05-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core