// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`GetAuthorizationToken`](crate::operation::get_authorization_token::builders::GetAuthorizationTokenFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`domain(impl Into<String>)`](crate::operation::get_authorization_token::builders::GetAuthorizationTokenFluentBuilder::domain) / [`set_domain(Option<String>)`](crate::operation::get_authorization_token::builders::GetAuthorizationTokenFluentBuilder::set_domain):<br>required: **true**<br><p>The name of the domain that is in scope for the generated authorization token.</p><br>
/// - [`domain_owner(impl Into<String>)`](crate::operation::get_authorization_token::builders::GetAuthorizationTokenFluentBuilder::domain_owner) / [`set_domain_owner(Option<String>)`](crate::operation::get_authorization_token::builders::GetAuthorizationTokenFluentBuilder::set_domain_owner):<br>required: **false**<br><p>The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces.</p><br>
/// - [`duration_seconds(i64)`](crate::operation::get_authorization_token::builders::GetAuthorizationTokenFluentBuilder::duration_seconds) / [`set_duration_seconds(Option<i64>)`](crate::operation::get_authorization_token::builders::GetAuthorizationTokenFluentBuilder::set_duration_seconds):<br>required: **false**<br><p>The time, in seconds, that the generated authorization token is valid. Valid values are <code>0</code> and any number between <code>900</code> (15 minutes) and <code>43200</code> (12 hours). A value of <code>0</code> will set the expiration of the authorization token to the same expiration of the user's role's temporary credentials.</p><br>
/// - On success, responds with [`GetAuthorizationTokenOutput`](crate::operation::get_authorization_token::GetAuthorizationTokenOutput) with field(s):
/// - [`authorization_token(Option<String>)`](crate::operation::get_authorization_token::GetAuthorizationTokenOutput::authorization_token): <p>The returned authentication token.</p>
/// - [`expiration(Option<DateTime>)`](crate::operation::get_authorization_token::GetAuthorizationTokenOutput::expiration): <p>A timestamp that specifies the date and time the authorization token expires.</p>
/// - On failure, responds with [`SdkError<GetAuthorizationTokenError>`](crate::operation::get_authorization_token::GetAuthorizationTokenError)
pub fn get_authorization_token(&self) -> crate::operation::get_authorization_token::builders::GetAuthorizationTokenFluentBuilder {
crate::operation::get_authorization_token::builders::GetAuthorizationTokenFluentBuilder::new(self.handle.clone())
}
}