aws_sdk_amplifyuibuilder/client/
exchange_code_for_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 [`ExchangeCodeForToken`](crate::operation::exchange_code_for_token::builders::ExchangeCodeForTokenFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`provider(TokenProviders)`](crate::operation::exchange_code_for_token::builders::ExchangeCodeForTokenFluentBuilder::provider) / [`set_provider(Option<TokenProviders>)`](crate::operation::exchange_code_for_token::builders::ExchangeCodeForTokenFluentBuilder::set_provider):<br>required: **true**<br><p>The third-party provider for the token. The only valid value is <code>figma</code>.</p><br>
7    ///   - [`request(ExchangeCodeForTokenRequestBody)`](crate::operation::exchange_code_for_token::builders::ExchangeCodeForTokenFluentBuilder::request) / [`set_request(Option<ExchangeCodeForTokenRequestBody>)`](crate::operation::exchange_code_for_token::builders::ExchangeCodeForTokenFluentBuilder::set_request):<br>required: **true**<br><p>Describes the configuration of the request.</p><br>
8    /// - On success, responds with [`ExchangeCodeForTokenOutput`](crate::operation::exchange_code_for_token::ExchangeCodeForTokenOutput) with field(s):
9    ///   - [`access_token(String)`](crate::operation::exchange_code_for_token::ExchangeCodeForTokenOutput::access_token): <p>The access token.</p>
10    ///   - [`expires_in(i32)`](crate::operation::exchange_code_for_token::ExchangeCodeForTokenOutput::expires_in): <p>The date and time when the new access token expires.</p>
11    ///   - [`refresh_token(String)`](crate::operation::exchange_code_for_token::ExchangeCodeForTokenOutput::refresh_token): <p>The token to use to refresh a previously issued access token that might have expired.</p>
12    /// - On failure, responds with [`SdkError<ExchangeCodeForTokenError>`](crate::operation::exchange_code_for_token::ExchangeCodeForTokenError)
13    pub fn exchange_code_for_token(&self) -> crate::operation::exchange_code_for_token::builders::ExchangeCodeForTokenFluentBuilder {
14        crate::operation::exchange_code_for_token::builders::ExchangeCodeForTokenFluentBuilder::new(self.handle.clone())
15    }
16}