import * as core from "@terrascript/core"; export interface DbInstanceRoleAssociationArgs extends core.ResourceArgs { /** * (Required) DB Instance Identifier to associate with the IAM Role. */ dbInstanceIdentifier: string | core.StringOut; /** * (Required) Name of the feature for association. This can be found in the AWS documentation relevant * to the integration or a full list is available in the `SupportedFeatureNames` list returned by [AWS * CLI rds describe-db-engine-versions](https://docs.aws.amazon.com/cli/latest/reference/rds/describe-d * b-engine-versions.html). */ featureName: string | core.StringOut; /** * (Required) Amazon Resource Name (ARN) of the IAM Role to associate with the DB Instance. */ roleArn: string | core.StringOut; } export class DbInstanceRoleAssociation extends core.Resource { /** * (Required) DB Instance Identifier to associate with the IAM Role. */ @core.attr(String) public dbInstanceIdentifier!: string | core.StringOut; /** * (Required) Name of the feature for association. This can be found in the AWS documentation relevant * to the integration or a full list is available in the `SupportedFeatureNames` list returned by [AWS * CLI rds describe-db-engine-versions](https://docs.aws.amazon.com/cli/latest/reference/rds/describe-d * b-engine-versions.html). */ @core.attr(String) public featureName!: string | core.StringOut; /** * DB Instance Identifier and IAM Role ARN separated by a comma (`,`) */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Required) Amazon Resource Name (ARN) of the IAM Role to associate with the DB Instance. */ @core.attr(String) public roleArn!: string | core.StringOut; constructor(name: string, args?: DbInstanceRoleAssociationArgs) { super(name, "aws_db_instance_role_association", args); } public override getNamespace(): string { return "aws_rds"; } }