pub struct StsClient<'a> { /* private fields */ }Expand description
Client for the AWS Security Token Service API.
Implementations§
Source§impl<'a> StsClient<'a>
impl<'a> StsClient<'a>
Sourcepub async fn get_caller_identity(&self) -> Result<GetCallerIdentityResponse>
pub async fn get_caller_identity(&self) -> Result<GetCallerIdentityResponse>
Returns details about the IAM user or role whose credentials are used to call the operation.
Sourcepub async fn assume_role(
&self,
body: &AssumeRoleRequest,
) -> Result<AssumeRoleResponse>
pub async fn assume_role( &self, body: &AssumeRoleRequest, ) -> Result<AssumeRoleResponse>
Returns a set of temporary security credentials for cross-account access.
Auto Trait Implementations§
impl<'a> Freeze for StsClient<'a>
impl<'a> !RefUnwindSafe for StsClient<'a>
impl<'a> Send for StsClient<'a>
impl<'a> Sync for StsClient<'a>
impl<'a> Unpin for StsClient<'a>
impl<'a> UnsafeUnpin for StsClient<'a>
impl<'a> !UnwindSafe for StsClient<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more