aws-sdk-mediatailor 1.44.0 → 1.48.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6c588a99cdef3a63fced3ff4845c1f091af6649fa43d83fd545252b665c10ef2
4
- data.tar.gz: be25bc5a446e42c099c2dc77167f97304d46b4fdfa9b36c5b8fff53ac56d6d16
3
+ metadata.gz: 2287660945db1611a54e4fc2e71c281639973c55fac7c9ea2880dc0bc01b8719
4
+ data.tar.gz: 2be453a7cf38ea6e34aa154a4b67a33d484110a3e165f365611791c41fdf8bea
5
5
  SHA512:
6
- metadata.gz: 8f1bcaf4a66d618519c1f245ec088d566a082c16c77afe5c6243342fa40695cc300800eeb53a5106bee37ca9ab9d0dc68347ee4f0893ec58c2f2f7fef7318d53
7
- data.tar.gz: 0f662d0756a89ab1561708faa2dae5d76a58bcabc4eff598d7309bef31753a50526926a4f5151e650a15c5f22e242f2f9dcd22091a49ad1e6331ba9a47079d44
6
+ metadata.gz: ebf41c90ca9ca1dc7b181d23912a345957dac12b379545167cefb30613ab50633ad4492e827b05e7b414db394eb70b8730f51c02288acbb5821e496383a0f249
7
+ data.tar.gz: 7129945fa5d364167ef295cb10c513c212220fb89468ad4f7cb30d455fc4d7305c9657db59a959aaa4ac2db6af5ee77befb3cf34bb1342594d685e695fe1b0ad
data/CHANGELOG.md CHANGED
@@ -1,6 +1,26 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.48.0 (2021-11-04)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.47.0 (2021-10-18)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
14
+ 1.46.0 (2021-10-12)
15
+ ------------------
16
+
17
+ * Feature - MediaTailor now supports ad prefetching.
18
+
19
+ 1.45.0 (2021-09-22)
20
+ ------------------
21
+
22
+ * Feature - This release adds support to configure logs for playback configuration.
23
+
4
24
  1.44.0 (2021-09-01)
5
25
  ------------------
6
26
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.44.0
1
+ 1.48.0
@@ -275,6 +275,15 @@ module Aws::MediaTailor
275
275
  # ** Please note ** When response stubbing is enabled, no HTTP
276
276
  # requests are made, and retries are disabled.
277
277
  #
278
+ # @option options [Boolean] :use_dualstack_endpoint
279
+ # When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
280
+ # will be used if available.
281
+ #
282
+ # @option options [Boolean] :use_fips_endpoint
283
+ # When set to `true`, fips compatible endpoints will be used if available.
284
+ # When a `fips` region is used, the region is normalized and this config
285
+ # is set to `true`.
286
+ #
278
287
  # @option options [Boolean] :validate_params (true)
279
288
  # When `true`, request parameters are validated before
280
289
  # sending the request.
@@ -327,13 +336,60 @@ module Aws::MediaTailor
327
336
 
328
337
  # @!group API Operations
329
338
 
339
+ # Configures Amazon CloudWatch log settings for a playback
340
+ # configuration.
341
+ #
342
+ # @option params [required, Integer] :percent_enabled
343
+ # The percentage of session logs that MediaTailor sends to your
344
+ # Cloudwatch Logs account. For example, if your playback configuration
345
+ # has 1000 sessions and percentEnabled is set to 60, MediaTailor sends
346
+ # logs for 600 of the sessions to CloudWatch Logs. MediaTailor decides
347
+ # at random which of the playback configuration sessions to send logs
348
+ # for. If you want to view logs for a specific session, you can use the
349
+ # [debug log mode][1].
350
+ #
351
+ # Valid values: 0 - 100
352
+ #
353
+ #
354
+ #
355
+ # [1]: https://docs.aws.amazon.com/mediatailor/latest/ug/debug-log-mode.html
356
+ #
357
+ # @option params [required, String] :playback_configuration_name
358
+ # The name of the playback configuration.
359
+ #
360
+ # @return [Types::ConfigureLogsForPlaybackConfigurationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
361
+ #
362
+ # * {Types::ConfigureLogsForPlaybackConfigurationResponse#percent_enabled #percent_enabled} => Integer
363
+ # * {Types::ConfigureLogsForPlaybackConfigurationResponse#playback_configuration_name #playback_configuration_name} => String
364
+ #
365
+ # @example Request syntax with placeholder values
366
+ #
367
+ # resp = client.configure_logs_for_playback_configuration({
368
+ # percent_enabled: 1, # required
369
+ # playback_configuration_name: "__string", # required
370
+ # })
371
+ #
372
+ # @example Response structure
373
+ #
374
+ # resp.percent_enabled #=> Integer
375
+ # resp.playback_configuration_name #=> String
376
+ #
377
+ # @see http://docs.aws.amazon.com/goto/WebAPI/mediatailor-2018-04-23/ConfigureLogsForPlaybackConfiguration AWS API Documentation
378
+ #
379
+ # @overload configure_logs_for_playback_configuration(params = {})
380
+ # @param [Hash] params ({})
381
+ def configure_logs_for_playback_configuration(params = {}, options = {})
382
+ req = build_request(:configure_logs_for_playback_configuration, params)
383
+ req.send_request(options)
384
+ end
385
+
330
386
  # Creates a channel.
331
387
  #
332
388
  # @option params [required, String] :channel_name
333
389
  #
334
390
  # @option params [Types::SlateSource] :filler_slate
335
391
  # The slate used to fill gaps between programs in the schedule. You must
336
- # configure filler slate if your channel uses an LINEAR PlaybackMode.
392
+ # configure filler slate if your channel uses a LINEAR PlaybackMode.
337
393
  #
338
394
  # @option params [required, Array<Types::RequestOutputItem>] :outputs
339
395
  # The channel's output properties.
@@ -423,6 +479,92 @@ module Aws::MediaTailor
423
479
  req.send_request(options)
424
480
  end
425
481
 
482
+ # Creates a new prefetch schedule for the specified playback
483
+ # configuration.
484
+ #
485
+ # @option params [required, Types::PrefetchConsumption] :consumption
486
+ # The configuration settings for MediaTailor's *consumption* of the
487
+ # prefetched ads from the ad decision server. Each consumption
488
+ # configuration contains an end time and an optional start time that
489
+ # define the *consumption window*. Prefetch schedules automatically
490
+ # expire no earlier than seven days after the end time.
491
+ #
492
+ # @option params [required, String] :name
493
+ #
494
+ # @option params [required, String] :playback_configuration_name
495
+ #
496
+ # @option params [required, Types::PrefetchRetrieval] :retrieval
497
+ # The configuration settings for retrieval of prefetched ads from the ad
498
+ # decision server. Only one set of prefetched ads will be retrieved and
499
+ # subsequently consumed for each ad break.
500
+ #
501
+ # @option params [String] :stream_id
502
+ # An optional stream identifier that MediaTailor uses to prefetch ads
503
+ # for multiple streams that use the same playback configuration. If
504
+ # StreamId is specified, MediaTailor returns all of the prefetch
505
+ # schedules with an exact match on StreamId. If not specified,
506
+ # MediaTailor returns all of the prefetch schedules for the playback
507
+ # configuration, regardless of StreamId.
508
+ #
509
+ # @return [Types::CreatePrefetchScheduleResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
510
+ #
511
+ # * {Types::CreatePrefetchScheduleResponse#arn #arn} => String
512
+ # * {Types::CreatePrefetchScheduleResponse#consumption #consumption} => Types::PrefetchConsumption
513
+ # * {Types::CreatePrefetchScheduleResponse#name #name} => String
514
+ # * {Types::CreatePrefetchScheduleResponse#playback_configuration_name #playback_configuration_name} => String
515
+ # * {Types::CreatePrefetchScheduleResponse#retrieval #retrieval} => Types::PrefetchRetrieval
516
+ # * {Types::CreatePrefetchScheduleResponse#stream_id #stream_id} => String
517
+ #
518
+ # @example Request syntax with placeholder values
519
+ #
520
+ # resp = client.create_prefetch_schedule({
521
+ # consumption: { # required
522
+ # avail_matching_criteria: [
523
+ # {
524
+ # dynamic_variable: "__string", # required
525
+ # operator: "EQUALS", # required, accepts EQUALS
526
+ # },
527
+ # ],
528
+ # end_time: Time.now, # required
529
+ # start_time: Time.now,
530
+ # },
531
+ # name: "__string", # required
532
+ # playback_configuration_name: "__string", # required
533
+ # retrieval: { # required
534
+ # dynamic_variables: {
535
+ # "__string" => "__string",
536
+ # },
537
+ # end_time: Time.now, # required
538
+ # start_time: Time.now,
539
+ # },
540
+ # stream_id: "__string",
541
+ # })
542
+ #
543
+ # @example Response structure
544
+ #
545
+ # resp.arn #=> String
546
+ # resp.consumption.avail_matching_criteria #=> Array
547
+ # resp.consumption.avail_matching_criteria[0].dynamic_variable #=> String
548
+ # resp.consumption.avail_matching_criteria[0].operator #=> String, one of "EQUALS"
549
+ # resp.consumption.end_time #=> Time
550
+ # resp.consumption.start_time #=> Time
551
+ # resp.name #=> String
552
+ # resp.playback_configuration_name #=> String
553
+ # resp.retrieval.dynamic_variables #=> Hash
554
+ # resp.retrieval.dynamic_variables["__string"] #=> String
555
+ # resp.retrieval.end_time #=> Time
556
+ # resp.retrieval.start_time #=> Time
557
+ # resp.stream_id #=> String
558
+ #
559
+ # @see http://docs.aws.amazon.com/goto/WebAPI/mediatailor-2018-04-23/CreatePrefetchSchedule AWS API Documentation
560
+ #
561
+ # @overload create_prefetch_schedule(params = {})
562
+ # @param [Hash] params ({})
563
+ def create_prefetch_schedule(params = {}, options = {})
564
+ req = build_request(:create_prefetch_schedule, params)
565
+ req.send_request(options)
566
+ end
567
+
426
568
  # Creates a program.
427
569
  #
428
570
  # @option params [Array<Types::AdBreak>] :ad_breaks
@@ -713,6 +855,32 @@ module Aws::MediaTailor
713
855
  req.send_request(options)
714
856
  end
715
857
 
858
+ # Deletes a prefetch schedule for a specific playback configuration. If
859
+ # you call DeletePrefetchSchedule on an expired prefetch schedule,
860
+ # MediaTailor returns an HTTP 404 status code.
861
+ #
862
+ # @option params [required, String] :name
863
+ #
864
+ # @option params [required, String] :playback_configuration_name
865
+ #
866
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
867
+ #
868
+ # @example Request syntax with placeholder values
869
+ #
870
+ # resp = client.delete_prefetch_schedule({
871
+ # name: "__string", # required
872
+ # playback_configuration_name: "__string", # required
873
+ # })
874
+ #
875
+ # @see http://docs.aws.amazon.com/goto/WebAPI/mediatailor-2018-04-23/DeletePrefetchSchedule AWS API Documentation
876
+ #
877
+ # @overload delete_prefetch_schedule(params = {})
878
+ # @param [Hash] params ({})
879
+ def delete_prefetch_schedule(params = {}, options = {})
880
+ req = build_request(:delete_prefetch_schedule, params)
881
+ req.send_request(options)
882
+ end
883
+
716
884
  # Deletes a specific program on a specific channel.
717
885
  #
718
886
  # @option params [required, String] :channel_name
@@ -1073,6 +1241,7 @@ module Aws::MediaTailor
1073
1241
  # * {Types::GetPlaybackConfigurationResponse#dash_configuration #dash_configuration} => Types::DashConfiguration
1074
1242
  # * {Types::GetPlaybackConfigurationResponse#hls_configuration #hls_configuration} => Types::HlsConfiguration
1075
1243
  # * {Types::GetPlaybackConfigurationResponse#live_pre_roll_configuration #live_pre_roll_configuration} => Types::LivePreRollConfiguration
1244
+ # * {Types::GetPlaybackConfigurationResponse#log_configuration #log_configuration} => Types::LogConfiguration
1076
1245
  # * {Types::GetPlaybackConfigurationResponse#manifest_processing_rules #manifest_processing_rules} => Types::ManifestProcessingRules
1077
1246
  # * {Types::GetPlaybackConfigurationResponse#name #name} => String
1078
1247
  # * {Types::GetPlaybackConfigurationResponse#personalization_threshold_seconds #personalization_threshold_seconds} => Integer
@@ -1108,6 +1277,7 @@ module Aws::MediaTailor
1108
1277
  # resp.hls_configuration.manifest_endpoint_prefix #=> String
1109
1278
  # resp.live_pre_roll_configuration.ad_decision_server_url #=> String
1110
1279
  # resp.live_pre_roll_configuration.max_duration_seconds #=> Integer
1280
+ # resp.log_configuration.percent_enabled #=> Integer
1111
1281
  # resp.manifest_processing_rules.ad_marker_passthrough.enabled #=> Boolean
1112
1282
  # resp.name #=> String
1113
1283
  # resp.personalization_threshold_seconds #=> Integer
@@ -1129,6 +1299,55 @@ module Aws::MediaTailor
1129
1299
  req.send_request(options)
1130
1300
  end
1131
1301
 
1302
+ # Returns information about the prefetch schedule for a specific
1303
+ # playback configuration. If you call GetPrefetchSchedule on an expired
1304
+ # prefetch schedule, MediaTailor returns an HTTP 404 status code.
1305
+ #
1306
+ # @option params [required, String] :name
1307
+ #
1308
+ # @option params [required, String] :playback_configuration_name
1309
+ #
1310
+ # @return [Types::GetPrefetchScheduleResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1311
+ #
1312
+ # * {Types::GetPrefetchScheduleResponse#arn #arn} => String
1313
+ # * {Types::GetPrefetchScheduleResponse#consumption #consumption} => Types::PrefetchConsumption
1314
+ # * {Types::GetPrefetchScheduleResponse#name #name} => String
1315
+ # * {Types::GetPrefetchScheduleResponse#playback_configuration_name #playback_configuration_name} => String
1316
+ # * {Types::GetPrefetchScheduleResponse#retrieval #retrieval} => Types::PrefetchRetrieval
1317
+ # * {Types::GetPrefetchScheduleResponse#stream_id #stream_id} => String
1318
+ #
1319
+ # @example Request syntax with placeholder values
1320
+ #
1321
+ # resp = client.get_prefetch_schedule({
1322
+ # name: "__string", # required
1323
+ # playback_configuration_name: "__string", # required
1324
+ # })
1325
+ #
1326
+ # @example Response structure
1327
+ #
1328
+ # resp.arn #=> String
1329
+ # resp.consumption.avail_matching_criteria #=> Array
1330
+ # resp.consumption.avail_matching_criteria[0].dynamic_variable #=> String
1331
+ # resp.consumption.avail_matching_criteria[0].operator #=> String, one of "EQUALS"
1332
+ # resp.consumption.end_time #=> Time
1333
+ # resp.consumption.start_time #=> Time
1334
+ # resp.name #=> String
1335
+ # resp.playback_configuration_name #=> String
1336
+ # resp.retrieval.dynamic_variables #=> Hash
1337
+ # resp.retrieval.dynamic_variables["__string"] #=> String
1338
+ # resp.retrieval.end_time #=> Time
1339
+ # resp.retrieval.start_time #=> Time
1340
+ # resp.stream_id #=> String
1341
+ #
1342
+ # @see http://docs.aws.amazon.com/goto/WebAPI/mediatailor-2018-04-23/GetPrefetchSchedule AWS API Documentation
1343
+ #
1344
+ # @overload get_prefetch_schedule(params = {})
1345
+ # @param [Hash] params ({})
1346
+ def get_prefetch_schedule(params = {}, options = {})
1347
+ req = build_request(:get_prefetch_schedule, params)
1348
+ req.send_request(options)
1349
+ end
1350
+
1132
1351
  # Returns a list of alerts for the given resource.
1133
1352
  #
1134
1353
  # @option params [Integer] :max_results
@@ -1269,6 +1488,7 @@ module Aws::MediaTailor
1269
1488
  # resp.items[0].hls_configuration.manifest_endpoint_prefix #=> String
1270
1489
  # resp.items[0].live_pre_roll_configuration.ad_decision_server_url #=> String
1271
1490
  # resp.items[0].live_pre_roll_configuration.max_duration_seconds #=> Integer
1491
+ # resp.items[0].log_configuration.percent_enabled #=> Integer
1272
1492
  # resp.items[0].manifest_processing_rules.ad_marker_passthrough.enabled #=> Boolean
1273
1493
  # resp.items[0].name #=> String
1274
1494
  # resp.items[0].personalization_threshold_seconds #=> Integer
@@ -1291,6 +1511,77 @@ module Aws::MediaTailor
1291
1511
  req.send_request(options)
1292
1512
  end
1293
1513
 
1514
+ # Creates a new prefetch schedule.
1515
+ #
1516
+ # @option params [Integer] :max_results
1517
+ # The maximum number of prefetch schedules that you want MediaTailor to
1518
+ # return in response to the current request. If the playback
1519
+ # configuration has more than MaxResults prefetch schedules, use the
1520
+ # value of NextToken in the response to get the next page of results.
1521
+ #
1522
+ # @option params [String] :next_token
1523
+ # (Optional) If the playback configuration has more than MaxResults
1524
+ # prefetch schedules, use NextToken to get the second and subsequent
1525
+ # pages of results.
1526
+ #
1527
+ # For the first ListPrefetchSchedulesRequest request, omit this value.
1528
+ #
1529
+ # For the second and subsequent requests, get the value of NextToken
1530
+ # from the previous response and specify that value for NextToken in the
1531
+ # request.
1532
+ #
1533
+ # If the previous response didn't include a NextToken element, there
1534
+ # are no more prefetch schedules to get.
1535
+ #
1536
+ # @option params [required, String] :playback_configuration_name
1537
+ #
1538
+ # @option params [String] :stream_id
1539
+ # An optional filtering parameter whereby MediaTailor filters the
1540
+ # prefetch schedules to include only specific streams.
1541
+ #
1542
+ # @return [Types::ListPrefetchSchedulesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1543
+ #
1544
+ # * {Types::ListPrefetchSchedulesResponse#items #items} => Array&lt;Types::PrefetchSchedule&gt;
1545
+ # * {Types::ListPrefetchSchedulesResponse#next_token #next_token} => String
1546
+ #
1547
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1548
+ #
1549
+ # @example Request syntax with placeholder values
1550
+ #
1551
+ # resp = client.list_prefetch_schedules({
1552
+ # max_results: 1,
1553
+ # next_token: "__string",
1554
+ # playback_configuration_name: "__string", # required
1555
+ # stream_id: "__string",
1556
+ # })
1557
+ #
1558
+ # @example Response structure
1559
+ #
1560
+ # resp.items #=> Array
1561
+ # resp.items[0].arn #=> String
1562
+ # resp.items[0].consumption.avail_matching_criteria #=> Array
1563
+ # resp.items[0].consumption.avail_matching_criteria[0].dynamic_variable #=> String
1564
+ # resp.items[0].consumption.avail_matching_criteria[0].operator #=> String, one of "EQUALS"
1565
+ # resp.items[0].consumption.end_time #=> Time
1566
+ # resp.items[0].consumption.start_time #=> Time
1567
+ # resp.items[0].name #=> String
1568
+ # resp.items[0].playback_configuration_name #=> String
1569
+ # resp.items[0].retrieval.dynamic_variables #=> Hash
1570
+ # resp.items[0].retrieval.dynamic_variables["__string"] #=> String
1571
+ # resp.items[0].retrieval.end_time #=> Time
1572
+ # resp.items[0].retrieval.start_time #=> Time
1573
+ # resp.items[0].stream_id #=> String
1574
+ # resp.next_token #=> String
1575
+ #
1576
+ # @see http://docs.aws.amazon.com/goto/WebAPI/mediatailor-2018-04-23/ListPrefetchSchedules AWS API Documentation
1577
+ #
1578
+ # @overload list_prefetch_schedules(params = {})
1579
+ # @param [Hash] params ({})
1580
+ def list_prefetch_schedules(params = {}, options = {})
1581
+ req = build_request(:list_prefetch_schedules, params)
1582
+ req.send_request(options)
1583
+ end
1584
+
1294
1585
  # Retrieves a list of source locations.
1295
1586
  #
1296
1587
  # @option params [Integer] :max_results
@@ -1539,6 +1830,7 @@ module Aws::MediaTailor
1539
1830
  # * {Types::PutPlaybackConfigurationResponse#dash_configuration #dash_configuration} => Types::DashConfiguration
1540
1831
  # * {Types::PutPlaybackConfigurationResponse#hls_configuration #hls_configuration} => Types::HlsConfiguration
1541
1832
  # * {Types::PutPlaybackConfigurationResponse#live_pre_roll_configuration #live_pre_roll_configuration} => Types::LivePreRollConfiguration
1833
+ # * {Types::PutPlaybackConfigurationResponse#log_configuration #log_configuration} => Types::LogConfiguration
1542
1834
  # * {Types::PutPlaybackConfigurationResponse#manifest_processing_rules #manifest_processing_rules} => Types::ManifestProcessingRules
1543
1835
  # * {Types::PutPlaybackConfigurationResponse#name #name} => String
1544
1836
  # * {Types::PutPlaybackConfigurationResponse#personalization_threshold_seconds #personalization_threshold_seconds} => Integer
@@ -1612,6 +1904,7 @@ module Aws::MediaTailor
1612
1904
  # resp.hls_configuration.manifest_endpoint_prefix #=> String
1613
1905
  # resp.live_pre_roll_configuration.ad_decision_server_url #=> String
1614
1906
  # resp.live_pre_roll_configuration.max_duration_seconds #=> Integer
1907
+ # resp.log_configuration.percent_enabled #=> Integer
1615
1908
  # resp.manifest_processing_rules.ad_marker_passthrough.enabled #=> Boolean
1616
1909
  # resp.name #=> String
1617
1910
  # resp.personalization_threshold_seconds #=> Integer
@@ -1937,7 +2230,7 @@ module Aws::MediaTailor
1937
2230
  params: params,
1938
2231
  config: config)
1939
2232
  context[:gem_name] = 'aws-sdk-mediatailor'
1940
- context[:gem_version] = '1.44.0'
2233
+ context[:gem_version] = '1.48.0'
1941
2234
  Seahorse::Client::Request.new(handlers, context)
1942
2235
  end
1943
2236