create_user

create_user(**kwargs)

Creates a user.

See also: AWS API Documentation

Request Syntax

response = client.create_user(
    UserId='string',
    FirstName='string',
    LastName='string',
    Email='string',
    ClientRequestToken='string',
    Tags=[
        {
            'Key': 'string',
            'Value': 'string'
        },
    ]
)
Parameters
  • UserId (string) --

    [REQUIRED]

    The ARN for the user.

  • FirstName (string) -- The first name for the user.
  • LastName (string) -- The last name for the user.
  • Email (string) -- The email address for the user.
  • ClientRequestToken (string) --

    A unique, user-specified identifier for this request that ensures idempotency.

    This field is autopopulated if not provided.

  • Tags (list) --

    The tags for the user.

    • (dict) --

      A key-value pair that can be associated with a resource.

      • Key (string) -- [REQUIRED]

        The key of a tag. Tag keys are case-sensitive.

      • Value (string) -- [REQUIRED]

        The value of a tag. Tag values are case sensitive and can be null.

Return type

dict

Returns

Response Syntax

{
    'UserArn': 'string'
}

Response Structure

  • (dict) --

    • UserArn (string) --

      The ARN of the newly created user in the response.

Exceptions

  • AlexaForBusiness.Client.exceptions.ResourceInUseException
  • AlexaForBusiness.Client.exceptions.LimitExceededException
  • AlexaForBusiness.Client.exceptions.ConcurrentModificationException