aws_sdk_sts/client/
get_caller_identity.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`GetCallerIdentity`](crate::operation::get_caller_identity::builders::GetCallerIdentityFluentBuilder) operation.
    ///
    /// - The fluent builder takes no input, just [`send`](crate::operation::get_caller_identity::builders::GetCallerIdentityFluentBuilder::send) it.
    /// - On success, responds with [`GetCallerIdentityOutput`](crate::operation::get_caller_identity::GetCallerIdentityOutput) with field(s):
    ///   - [`user_id(Option<String>)`](crate::operation::get_caller_identity::GetCallerIdentityOutput::user_id): <p>The unique identifier of the calling entity. The exact value depends on the type of entity that is making the call. The values returned are those listed in the <b>aws:userid</b> column in the <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_variables.html#principaltable">Principal table</a> found on the <b>Policy Variables</b> reference page in the <i>IAM User Guide</i>.</p>
    ///   - [`account(Option<String>)`](crate::operation::get_caller_identity::GetCallerIdentityOutput::account): <p>The Amazon Web Services account ID number of the account that owns or contains the calling entity.</p>
    ///   - [`arn(Option<String>)`](crate::operation::get_caller_identity::GetCallerIdentityOutput::arn): <p>The Amazon Web Services ARN associated with the calling entity.</p>
    /// - On failure, responds with [`SdkError<GetCallerIdentityError>`](crate::operation::get_caller_identity::GetCallerIdentityError)
    pub fn get_caller_identity(&self) -> crate::operation::get_caller_identity::builders::GetCallerIdentityFluentBuilder {
        crate::operation::get_caller_identity::builders::GetCallerIdentityFluentBuilder::new(self.handle.clone())
    }
}