create_user
async
¶
create_user(
*,
config_overrides: Optional[AsyncAppStreamClientConfig] = None,
user_name: Optional[Username] = None,
message_action: Optional[MessageAction] = None,
first_name: Optional[UserAttributeValue] = None,
last_name: Optional[UserAttributeValue] = None,
authentication_type: Optional[AuthenticationType] = None,
) -> CreateUserResult
Creates a new user in the user pool.
Parameters:
-
user_name(Optional[Username], default:None) –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.
-
message_action(Optional[MessageAction], default:None) –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.
-
first_name(Optional[UserAttributeValue], default:None) –The first name, or given name, of the user.
-
last_name(Optional[UserAttributeValue], default:None) –The last name, or surname, of the user.
-
authentication_type(Optional[AuthenticationType], default:None) –The authentication type for the user. You must specify USERPOOL.
Raises:
-
InvalidAccountStatusException–The resource cannot be created because your AWS account is suspended. For assistance, contact AWS Support.
-
InvalidParameterCombinationException–Indicates an incorrect combination of parameters, or a missing parameter.
-
LimitExceededException–The requested limit exceeds the permitted limit for an account.
-
OperationNotPermittedException–The attempted operation is not permitted.
-
ResourceAlreadyExistsException–The specified resource already exists.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_appstream/_services/async_app_stream.py
2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 | |