/AWS1/CL_SMR=>GETRANDOMPASSWORD()
¶
About GetRandomPassword¶
Generates a random password. We recommend that you specify the
maximum length and include every character type that the system you are generating a password
for can support. By default, Secrets Manager uses uppercase and lowercase letters, numbers, and the following characters in passwords: !\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~
Secrets Manager generates a CloudTrail log entry when you call this action.
Required permissions:
secretsmanager:GetRandomPassword
.
For more information, see
IAM policy actions for Secrets Manager and Authentication
and access control in Secrets Manager.
Method Signature¶
IMPORTING¶
Optional arguments:¶
IV_PASSWORDLENGTH
TYPE /AWS1/SMRPASSWORDLENGTHTYPE
/AWS1/SMRPASSWORDLENGTHTYPE
¶
The length of the password. If you don't include this parameter, the default length is 32 characters.
IV_EXCLUDECHARACTERS
TYPE /AWS1/SMREXCLUDECHARACTERSTYPE
/AWS1/SMREXCLUDECHARACTERSTYPE
¶
A string of the characters that you don't want in the password.
IV_EXCLUDENUMBERS
TYPE /AWS1/SMREXCLUDENUMBERSTYPE
/AWS1/SMREXCLUDENUMBERSTYPE
¶
Specifies whether to exclude numbers from the password. If you don't include this switch, the password can contain numbers.
IV_EXCLUDEPUNCTUATION
TYPE /AWS1/SMREXCLUDEPUNCTUATIONT00
/AWS1/SMREXCLUDEPUNCTUATIONT00
¶
Specifies whether to exclude the following punctuation characters from the password:
! " # $ % & ' ( ) * + , - . / : ; < = > ? @ [ \ ] ^ _ ` { | } ~
. If you don't include this switch, the password can contain punctuation.
IV_EXCLUDEUPPERCASE
TYPE /AWS1/SMREXCLUDEUPPERCASETYPE
/AWS1/SMREXCLUDEUPPERCASETYPE
¶
Specifies whether to exclude uppercase letters from the password. If you don't include this switch, the password can contain uppercase letters.
IV_EXCLUDELOWERCASE
TYPE /AWS1/SMREXCLUDELOWERCASETYPE
/AWS1/SMREXCLUDELOWERCASETYPE
¶
Specifies whether to exclude lowercase letters from the password. If you don't include this switch, the password can contain lowercase letters.
IV_INCLUDESPACE
TYPE /AWS1/SMRINCLUDESPACETYPE
/AWS1/SMRINCLUDESPACETYPE
¶
Specifies whether to include the space character. If you include this switch, the password can contain space characters.
IV_REQUIREEACHINCLUDEDTYPE
TYPE /AWS1/SMRREQUIREEACHINCLDTYP00
/AWS1/SMRREQUIREEACHINCLDTYP00
¶
Specifies whether to include at least one upper and lowercase letter, one number, and one punctuation. If you don't include this switch, the password contains at least one of every character type.