Skip to main content

random_passwords

Creates, updates, deletes, gets or lists a random_passwords resource.

Overview

Namerandom_passwords
TypeResource
Idaws.secretsmanager.random_passwords

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
random_passwordstringA string with the password.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_random_passwordselectregionGenerates 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.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

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.

SELECT
random_password
FROM aws.secretsmanager.random_passwords
WHERE region = '{{ region }}' -- required
;