Search in sources :

Example 1 with AdminCreateUserRequest

use of com.amazonaws.services.cognitoidentityprovider.model.AdminCreateUserRequest in project aws-sdk-android by aws-amplify.

the class AWSMobileClientTest method createUserViaAdminAPI.

private static void createUserViaAdminAPI(final String userpoolId, final String username, final String email) {
    AdminCreateUserRequest request = new AdminCreateUserRequest().withUsername(username).withTemporaryPassword(TEMP_PASSWORD).withUserPoolId(userpoolId).withMessageAction(MessageActionType.SUPPRESS).withForceAliasCreation(true).withUserAttributes(new AttributeType().withName("email").withValue(email), new AttributeType().withName("email_verified").withValue("true"));
    getUserpoolLL().adminCreateUser(request);
}
Also used : AttributeType(com.amazonaws.services.cognitoidentityprovider.model.AttributeType) AdminCreateUserRequest(com.amazonaws.services.cognitoidentityprovider.model.AdminCreateUserRequest)

Aggregations

AdminCreateUserRequest (com.amazonaws.services.cognitoidentityprovider.model.AdminCreateUserRequest)1 AttributeType (com.amazonaws.services.cognitoidentityprovider.model.AttributeType)1