1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// 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): <p> The name of the domain that is in scope for the generated authorization token. </p>
    ///   - [`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): <p> The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces. </p>
    ///   - [`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): <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>
    /// - 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(),
        )
    }
}