Paws::AppStream::CreateUser - Arguments for method CreateUser on Paws::AppStream


This class represents the parameters used for calling the method CreateUser on the Amazon AppStream service. Use the attributes of this class as arguments to method CreateUser.

You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateUser.


    my $appstream2 = Paws->service('AppStream');
    my $CreateUserResult = $appstream2->CreateUser(
      AuthenticationType => 'API',
      UserName           => 'MyUsername',
      FirstName          => 'MyUserAttributeValue',    # OPTIONAL
      LastName           => 'MyUserAttributeValue',    # OPTIONAL
      MessageAction      => 'SUPPRESS',                # OPTIONAL

Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object. For the AWS API documentation, see


REQUIRED AuthenticationType => Str

The authentication type for the user. You must specify USERPOOL.

Valid values are: "API", "SAML", "USERPOOL"

FirstName => Str

The first name, or given name, of the user.

LastName => Str

The last name, or surname, of the user.

MessageAction => Str

The action to take for the welcome email that is sent to a user after the user is created in the user pool. If you specify SUPPRESS, no email is sent. If you specify RESEND, do not specify the first name or last name of the user. If the value is null, the email is sent.

The temporary password in the welcome email is valid for only 7 days. If users don’t set their passwords within 7 days, you must send them a new welcome email.

Valid values are: "SUPPRESS", "RESEND"

REQUIRED UserName => Str

The email address of the user.

Users' email addresses are case-sensitive. During login, if they specify an email address that doesn't use the same capitalization as the email address specified when their user pool account was created, a "user does not exist" error message displays.


This class forms part of Paws, documenting arguments for method CreateUser in Paws::AppStream


The source code is located here:

Please report bugs to: