aws_sdk_mediatailor/client/
create_live_source.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`CreateLiveSource`](crate::operation::create_live_source::builders::CreateLiveSourceFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`http_package_configurations(HttpPackageConfiguration)`](crate::operation::create_live_source::builders::CreateLiveSourceFluentBuilder::http_package_configurations) / [`set_http_package_configurations(Option<Vec::<HttpPackageConfiguration>>)`](crate::operation::create_live_source::builders::CreateLiveSourceFluentBuilder::set_http_package_configurations):<br>required: **true**<br><p>A list of HTTP package configuration parameters for this live source.</p><br>
7    ///   - [`live_source_name(impl Into<String>)`](crate::operation::create_live_source::builders::CreateLiveSourceFluentBuilder::live_source_name) / [`set_live_source_name(Option<String>)`](crate::operation::create_live_source::builders::CreateLiveSourceFluentBuilder::set_live_source_name):<br>required: **true**<br><p>The name of the live source.</p><br>
8    ///   - [`source_location_name(impl Into<String>)`](crate::operation::create_live_source::builders::CreateLiveSourceFluentBuilder::source_location_name) / [`set_source_location_name(Option<String>)`](crate::operation::create_live_source::builders::CreateLiveSourceFluentBuilder::set_source_location_name):<br>required: **true**<br><p>The name of the source location.</p><br>
9    ///   - [`tags(impl Into<String>, impl Into<String>)`](crate::operation::create_live_source::builders::CreateLiveSourceFluentBuilder::tags) / [`set_tags(Option<HashMap::<String, String>>)`](crate::operation::create_live_source::builders::CreateLiveSourceFluentBuilder::set_tags):<br>required: **false**<br><p>The tags to assign to the live source. 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><br>
10    /// - On success, responds with [`CreateLiveSourceOutput`](crate::operation::create_live_source::CreateLiveSourceOutput) with field(s):
11    ///   - [`arn(Option<String>)`](crate::operation::create_live_source::CreateLiveSourceOutput::arn): <p>The ARN to assign to the live source.</p>
12    ///   - [`creation_time(Option<DateTime>)`](crate::operation::create_live_source::CreateLiveSourceOutput::creation_time): <p>The time the live source was created.</p>
13    ///   - [`http_package_configurations(Option<Vec::<HttpPackageConfiguration>>)`](crate::operation::create_live_source::CreateLiveSourceOutput::http_package_configurations): <p>A list of HTTP package configuration parameters for this live source.</p>
14    ///   - [`last_modified_time(Option<DateTime>)`](crate::operation::create_live_source::CreateLiveSourceOutput::last_modified_time): <p>The time the live source was last modified.</p>
15    ///   - [`live_source_name(Option<String>)`](crate::operation::create_live_source::CreateLiveSourceOutput::live_source_name): <p>The name to assign to the live source.</p>
16    ///   - [`source_location_name(Option<String>)`](crate::operation::create_live_source::CreateLiveSourceOutput::source_location_name): <p>The name to assign to the source location of the live source.</p>
17    ///   - [`tags(Option<HashMap::<String, String>>)`](crate::operation::create_live_source::CreateLiveSourceOutput::tags): <p>The tags to assign to the live source. 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>
18    /// - On failure, responds with [`SdkError<CreateLiveSourceError>`](crate::operation::create_live_source::CreateLiveSourceError)
19    pub fn create_live_source(&self) -> crate::operation::create_live_source::builders::CreateLiveSourceFluentBuilder {
20        crate::operation::create_live_source::builders::CreateLiveSourceFluentBuilder::new(self.handle.clone())
21    }
22}