aws.redshift_serverless.get_credentials
Example SQL Queries
SELECT * FROMaws.redshift_serverless.get_credentials;Description
Returns a database user name and temporary password with temporary authorization to log in to Amazon Redshift Serverless.
By default, the temporary credentials expire in 900 seconds. You can optionally specify a duration between 900 seconds (15 minutes) and 3600 seconds (60 minutes).
<p>The Identity and Access Management (IAM) user or role that runs GetCredentials must have an IAM policy attached that allows access to all necessary actions and resources.</p> <p>If the <code>DbName</code> parameter is specified, the IAM policy must allow access to the resource dbname for the specified database name.</p>
Table Definition
| Column Name | Column Data Type |
|---|---|
| custom_domain_name Input Column The custom domain name associated with the workgroup. The custom domain name or the workgroup name must be included in the request. | VARCHAR |
| db_name Input Column The name of the database to get temporary authorization to log on to. Constraints:
| VARCHAR |
| duration_seconds Input Column The number of seconds until the returned temporary password expires. The minimum is 900 seconds, and the maximum is 3600 seconds. | BIGINT |
| workgroup_name Input Column The name of the workgroup associated with the database. | VARCHAR |
| _aws_profile Input Column The AWS profile defines the AWS identity used. It can be defined via credentials or by assuming a IAM role. | STRUCT( |
Show child fields
| |
| _aws_region Input Column The AWS region to use. | VARCHAR |
| db_password A temporary password that authorizes the user name returned by DbUser to log on to the database DbName. | VARCHAR |
| db_user A database user name that is authorized to log on to the database DbName using the password DbPassword. If the specified DbUser exists in the database, the new user name has the same database privileges as the the user named in DbUser. By default, the user is added to PUBLIC. | VARCHAR |
| expiration The date and time the password in DbPassword expires. | TIMESTAMP_S |
| next_refresh_time The date and time of when the DbUser and DbPassword authorization refreshes. | TIMESTAMP_S |