Class: AWSCDK::MediaTailor::CfnPlaybackConfiguration::LogConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::MediaTailor::CfnPlaybackConfiguration::LogConfigurationProperty
- Defined in:
- media_tailor/cfn_playback_configuration.rb
Overview
Defines where AWS Elemental MediaTailor sends logs for the playback configuration.
Instance Attribute Summary collapse
-
#ads_interaction_log ⇒ AWSCDK::IResolvable, ...
readonly
Settings for customizing what events are included in logs for interactions with the ad decision server (ADS).
-
#enabled_logging_strategies ⇒ Array<String>?
readonly
The method used for collecting logs from AWS Elemental MediaTailor.
-
#manifest_service_interaction_log ⇒ AWSCDK::IResolvable, ...
readonly
Settings for customizing what events are included in logs for interactions with the origin server.
-
#percent_enabled ⇒ Numeric
readonly
The percentage of session logs that MediaTailor sends to your configured log destination.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(percent_enabled:, ads_interaction_log: nil, enabled_logging_strategies: nil, manifest_service_interaction_log: nil) ⇒ LogConfigurationProperty
constructor
A new instance of LogConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(percent_enabled:, ads_interaction_log: nil, enabled_logging_strategies: nil, manifest_service_interaction_log: nil) ⇒ LogConfigurationProperty
Returns a new instance of LogConfigurationProperty.
1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 |
# File 'media_tailor/cfn_playback_configuration.rb', line 1326 def initialize(percent_enabled:, ads_interaction_log: nil, enabled_logging_strategies: nil, manifest_service_interaction_log: nil) @percent_enabled = percent_enabled Jsii::Type.check_type(@percent_enabled, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "percentEnabled") @ads_interaction_log = ads_interaction_log.is_a?(Hash) ? ::AWSCDK::MediaTailor::CfnPlaybackConfiguration::AdsInteractionLogProperty.new(**ads_interaction_log.transform_keys(&:to_sym)) : ads_interaction_log Jsii::Type.check_type(@ads_interaction_log, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19tZWRpYXRhaWxvci5DZm5QbGF5YmFja0NvbmZpZ3VyYXRpb24uQWRzSW50ZXJhY3Rpb25Mb2dQcm9wZXJ0eSJ9XX19")), "adsInteractionLog") unless @ads_interaction_log.nil? @enabled_logging_strategies = enabled_logging_strategies Jsii::Type.check_type(@enabled_logging_strategies, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "enabledLoggingStrategies") unless @enabled_logging_strategies.nil? @manifest_service_interaction_log = manifest_service_interaction_log.is_a?(Hash) ? ::AWSCDK::MediaTailor::CfnPlaybackConfiguration::ManifestServiceInteractionLogProperty.new(**manifest_service_interaction_log.transform_keys(&:to_sym)) : manifest_service_interaction_log Jsii::Type.check_type(@manifest_service_interaction_log, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19tZWRpYXRhaWxvci5DZm5QbGF5YmFja0NvbmZpZ3VyYXRpb24uTWFuaWZlc3RTZXJ2aWNlSW50ZXJhY3Rpb25Mb2dQcm9wZXJ0eSJ9XX19")), "manifestServiceInteractionLog") unless @manifest_service_interaction_log.nil? end |
Instance Attribute Details
#ads_interaction_log ⇒ AWSCDK::IResolvable, ... (readonly)
Settings for customizing what events are included in logs for interactions with the ad decision server (ADS).
1350 1351 1352 |
# File 'media_tailor/cfn_playback_configuration.rb', line 1350 def ads_interaction_log @ads_interaction_log end |
#enabled_logging_strategies ⇒ Array<String>? (readonly)
The method used for collecting logs from AWS Elemental MediaTailor.
LEGACY_CLOUDWATCH indicates that MediaTailor is sending logs directly to Amazon CloudWatch Logs. VENDED_LOGS 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.
1357 1358 1359 |
# File 'media_tailor/cfn_playback_configuration.rb', line 1357 def enabled_logging_strategies @enabled_logging_strategies end |
#manifest_service_interaction_log ⇒ AWSCDK::IResolvable, ... (readonly)
Settings for customizing what events are included in logs for interactions with the origin server.
1362 1363 1364 |
# File 'media_tailor/cfn_playback_configuration.rb', line 1362 def manifest_service_interaction_log @manifest_service_interaction_log end |
#percent_enabled ⇒ Numeric (readonly)
The percentage of session logs that MediaTailor sends to your configured log destination.
For example, if your playback configuration has 1000 sessions and percent_enabled is set to 60 , MediaTailor sends logs for 600 of the sessions to CloudWatch Logs. MediaTailor decides at random which of the playback configuration sessions to send logs for. If you want to view logs for a specific session, you can use the debug log mode .
Valid values: 0 - 100
1345 1346 1347 |
# File 'media_tailor/cfn_playback_configuration.rb', line 1345 def percent_enabled @percent_enabled end |
Class Method Details
.jsii_properties ⇒ Object
1364 1365 1366 1367 1368 1369 1370 1371 |
# File 'media_tailor/cfn_playback_configuration.rb', line 1364 def self.jsii_properties { :percent_enabled => "percentEnabled", :ads_interaction_log => "adsInteractionLog", :enabled_logging_strategies => "enabledLoggingStrategies", :manifest_service_interaction_log => "manifestServiceInteractionLog", } end |
Instance Method Details
#to_jsii ⇒ Object
1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 |
# File 'media_tailor/cfn_playback_configuration.rb', line 1373 def to_jsii result = {} result.merge!({ "percentEnabled" => @percent_enabled, "adsInteractionLog" => @ads_interaction_log, "enabledLoggingStrategies" => @enabled_logging_strategies, "manifestServiceInteractionLog" => @manifest_service_interaction_log, }) result.compact end |