Struct aws_sdk_sts::client::fluent_builders::GetCallerIdentity
source · pub struct GetCallerIdentity { /* private fields */ }
Expand description
Fluent builder constructing a request to GetCallerIdentity
.
Returns details about the IAM user or role whose credentials are used to call the operation.
No permissions are required to perform this operation. If an administrator adds a policy to your IAM user or role that explicitly denies access to the sts:GetCallerIdentity
action, you can still perform this operation. Permissions are not required because the same information is returned when an IAM user or role is denied access. To view an example response, see I Am Not Authorized to Perform: iam:DeleteVirtualMFADevice in the IAM User Guide.
Implementations§
source§impl GetCallerIdentity
impl GetCallerIdentity
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<GetCallerIdentity, AwsResponseRetryClassifier>, SdkError<GetCallerIdentityError>>
pub async fn customize( self ) -> Result<CustomizableOperation<GetCallerIdentity, AwsResponseRetryClassifier>, SdkError<GetCallerIdentityError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<GetCallerIdentityOutput, SdkError<GetCallerIdentityError>>
pub async fn send( self ) -> Result<GetCallerIdentityOutput, SdkError<GetCallerIdentityError>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
Trait Implementations§
source§impl Clone for GetCallerIdentity
impl Clone for GetCallerIdentity
source§fn clone(&self) -> GetCallerIdentity
fn clone(&self) -> GetCallerIdentity
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more