public CreateUserAsync ( |
||
request | Container for the necessary parameters to execute the CreateUser operation. | |
cancellationToken | System | /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// |
return | Task |
public static string CreateTestUser(AmazonIdentityManagementServiceClient client) { string username = "******" + DateTime.Now.Ticks; client.CreateUserAsync(new CreateUserRequest() { UserName = username, Path = TEST_PATH }).Wait(); return username; }
internal static string CreateTestUser(AmazonIdentityManagementServiceClient client, string testPrefix) { var prefix = MakePath(testPrefix); string username = "******" + DateTime.Now.Ticks; client.CreateUserAsync(new CreateUserRequest() { UserName = username, Path = prefix }).Wait(); return username; }