Data Source: awsRedshiftserverlessCredentials
Provides redshift serverless temporary credentials for a workgroup.
Example Usage
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
new aws.dataAwsRedshiftserverlessCredentials.DataAwsRedshiftserverlessCredentials(
this,
"example",
{
workgroupName: "${aws_redshiftserverless_workgroup.example.workgroup_name}",
}
);
Argument Reference
The following arguments are supported:
workgroupName
- (Required) The name of the workgroup associated with the database.dbName
- (Optional) The name of the database to get temporary authorization to log on to.durationSeconds
- (Optional) The number of seconds until the returned temporary password expires. The minimum is 900 seconds, and the maximum is 3600 seconds.
Attribute Reference
In addition to all arguments above, the following attributes are exported:
dbPassword
- Temporary password that authorizes the user name returned bydbUser
to log on to the databasedbName
.dbUser
- A database user name that is authorized to log on to the databasedbName
using the passworddbPassword
. If the specifieddbUser
exists in the database, the new user name has the same database privileges as the user named indbUser
. By default, the user is added to PUBLIC. the user doesn't exist in the database.expiration
- Date and time the password indbPassword
expires.