// generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; /** * AWS Redshift */ export interface DataAwsRedshiftClusterConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/d/redshift_cluster.html#cluster_identifier DataAwsRedshiftCluster#cluster_identifier} */ readonly clusterIdentifier: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/d/redshift_cluster.html#tags DataAwsRedshiftCluster#tags} */ readonly tags?: { [key: string]: string } | cdktf.IResolvable; } /** * Represents a {@link https://www.terraform.io/docs/providers/aws/d/redshift_cluster.html aws_redshift_cluster} */ export class DataAwsRedshiftCluster extends cdktf.TerraformDataSource { // ================= // STATIC PROPERTIES // ================= public static readonly tfResourceType: string = "aws_redshift_cluster"; // =========== // INITIALIZER // =========== /** * Create a new {@link https://www.terraform.io/docs/providers/aws/d/redshift_cluster.html aws_redshift_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 DataAwsRedshiftClusterConfig */ public constructor(scope: Construct, id: string, config: DataAwsRedshiftClusterConfig) { super(scope, id, { terraformResourceType: 'aws_redshift_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 // ========== // allow_version_upgrade - computed: true, optional: false, required: false public get allowVersionUpgrade() { return this.getBooleanAttribute('allow_version_upgrade') as any; } // automated_snapshot_retention_period - computed: true, optional: false, required: false public get automatedSnapshotRetentionPeriod() { return this.getNumberAttribute('automated_snapshot_retention_period'); } // availability_zone - computed: true, optional: false, required: false public get availabilityZone() { return this.getStringAttribute('availability_zone'); } // bucket_name - computed: true, optional: false, required: false public get bucketName() { return this.getStringAttribute('bucket_name'); } // 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_parameter_group_name - computed: true, optional: false, required: false public get clusterParameterGroupName() { return this.getStringAttribute('cluster_parameter_group_name'); } // cluster_public_key - computed: true, optional: false, required: false public get clusterPublicKey() { return this.getStringAttribute('cluster_public_key'); } // cluster_revision_number - computed: true, optional: false, required: false public get clusterRevisionNumber() { return this.getStringAttribute('cluster_revision_number'); } // cluster_security_groups - computed: true, optional: false, required: false public get clusterSecurityGroups() { return this.getListAttribute('cluster_security_groups'); } // cluster_subnet_group_name - computed: true, optional: false, required: false public get clusterSubnetGroupName() { return this.getStringAttribute('cluster_subnet_group_name'); } // cluster_type - computed: true, optional: false, required: false public get clusterType() { return this.getStringAttribute('cluster_type'); } // cluster_version - computed: true, optional: false, required: false public get clusterVersion() { return this.getStringAttribute('cluster_version'); } // database_name - computed: true, optional: false, required: false public get databaseName() { return this.getStringAttribute('database_name'); } // elastic_ip - computed: true, optional: false, required: false public get elasticIp() { return this.getStringAttribute('elastic_ip'); } // enable_logging - computed: true, optional: false, required: false public get enableLogging() { return this.getBooleanAttribute('enable_logging') as any; } // encrypted - computed: true, optional: false, required: false public get encrypted() { return this.getBooleanAttribute('encrypted') as any; } // endpoint - computed: true, optional: false, required: false public get endpoint() { return this.getStringAttribute('endpoint'); } // enhanced_vpc_routing - computed: true, optional: false, required: false public get enhancedVpcRouting() { return this.getBooleanAttribute('enhanced_vpc_routing') 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'); } // node_type - computed: true, optional: false, required: false public get nodeType() { return this.getStringAttribute('node_type'); } // number_of_nodes - computed: true, optional: false, required: false public get numberOfNodes() { return this.getNumberAttribute('number_of_nodes'); } // port - computed: true, optional: false, required: false public get port() { return this.getNumberAttribute('port'); } // preferred_maintenance_window - computed: true, optional: false, required: false public get preferredMaintenanceWindow() { return this.getStringAttribute('preferred_maintenance_window'); } // publicly_accessible - computed: true, optional: false, required: false public get publiclyAccessible() { return this.getBooleanAttribute('publicly_accessible') as any; } // s3_key_prefix - computed: true, optional: false, required: false public get s3KeyPrefix() { return this.getStringAttribute('s3_key_prefix'); } // tags - computed: false, 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_id - computed: true, optional: false, required: false public get vpcId() { return this.getStringAttribute('vpc_id'); } // 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), }; } }