[−][src]Macro sts_profile_auth::get_client_sts_with_profile
Macro to return a profile authenticated client
This macro takes two arguments:
- A Rusoto client type (e.g. Ec2Client) which has the
new_with_client
method 2. A Profile Name
It will return an instance of the provided client (e.g. Ec2Client) which will use the specified profile when authenticating.
Example usage:
ⓘThis example is not tested
use rusoto_core::Region; use rusoto_ec2::Ec2Client; use sts_profile_auth::get_client_sts_with_profile; use sts_profile_auth::StsClientError; let ec2 = get_client_sts_with_profile!(Ec2Client, "default")?;