Learn R Programming

paws.security.identity (version 0.1.0)

iam_create_login_profile: Creates a password for the specified user, giving the user the ability to access AWS services through the AWS Management Console

Description

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.

Usage

iam_create_login_profile(UserName, Password, PasswordResetRequired)

Arguments

UserName

[required] The name of the IAM user to create a password for. The user must already exist.

This parameter allows (through 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: \_+=,.@-

Password

[required] The new password for the user.

The regex pattern that is used to validate this parameter is a string of characters. That string can include almost any printable ASCII character from the space (U+0020) through the end of the ASCII character range (U+00FF). You can also include the tab (U+0009), line feed (U+000A), and carriage return (U+000D) characters. Any of these characters are valid in a password. However, many tools, such as the AWS Management Console, might restrict the ability to type certain characters because they have special meaning within that tool.

PasswordResetRequired

Specifies whether the user is required to set a new password on next sign-in.

Request syntax

svc$create_login_profile(
  UserName = "string",
  Password = "string",
  PasswordResetRequired = TRUE|FALSE
)

Examples

Run this code
# NOT RUN {
# The following command changes IAM user Bob's password and sets the flag
# that required Bob to change the password the next time he signs in.
# }
# NOT RUN {
svc$create_login_profile(
  Password = "h]6EszR}vJ*m",
  PasswordResetRequired = TRUE,
  UserName = "Bob"
)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab