aws_sdk_ivs/client/
get_stream_session.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 [`GetStreamSession`](crate::operation::get_stream_session::builders::GetStreamSessionFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`channel_arn(impl Into<String>)`](crate::operation::get_stream_session::builders::GetStreamSessionFluentBuilder::channel_arn) / [`set_channel_arn(Option<String>)`](crate::operation::get_stream_session::builders::GetStreamSessionFluentBuilder::set_channel_arn):<br>required: **true**<br><p>ARN of the channel resource</p><br>
7    ///   - [`stream_id(impl Into<String>)`](crate::operation::get_stream_session::builders::GetStreamSessionFluentBuilder::stream_id) / [`set_stream_id(Option<String>)`](crate::operation::get_stream_session::builders::GetStreamSessionFluentBuilder::set_stream_id):<br>required: **false**<br><p>Unique identifier for a live or previously live stream in the specified channel. If no <code>streamId</code> is provided, this returns the most recent stream session for the channel, if it exists.</p><br>
8    /// - On success, responds with [`GetStreamSessionOutput`](crate::operation::get_stream_session::GetStreamSessionOutput) with field(s):
9    ///   - [`stream_session(Option<StreamSession>)`](crate::operation::get_stream_session::GetStreamSessionOutput::stream_session): <p>List of stream details.</p>
10    /// - On failure, responds with [`SdkError<GetStreamSessionError>`](crate::operation::get_stream_session::GetStreamSessionError)
11    pub fn get_stream_session(&self) -> crate::operation::get_stream_session::builders::GetStreamSessionFluentBuilder {
12        crate::operation::get_stream_session::builders::GetStreamSessionFluentBuilder::new(self.handle.clone())
13    }
14}