CreateUserAsync() 공개 메소드

Initiates the asynchronous execution of the CreateUser operation.
public CreateUserAsync ( CreateUserRequest request, System cancellationToken = default(CancellationToken) ) : Task
request Amazon.IdentityManagement.Model.CreateUserRequest 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. ///
리턴 Task
예제 #1
0
 public static string CreateTestUser(AmazonIdentityManagementServiceClient client)
 {
     string username = "******" + DateTime.Now.Ticks;
     client.CreateUserAsync(new CreateUserRequest() { UserName = username, Path = TEST_PATH }).Wait();
     return username;
 }
예제 #2
0
파일: Util.cs 프로젝트: aws/aws-sdk-net
 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;
 }