Skip to content

Commit

Permalink
Updated API models and rebuilt service gems.
Browse files Browse the repository at this point in the history
  • Loading branch information
aws-sdk-ruby-automation committed Feb 3, 2025
1 parent 17f3365 commit e3400a2
Show file tree
Hide file tree
Showing 10 changed files with 141 additions and 27 deletions.
20 changes: 17 additions & 3 deletions apis/mediatailor/2018-04-23/api-2.json
Original file line number Diff line number Diff line change
Expand Up @@ -725,15 +725,17 @@
],
"members":{
"PercentEnabled":{"shape":"__integer"},
"PlaybackConfigurationName":{"shape":"__string"}
"PlaybackConfigurationName":{"shape":"__string"},
"EnabledLoggingStrategies":{"shape":"__listOfLoggingStrategies"}
}
},
"ConfigureLogsForPlaybackConfigurationResponse":{
"type":"structure",
"required":["PercentEnabled"],
"members":{
"PercentEnabled":{"shape":"__integer"},
"PlaybackConfigurationName":{"shape":"__string"}
"PlaybackConfigurationName":{"shape":"__string"},
"EnabledLoggingStrategies":{"shape":"__listOfLoggingStrategies"}
}
},
"CreateChannelRequest":{
Expand Down Expand Up @@ -1749,7 +1751,8 @@
"type":"structure",
"required":["PercentEnabled"],
"members":{
"PercentEnabled":{"shape":"__integer"}
"PercentEnabled":{"shape":"__integer"},
"EnabledLoggingStrategies":{"shape":"__listOfLoggingStrategies"}
}
},
"LogConfigurationForChannel":{
Expand All @@ -1766,6 +1769,13 @@
"type":"list",
"member":{"shape":"LogType"}
},
"LoggingStrategy":{
"type":"string",
"enum":[
"VENDED_LOGS",
"LEGACY_CLOUDWATCH"
]
},
"Long":{
"type":"long",
"box":true
Expand Down Expand Up @@ -2499,6 +2509,10 @@
"type":"list",
"member":{"shape":"LiveSource"}
},
"__listOfLoggingStrategies":{
"type":"list",
"member":{"shape":"LoggingStrategy"}
},
"__listOfPlaybackConfiguration":{
"type":"list",
"member":{"shape":"PlaybackConfiguration"}
Expand Down
24 changes: 19 additions & 5 deletions apis/mediatailor/2018-04-23/docs-2.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,10 @@
"AdConditioningConfiguration": {
"base": "<p>The setting that indicates what conditioning MediaTailor will perform on ads that the ad decision server (ADS) returns.</p>",
"refs": {
"GetPlaybackConfigurationResponse$AdConditioningConfiguration": "<p>The setting that indicates what conditioning MediaTailor will perform on ads that the ad decision server (ADS) returns. </p>",
"PlaybackConfiguration$AdConditioningConfiguration": "<p>The setting that indicates what conditioning MediaTailor will perform on ads that the ad decision server (ADS) returns.</p>",
"PutPlaybackConfigurationRequest$AdConditioningConfiguration": "<p>The setting that indicates what conditioning MediaTailor will perform on ads that the ad decision server (ADS) returns.</p>",
"PutPlaybackConfigurationResponse$AdConditioningConfiguration": "<p>The setting that indicates what conditioning MediaTailor will perform on ads that the ad decision server (ADS) returns.</p>"
"GetPlaybackConfigurationResponse$AdConditioningConfiguration": "<p>The setting that indicates what conditioning MediaTailor will perform on ads that the ad decision server (ADS) returns, and what priority MediaTailor uses when inserting ads. </p>",
"PlaybackConfiguration$AdConditioningConfiguration": "<p>The setting that indicates what conditioning MediaTailor will perform on ads that the ad decision server (ADS) returns, and what priority MediaTailor uses when inserting ads.</p>",
"PutPlaybackConfigurationRequest$AdConditioningConfiguration": "<p>The setting that indicates what conditioning MediaTailor will perform on ads that the ad decision server (ADS) returns, and what priority MediaTailor uses when inserting ads. </p>",
"PutPlaybackConfigurationResponse$AdConditioningConfiguration": "<p>The setting that indicates what conditioning MediaTailor will perform on ads that the ad decision server (ADS) returns, and what priority MediaTailor uses when inserting ads. </p>"
}
},
"AdMarkerPassthrough": {
Expand Down Expand Up @@ -711,6 +711,12 @@
"LogConfigurationForChannel$LogTypes": "<p>The log types.</p>"
}
},
"LoggingStrategy": {
"base": null,
"refs": {
"__listOfLoggingStrategies$member": null
}
},
"Long": {
"base": null,
"refs": {
Expand Down Expand Up @@ -948,7 +954,7 @@
"StreamingMediaFileConditioning": {
"base": null,
"refs": {
"AdConditioningConfiguration$StreamingMediaFileConditioning": "<p>For ads that have media files with streaming delivery, indicates what transcoding action MediaTailor it first receives these ads from the ADS. <code>TRANSCODE</code> indicates that MediaTailor must transcode the ads. <code>NONE</code> indicates that you have already transcoded the ads outside of MediaTailor and don't need them transcoded as part of the ad insertion workflow. For more information about ad conditioning see <a href=\"https://docs.aws.amazon.com/precondition-ads.html\">https://docs.aws.amazon.com/precondition-ads.html</a>.</p>"
"AdConditioningConfiguration$StreamingMediaFileConditioning": "<p>For ads that have media files with streaming delivery and supported file extensions, indicates what transcoding action MediaTailor takes when it first receives these ads from the ADS. <code>TRANSCODE</code> indicates that MediaTailor must transcode the ads. <code>NONE</code> indicates that you have already transcoded the ads outside of MediaTailor and don't need them transcoded as part of the ad insertion workflow. For more information about ad conditioning see <a href=\"https://docs.aws.amazon.com/precondition-ads.html\">https://docs.aws.amazon.com/precondition-ads.html</a>.</p>"
}
},
"String": {
Expand Down Expand Up @@ -1163,6 +1169,14 @@
"ListLiveSourcesResponse$Items": "<p>Lists the live sources.</p>"
}
},
"__listOfLoggingStrategies": {
"base": null,
"refs": {
"ConfigureLogsForPlaybackConfigurationRequest$EnabledLoggingStrategies": "<p>The method used for collecting logs from AWS Elemental MediaTailor. To configure MediaTailor to send logs directly to Amazon CloudWatch Logs, choose <code>LEGACY_CLOUDWATCH</code>. To configure MediaTailor to send logs to CloudWatch, which then vends the logs to your destination of choice, choose <code>VENDED_LOGS</code>. Supported destinations are CloudWatch Logs log group, Amazon S3 bucket, and Amazon Data Firehose stream.</p> <p>To use vended logs, you must configure the delivery destination in Amazon CloudWatch, as described in <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AWS-logs-and-resource-policy.html#AWS-vended-logs-permissions-V2\">Enable logging from AWS services, Logging that requires additional permissions [V2]</a>.</p>",
"ConfigureLogsForPlaybackConfigurationResponse$EnabledLoggingStrategies": "<p>The method used for collecting logs from AWS Elemental MediaTailor. <code>LEGACY_CLOUDWATCH</code> indicates that MediaTailor is sending logs directly to Amazon CloudWatch Logs. <code>VENDED_LOGS</code> indicates that MediaTailor is sending logs to CloudWatch, which then vends the logs to your destination of choice. Supported destinations are CloudWatch Logs log group, Amazon S3 bucket, and Amazon Data Firehose stream. </p>",
"LogConfiguration$EnabledLoggingStrategies": "<p>The method used for collecting logs from AWS Elemental MediaTailor. <code>LEGACY_CLOUDWATCH</code> indicates that MediaTailor is sending logs directly to Amazon CloudWatch Logs. <code>VENDED_LOGS</code> indicates that MediaTailor is sending logs to CloudWatch, which then vends the logs to your destination of choice. Supported destinations are CloudWatch Logs log group, Amazon S3 bucket, and Amazon Data Firehose stream. </p>"
}
},
"__listOfPlaybackConfiguration": {
"base": null,
"refs": {
Expand Down
5 changes: 5 additions & 0 deletions gems/aws-sdk-mediatailor/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
Unreleased Changes
------------------

1.94.0 (2025-02-03)
------------------

* Feature - Add support for CloudWatch Vended Logs which allows for delivery of customer logs to CloudWatch Logs, S3, or Firehose.

1.93.0 (2025-01-30)
------------------

Expand Down
2 changes: 1 addition & 1 deletion gems/aws-sdk-mediatailor/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.93.0
1.94.0
2 changes: 1 addition & 1 deletion gems/aws-sdk-mediatailor/lib/aws-sdk-mediatailor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ module Plugins
autoload :EndpointProvider, 'aws-sdk-mediatailor/endpoint_provider'
autoload :Endpoints, 'aws-sdk-mediatailor/endpoints'

GEM_VERSION = '1.93.0'
GEM_VERSION = '1.94.0'

end

Expand Down
31 changes: 29 additions & 2 deletions gems/aws-sdk-mediatailor/lib/aws-sdk-mediatailor/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -526,22 +526,42 @@ def configure_logs_for_channel(params = {}, options = {})
# @option params [required, String] :playback_configuration_name
# The name of the playback configuration.
#
# @option params [Array<String>] :enabled_logging_strategies
# The method used for collecting logs from AWS Elemental MediaTailor. To
# configure MediaTailor to send logs directly to Amazon CloudWatch Logs,
# choose `LEGACY_CLOUDWATCH`. To configure MediaTailor to send logs to
# CloudWatch, which then vends the logs to your destination of choice,
# choose `VENDED_LOGS`. Supported destinations are CloudWatch Logs log
# group, Amazon S3 bucket, and Amazon Data Firehose stream.
#
# To use vended logs, you must configure the delivery destination in
# Amazon CloudWatch, as described in [Enable logging from AWS services,
# Logging that requires additional permissions \[V2\]][1].
#
#
#
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AWS-logs-and-resource-policy.html#AWS-vended-logs-permissions-V2
#
# @return [Types::ConfigureLogsForPlaybackConfigurationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
#
# * {Types::ConfigureLogsForPlaybackConfigurationResponse#percent_enabled #percent_enabled} => Integer
# * {Types::ConfigureLogsForPlaybackConfigurationResponse#playback_configuration_name #playback_configuration_name} => String
# * {Types::ConfigureLogsForPlaybackConfigurationResponse#enabled_logging_strategies #enabled_logging_strategies} => Array&lt;String&gt;
#
# @example Request syntax with placeholder values
#
# resp = client.configure_logs_for_playback_configuration({
# percent_enabled: 1, # required
# playback_configuration_name: "__string", # required
# enabled_logging_strategies: ["VENDED_LOGS"], # accepts VENDED_LOGS, LEGACY_CLOUDWATCH
# })
#
# @example Response structure
#
# resp.percent_enabled #=> Integer
# resp.playback_configuration_name #=> String
# resp.enabled_logging_strategies #=> Array
# resp.enabled_logging_strategies[0] #=> String, one of "VENDED_LOGS", "LEGACY_CLOUDWATCH"
#
# @see http://docs.aws.amazon.com/goto/WebAPI/mediatailor-2018-04-23/ConfigureLogsForPlaybackConfiguration AWS API Documentation
#
Expand Down Expand Up @@ -1991,6 +2011,8 @@ def get_channel_schedule(params = {}, options = {})
# resp.live_pre_roll_configuration.ad_decision_server_url #=> String
# resp.live_pre_roll_configuration.max_duration_seconds #=> Integer
# resp.log_configuration.percent_enabled #=> Integer
# resp.log_configuration.enabled_logging_strategies #=> Array
# resp.log_configuration.enabled_logging_strategies[0] #=> String, one of "VENDED_LOGS", "LEGACY_CLOUDWATCH"
# resp.manifest_processing_rules.ad_marker_passthrough.enabled #=> Boolean
# resp.name #=> String
# resp.personalization_threshold_seconds #=> Integer
Expand Down Expand Up @@ -2305,6 +2327,8 @@ def list_live_sources(params = {}, options = {})
# resp.items[0].live_pre_roll_configuration.ad_decision_server_url #=> String
# resp.items[0].live_pre_roll_configuration.max_duration_seconds #=> Integer
# resp.items[0].log_configuration.percent_enabled #=> Integer
# resp.items[0].log_configuration.enabled_logging_strategies #=> Array
# resp.items[0].log_configuration.enabled_logging_strategies[0] #=> String, one of "VENDED_LOGS", "LEGACY_CLOUDWATCH"
# resp.items[0].manifest_processing_rules.ad_marker_passthrough.enabled #=> Boolean
# resp.items[0].name #=> String
# resp.items[0].personalization_threshold_seconds #=> Integer
Expand Down Expand Up @@ -2689,7 +2713,8 @@ def put_channel_policy(params = {}, options = {})
#
# @option params [Types::AdConditioningConfiguration] :ad_conditioning_configuration
# The setting that indicates what conditioning MediaTailor will perform
# on ads that the ad decision server (ADS) returns.
# on ads that the ad decision server (ADS) returns, and what priority
# MediaTailor uses when inserting ads.
#
# @return [Types::PutPlaybackConfigurationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
#
Expand Down Expand Up @@ -2785,6 +2810,8 @@ def put_channel_policy(params = {}, options = {})
# resp.live_pre_roll_configuration.ad_decision_server_url #=> String
# resp.live_pre_roll_configuration.max_duration_seconds #=> Integer
# resp.log_configuration.percent_enabled #=> Integer
# resp.log_configuration.enabled_logging_strategies #=> Array
# resp.log_configuration.enabled_logging_strategies[0] #=> String, one of "VENDED_LOGS", "LEGACY_CLOUDWATCH"
# resp.manifest_processing_rules.ad_marker_passthrough.enabled #=> Boolean
# resp.name #=> String
# resp.personalization_threshold_seconds #=> Integer
Expand Down Expand Up @@ -3477,7 +3504,7 @@ def build_request(operation_name, params = {})
tracer: tracer
)
context[:gem_name] = 'aws-sdk-mediatailor'
context[:gem_version] = '1.93.0'
context[:gem_version] = '1.94.0'
Seahorse::Client::Request.new(handlers, context)
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ module ClientApi
LogConfigurationForChannel = Shapes::StructureShape.new(name: 'LogConfigurationForChannel')
LogType = Shapes::StringShape.new(name: 'LogType')
LogTypes = Shapes::ListShape.new(name: 'LogTypes')
LoggingStrategy = Shapes::StringShape.new(name: 'LoggingStrategy')
Long = Shapes::IntegerShape.new(name: 'Long')
ManifestProcessingRules = Shapes::StructureShape.new(name: 'ManifestProcessingRules')
MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
Expand Down Expand Up @@ -192,6 +193,7 @@ module ClientApi
__listOfAvailMatchingCriteria = Shapes::ListShape.new(name: '__listOfAvailMatchingCriteria')
__listOfChannel = Shapes::ListShape.new(name: '__listOfChannel')
__listOfLiveSource = Shapes::ListShape.new(name: '__listOfLiveSource')
__listOfLoggingStrategies = Shapes::ListShape.new(name: '__listOfLoggingStrategies')
__listOfPlaybackConfiguration = Shapes::ListShape.new(name: '__listOfPlaybackConfiguration')
__listOfPrefetchSchedule = Shapes::ListShape.new(name: '__listOfPrefetchSchedule')
__listOfScheduleAdBreak = Shapes::ListShape.new(name: '__listOfScheduleAdBreak')
Expand Down Expand Up @@ -308,10 +310,12 @@ module ClientApi

ConfigureLogsForPlaybackConfigurationRequest.add_member(:percent_enabled, Shapes::ShapeRef.new(shape: __integer, required: true, location_name: "PercentEnabled"))
ConfigureLogsForPlaybackConfigurationRequest.add_member(:playback_configuration_name, Shapes::ShapeRef.new(shape: __string, required: true, location_name: "PlaybackConfigurationName"))
ConfigureLogsForPlaybackConfigurationRequest.add_member(:enabled_logging_strategies, Shapes::ShapeRef.new(shape: __listOfLoggingStrategies, location_name: "EnabledLoggingStrategies"))
ConfigureLogsForPlaybackConfigurationRequest.struct_class = Types::ConfigureLogsForPlaybackConfigurationRequest

ConfigureLogsForPlaybackConfigurationResponse.add_member(:percent_enabled, Shapes::ShapeRef.new(shape: __integer, required: true, location_name: "PercentEnabled"))
ConfigureLogsForPlaybackConfigurationResponse.add_member(:playback_configuration_name, Shapes::ShapeRef.new(shape: __string, location_name: "PlaybackConfigurationName"))
ConfigureLogsForPlaybackConfigurationResponse.add_member(:enabled_logging_strategies, Shapes::ShapeRef.new(shape: __listOfLoggingStrategies, location_name: "EnabledLoggingStrategies"))
ConfigureLogsForPlaybackConfigurationResponse.struct_class = Types::ConfigureLogsForPlaybackConfigurationResponse

CreateChannelRequest.add_member(:channel_name, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "ChannelName"))
Expand Down Expand Up @@ -722,6 +726,7 @@ module ClientApi
LiveSource.struct_class = Types::LiveSource

LogConfiguration.add_member(:percent_enabled, Shapes::ShapeRef.new(shape: __integer, required: true, location_name: "PercentEnabled"))
LogConfiguration.add_member(:enabled_logging_strategies, Shapes::ShapeRef.new(shape: __listOfLoggingStrategies, location_name: "EnabledLoggingStrategies"))
LogConfiguration.struct_class = Types::LogConfiguration

LogConfigurationForChannel.add_member(:log_types, Shapes::ShapeRef.new(shape: LogTypes, location_name: "LogTypes"))
Expand Down Expand Up @@ -1052,6 +1057,8 @@ module ClientApi

__listOfLiveSource.member = Shapes::ShapeRef.new(shape: LiveSource)

__listOfLoggingStrategies.member = Shapes::ShapeRef.new(shape: LoggingStrategy)

__listOfPlaybackConfiguration.member = Shapes::ShapeRef.new(shape: PlaybackConfiguration)

__listOfPrefetchSchedule.member = Shapes::ShapeRef.new(shape: PrefetchSchedule)
Expand Down
Loading

0 comments on commit e3400a2

Please sign in to comment.