public ListGroupsAsync ( ListGroupsResponse>.AmazonServiceCallback |
||
callback | ListGroupsResponse>.AmazonServiceCallback | |
options | AsyncOptions | /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// |
Résultat | void |
public void ListGroupsAsync(AmazonServiceCallback<ListGroupsRequest, ListGroupsResponse> callback, AsyncOptions options = null)
{
ListGroupsAsync(new ListGroupsRequest(), callback, options);
}
AmazonIdentityManagementServiceClient::ListGroupsAsync ( ListGroupsRequest request, System cancellationToken = default(CancellationToken) ) : Task |
|
AmazonIdentityManagementServiceClient::ListGroupsAsync ( System cancellationToken = default(CancellationToken) ) : Task |
|
AmazonIdentityManagementServiceClient::ListGroupsAsync ( ListGroupsRequest request, ListGroupsResponse>.AmazonServiceCallback |
public static void DeleteUsersAndGroupsInTestNameSpace(AmazonIdentityManagementServiceClient client) { ListGroupsResponse lgRes = client.ListGroupsAsync(new ListGroupsRequest() { PathPrefix = TEST_PATH }).Result; foreach (Group g in lgRes.Groups) { GetGroupResponse ggRes = client.GetGroupAsync(new GetGroupRequest() { GroupName = g.GroupName }).Result; foreach (User u in ggRes.Users) { client.RemoveUserFromGroupAsync(new RemoveUserFromGroupRequest() { GroupName = g.GroupName, UserName = u.UserName }).Wait(); } client.DeleteGroupAsync(new DeleteGroupRequest() { GroupName = g.GroupName }).Wait(); } ListUsersResponse luRes = client.ListUsersAsync(new ListUsersRequest() { PathPrefix = TEST_PATH }).Result; foreach (User u in luRes.Users) { DeleteTestUsers(client, u.UserName); } }