change_pwd {aws.iam}R Documentation

Change Password

Description

Change password for currently authenticated user

Usage

change_pwd(old, new, ...)

get_pwd_policy(...)

set_pwd_policy(
  allowchange,
  hardexpire,
  age,
  length,
  previous,
  requirements,
  ...
)

Arguments

old

A character string specifying the current password

new

A character string specifying the new password

...

Additional arguments passed to iamHTTP.

allowchange

Optionally, a logical indicating whether to allow users to change their own passwords (default is FALSE).

hardexpire

Optionally, a logical indicating whether to prevent users from changing their passwords after they expire (default is FALSE).

age

Optionally, a number of days (between 1 and 1095) specifying maximum valid age of an IAM user password.

length

Optionally, a minimum password length between 6 and 128 (default is 6).

previous

Optionally, a number specifying the number (between 1 and 24) of previous passwords that users are prevented from reusing. Default is 0.

requirements

A character vector specifying whether to require specific password features, including: “upper” (upper case character), “lower” (lower case character), “number” (a digit), and “symbol” (a symbol). Multiple can be specified.

Value

get_pwd_policy returns a list. change_pwd and set_pwd_policy return a logical TRUE (if successful).

References

IAM Password Policies


[Package aws.iam version 0.1.8 Index]