aws_sdk_sts/client/
get_delegated_access_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 [`GetDelegatedAccessToken`](crate::operation::get_delegated_access_token::builders::GetDelegatedAccessTokenFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`trade_in_token(impl Into<String>)`](crate::operation::get_delegated_access_token::builders::GetDelegatedAccessTokenFluentBuilder::trade_in_token) / [`set_trade_in_token(Option<String>)`](crate::operation::get_delegated_access_token::builders::GetDelegatedAccessTokenFluentBuilder::set_trade_in_token):<br>required: **true**<br><p>The token to exchange for temporary Amazon Web Services credentials. This token must be valid and unexpired at the time of the request.</p><br>
7    /// - On success, responds with [`GetDelegatedAccessTokenOutput`](crate::operation::get_delegated_access_token::GetDelegatedAccessTokenOutput) with field(s):
8    ///   - [`credentials(Option<Credentials>)`](crate::operation::get_delegated_access_token::GetDelegatedAccessTokenOutput::credentials): <p>Amazon Web Services credentials for API authentication.</p>
9    ///   - [`packed_policy_size(Option<i32>)`](crate::operation::get_delegated_access_token::GetDelegatedAccessTokenOutput::packed_policy_size): <p>The percentage of the maximum policy size that is used by the session policy. The policy size is calculated as the sum of all the session policies and permission boundaries attached to the session. If the packed size exceeds 100%, the request fails.</p>
10    ///   - [`assumed_principal(Option<String>)`](crate::operation::get_delegated_access_token::GetDelegatedAccessTokenOutput::assumed_principal): <p>The Amazon Resource Name (ARN) of the principal that was assumed when obtaining the delegated access token. This ARN identifies the IAM entity whose permissions are granted by the temporary credentials.</p>
11    /// - On failure, responds with [`SdkError<GetDelegatedAccessTokenError>`](crate::operation::get_delegated_access_token::GetDelegatedAccessTokenError)
12    pub fn get_delegated_access_token(&self) -> crate::operation::get_delegated_access_token::builders::GetDelegatedAccessTokenFluentBuilder {
13        crate::operation::get_delegated_access_token::builders::GetDelegatedAccessTokenFluentBuilder::new(self.handle.clone())
14    }
15}