// generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; /** * AWS Relational Database Service */ export interface RdsClusterRoleAssociationConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/rds_cluster_role_association.html#db_cluster_identifier RdsClusterRoleAssociation#db_cluster_identifier} */ readonly dbClusterIdentifier: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/rds_cluster_role_association.html#feature_name RdsClusterRoleAssociation#feature_name} */ readonly featureName: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/rds_cluster_role_association.html#role_arn RdsClusterRoleAssociation#role_arn} */ readonly roleArn: string; } /** * Represents a {@link https://www.terraform.io/docs/providers/aws/r/rds_cluster_role_association.html aws_rds_cluster_role_association} */ export class RdsClusterRoleAssociation extends cdktf.TerraformResource { // ================= // STATIC PROPERTIES // ================= public static readonly tfResourceType: string = "aws_rds_cluster_role_association"; // =========== // INITIALIZER // =========== /** * Create a new {@link https://www.terraform.io/docs/providers/aws/r/rds_cluster_role_association.html aws_rds_cluster_role_association} Resource * * @param scope The scope in which to define this construct * @param id The scoped construct ID. Must be unique amongst siblings in the same scope * @param options RdsClusterRoleAssociationConfig */ public constructor(scope: Construct, id: string, config: RdsClusterRoleAssociationConfig) { super(scope, id, { terraformResourceType: 'aws_rds_cluster_role_association', terraformGeneratorMetadata: { providerName: 'aws' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle }); this._dbClusterIdentifier = config.dbClusterIdentifier; this._featureName = config.featureName; this._roleArn = config.roleArn; } // ========== // ATTRIBUTES // ========== // db_cluster_identifier - computed: false, optional: false, required: true private _dbClusterIdentifier?: string; public get dbClusterIdentifier() { return this.getStringAttribute('db_cluster_identifier'); } public set dbClusterIdentifier(value: string) { this._dbClusterIdentifier = value; } // Temporarily expose input value. Use with caution. public get dbClusterIdentifierInput() { return this._dbClusterIdentifier; } // feature_name - computed: false, optional: false, required: true private _featureName?: string; public get featureName() { return this.getStringAttribute('feature_name'); } public set featureName(value: string) { this._featureName = value; } // Temporarily expose input value. Use with caution. public get featureNameInput() { return this._featureName; } // id - computed: true, optional: true, required: false public get id() { return this.getStringAttribute('id'); } // role_arn - computed: false, optional: false, required: true private _roleArn?: string; public get roleArn() { return this.getStringAttribute('role_arn'); } public set roleArn(value: string) { this._roleArn = value; } // Temporarily expose input value. Use with caution. public get roleArnInput() { return this._roleArn; } // ========= // SYNTHESIS // ========= protected synthesizeAttributes(): { [name: string]: any } { return { db_cluster_identifier: cdktf.stringToTerraform(this._dbClusterIdentifier), feature_name: cdktf.stringToTerraform(this._featureName), role_arn: cdktf.stringToTerraform(this._roleArn), }; } }