Skip to content

Commit

Permalink
Update SDK models
Browse files Browse the repository at this point in the history
  • Loading branch information
aws-sdk-rust-ci committed Feb 3, 2025
1 parent ab2478c commit 4f7d779
Show file tree
Hide file tree
Showing 26 changed files with 377 additions and 59 deletions.
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[workspace]
resolver = "2"
exclude = [
"examples/lambda",
"examples/examples",
"examples/cross_service",
"examples/test-utils",
"examples/webassembly",
"examples/cross_service",
"examples/examples",
"examples/lambda",
"tests/no-default-features",
"tests/webassembly"
]
Expand Down
51 changes: 46 additions & 5 deletions aws-models/mediatailor.json
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@
"StreamingMediaFileConditioning": {
"target": "com.amazonaws.mediatailor#StreamingMediaFileConditioning",
"traits": {
"smithy.api#documentation": "<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>",
"smithy.api#documentation": "<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. \n <code>TRANSCODE</code> indicates that MediaTailor must transcode the ads. \n <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. \n 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>",
"smithy.api#required": {}
}
}
Expand Down Expand Up @@ -754,6 +754,12 @@
"smithy.api#documentation": "<p>The name of the playback configuration.</p>",
"smithy.api#required": {}
}
},
"EnabledLoggingStrategies": {
"target": "com.amazonaws.mediatailor#__listOfLoggingStrategies",
"traits": {
"smithy.api#documentation": "<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 \n 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>\n <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>"
}
}
},
"traits": {
Expand All @@ -776,6 +782,12 @@
"traits": {
"smithy.api#documentation": "<p>The name of the playback configuration.</p>"
}
},
"EnabledLoggingStrategies": {
"target": "com.amazonaws.mediatailor#__listOfLoggingStrategies",
"traits": {
"smithy.api#documentation": "<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>"
}
}
}
},
Expand Down Expand Up @@ -2731,7 +2743,7 @@
"AdConditioningConfiguration": {
"target": "com.amazonaws.mediatailor#AdConditioningConfiguration",
"traits": {
"smithy.api#documentation": "<p>The setting that indicates what conditioning MediaTailor will perform on ads that the ad decision server (ADS) returns. </p>"
"smithy.api#documentation": "<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>"
}
}
}
Expand Down Expand Up @@ -3577,6 +3589,12 @@
"smithy.api#documentation": "<p>The percentage of session logs that MediaTailor sends to your configured log destination. For example, if your playback configuration has 1000 sessions and <code>percentEnabled</code> is set to <code>60</code>, 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 <a href=\"https://docs.aws.amazon.com/mediatailor/latest/ug/debug-log-mode.html\">debug log mode</a>.</p>\n <p>Valid values: <code>0</code> - <code>100</code>\n </p>",
"smithy.api#required": {}
}
},
"EnabledLoggingStrategies": {
"target": "com.amazonaws.mediatailor#__listOfLoggingStrategies",
"traits": {
"smithy.api#documentation": "<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>"
}
}
},
"traits": {
Expand Down Expand Up @@ -3614,6 +3632,23 @@
"target": "com.amazonaws.mediatailor#LogType"
}
},
"com.amazonaws.mediatailor#LoggingStrategy": {
"type": "enum",
"members": {
"VENDED_LOGS": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "VENDED_LOGS"
}
},
"LEGACY_CLOUDWATCH": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "LEGACY_CLOUDWATCH"
}
}
}
},
"com.amazonaws.mediatailor#ManifestProcessingRules": {
"type": "structure",
"members": {
Expand Down Expand Up @@ -4619,7 +4654,7 @@
"AdConditioningConfiguration": {
"target": "com.amazonaws.mediatailor#AdConditioningConfiguration",
"traits": {
"smithy.api#documentation": "<p>The setting that indicates what conditioning MediaTailor will perform on ads that the ad decision server (ADS) returns.</p>"
"smithy.api#documentation": "<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>"
}
}
},
Expand Down Expand Up @@ -4999,7 +5034,7 @@
"AdConditioningConfiguration": {
"target": "com.amazonaws.mediatailor#AdConditioningConfiguration",
"traits": {
"smithy.api#documentation": "<p>The setting that indicates what conditioning MediaTailor will perform on ads that the ad decision server (ADS) returns.</p>"
"smithy.api#documentation": "<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>"
}
}
}
Expand Down Expand Up @@ -5132,7 +5167,7 @@
"AdConditioningConfiguration": {
"target": "com.amazonaws.mediatailor#AdConditioningConfiguration",
"traits": {
"smithy.api#documentation": "<p>The setting that indicates what conditioning MediaTailor will perform on ads that the ad decision server (ADS) returns.</p>"
"smithy.api#documentation": "<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>"
}
}
}
Expand Down Expand Up @@ -6719,6 +6754,12 @@
"target": "com.amazonaws.mediatailor#LiveSource"
}
},
"com.amazonaws.mediatailor#__listOfLoggingStrategies": {
"type": "list",
"member": {
"target": "com.amazonaws.mediatailor#LoggingStrategy"
}
},
"com.amazonaws.mediatailor#__listOfPlaybackConfiguration": {
"type": "list",
"member": {
Expand Down
2 changes: 1 addition & 1 deletion sdk/mediatailor/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
[package]
name = "aws-sdk-mediatailor"
version = "1.60.0"
version = "1.61.0"
authors = ["AWS Rust SDK Team <[email protected]>", "Russell Cohen <[email protected]>"]
description = "AWS SDK for AWS MediaTailor"
edition = "2021"
Expand Down
2 changes: 1 addition & 1 deletion sdk/mediatailor/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ your project, add the following to your **Cargo.toml** file:
```toml
[dependencies]
aws-config = { version = "1.1.7", features = ["behavior-version-latest"] }
aws-sdk-mediatailor = "1.60.0"
aws-sdk-mediatailor = "1.61.0"
tokio = { version = "1", features = ["full"] }
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ impl super::Client {
/// - The fluent builder is configurable:
/// - [`percent_enabled(i32)`](crate::operation::configure_logs_for_playback_configuration::builders::ConfigureLogsForPlaybackConfigurationFluentBuilder::percent_enabled) / [`set_percent_enabled(Option<i32>)`](crate::operation::configure_logs_for_playback_configuration::builders::ConfigureLogsForPlaybackConfigurationFluentBuilder::set_percent_enabled):<br>required: **true**<br><p>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 <code>60</code>, 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 <a href="https://docs.aws.amazon.com/mediatailor/latest/ug/debug-log-mode.html">debug log mode</a>.</p> <p>Valid values: <code>0</code> - <code>100</code></p><br>
/// - [`playback_configuration_name(impl Into<String>)`](crate::operation::configure_logs_for_playback_configuration::builders::ConfigureLogsForPlaybackConfigurationFluentBuilder::playback_configuration_name) / [`set_playback_configuration_name(Option<String>)`](crate::operation::configure_logs_for_playback_configuration::builders::ConfigureLogsForPlaybackConfigurationFluentBuilder::set_playback_configuration_name):<br>required: **true**<br><p>The name of the playback configuration.</p><br>
/// - [`enabled_logging_strategies(LoggingStrategy)`](crate::operation::configure_logs_for_playback_configuration::builders::ConfigureLogsForPlaybackConfigurationFluentBuilder::enabled_logging_strategies) / [`set_enabled_logging_strategies(Option<Vec::<LoggingStrategy>>)`](crate::operation::configure_logs_for_playback_configuration::builders::ConfigureLogsForPlaybackConfigurationFluentBuilder::set_enabled_logging_strategies):<br>required: **false**<br><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><br>
/// - On success, responds with [`ConfigureLogsForPlaybackConfigurationOutput`](crate::operation::configure_logs_for_playback_configuration::ConfigureLogsForPlaybackConfigurationOutput) with field(s):
/// - [`percent_enabled(i32)`](crate::operation::configure_logs_for_playback_configuration::ConfigureLogsForPlaybackConfigurationOutput::percent_enabled): <p>The percentage of session logs that MediaTailor sends to your Cloudwatch Logs account.</p>
/// - [`playback_configuration_name(Option<String>)`](crate::operation::configure_logs_for_playback_configuration::ConfigureLogsForPlaybackConfigurationOutput::playback_configuration_name): <p>The name of the playback configuration.</p>
/// - [`enabled_logging_strategies(Option<Vec::<LoggingStrategy>>)`](crate::operation::configure_logs_for_playback_configuration::ConfigureLogsForPlaybackConfigurationOutput::enabled_logging_strategies): <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>
/// - On failure, responds with [`SdkError<ConfigureLogsForPlaybackConfigurationError>`](crate::operation::configure_logs_for_playback_configuration::ConfigureLogsForPlaybackConfigurationError)
pub fn configure_logs_for_playback_configuration(
&self,
Expand Down
2 changes: 1 addition & 1 deletion sdk/mediatailor/src/client/get_playback_configuration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ impl super::Client {
/// - [`tags(Option<HashMap::<String, String>>)`](crate::operation::get_playback_configuration::GetPlaybackConfigurationOutput::tags): <p>The tags assigned to the playback configuration. Tags are key-value pairs that you can associate with Amazon resources to help with organization, access control, and cost tracking. For more information, see <a href="https://docs.aws.amazon.com/mediatailor/latest/ug/tagging.html">Tagging AWS Elemental MediaTailor Resources</a>.</p>
/// - [`transcode_profile_name(Option<String>)`](crate::operation::get_playback_configuration::GetPlaybackConfigurationOutput::transcode_profile_name): <p>The name that is used to associate this playback configuration with a custom transcode profile. This overrides the dynamic transcoding defaults of MediaTailor. Use this only if you have already set up custom profiles with the help of AWS Support.</p>
/// - [`video_content_source_url(Option<String>)`](crate::operation::get_playback_configuration::GetPlaybackConfigurationOutput::video_content_source_url): <p>The URL prefix for the parent manifest for the stream, minus the asset ID. The maximum length is 512 characters.</p>
/// - [`ad_conditioning_configuration(Option<AdConditioningConfiguration>)`](crate::operation::get_playback_configuration::GetPlaybackConfigurationOutput::ad_conditioning_configuration): <p>The setting that indicates what conditioning MediaTailor will perform on ads that the ad decision server (ADS) returns.</p>
/// - [`ad_conditioning_configuration(Option<AdConditioningConfiguration>)`](crate::operation::get_playback_configuration::GetPlaybackConfigurationOutput::ad_conditioning_configuration): <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>
/// - On failure, responds with [`SdkError<GetPlaybackConfigurationError>`](crate::operation::get_playback_configuration::GetPlaybackConfigurationError)
pub fn get_playback_configuration(&self) -> crate::operation::get_playback_configuration::builders::GetPlaybackConfigurationFluentBuilder {
crate::operation::get_playback_configuration::builders::GetPlaybackConfigurationFluentBuilder::new(self.handle.clone())
Expand Down
Loading

0 comments on commit 4f7d779

Please sign in to comment.