Creates a password for the specified user, giving the user the ability to access AWS services through the AWS Management Console. For more information about managing passwords, see Managing Passwords in the IAM User Guide.
For information about the parameters that are common to all actions, see Common Parameters.
The new password for the user.
The regex pattern used to validate this parameter is a string of characters consisting of almost any printable ASCII character from the space (\u0020) through the end of the ASCII character range (\u00FF). You can also include the tab (\u0009), line feed (\u000A), and carriage return (\u000D) characters. Although any of these characters are valid in a password, note that many tools, such as the AWS Management Console, might restrict the ability to enter certain characters because they have special meaning within that tool.
Length Constraints: Minimum length of 1. Maximum length of 128.
Specifies whether the user is required to set a new password on next sign-in.
The name of the IAM user to create a password for. The user must already exist.
This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-
Length Constraints: Minimum length of 1. Maximum length of 64.
The following element is returned by the service.
A structure containing the user name and password create date.
Type: LoginProfile object
For information about the errors that are common to all actions, see Common Errors.
The request was rejected because it attempted to create a resource that already exists.
HTTP Status Code: 409
The request was rejected because it attempted to create resources beyond the current AWS account limits. The error message describes the limit exceeded.
HTTP Status Code: 409
The request was rejected because it referenced an entity that does not exist. The error message describes the entity.
HTTP Status Code: 404
The request was rejected because the provided password did not meet the requirements imposed by the account password policy.
HTTP Status Code: 400
The request processing has failed because of an unknown error, exception or failure.
HTTP Status Code: 500
https://iam.amazonaws.com/?Action=CreateLoginProfile &UserName=Bob &Password=h]6EszR}vJ*m &Version=2010-05-08 &AUTHPARAMS
<CreateLoginProfileResponse xmlns="https://iam.amazonaws.com/doc/2010-05-08/"> <CreateLoginProfileResult> <LoginProfile> <PasswordResetRequired>false</PasswordResetRequired> <UserName>Bob</UserName> <CreateDate>2015-03-25T20:48:52.558Z</CreateDate> </LoginProfile> </CreateLoginProfileResult> <ResponseMetadata> <RequestId>7a62c49f-347e-4fc4-9331-6e8eEXAMPLE</RequestId> </ResponseMetadata> </CreateLoginProfileResponse>
For more information about using this API in one of the language-specific AWS SDKs, see the following: