aws-sdk-mediatailor 1.58.0 → 1.59.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: a0e810a70482c27c24b907780f9167e31692ae71586d28c0a2ddc9da945d3903
4
- data.tar.gz: 90554cb9cfb0552266deecc936f506ae2052425d5ade7e70d37b2aa8d6b03849
3
+ metadata.gz: 5a410a7034e92b2873860c2dd477fa3d5f0f266263505f78a5a98f0ec4d64e68
4
+ data.tar.gz: df5495059c315e0fa976131fd48d4ea8312b756ea5f424cf0126677451ca15a8
5
5
  SHA512:
6
- metadata.gz: 80760a9689992a3d6d51f6802cfb7929c1356fb5ab754f6f50fc0b2616297dd0eb7cc2e5611428c244746386492cdfeb93c507d96afc0a77a2f8bedaccc221a7
7
- data.tar.gz: 5b4e851b68bb626d4589f1636c5022a3ca04ed1481f55ee4288b1711deaf60adb0502de97d5dd2b698c26266f4f7bd62e6b1322218282895ec74d0fd70daf022
6
+ metadata.gz: 627c7cf7d55ff45706b2e85fff68f468ab7350df8bbecd0e424e31008315d54ceb84375b49fd7b46a309bf57a4358237c2026f61d931fc9645618aa7105a13d1
7
+ data.tar.gz: fa3972f14846c4635c2ccc6f2ffa119cc9cf785c876ed2682ade12e297b9377e7c9cb98a03d7350932a0aa562b8f599f001df1024b7574d5450d7118c7601496
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.59.0 (2023-01-27)
5
+ ------------------
6
+
7
+ * Feature - This release introduces the As Run logging type, along with API and documentation updates.
8
+
4
9
  1.58.0 (2023-01-18)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.58.0
1
+ 1.59.0
@@ -368,6 +368,41 @@ module Aws::MediaTailor
368
368
 
369
369
  # @!group API Operations
370
370
 
371
+ # Configures Amazon CloudWatch log settings for a channel.
372
+ #
373
+ # @option params [required, String] :channel_name
374
+ # The name of the channel.
375
+ #
376
+ # @option params [required, Array<String>] :log_types
377
+ # The types of logs to collect.
378
+ #
379
+ # @return [Types::ConfigureLogsForChannelResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
380
+ #
381
+ # * {Types::ConfigureLogsForChannelResponse#channel_name #channel_name} => String
382
+ # * {Types::ConfigureLogsForChannelResponse#log_types #log_types} => Array&lt;String&gt;
383
+ #
384
+ # @example Request syntax with placeholder values
385
+ #
386
+ # resp = client.configure_logs_for_channel({
387
+ # channel_name: "__string", # required
388
+ # log_types: ["AS_RUN"], # required, accepts AS_RUN
389
+ # })
390
+ #
391
+ # @example Response structure
392
+ #
393
+ # resp.channel_name #=> String
394
+ # resp.log_types #=> Array
395
+ # resp.log_types[0] #=> String, one of "AS_RUN"
396
+ #
397
+ # @see http://docs.aws.amazon.com/goto/WebAPI/mediatailor-2018-04-23/ConfigureLogsForChannel AWS API Documentation
398
+ #
399
+ # @overload configure_logs_for_channel(params = {})
400
+ # @param [Hash] params ({})
401
+ def configure_logs_for_channel(params = {}, options = {})
402
+ req = build_request(:configure_logs_for_channel, params)
403
+ req.send_request(options)
404
+ end
405
+
371
406
  # Amazon CloudWatch log settings for a playback configuration.
372
407
  #
373
408
  # @option params [required, Integer] :percent_enabled
@@ -1239,6 +1274,7 @@ module Aws::MediaTailor
1239
1274
  # * {Types::DescribeChannelResponse#creation_time #creation_time} => Time
1240
1275
  # * {Types::DescribeChannelResponse#filler_slate #filler_slate} => Types::SlateSource
1241
1276
  # * {Types::DescribeChannelResponse#last_modified_time #last_modified_time} => Time
1277
+ # * {Types::DescribeChannelResponse#log_configuration #log_configuration} => Types::LogConfigurationForChannel
1242
1278
  # * {Types::DescribeChannelResponse#outputs #outputs} => Array&lt;Types::ResponseOutputItem&gt;
1243
1279
  # * {Types::DescribeChannelResponse#playback_mode #playback_mode} => String
1244
1280
  # * {Types::DescribeChannelResponse#tags #tags} => Hash&lt;String,String&gt;
@@ -1259,6 +1295,8 @@ module Aws::MediaTailor
1259
1295
  # resp.filler_slate.source_location_name #=> String
1260
1296
  # resp.filler_slate.vod_source_name #=> String
1261
1297
  # resp.last_modified_time #=> Time
1298
+ # resp.log_configuration.log_types #=> Array
1299
+ # resp.log_configuration.log_types[0] #=> String, one of "AS_RUN"
1262
1300
  # resp.outputs #=> Array
1263
1301
  # resp.outputs[0].dash_playlist_settings.manifest_window_seconds #=> Integer
1264
1302
  # resp.outputs[0].dash_playlist_settings.min_buffer_time_seconds #=> Integer
@@ -1835,6 +1873,8 @@ module Aws::MediaTailor
1835
1873
  # resp.items[0].filler_slate.source_location_name #=> String
1836
1874
  # resp.items[0].filler_slate.vod_source_name #=> String
1837
1875
  # resp.items[0].last_modified_time #=> Time
1876
+ # resp.items[0].log_configuration.log_types #=> Array
1877
+ # resp.items[0].log_configuration.log_types[0] #=> String, one of "AS_RUN"
1838
1878
  # resp.items[0].outputs #=> Array
1839
1879
  # resp.items[0].outputs[0].dash_playlist_settings.manifest_window_seconds #=> Integer
1840
1880
  # resp.items[0].outputs[0].dash_playlist_settings.min_buffer_time_seconds #=> Integer
@@ -2879,7 +2919,7 @@ module Aws::MediaTailor
2879
2919
  params: params,
2880
2920
  config: config)
2881
2921
  context[:gem_name] = 'aws-sdk-mediatailor'
2882
- context[:gem_version] = '1.58.0'
2922
+ context[:gem_version] = '1.59.0'
2883
2923
  Seahorse::Client::Request.new(handlers, context)
2884
2924
  end
2885
2925
 
@@ -27,6 +27,8 @@ module Aws::MediaTailor
27
27
  ChannelState = Shapes::StringShape.new(name: 'ChannelState')
28
28
  ConfigurationAliasesRequest = Shapes::MapShape.new(name: 'ConfigurationAliasesRequest')
29
29
  ConfigurationAliasesResponse = Shapes::MapShape.new(name: 'ConfigurationAliasesResponse')
30
+ ConfigureLogsForChannelRequest = Shapes::StructureShape.new(name: 'ConfigureLogsForChannelRequest')
31
+ ConfigureLogsForChannelResponse = Shapes::StructureShape.new(name: 'ConfigureLogsForChannelResponse')
30
32
  ConfigureLogsForPlaybackConfigurationRequest = Shapes::StructureShape.new(name: 'ConfigureLogsForPlaybackConfigurationRequest')
31
33
  ConfigureLogsForPlaybackConfigurationResponse = Shapes::StructureShape.new(name: 'ConfigureLogsForPlaybackConfigurationResponse')
32
34
  CreateChannelRequest = Shapes::StructureShape.new(name: 'CreateChannelRequest')
@@ -104,6 +106,9 @@ module Aws::MediaTailor
104
106
  LivePreRollConfiguration = Shapes::StructureShape.new(name: 'LivePreRollConfiguration')
105
107
  LiveSource = Shapes::StructureShape.new(name: 'LiveSource')
106
108
  LogConfiguration = Shapes::StructureShape.new(name: 'LogConfiguration')
109
+ LogConfigurationForChannel = Shapes::StructureShape.new(name: 'LogConfigurationForChannel')
110
+ LogType = Shapes::StringShape.new(name: 'LogType')
111
+ LogTypes = Shapes::ListShape.new(name: 'LogTypes')
107
112
  ManifestProcessingRules = Shapes::StructureShape.new(name: 'ManifestProcessingRules')
108
113
  MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
109
114
  MessageType = Shapes::StringShape.new(name: 'MessageType')
@@ -223,6 +228,7 @@ module Aws::MediaTailor
223
228
  Channel.add_member(:creation_time, Shapes::ShapeRef.new(shape: __timestampUnix, location_name: "CreationTime"))
224
229
  Channel.add_member(:filler_slate, Shapes::ShapeRef.new(shape: SlateSource, location_name: "FillerSlate"))
225
230
  Channel.add_member(:last_modified_time, Shapes::ShapeRef.new(shape: __timestampUnix, location_name: "LastModifiedTime"))
231
+ Channel.add_member(:log_configuration, Shapes::ShapeRef.new(shape: LogConfigurationForChannel, required: true, location_name: "LogConfiguration"))
226
232
  Channel.add_member(:outputs, Shapes::ShapeRef.new(shape: ResponseOutputs, required: true, location_name: "Outputs"))
227
233
  Channel.add_member(:playback_mode, Shapes::ShapeRef.new(shape: __string, required: true, location_name: "PlaybackMode"))
228
234
  Channel.add_member(:tags, Shapes::ShapeRef.new(shape: __mapOf__string, location_name: "tags"))
@@ -235,6 +241,14 @@ module Aws::MediaTailor
235
241
  ConfigurationAliasesResponse.key = Shapes::ShapeRef.new(shape: __string)
236
242
  ConfigurationAliasesResponse.value = Shapes::ShapeRef.new(shape: __mapOf__string)
237
243
 
244
+ ConfigureLogsForChannelRequest.add_member(:channel_name, Shapes::ShapeRef.new(shape: __string, required: true, location_name: "ChannelName"))
245
+ ConfigureLogsForChannelRequest.add_member(:log_types, Shapes::ShapeRef.new(shape: LogTypes, required: true, location_name: "LogTypes"))
246
+ ConfigureLogsForChannelRequest.struct_class = Types::ConfigureLogsForChannelRequest
247
+
248
+ ConfigureLogsForChannelResponse.add_member(:channel_name, Shapes::ShapeRef.new(shape: __string, location_name: "ChannelName"))
249
+ ConfigureLogsForChannelResponse.add_member(:log_types, Shapes::ShapeRef.new(shape: LogTypes, location_name: "LogTypes"))
250
+ ConfigureLogsForChannelResponse.struct_class = Types::ConfigureLogsForChannelResponse
251
+
238
252
  ConfigureLogsForPlaybackConfigurationRequest.add_member(:percent_enabled, Shapes::ShapeRef.new(shape: __integer, required: true, location_name: "PercentEnabled"))
239
253
  ConfigureLogsForPlaybackConfigurationRequest.add_member(:playback_configuration_name, Shapes::ShapeRef.new(shape: __string, required: true, location_name: "PlaybackConfigurationName"))
240
254
  ConfigureLogsForPlaybackConfigurationRequest.struct_class = Types::ConfigureLogsForPlaybackConfigurationRequest
@@ -418,6 +432,7 @@ module Aws::MediaTailor
418
432
  DescribeChannelResponse.add_member(:creation_time, Shapes::ShapeRef.new(shape: __timestampUnix, location_name: "CreationTime"))
419
433
  DescribeChannelResponse.add_member(:filler_slate, Shapes::ShapeRef.new(shape: SlateSource, location_name: "FillerSlate"))
420
434
  DescribeChannelResponse.add_member(:last_modified_time, Shapes::ShapeRef.new(shape: __timestampUnix, location_name: "LastModifiedTime"))
435
+ DescribeChannelResponse.add_member(:log_configuration, Shapes::ShapeRef.new(shape: LogConfigurationForChannel, required: true, location_name: "LogConfiguration"))
421
436
  DescribeChannelResponse.add_member(:outputs, Shapes::ShapeRef.new(shape: ResponseOutputs, location_name: "Outputs"))
422
437
  DescribeChannelResponse.add_member(:playback_mode, Shapes::ShapeRef.new(shape: __string, location_name: "PlaybackMode"))
423
438
  DescribeChannelResponse.add_member(:tags, Shapes::ShapeRef.new(shape: __mapOf__string, location_name: "tags"))
@@ -630,6 +645,11 @@ module Aws::MediaTailor
630
645
  LogConfiguration.add_member(:percent_enabled, Shapes::ShapeRef.new(shape: __integer, required: true, location_name: "PercentEnabled"))
631
646
  LogConfiguration.struct_class = Types::LogConfiguration
632
647
 
648
+ LogConfigurationForChannel.add_member(:log_types, Shapes::ShapeRef.new(shape: LogTypes, location_name: "LogTypes"))
649
+ LogConfigurationForChannel.struct_class = Types::LogConfigurationForChannel
650
+
651
+ LogTypes.member = Shapes::ShapeRef.new(shape: LogType)
652
+
633
653
  ManifestProcessingRules.add_member(:ad_marker_passthrough, Shapes::ShapeRef.new(shape: AdMarkerPassthrough, location_name: "AdMarkerPassthrough"))
634
654
  ManifestProcessingRules.struct_class = Types::ManifestProcessingRules
635
655
 
@@ -943,6 +963,14 @@ module Aws::MediaTailor
943
963
  "uid" => "mediatailor-2018-04-23",
944
964
  }
945
965
 
966
+ api.add_operation(:configure_logs_for_channel, Seahorse::Model::Operation.new.tap do |o|
967
+ o.name = "ConfigureLogsForChannel"
968
+ o.http_method = "PUT"
969
+ o.http_request_uri = "/configureLogs/channel"
970
+ o.input = Shapes::ShapeRef.new(shape: ConfigureLogsForChannelRequest)
971
+ o.output = Shapes::ShapeRef.new(shape: ConfigureLogsForChannelResponse)
972
+ end)
973
+
946
974
  api.add_operation(:configure_logs_for_playback_configuration, Seahorse::Model::Operation.new.tap do |o|
947
975
  o.name = "ConfigureLogsForPlaybackConfiguration"
948
976
  o.http_method = "PUT"
@@ -50,6 +50,9 @@ 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
53
56
  self[:use_dual_stack] = options[:use_dual_stack]
54
57
  self[:use_dual_stack] = false if self[:use_dual_stack].nil?
55
58
  if self[:use_dual_stack].nil?
@@ -15,7 +15,7 @@ module Aws::MediaTailor
15
15
  use_fips = parameters.use_fips
16
16
  endpoint = parameters.endpoint
17
17
  if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
18
- if Aws::Endpoints::Matchers.set?(endpoint) && (url = Aws::Endpoints::Matchers.parse_url(endpoint))
18
+ if Aws::Endpoints::Matchers.set?(endpoint)
19
19
  if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
20
20
  raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
21
21
  end
@@ -11,6 +11,20 @@
11
11
  module Aws::MediaTailor
12
12
  module Endpoints
13
13
 
14
+ class ConfigureLogsForChannel
15
+ def self.build(context)
16
+ unless context.config.regional_endpoint
17
+ endpoint = context.config.endpoint.to_s
18
+ end
19
+ Aws::MediaTailor::EndpointParameters.new(
20
+ region: context.config.region,
21
+ use_dual_stack: context.config.use_dualstack_endpoint,
22
+ use_fips: context.config.use_fips_endpoint,
23
+ endpoint: endpoint,
24
+ )
25
+ end
26
+ end
27
+
14
28
  class ConfigureLogsForPlaybackConfiguration
15
29
  def self.build(context)
16
30
  unless context.config.regional_endpoint
@@ -56,6 +56,8 @@ module Aws::MediaTailor
56
56
 
57
57
  def parameters_for_operation(context)
58
58
  case context.operation_name
59
+ when :configure_logs_for_channel
60
+ Aws::MediaTailor::Endpoints::ConfigureLogsForChannel.build(context)
59
61
  when :configure_logs_for_playback_configuration
60
62
  Aws::MediaTailor::Endpoints::ConfigureLogsForPlaybackConfiguration.build(context)
61
63
  when :create_channel
@@ -344,6 +344,10 @@ module Aws::MediaTailor
344
344
  # The timestamp of when the channel was last modified.
345
345
  # @return [Time]
346
346
  #
347
+ # @!attribute [rw] log_configuration
348
+ # The log configuration.
349
+ # @return [Types::LogConfigurationForChannel]
350
+ #
347
351
  # @!attribute [rw] outputs
348
352
  # The channel's output properties.
349
353
  # @return [Array<Types::ResponseOutputItem>]
@@ -383,6 +387,7 @@ module Aws::MediaTailor
383
387
  :creation_time,
384
388
  :filler_slate,
385
389
  :last_modified_time,
390
+ :log_configuration,
386
391
  :outputs,
387
392
  :playback_mode,
388
393
  :tags,
@@ -391,6 +396,40 @@ module Aws::MediaTailor
391
396
  include Aws::Structure
392
397
  end
393
398
 
399
+ # @!attribute [rw] channel_name
400
+ # The name of the channel.
401
+ # @return [String]
402
+ #
403
+ # @!attribute [rw] log_types
404
+ # The types of logs to collect.
405
+ # @return [Array<String>]
406
+ #
407
+ # @see http://docs.aws.amazon.com/goto/WebAPI/mediatailor-2018-04-23/ConfigureLogsForChannelRequest AWS API Documentation
408
+ #
409
+ class ConfigureLogsForChannelRequest < Struct.new(
410
+ :channel_name,
411
+ :log_types)
412
+ SENSITIVE = []
413
+ include Aws::Structure
414
+ end
415
+
416
+ # @!attribute [rw] channel_name
417
+ # The name of the channel.
418
+ # @return [String]
419
+ #
420
+ # @!attribute [rw] log_types
421
+ # The types of logs collected.
422
+ # @return [Array<String>]
423
+ #
424
+ # @see http://docs.aws.amazon.com/goto/WebAPI/mediatailor-2018-04-23/ConfigureLogsForChannelResponse AWS API Documentation
425
+ #
426
+ class ConfigureLogsForChannelResponse < Struct.new(
427
+ :channel_name,
428
+ :log_types)
429
+ SENSITIVE = []
430
+ include Aws::Structure
431
+ end
432
+
394
433
  # Configures Amazon CloudWatch log settings for a playback
395
434
  # configuration.
396
435
  #
@@ -1339,6 +1378,10 @@ module Aws::MediaTailor
1339
1378
  # The timestamp of when the channel was last modified.
1340
1379
  # @return [Time]
1341
1380
  #
1381
+ # @!attribute [rw] log_configuration
1382
+ # The log configuration for the channel.
1383
+ # @return [Types::LogConfigurationForChannel]
1384
+ #
1342
1385
  # @!attribute [rw] outputs
1343
1386
  # The channel's output properties.
1344
1387
  # @return [Array<Types::ResponseOutputItem>]
@@ -1371,6 +1414,7 @@ module Aws::MediaTailor
1371
1414
  :creation_time,
1372
1415
  :filler_slate,
1373
1416
  :last_modified_time,
1417
+ :log_configuration,
1374
1418
  :outputs,
1375
1419
  :playback_mode,
1376
1420
  :tags,
@@ -2519,6 +2563,20 @@ module Aws::MediaTailor
2519
2563
  include Aws::Structure
2520
2564
  end
2521
2565
 
2566
+ # The log configuration for the channel.
2567
+ #
2568
+ # @!attribute [rw] log_types
2569
+ # The log types.
2570
+ # @return [Array<String>]
2571
+ #
2572
+ # @see http://docs.aws.amazon.com/goto/WebAPI/mediatailor-2018-04-23/LogConfigurationForChannel AWS API Documentation
2573
+ #
2574
+ class LogConfigurationForChannel < Struct.new(
2575
+ :log_types)
2576
+ SENSITIVE = []
2577
+ include Aws::Structure
2578
+ end
2579
+
2522
2580
  # The configuration for manifest processing rules. Manifest processing
2523
2581
  # rules enable customization of the personalized manifests created by
2524
2582
  # MediaTailor.
@@ -32,7 +32,7 @@ require_relative 'aws-sdk-mediatailor/customizations'
32
32
  # structure.
33
33
  #
34
34
  # media_tailor = Aws::MediaTailor::Client.new
35
- # resp = media_tailor.configure_logs_for_playback_configuration(params)
35
+ # resp = media_tailor.configure_logs_for_channel(params)
36
36
  #
37
37
  # See {Client} for more information.
38
38
  #
@@ -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.58.0'
55
+ GEM_VERSION = '1.59.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.58.0
4
+ version: 1.59.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-18 00:00:00.000000000 Z
11
+ date: 2023-01-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core