pub struct StsClient { /* private fields */ }Implementations§
Source§impl StsClient
impl StsClient
pub fn new(endpoint: &str, access_key_id: &str, access_key_secret: &str) -> Self
pub fn builder() -> StsClientBuilder
Sourcepub async fn sts_for_put_object(
&self,
arn: &str,
bucket_name: &str,
object_key: &str,
duration_seconds: u32,
) -> Result<AssumeRoleResponseCredentials, String>
pub async fn sts_for_put_object( &self, arn: &str, bucket_name: &str, object_key: &str, duration_seconds: u32, ) -> Result<AssumeRoleResponseCredentials, String>
生成上传文件到 ${bucket_name}/${object_key} 的 STS 凭证。
pub async fn assume_role( &self, req: AssumeRoleRequest, ) -> Result<AssumeRoleResponse, String>
pub async fn do_request( &self, method: Method, uri: &str, headers: Option<HeaderMap>, query: Option<HashMap<String, String>>, payload: Option<HashMap<String, String>>, ) -> Result<String, String>
Auto Trait Implementations§
impl Freeze for StsClient
impl !RefUnwindSafe for StsClient
impl Send for StsClient
impl Sync for StsClient
impl Unpin for StsClient
impl !UnwindSafe for StsClient
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