aws_sdk_amplifybackend/client/create_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 [`CreateToken`](crate::operation::create_token::builders::CreateTokenFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`app_id(impl Into<String>)`](crate::operation::create_token::builders::CreateTokenFluentBuilder::app_id) / [`set_app_id(Option<String>)`](crate::operation::create_token::builders::CreateTokenFluentBuilder::set_app_id):<br>required: **true**<br><p>The app ID.</p><br>
7 /// - On success, responds with [`CreateTokenOutput`](crate::operation::create_token::CreateTokenOutput) with field(s):
8 /// - [`app_id(Option<String>)`](crate::operation::create_token::CreateTokenOutput::app_id): <p>The app ID.</p>
9 /// - [`challenge_code(Option<String>)`](crate::operation::create_token::CreateTokenOutput::challenge_code): <p>One-time challenge code for authenticating into the Amplify Admin UI.</p>
10 /// - [`session_id(Option<String>)`](crate::operation::create_token::CreateTokenOutput::session_id): <p>A unique ID provided when creating a new challenge token.</p>
11 /// - [`ttl(Option<String>)`](crate::operation::create_token::CreateTokenOutput::ttl): <p>The expiry time for the one-time generated token code.</p>
12 /// - On failure, responds with [`SdkError<CreateTokenError>`](crate::operation::create_token::CreateTokenError)
13 pub fn create_token(&self) -> crate::operation::create_token::builders::CreateTokenFluentBuilder {
14 crate::operation::create_token::builders::CreateTokenFluentBuilder::new(self.handle.clone())
15 }
16}