aws_sdk_amplifybackend/client/get_token.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 [`GetToken`](crate::operation::get_token::builders::GetTokenFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`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>
7 /// - [`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>
8 /// - On success, responds with [`GetTokenOutput`](crate::operation::get_token::GetTokenOutput) with field(s):
9 /// - [`app_id(Option<String>)`](crate::operation::get_token::GetTokenOutput::app_id): <p>The app ID.</p>
10 /// - [`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>
11 /// - [`session_id(Option<String>)`](crate::operation::get_token::GetTokenOutput::session_id): <p>A unique ID provided when creating a new challenge token.</p>
12 /// - [`ttl(Option<String>)`](crate::operation::get_token::GetTokenOutput::ttl): <p>The expiry time for the one-time generated token code.</p>
13 /// - On failure, responds with [`SdkError<GetTokenError>`](crate::operation::get_token::GetTokenError)
14 pub fn get_token(&self) -> crate::operation::get_token::builders::GetTokenFluentBuilder {
15 crate::operation::get_token::builders::GetTokenFluentBuilder::new(self.handle.clone())
16 }
17}