pub struct IamClient { /* private fields */ }Implementations§
Source§impl IamClient
impl IamClient
pub fn new(config: AwsConfig) -> Self
pub async fn list_users(&self) -> Result<Vec<User>, String>
pub async fn list_roles(&self) -> Result<Vec<Role>, String>
pub async fn list_groups(&self) -> Result<Vec<Group>, String>
pub async fn list_attached_role_policies( &self, role_name: &str, ) -> Result<Vec<AttachedPolicy>, String>
pub async fn list_attached_group_policies( &self, group_name: &str, ) -> Result<Vec<AttachedPolicy>, String>
pub async fn list_role_policies( &self, role_name: &str, ) -> Result<Vec<String>, String>
pub async fn get_group(&self, group_name: &str) -> Result<usize, String>
pub async fn get_group_users( &self, group_name: &str, ) -> Result<Vec<User>, String>
pub async fn list_group_policies( &self, group_name: &str, ) -> Result<Vec<String>, String>
pub async fn get_role_policy( &self, role_name: &str, policy_name: &str, ) -> Result<String, String>
pub async fn get_policy_version( &self, policy_arn: &str, ) -> Result<String, String>
pub async fn get_role(&self, role_name: &str) -> Result<String, String>
pub async fn get_login_profile(&self, user_name: &str) -> Result<bool, String>
pub async fn list_access_keys(&self, user_name: &str) -> Result<usize, String>
Auto Trait Implementations§
impl Freeze for IamClient
impl RefUnwindSafe for IamClient
impl Send for IamClient
impl Sync for IamClient
impl Unpin for IamClient
impl UnsafeUnpin for IamClient
impl UnwindSafe for IamClient
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.