import * as core from "@terrascript/core"; export interface ClusterRoleAssociationArgs extends core.ResourceArgs { /** * (Required) DB Cluster Identifier to associate with the IAM Role. */ dbClusterIdentifier: 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 Cluster. */ roleArn: string | core.StringOut; } export class ClusterRoleAssociation extends core.Resource { /** * (Required) DB Cluster Identifier to associate with the IAM Role. */ @core.attr(String) public dbClusterIdentifier!: 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 Cluster 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 Cluster. */ @core.attr(String) public roleArn!: string | core.StringOut; constructor(name: string, args?: ClusterRoleAssociationArgs) { super(name, "aws_rds_cluster_role_association", args); } public override getNamespace(): string { return "aws_rds"; } }