pub struct SsoClient { /* private fields */ }
Expand description
A client for the SSO API.
Implementations§
Source§impl SsoClient
impl SsoClient
Sourcepub fn new(region: Region) -> SsoClient
pub fn new(region: Region) -> SsoClient
Creates a client backed by the default tokio event loop.
The client will use the default credentials provider and tls client.
pub fn new_with<P, D>(
request_dispatcher: D,
credentials_provider: P,
region: Region,
) -> SsoClientwhere
P: ProvideAwsCredentials + Send + Sync + 'static,
D: DispatchSignedRequest + Send + Sync + 'static,
pub fn new_with_client(client: Client, region: Region) -> SsoClient
Trait Implementations§
Source§impl Sso for SsoClient
impl Sso for SsoClient
Source§fn get_role_credentials<'life0, 'async_trait>(
&'life0 self,
input: GetRoleCredentialsRequest,
) -> Pin<Box<dyn Future<Output = Result<GetRoleCredentialsResponse, RusotoError<GetRoleCredentialsError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_role_credentials<'life0, 'async_trait>(
&'life0 self,
input: GetRoleCredentialsRequest,
) -> Pin<Box<dyn Future<Output = Result<GetRoleCredentialsResponse, RusotoError<GetRoleCredentialsError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Returns the STS short-term credentials for a given role name that is assigned to the user.
Source§fn list_account_roles<'life0, 'async_trait>(
&'life0 self,
input: ListAccountRolesRequest,
) -> Pin<Box<dyn Future<Output = Result<ListAccountRolesResponse, RusotoError<ListAccountRolesError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_account_roles<'life0, 'async_trait>(
&'life0 self,
input: ListAccountRolesRequest,
) -> Pin<Box<dyn Future<Output = Result<ListAccountRolesResponse, RusotoError<ListAccountRolesError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Lists all roles that are assigned to the user for a given AWS account.
Source§fn list_accounts<'life0, 'async_trait>(
&'life0 self,
input: ListAccountsRequest,
) -> Pin<Box<dyn Future<Output = Result<ListAccountsResponse, RusotoError<ListAccountsError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_accounts<'life0, 'async_trait>(
&'life0 self,
input: ListAccountsRequest,
) -> Pin<Box<dyn Future<Output = Result<ListAccountsResponse, RusotoError<ListAccountsError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Lists all AWS accounts assigned to the user. These AWS accounts are assigned by the administrator of the account. For more information, see Assign User Access in the AWS SSO User Guide. This operation returns a paginated response.
Source§fn logout<'life0, 'async_trait>(
&'life0 self,
input: LogoutRequest,
) -> Pin<Box<dyn Future<Output = Result<(), RusotoError<LogoutError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn logout<'life0, 'async_trait>(
&'life0 self,
input: LogoutRequest,
) -> Pin<Box<dyn Future<Output = Result<(), RusotoError<LogoutError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Removes the client- and server-side session that is associated with the user.
Auto Trait Implementations§
impl Freeze for SsoClient
impl !RefUnwindSafe for SsoClient
impl Send for SsoClient
impl Sync for SsoClient
impl Unpin for SsoClient
impl !UnwindSafe for SsoClient
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