// generated from terraform resource schema
import * as cdktf from 'cdktf';
/**
* Represents a {@link https://www.terraform.io/docs/providers/aws/r/opsworks_rds_db_instance aws_opsworks_rds_db_instance}
*/
export class OpsworksRdsDbInstance extends cdktf.TerraformResource {
    // =================
    // STATIC PROPERTIES
    // =================
    static tfResourceType = "aws_opsworks_rds_db_instance";
    // ===========
    // INITIALIZER
    // ===========
    /**
    * Create a new {@link https://www.terraform.io/docs/providers/aws/r/opsworks_rds_db_instance aws_opsworks_rds_db_instance} 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 OpsworksRdsDbInstanceConfig
    */
    constructor(scope, id, config) {
        super(scope, id, {
            terraformResourceType: 'aws_opsworks_rds_db_instance',
            terraformGeneratorMetadata: {
                providerName: 'aws'
            },
            provider: config.provider,
            dependsOn: config.dependsOn,
            count: config.count,
            lifecycle: config.lifecycle
        });
        this._dbPassword = config.dbPassword;
        this._dbUser = config.dbUser;
        this._rdsDbInstanceArn = config.rdsDbInstanceArn;
        this._stackId = config.stackId;
    }
    // ==========
    // ATTRIBUTES
    // ==========
    // db_password - computed: false, optional: false, required: true
    _dbPassword;
    get dbPassword() {
        return this.getStringAttribute('db_password');
    }
    set dbPassword(value) {
        this._dbPassword = value;
    }
    // Temporarily expose input value. Use with caution.
    get dbPasswordInput() {
        return this._dbPassword;
    }
    // db_user - computed: false, optional: false, required: true
    _dbUser;
    get dbUser() {
        return this.getStringAttribute('db_user');
    }
    set dbUser(value) {
        this._dbUser = value;
    }
    // Temporarily expose input value. Use with caution.
    get dbUserInput() {
        return this._dbUser;
    }
    // id - computed: true, optional: true, required: false
    get id() {
        return this.getStringAttribute('id');
    }
    // rds_db_instance_arn - computed: false, optional: false, required: true
    _rdsDbInstanceArn;
    get rdsDbInstanceArn() {
        return this.getStringAttribute('rds_db_instance_arn');
    }
    set rdsDbInstanceArn(value) {
        this._rdsDbInstanceArn = value;
    }
    // Temporarily expose input value. Use with caution.
    get rdsDbInstanceArnInput() {
        return this._rdsDbInstanceArn;
    }
    // stack_id - computed: false, optional: false, required: true
    _stackId;
    get stackId() {
        return this.getStringAttribute('stack_id');
    }
    set stackId(value) {
        this._stackId = value;
    }
    // Temporarily expose input value. Use with caution.
    get stackIdInput() {
        return this._stackId;
    }
    // =========
    // SYNTHESIS
    // =========
    synthesizeAttributes() {
        return {
            db_password: cdktf.stringToTerraform(this._dbPassword),
            db_user: cdktf.stringToTerraform(this._dbUser),
            rds_db_instance_arn: cdktf.stringToTerraform(this._rdsDbInstanceArn),
            stack_id: cdktf.stringToTerraform(this._stackId),
        };
    }
}
//# sourceMappingURL=opsworks-rds-db-instance.js.map