aws_sdk_signin/client/create_o_auth2_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 [`CreateOAuth2Token`](crate::operation::create_o_auth2_token::builders::CreateOAuth2TokenFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`token_input(CreateOAuth2TokenRequestBody)`](crate::operation::create_o_auth2_token::builders::CreateOAuth2TokenFluentBuilder::token_input) / [`set_token_input(Option<CreateOAuth2TokenRequestBody>)`](crate::operation::create_o_auth2_token::builders::CreateOAuth2TokenFluentBuilder::set_token_input):<br>required: **true**<br>Flattened token operation inputs The specific operation is determined by grant_type in the request body<br>
7 /// - On success, responds with [`CreateOAuth2TokenOutput`](crate::operation::create_o_auth2_token::CreateOAuth2TokenOutput) with field(s):
8 /// - [`token_output(Option<CreateOAuth2TokenResponseBody>)`](crate::operation::create_o_auth2_token::CreateOAuth2TokenOutput::token_output): Flattened token operation outputs The specific response fields depend on the grant_type used in the request
9 /// - On failure, responds with [`SdkError<CreateOAuth2TokenError>`](crate::operation::create_o_auth2_token::CreateOAuth2TokenError)
10 pub fn create_o_auth2_token(&self) -> crate::operation::create_o_auth2_token::builders::CreateOAuth2TokenFluentBuilder {
11 crate::operation::create_o_auth2_token::builders::CreateOAuth2TokenFluentBuilder::new(self.handle.clone())
12 }
13}
14