configure_logs_for_playback_configuration
async
¶
configure_logs_for_playback_configuration(
percent_enabled: __integer,
playback_configuration_name: __string,
*,
config_overrides: Optional[AsyncMediaTailorClientConfig] = None,
enabled_logging_strategies: Optional[__listOfLoggingStrategies] = None,
ads_interaction_log: Optional[AdsInteractionLog] = None,
manifest_service_interaction_log: Optional[ManifestServiceInteractionLog] = None,
) -> ConfigureLogsForPlaybackConfigurationResponse
Defines where AWS Elemental MediaTailor sends logs for the playback configuration.
Parameters:
-
percent_enabled(__integer) –The percentage of session logs that MediaTailor sends to your CloudWatch Logs account. For example, if your playback configuration has 1000 sessions and percentEnabled 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 -
playback_configuration_name(__string) –The name of the playback configuration.
-
enabled_logging_strategies(Optional[__listOfLoggingStrategies], default:None) –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, chooseVENDED_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].
-
ads_interaction_log(Optional[AdsInteractionLog], default:None) –The event types that MediaTailor emits in logs for interactions with the ADS.
-
manifest_service_interaction_log(Optional[ManifestServiceInteractionLog], default:None) –The event types that MediaTailor emits in logs for interactions with the origin server.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.