// generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; /** * AWS Relational Database Service */ export interface DataAwsRdsClusterConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/d/rds_cluster.html#cluster_identifier DataAwsRdsCluster#cluster_identifier} */ readonly clusterIdentifier: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/d/rds_cluster.html#tags DataAwsRdsCluster#tags} */ readonly tags?: { [key: string]: string } | cdktf.IResolvable; } /** * Represents a {@link https://www.terraform.io/docs/providers/aws/d/rds_cluster.html aws_rds_cluster} */ export class DataAwsRdsCluster extends cdktf.TerraformDataSource { // ================= // STATIC PROPERTIES // ================= public static readonly tfResourceType: string = "aws_rds_cluster"; // =========== // INITIALIZER // =========== /** * Create a new {@link https://www.terraform.io/docs/providers/aws/d/rds_cluster.html aws_rds_cluster} Data Source * * @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 DataAwsRdsClusterConfig */ public constructor(scope: Construct, id: string, config: DataAwsRdsClusterConfig) { super(scope, id, { terraformResourceType: 'aws_rds_cluster', terraformGeneratorMetadata: { providerName: 'aws' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle }); this._clusterIdentifier = config.clusterIdentifier; this._tags = config.tags; } // ========== // ATTRIBUTES // ========== // arn - computed: true, optional: false, required: false public get arn() { return this.getStringAttribute('arn'); } // availability_zones - computed: true, optional: false, required: false public get availabilityZones() { return this.getListAttribute('availability_zones'); } // backtrack_window - computed: true, optional: false, required: false public get backtrackWindow() { return this.getNumberAttribute('backtrack_window'); } // backup_retention_period - computed: true, optional: false, required: false public get backupRetentionPeriod() { return this.getNumberAttribute('backup_retention_period'); } // cluster_identifier - computed: false, optional: false, required: true private _clusterIdentifier?: string; public get clusterIdentifier() { return this.getStringAttribute('cluster_identifier'); } public set clusterIdentifier(value: string) { this._clusterIdentifier = value; } // Temporarily expose input value. Use with caution. public get clusterIdentifierInput() { return this._clusterIdentifier; } // cluster_members - computed: true, optional: false, required: false public get clusterMembers() { return this.getListAttribute('cluster_members'); } // cluster_resource_id - computed: true, optional: false, required: false public get clusterResourceId() { return this.getStringAttribute('cluster_resource_id'); } // database_name - computed: true, optional: false, required: false public get databaseName() { return this.getStringAttribute('database_name'); } // db_cluster_parameter_group_name - computed: true, optional: false, required: false public get dbClusterParameterGroupName() { return this.getStringAttribute('db_cluster_parameter_group_name'); } // db_subnet_group_name - computed: true, optional: false, required: false public get dbSubnetGroupName() { return this.getStringAttribute('db_subnet_group_name'); } // enabled_cloudwatch_logs_exports - computed: true, optional: false, required: false public get enabledCloudwatchLogsExports() { return this.getListAttribute('enabled_cloudwatch_logs_exports'); } // endpoint - computed: true, optional: false, required: false public get endpoint() { return this.getStringAttribute('endpoint'); } // engine - computed: true, optional: false, required: false public get engine() { return this.getStringAttribute('engine'); } // engine_version - computed: true, optional: false, required: false public get engineVersion() { return this.getStringAttribute('engine_version'); } // final_snapshot_identifier - computed: true, optional: false, required: false public get finalSnapshotIdentifier() { return this.getStringAttribute('final_snapshot_identifier'); } // hosted_zone_id - computed: true, optional: false, required: false public get hostedZoneId() { return this.getStringAttribute('hosted_zone_id'); } // iam_database_authentication_enabled - computed: true, optional: false, required: false public get iamDatabaseAuthenticationEnabled() { return this.getBooleanAttribute('iam_database_authentication_enabled') as any; } // iam_roles - computed: true, optional: false, required: false public get iamRoles() { return this.getListAttribute('iam_roles'); } // id - computed: true, optional: true, required: false public get id() { return this.getStringAttribute('id'); } // kms_key_id - computed: true, optional: false, required: false public get kmsKeyId() { return this.getStringAttribute('kms_key_id'); } // master_username - computed: true, optional: false, required: false public get masterUsername() { return this.getStringAttribute('master_username'); } // port - computed: true, optional: false, required: false public get port() { return this.getNumberAttribute('port'); } // preferred_backup_window - computed: true, optional: false, required: false public get preferredBackupWindow() { return this.getStringAttribute('preferred_backup_window'); } // preferred_maintenance_window - computed: true, optional: false, required: false public get preferredMaintenanceWindow() { return this.getStringAttribute('preferred_maintenance_window'); } // reader_endpoint - computed: true, optional: false, required: false public get readerEndpoint() { return this.getStringAttribute('reader_endpoint'); } // replication_source_identifier - computed: true, optional: false, required: false public get replicationSourceIdentifier() { return this.getStringAttribute('replication_source_identifier'); } // storage_encrypted - computed: true, optional: false, required: false public get storageEncrypted() { return this.getBooleanAttribute('storage_encrypted') as any; } // tags - computed: true, optional: true, required: false private _tags?: { [key: string]: string } | cdktf.IResolvable; public get tags() { // Getting the computed value is not yet implemented return this.interpolationForAttribute('tags') as any; } public set tags(value: { [key: string]: string } | cdktf.IResolvable) { this._tags = value; } public resetTags() { this._tags = undefined; } // Temporarily expose input value. Use with caution. public get tagsInput() { return this._tags; } // vpc_security_group_ids - computed: true, optional: false, required: false public get vpcSecurityGroupIds() { return this.getListAttribute('vpc_security_group_ids'); } // ========= // SYNTHESIS // ========= protected synthesizeAttributes(): { [name: string]: any } { return { cluster_identifier: cdktf.stringToTerraform(this._clusterIdentifier), tags: cdktf.hashMapper(cdktf.anyToTerraform)(this._tags), }; } }