Struct aws_sdk_sts::client::fluent_builders::GetCallerIdentity [−][src]
pub struct GetCallerIdentity<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* fields omitted */ }
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
impl<C, M, R> GetCallerIdentity<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> GetCallerIdentity<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<GetCallerIdentityOutput, SdkError<GetCallerIdentityError>> where
R::Policy: SmithyRetryPolicy<GetCallerIdentityInputOperationOutputAlias, GetCallerIdentityOutput, GetCallerIdentityError, GetCallerIdentityInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<GetCallerIdentityOutput, SdkError<GetCallerIdentityError>> where
R::Policy: SmithyRetryPolicy<GetCallerIdentityInputOperationOutputAlias, GetCallerIdentityOutput, GetCallerIdentityError, GetCallerIdentityInputOperationRetryAlias>,
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
Auto Trait Implementations
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !RefUnwindSafe for GetCallerIdentity<C, M, R>
impl<C, M, R> Send for GetCallerIdentity<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for GetCallerIdentity<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for GetCallerIdentity<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for GetCallerIdentity<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more