1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`GetToken`](crate::operation::get_token::builders::GetTokenFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`app_id(impl Into<String>)`](crate::operation::get_token::builders::GetTokenFluentBuilder::app_id) / [`set_app_id(Option<String>)`](crate::operation::get_token::builders::GetTokenFluentBuilder::set_app_id):<br>required: **true**<br><p>The app ID.</p><br>
    ///   - [`session_id(impl Into<String>)`](crate::operation::get_token::builders::GetTokenFluentBuilder::session_id) / [`set_session_id(Option<String>)`](crate::operation::get_token::builders::GetTokenFluentBuilder::set_session_id):<br>required: **true**<br><p>The session ID.</p><br>
    /// - On success, responds with [`GetTokenOutput`](crate::operation::get_token::GetTokenOutput) with field(s):
    ///   - [`app_id(Option<String>)`](crate::operation::get_token::GetTokenOutput::app_id): <p>The app ID.</p>
    ///   - [`challenge_code(Option<String>)`](crate::operation::get_token::GetTokenOutput::challenge_code): <p>The one-time challenge code for authenticating into the Amplify Admin UI.</p>
    ///   - [`session_id(Option<String>)`](crate::operation::get_token::GetTokenOutput::session_id): <p>A unique ID provided when creating a new challenge token.</p>
    ///   - [`ttl(Option<String>)`](crate::operation::get_token::GetTokenOutput::ttl): <p>The expiry time for the one-time generated token code.</p>
    /// - On failure, responds with [`SdkError<GetTokenError>`](crate::operation::get_token::GetTokenError)
    pub fn get_token(&self) -> crate::operation::get_token::builders::GetTokenFluentBuilder {
        crate::operation::get_token::builders::GetTokenFluentBuilder::new(self.handle.clone())
    }
}