random_passwords
Creates, updates, deletes, gets or lists a random_passwords resource.
Overview
| Name | random_passwords |
| Type | Resource |
| Id | aws.secretsmanager.random_passwords |
Fields
The following fields are returned by SELECT queries:
- get_random_password
| Name | Datatype | Description |
|---|---|---|
random_password | string | A string with the password. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_random_password | select | region | 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. |
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.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
SELECT examples
- get_random_password
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
;