aws_sdk_ivs/client/
create_stream_key.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 [`CreateStreamKey`](crate::operation::create_stream_key::builders::CreateStreamKeyFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`channel_arn(impl Into<String>)`](crate::operation::create_stream_key::builders::CreateStreamKeyFluentBuilder::channel_arn) / [`set_channel_arn(Option<String>)`](crate::operation::create_stream_key::builders::CreateStreamKeyFluentBuilder::set_channel_arn):<br>required: **true**<br><p>ARN of the channel for which to create the stream key.</p><br>
7    ///   - [`tags(impl Into<String>, impl Into<String>)`](crate::operation::create_stream_key::builders::CreateStreamKeyFluentBuilder::tags) / [`set_tags(Option<HashMap::<String, String>>)`](crate::operation::create_stream_key::builders::CreateStreamKeyFluentBuilder::set_tags):<br>required: **false**<br><p>Array of 1-50 maps, each of the form <code>string:string (key:value)</code>. See <a href="https://docs.aws.amazon.com/tag-editor/latest/userguide/best-practices-and-strats.html">Best practices and strategies</a> in <i>Tagging Amazon Web Services Resources and Tag Editor</i> for details, including restrictions that apply to tags and "Tag naming limits and requirements"; Amazon IVS has no service-specific constraints beyond what is documented there.</p><br>
8    /// - On success, responds with [`CreateStreamKeyOutput`](crate::operation::create_stream_key::CreateStreamKeyOutput) with field(s):
9    ///   - [`stream_key(Option<StreamKey>)`](crate::operation::create_stream_key::CreateStreamKeyOutput::stream_key): <p>Stream key used to authenticate an RTMPS stream for ingestion.</p>
10    /// - On failure, responds with [`SdkError<CreateStreamKeyError>`](crate::operation::create_stream_key::CreateStreamKeyError)
11    pub fn create_stream_key(&self) -> crate::operation::create_stream_key::builders::CreateStreamKeyFluentBuilder {
12        crate::operation::create_stream_key::builders::CreateStreamKeyFluentBuilder::new(self.handle.clone())
13    }
14}