// generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; /** * AWS Relational Database Service */ export interface RdsClusterConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/rds_cluster.html#allow_major_version_upgrade RdsCluster#allow_major_version_upgrade} */ readonly allowMajorVersionUpgrade?: boolean | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/rds_cluster.html#apply_immediately RdsCluster#apply_immediately} */ readonly applyImmediately?: boolean | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/rds_cluster.html#availability_zones RdsCluster#availability_zones} */ readonly availabilityZones?: string[]; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/rds_cluster.html#backtrack_window RdsCluster#backtrack_window} */ readonly backtrackWindow?: number; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/rds_cluster.html#backup_retention_period RdsCluster#backup_retention_period} */ readonly backupRetentionPeriod?: number; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/rds_cluster.html#cluster_identifier RdsCluster#cluster_identifier} */ readonly clusterIdentifier?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/rds_cluster.html#cluster_identifier_prefix RdsCluster#cluster_identifier_prefix} */ readonly clusterIdentifierPrefix?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/rds_cluster.html#cluster_members RdsCluster#cluster_members} */ readonly clusterMembers?: string[]; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/rds_cluster.html#copy_tags_to_snapshot RdsCluster#copy_tags_to_snapshot} */ readonly copyTagsToSnapshot?: boolean | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/rds_cluster.html#database_name RdsCluster#database_name} */ readonly databaseName?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/rds_cluster.html#db_cluster_parameter_group_name RdsCluster#db_cluster_parameter_group_name} */ readonly dbClusterParameterGroupName?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/rds_cluster.html#db_instance_parameter_group_name RdsCluster#db_instance_parameter_group_name} */ readonly dbInstanceParameterGroupName?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/rds_cluster.html#db_subnet_group_name RdsCluster#db_subnet_group_name} */ readonly dbSubnetGroupName?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/rds_cluster.html#deletion_protection RdsCluster#deletion_protection} */ readonly deletionProtection?: boolean | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/rds_cluster.html#enable_global_write_forwarding RdsCluster#enable_global_write_forwarding} */ readonly enableGlobalWriteForwarding?: boolean | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/rds_cluster.html#enable_http_endpoint RdsCluster#enable_http_endpoint} */ readonly enableHttpEndpoint?: boolean | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/rds_cluster.html#enabled_cloudwatch_logs_exports RdsCluster#enabled_cloudwatch_logs_exports} */ readonly enabledCloudwatchLogsExports?: string[]; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/rds_cluster.html#engine RdsCluster#engine} */ readonly engine?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/rds_cluster.html#engine_mode RdsCluster#engine_mode} */ readonly engineMode?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/rds_cluster.html#engine_version RdsCluster#engine_version} */ readonly engineVersion?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/rds_cluster.html#final_snapshot_identifier RdsCluster#final_snapshot_identifier} */ readonly finalSnapshotIdentifier?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/rds_cluster.html#global_cluster_identifier RdsCluster#global_cluster_identifier} */ readonly globalClusterIdentifier?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/rds_cluster.html#iam_database_authentication_enabled RdsCluster#iam_database_authentication_enabled} */ readonly iamDatabaseAuthenticationEnabled?: boolean | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/rds_cluster.html#iam_roles RdsCluster#iam_roles} */ readonly iamRoles?: string[]; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/rds_cluster.html#kms_key_id RdsCluster#kms_key_id} */ readonly kmsKeyId?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/rds_cluster.html#master_password RdsCluster#master_password} */ readonly masterPassword?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/rds_cluster.html#master_username RdsCluster#master_username} */ readonly masterUsername?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/rds_cluster.html#port RdsCluster#port} */ readonly port?: number; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/rds_cluster.html#preferred_backup_window RdsCluster#preferred_backup_window} */ readonly preferredBackupWindow?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/rds_cluster.html#preferred_maintenance_window RdsCluster#preferred_maintenance_window} */ readonly preferredMaintenanceWindow?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/rds_cluster.html#replication_source_identifier RdsCluster#replication_source_identifier} */ readonly replicationSourceIdentifier?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/rds_cluster.html#skip_final_snapshot RdsCluster#skip_final_snapshot} */ readonly skipFinalSnapshot?: boolean | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/rds_cluster.html#snapshot_identifier RdsCluster#snapshot_identifier} */ readonly snapshotIdentifier?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/rds_cluster.html#source_region RdsCluster#source_region} */ readonly sourceRegion?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/rds_cluster.html#storage_encrypted RdsCluster#storage_encrypted} */ readonly storageEncrypted?: boolean | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/rds_cluster.html#tags RdsCluster#tags} */ readonly tags?: { [key: string]: string } | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/rds_cluster.html#tags_all RdsCluster#tags_all} */ readonly tagsAll?: { [key: string]: string } | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/rds_cluster.html#vpc_security_group_ids RdsCluster#vpc_security_group_ids} */ readonly vpcSecurityGroupIds?: string[]; /** * restore_to_point_in_time block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/rds_cluster.html#restore_to_point_in_time RdsCluster#restore_to_point_in_time} */ readonly restoreToPointInTime?: RdsClusterRestoreToPointInTime; /** * s3_import block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/rds_cluster.html#s3_import RdsCluster#s3_import} */ readonly s3Import?: RdsClusterS3Import; /** * scaling_configuration block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/rds_cluster.html#scaling_configuration RdsCluster#scaling_configuration} */ readonly scalingConfiguration?: RdsClusterScalingConfiguration; /** * timeouts block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/rds_cluster.html#timeouts RdsCluster#timeouts} */ readonly timeouts?: RdsClusterTimeouts; } export interface RdsClusterRestoreToPointInTime { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/rds_cluster.html#restore_to_time RdsCluster#restore_to_time} */ readonly restoreToTime?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/rds_cluster.html#restore_type RdsCluster#restore_type} */ readonly restoreType?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/rds_cluster.html#source_cluster_identifier RdsCluster#source_cluster_identifier} */ readonly sourceClusterIdentifier: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/rds_cluster.html#use_latest_restorable_time RdsCluster#use_latest_restorable_time} */ readonly useLatestRestorableTime?: boolean | cdktf.IResolvable; } export function rdsClusterRestoreToPointInTimeToTerraform(struct?: RdsClusterRestoreToPointInTimeOutputReference | RdsClusterRestoreToPointInTime): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { restore_to_time: cdktf.stringToTerraform(struct!.restoreToTime), restore_type: cdktf.stringToTerraform(struct!.restoreType), source_cluster_identifier: cdktf.stringToTerraform(struct!.sourceClusterIdentifier), use_latest_restorable_time: cdktf.booleanToTerraform(struct!.useLatestRestorableTime), } } export class RdsClusterRestoreToPointInTimeOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): RdsClusterRestoreToPointInTime | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._restoreToTime !== undefined) { hasAnyValues = true; internalValueResult.restoreToTime = this._restoreToTime; } if (this._restoreType !== undefined) { hasAnyValues = true; internalValueResult.restoreType = this._restoreType; } if (this._sourceClusterIdentifier !== undefined) { hasAnyValues = true; internalValueResult.sourceClusterIdentifier = this._sourceClusterIdentifier; } if (this._useLatestRestorableTime !== undefined) { hasAnyValues = true; internalValueResult.useLatestRestorableTime = this._useLatestRestorableTime; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: RdsClusterRestoreToPointInTime | undefined) { if (value === undefined) { this.isEmptyObject = false; this._restoreToTime = undefined; this._restoreType = undefined; this._sourceClusterIdentifier = undefined; this._useLatestRestorableTime = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._restoreToTime = value.restoreToTime; this._restoreType = value.restoreType; this._sourceClusterIdentifier = value.sourceClusterIdentifier; this._useLatestRestorableTime = value.useLatestRestorableTime; } } // restore_to_time - computed: false, optional: true, required: false private _restoreToTime?: string; public get restoreToTime() { return this.getStringAttribute('restore_to_time'); } public set restoreToTime(value: string) { this._restoreToTime = value; } public resetRestoreToTime() { this._restoreToTime = undefined; } // Temporarily expose input value. Use with caution. public get restoreToTimeInput() { return this._restoreToTime; } // restore_type - computed: false, optional: true, required: false private _restoreType?: string; public get restoreType() { return this.getStringAttribute('restore_type'); } public set restoreType(value: string) { this._restoreType = value; } public resetRestoreType() { this._restoreType = undefined; } // Temporarily expose input value. Use with caution. public get restoreTypeInput() { return this._restoreType; } // source_cluster_identifier - computed: false, optional: false, required: true private _sourceClusterIdentifier?: string; public get sourceClusterIdentifier() { return this.getStringAttribute('source_cluster_identifier'); } public set sourceClusterIdentifier(value: string) { this._sourceClusterIdentifier = value; } // Temporarily expose input value. Use with caution. public get sourceClusterIdentifierInput() { return this._sourceClusterIdentifier; } // use_latest_restorable_time - computed: false, optional: true, required: false private _useLatestRestorableTime?: boolean | cdktf.IResolvable; public get useLatestRestorableTime() { return this.getBooleanAttribute('use_latest_restorable_time') as any; } public set useLatestRestorableTime(value: boolean | cdktf.IResolvable) { this._useLatestRestorableTime = value; } public resetUseLatestRestorableTime() { this._useLatestRestorableTime = undefined; } // Temporarily expose input value. Use with caution. public get useLatestRestorableTimeInput() { return this._useLatestRestorableTime; } } export interface RdsClusterS3Import { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/rds_cluster.html#bucket_name RdsCluster#bucket_name} */ readonly bucketName: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/rds_cluster.html#bucket_prefix RdsCluster#bucket_prefix} */ readonly bucketPrefix?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/rds_cluster.html#ingestion_role RdsCluster#ingestion_role} */ readonly ingestionRole: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/rds_cluster.html#source_engine RdsCluster#source_engine} */ readonly sourceEngine: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/rds_cluster.html#source_engine_version RdsCluster#source_engine_version} */ readonly sourceEngineVersion: string; } export function rdsClusterS3ImportToTerraform(struct?: RdsClusterS3ImportOutputReference | RdsClusterS3Import): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { bucket_name: cdktf.stringToTerraform(struct!.bucketName), bucket_prefix: cdktf.stringToTerraform(struct!.bucketPrefix), ingestion_role: cdktf.stringToTerraform(struct!.ingestionRole), source_engine: cdktf.stringToTerraform(struct!.sourceEngine), source_engine_version: cdktf.stringToTerraform(struct!.sourceEngineVersion), } } export class RdsClusterS3ImportOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): RdsClusterS3Import | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._bucketName !== undefined) { hasAnyValues = true; internalValueResult.bucketName = this._bucketName; } if (this._bucketPrefix !== undefined) { hasAnyValues = true; internalValueResult.bucketPrefix = this._bucketPrefix; } if (this._ingestionRole !== undefined) { hasAnyValues = true; internalValueResult.ingestionRole = this._ingestionRole; } if (this._sourceEngine !== undefined) { hasAnyValues = true; internalValueResult.sourceEngine = this._sourceEngine; } if (this._sourceEngineVersion !== undefined) { hasAnyValues = true; internalValueResult.sourceEngineVersion = this._sourceEngineVersion; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: RdsClusterS3Import | undefined) { if (value === undefined) { this.isEmptyObject = false; this._bucketName = undefined; this._bucketPrefix = undefined; this._ingestionRole = undefined; this._sourceEngine = undefined; this._sourceEngineVersion = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._bucketName = value.bucketName; this._bucketPrefix = value.bucketPrefix; this._ingestionRole = value.ingestionRole; this._sourceEngine = value.sourceEngine; this._sourceEngineVersion = value.sourceEngineVersion; } } // bucket_name - computed: false, optional: false, required: true private _bucketName?: string; public get bucketName() { return this.getStringAttribute('bucket_name'); } public set bucketName(value: string) { this._bucketName = value; } // Temporarily expose input value. Use with caution. public get bucketNameInput() { return this._bucketName; } // bucket_prefix - computed: false, optional: true, required: false private _bucketPrefix?: string; public get bucketPrefix() { return this.getStringAttribute('bucket_prefix'); } public set bucketPrefix(value: string) { this._bucketPrefix = value; } public resetBucketPrefix() { this._bucketPrefix = undefined; } // Temporarily expose input value. Use with caution. public get bucketPrefixInput() { return this._bucketPrefix; } // ingestion_role - computed: false, optional: false, required: true private _ingestionRole?: string; public get ingestionRole() { return this.getStringAttribute('ingestion_role'); } public set ingestionRole(value: string) { this._ingestionRole = value; } // Temporarily expose input value. Use with caution. public get ingestionRoleInput() { return this._ingestionRole; } // source_engine - computed: false, optional: false, required: true private _sourceEngine?: string; public get sourceEngine() { return this.getStringAttribute('source_engine'); } public set sourceEngine(value: string) { this._sourceEngine = value; } // Temporarily expose input value. Use with caution. public get sourceEngineInput() { return this._sourceEngine; } // source_engine_version - computed: false, optional: false, required: true private _sourceEngineVersion?: string; public get sourceEngineVersion() { return this.getStringAttribute('source_engine_version'); } public set sourceEngineVersion(value: string) { this._sourceEngineVersion = value; } // Temporarily expose input value. Use with caution. public get sourceEngineVersionInput() { return this._sourceEngineVersion; } } export interface RdsClusterScalingConfiguration { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/rds_cluster.html#auto_pause RdsCluster#auto_pause} */ readonly autoPause?: boolean | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/rds_cluster.html#max_capacity RdsCluster#max_capacity} */ readonly maxCapacity?: number; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/rds_cluster.html#min_capacity RdsCluster#min_capacity} */ readonly minCapacity?: number; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/rds_cluster.html#seconds_until_auto_pause RdsCluster#seconds_until_auto_pause} */ readonly secondsUntilAutoPause?: number; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/rds_cluster.html#timeout_action RdsCluster#timeout_action} */ readonly timeoutAction?: string; } export function rdsClusterScalingConfigurationToTerraform(struct?: RdsClusterScalingConfigurationOutputReference | RdsClusterScalingConfiguration): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { auto_pause: cdktf.booleanToTerraform(struct!.autoPause), max_capacity: cdktf.numberToTerraform(struct!.maxCapacity), min_capacity: cdktf.numberToTerraform(struct!.minCapacity), seconds_until_auto_pause: cdktf.numberToTerraform(struct!.secondsUntilAutoPause), timeout_action: cdktf.stringToTerraform(struct!.timeoutAction), } } export class RdsClusterScalingConfigurationOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): RdsClusterScalingConfiguration | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._autoPause !== undefined) { hasAnyValues = true; internalValueResult.autoPause = this._autoPause; } if (this._maxCapacity !== undefined) { hasAnyValues = true; internalValueResult.maxCapacity = this._maxCapacity; } if (this._minCapacity !== undefined) { hasAnyValues = true; internalValueResult.minCapacity = this._minCapacity; } if (this._secondsUntilAutoPause !== undefined) { hasAnyValues = true; internalValueResult.secondsUntilAutoPause = this._secondsUntilAutoPause; } if (this._timeoutAction !== undefined) { hasAnyValues = true; internalValueResult.timeoutAction = this._timeoutAction; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: RdsClusterScalingConfiguration | undefined) { if (value === undefined) { this.isEmptyObject = false; this._autoPause = undefined; this._maxCapacity = undefined; this._minCapacity = undefined; this._secondsUntilAutoPause = undefined; this._timeoutAction = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._autoPause = value.autoPause; this._maxCapacity = value.maxCapacity; this._minCapacity = value.minCapacity; this._secondsUntilAutoPause = value.secondsUntilAutoPause; this._timeoutAction = value.timeoutAction; } } // auto_pause - computed: false, optional: true, required: false private _autoPause?: boolean | cdktf.IResolvable; public get autoPause() { return this.getBooleanAttribute('auto_pause') as any; } public set autoPause(value: boolean | cdktf.IResolvable) { this._autoPause = value; } public resetAutoPause() { this._autoPause = undefined; } // Temporarily expose input value. Use with caution. public get autoPauseInput() { return this._autoPause; } // max_capacity - computed: false, optional: true, required: false private _maxCapacity?: number; public get maxCapacity() { return this.getNumberAttribute('max_capacity'); } public set maxCapacity(value: number) { this._maxCapacity = value; } public resetMaxCapacity() { this._maxCapacity = undefined; } // Temporarily expose input value. Use with caution. public get maxCapacityInput() { return this._maxCapacity; } // min_capacity - computed: false, optional: true, required: false private _minCapacity?: number; public get minCapacity() { return this.getNumberAttribute('min_capacity'); } public set minCapacity(value: number) { this._minCapacity = value; } public resetMinCapacity() { this._minCapacity = undefined; } // Temporarily expose input value. Use with caution. public get minCapacityInput() { return this._minCapacity; } // seconds_until_auto_pause - computed: false, optional: true, required: false private _secondsUntilAutoPause?: number; public get secondsUntilAutoPause() { return this.getNumberAttribute('seconds_until_auto_pause'); } public set secondsUntilAutoPause(value: number) { this._secondsUntilAutoPause = value; } public resetSecondsUntilAutoPause() { this._secondsUntilAutoPause = undefined; } // Temporarily expose input value. Use with caution. public get secondsUntilAutoPauseInput() { return this._secondsUntilAutoPause; } // timeout_action - computed: false, optional: true, required: false private _timeoutAction?: string; public get timeoutAction() { return this.getStringAttribute('timeout_action'); } public set timeoutAction(value: string) { this._timeoutAction = value; } public resetTimeoutAction() { this._timeoutAction = undefined; } // Temporarily expose input value. Use with caution. public get timeoutActionInput() { return this._timeoutAction; } } export interface RdsClusterTimeouts { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/rds_cluster.html#create RdsCluster#create} */ readonly create?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/rds_cluster.html#delete RdsCluster#delete} */ readonly delete?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/rds_cluster.html#update RdsCluster#update} */ readonly update?: string; } export function rdsClusterTimeoutsToTerraform(struct?: RdsClusterTimeoutsOutputReference | RdsClusterTimeouts): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { create: cdktf.stringToTerraform(struct!.create), delete: cdktf.stringToTerraform(struct!.delete), update: cdktf.stringToTerraform(struct!.update), } } export class RdsClusterTimeoutsOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): RdsClusterTimeouts | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._create !== undefined) { hasAnyValues = true; internalValueResult.create = this._create; } if (this._delete !== undefined) { hasAnyValues = true; internalValueResult.delete = this._delete; } if (this._update !== undefined) { hasAnyValues = true; internalValueResult.update = this._update; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: RdsClusterTimeouts | undefined) { if (value === undefined) { this.isEmptyObject = false; this._create = undefined; this._delete = undefined; this._update = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._create = value.create; this._delete = value.delete; this._update = value.update; } } // create - computed: false, optional: true, required: false private _create?: string; public get create() { return this.getStringAttribute('create'); } public set create(value: string) { this._create = value; } public resetCreate() { this._create = undefined; } // Temporarily expose input value. Use with caution. public get createInput() { return this._create; } // delete - computed: false, optional: true, required: false private _delete?: string; public get delete() { return this.getStringAttribute('delete'); } public set delete(value: string) { this._delete = value; } public resetDelete() { this._delete = undefined; } // Temporarily expose input value. Use with caution. public get deleteInput() { return this._delete; } // update - computed: false, optional: true, required: false private _update?: string; public get update() { return this.getStringAttribute('update'); } public set update(value: string) { this._update = value; } public resetUpdate() { this._update = undefined; } // Temporarily expose input value. Use with caution. public get updateInput() { return this._update; } } /** * Represents a {@link https://www.terraform.io/docs/providers/aws/r/rds_cluster.html aws_rds_cluster} */ export class RdsCluster extends cdktf.TerraformResource { // ================= // STATIC PROPERTIES // ================= public static readonly tfResourceType: string = "aws_rds_cluster"; // =========== // INITIALIZER // =========== /** * Create a new {@link https://www.terraform.io/docs/providers/aws/r/rds_cluster.html aws_rds_cluster} 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 RdsClusterConfig = {} */ public constructor(scope: Construct, id: string, config: RdsClusterConfig = {}) { super(scope, id, { terraformResourceType: 'aws_rds_cluster', terraformGeneratorMetadata: { providerName: 'aws' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle }); this._allowMajorVersionUpgrade = config.allowMajorVersionUpgrade; this._applyImmediately = config.applyImmediately; this._availabilityZones = config.availabilityZones; this._backtrackWindow = config.backtrackWindow; this._backupRetentionPeriod = config.backupRetentionPeriod; this._clusterIdentifier = config.clusterIdentifier; this._clusterIdentifierPrefix = config.clusterIdentifierPrefix; this._clusterMembers = config.clusterMembers; this._copyTagsToSnapshot = config.copyTagsToSnapshot; this._databaseName = config.databaseName; this._dbClusterParameterGroupName = config.dbClusterParameterGroupName; this._dbInstanceParameterGroupName = config.dbInstanceParameterGroupName; this._dbSubnetGroupName = config.dbSubnetGroupName; this._deletionProtection = config.deletionProtection; this._enableGlobalWriteForwarding = config.enableGlobalWriteForwarding; this._enableHttpEndpoint = config.enableHttpEndpoint; this._enabledCloudwatchLogsExports = config.enabledCloudwatchLogsExports; this._engine = config.engine; this._engineMode = config.engineMode; this._engineVersion = config.engineVersion; this._finalSnapshotIdentifier = config.finalSnapshotIdentifier; this._globalClusterIdentifier = config.globalClusterIdentifier; this._iamDatabaseAuthenticationEnabled = config.iamDatabaseAuthenticationEnabled; this._iamRoles = config.iamRoles; this._kmsKeyId = config.kmsKeyId; this._masterPassword = config.masterPassword; this._masterUsername = config.masterUsername; this._port = config.port; this._preferredBackupWindow = config.preferredBackupWindow; this._preferredMaintenanceWindow = config.preferredMaintenanceWindow; this._replicationSourceIdentifier = config.replicationSourceIdentifier; this._skipFinalSnapshot = config.skipFinalSnapshot; this._snapshotIdentifier = config.snapshotIdentifier; this._sourceRegion = config.sourceRegion; this._storageEncrypted = config.storageEncrypted; this._tags = config.tags; this._tagsAll = config.tagsAll; this._vpcSecurityGroupIds = config.vpcSecurityGroupIds; this._restoreToPointInTime.internalValue = config.restoreToPointInTime; this._s3Import.internalValue = config.s3Import; this._scalingConfiguration.internalValue = config.scalingConfiguration; this._timeouts.internalValue = config.timeouts; } // ========== // ATTRIBUTES // ========== // allow_major_version_upgrade - computed: false, optional: true, required: false private _allowMajorVersionUpgrade?: boolean | cdktf.IResolvable; public get allowMajorVersionUpgrade() { return this.getBooleanAttribute('allow_major_version_upgrade') as any; } public set allowMajorVersionUpgrade(value: boolean | cdktf.IResolvable) { this._allowMajorVersionUpgrade = value; } public resetAllowMajorVersionUpgrade() { this._allowMajorVersionUpgrade = undefined; } // Temporarily expose input value. Use with caution. public get allowMajorVersionUpgradeInput() { return this._allowMajorVersionUpgrade; } // apply_immediately - computed: true, optional: true, required: false private _applyImmediately?: boolean | cdktf.IResolvable; public get applyImmediately() { return this.getBooleanAttribute('apply_immediately') as any; } public set applyImmediately(value: boolean | cdktf.IResolvable) { this._applyImmediately = value; } public resetApplyImmediately() { this._applyImmediately = undefined; } // Temporarily expose input value. Use with caution. public get applyImmediatelyInput() { return this._applyImmediately; } // arn - computed: true, optional: false, required: false public get arn() { return this.getStringAttribute('arn'); } // availability_zones - computed: true, optional: true, required: false private _availabilityZones?: string[]; public get availabilityZones() { return this.getListAttribute('availability_zones'); } public set availabilityZones(value: string[]) { this._availabilityZones = value; } public resetAvailabilityZones() { this._availabilityZones = undefined; } // Temporarily expose input value. Use with caution. public get availabilityZonesInput() { return this._availabilityZones; } // backtrack_window - computed: false, optional: true, required: false private _backtrackWindow?: number; public get backtrackWindow() { return this.getNumberAttribute('backtrack_window'); } public set backtrackWindow(value: number) { this._backtrackWindow = value; } public resetBacktrackWindow() { this._backtrackWindow = undefined; } // Temporarily expose input value. Use with caution. public get backtrackWindowInput() { return this._backtrackWindow; } // backup_retention_period - computed: false, optional: true, required: false private _backupRetentionPeriod?: number; public get backupRetentionPeriod() { return this.getNumberAttribute('backup_retention_period'); } public set backupRetentionPeriod(value: number) { this._backupRetentionPeriod = value; } public resetBackupRetentionPeriod() { this._backupRetentionPeriod = undefined; } // Temporarily expose input value. Use with caution. public get backupRetentionPeriodInput() { return this._backupRetentionPeriod; } // cluster_identifier - computed: true, optional: true, required: false private _clusterIdentifier?: string; public get clusterIdentifier() { return this.getStringAttribute('cluster_identifier'); } public set clusterIdentifier(value: string) { this._clusterIdentifier = value; } public resetClusterIdentifier() { this._clusterIdentifier = undefined; } // Temporarily expose input value. Use with caution. public get clusterIdentifierInput() { return this._clusterIdentifier; } // cluster_identifier_prefix - computed: true, optional: true, required: false private _clusterIdentifierPrefix?: string; public get clusterIdentifierPrefix() { return this.getStringAttribute('cluster_identifier_prefix'); } public set clusterIdentifierPrefix(value: string) { this._clusterIdentifierPrefix = value; } public resetClusterIdentifierPrefix() { this._clusterIdentifierPrefix = undefined; } // Temporarily expose input value. Use with caution. public get clusterIdentifierPrefixInput() { return this._clusterIdentifierPrefix; } // cluster_members - computed: true, optional: true, required: false private _clusterMembers?: string[]; public get clusterMembers() { return this.getListAttribute('cluster_members'); } public set clusterMembers(value: string[]) { this._clusterMembers = value; } public resetClusterMembers() { this._clusterMembers = undefined; } // Temporarily expose input value. Use with caution. public get clusterMembersInput() { return this._clusterMembers; } // cluster_resource_id - computed: true, optional: false, required: false public get clusterResourceId() { return this.getStringAttribute('cluster_resource_id'); } // copy_tags_to_snapshot - computed: false, optional: true, required: false private _copyTagsToSnapshot?: boolean | cdktf.IResolvable; public get copyTagsToSnapshot() { return this.getBooleanAttribute('copy_tags_to_snapshot') as any; } public set copyTagsToSnapshot(value: boolean | cdktf.IResolvable) { this._copyTagsToSnapshot = value; } public resetCopyTagsToSnapshot() { this._copyTagsToSnapshot = undefined; } // Temporarily expose input value. Use with caution. public get copyTagsToSnapshotInput() { return this._copyTagsToSnapshot; } // database_name - computed: true, optional: true, required: false private _databaseName?: string; public get databaseName() { return this.getStringAttribute('database_name'); } public set databaseName(value: string) { this._databaseName = value; } public resetDatabaseName() { this._databaseName = undefined; } // Temporarily expose input value. Use with caution. public get databaseNameInput() { return this._databaseName; } // db_cluster_parameter_group_name - computed: true, optional: true, required: false private _dbClusterParameterGroupName?: string; public get dbClusterParameterGroupName() { return this.getStringAttribute('db_cluster_parameter_group_name'); } public set dbClusterParameterGroupName(value: string) { this._dbClusterParameterGroupName = value; } public resetDbClusterParameterGroupName() { this._dbClusterParameterGroupName = undefined; } // Temporarily expose input value. Use with caution. public get dbClusterParameterGroupNameInput() { return this._dbClusterParameterGroupName; } // db_instance_parameter_group_name - computed: false, optional: true, required: false private _dbInstanceParameterGroupName?: string; public get dbInstanceParameterGroupName() { return this.getStringAttribute('db_instance_parameter_group_name'); } public set dbInstanceParameterGroupName(value: string) { this._dbInstanceParameterGroupName = value; } public resetDbInstanceParameterGroupName() { this._dbInstanceParameterGroupName = undefined; } // Temporarily expose input value. Use with caution. public get dbInstanceParameterGroupNameInput() { return this._dbInstanceParameterGroupName; } // db_subnet_group_name - computed: true, optional: true, required: false private _dbSubnetGroupName?: string; public get dbSubnetGroupName() { return this.getStringAttribute('db_subnet_group_name'); } public set dbSubnetGroupName(value: string) { this._dbSubnetGroupName = value; } public resetDbSubnetGroupName() { this._dbSubnetGroupName = undefined; } // Temporarily expose input value. Use with caution. public get dbSubnetGroupNameInput() { return this._dbSubnetGroupName; } // deletion_protection - computed: false, optional: true, required: false private _deletionProtection?: boolean | cdktf.IResolvable; public get deletionProtection() { return this.getBooleanAttribute('deletion_protection') as any; } public set deletionProtection(value: boolean | cdktf.IResolvable) { this._deletionProtection = value; } public resetDeletionProtection() { this._deletionProtection = undefined; } // Temporarily expose input value. Use with caution. public get deletionProtectionInput() { return this._deletionProtection; } // enable_global_write_forwarding - computed: false, optional: true, required: false private _enableGlobalWriteForwarding?: boolean | cdktf.IResolvable; public get enableGlobalWriteForwarding() { return this.getBooleanAttribute('enable_global_write_forwarding') as any; } public set enableGlobalWriteForwarding(value: boolean | cdktf.IResolvable) { this._enableGlobalWriteForwarding = value; } public resetEnableGlobalWriteForwarding() { this._enableGlobalWriteForwarding = undefined; } // Temporarily expose input value. Use with caution. public get enableGlobalWriteForwardingInput() { return this._enableGlobalWriteForwarding; } // enable_http_endpoint - computed: false, optional: true, required: false private _enableHttpEndpoint?: boolean | cdktf.IResolvable; public get enableHttpEndpoint() { return this.getBooleanAttribute('enable_http_endpoint') as any; } public set enableHttpEndpoint(value: boolean | cdktf.IResolvable) { this._enableHttpEndpoint = value; } public resetEnableHttpEndpoint() { this._enableHttpEndpoint = undefined; } // Temporarily expose input value. Use with caution. public get enableHttpEndpointInput() { return this._enableHttpEndpoint; } // enabled_cloudwatch_logs_exports - computed: false, optional: true, required: false private _enabledCloudwatchLogsExports?: string[]; public get enabledCloudwatchLogsExports() { return this.getListAttribute('enabled_cloudwatch_logs_exports'); } public set enabledCloudwatchLogsExports(value: string[]) { this._enabledCloudwatchLogsExports = value; } public resetEnabledCloudwatchLogsExports() { this._enabledCloudwatchLogsExports = undefined; } // Temporarily expose input value. Use with caution. public get enabledCloudwatchLogsExportsInput() { return this._enabledCloudwatchLogsExports; } // endpoint - computed: true, optional: false, required: false public get endpoint() { return this.getStringAttribute('endpoint'); } // engine - computed: false, optional: true, required: false private _engine?: string; public get engine() { return this.getStringAttribute('engine'); } public set engine(value: string) { this._engine = value; } public resetEngine() { this._engine = undefined; } // Temporarily expose input value. Use with caution. public get engineInput() { return this._engine; } // engine_mode - computed: false, optional: true, required: false private _engineMode?: string; public get engineMode() { return this.getStringAttribute('engine_mode'); } public set engineMode(value: string) { this._engineMode = value; } public resetEngineMode() { this._engineMode = undefined; } // Temporarily expose input value. Use with caution. public get engineModeInput() { return this._engineMode; } // engine_version - computed: true, optional: true, required: false private _engineVersion?: string; public get engineVersion() { return this.getStringAttribute('engine_version'); } public set engineVersion(value: string) { this._engineVersion = value; } public resetEngineVersion() { this._engineVersion = undefined; } // Temporarily expose input value. Use with caution. public get engineVersionInput() { return this._engineVersion; } // engine_version_actual - computed: true, optional: false, required: false public get engineVersionActual() { return this.getStringAttribute('engine_version_actual'); } // final_snapshot_identifier - computed: false, optional: true, required: false private _finalSnapshotIdentifier?: string; public get finalSnapshotIdentifier() { return this.getStringAttribute('final_snapshot_identifier'); } public set finalSnapshotIdentifier(value: string) { this._finalSnapshotIdentifier = value; } public resetFinalSnapshotIdentifier() { this._finalSnapshotIdentifier = undefined; } // Temporarily expose input value. Use with caution. public get finalSnapshotIdentifierInput() { return this._finalSnapshotIdentifier; } // global_cluster_identifier - computed: false, optional: true, required: false private _globalClusterIdentifier?: string; public get globalClusterIdentifier() { return this.getStringAttribute('global_cluster_identifier'); } public set globalClusterIdentifier(value: string) { this._globalClusterIdentifier = value; } public resetGlobalClusterIdentifier() { this._globalClusterIdentifier = undefined; } // Temporarily expose input value. Use with caution. public get globalClusterIdentifierInput() { return this._globalClusterIdentifier; } // hosted_zone_id - computed: true, optional: false, required: false public get hostedZoneId() { return this.getStringAttribute('hosted_zone_id'); } // iam_database_authentication_enabled - computed: false, optional: true, required: false private _iamDatabaseAuthenticationEnabled?: boolean | cdktf.IResolvable; public get iamDatabaseAuthenticationEnabled() { return this.getBooleanAttribute('iam_database_authentication_enabled') as any; } public set iamDatabaseAuthenticationEnabled(value: boolean | cdktf.IResolvable) { this._iamDatabaseAuthenticationEnabled = value; } public resetIamDatabaseAuthenticationEnabled() { this._iamDatabaseAuthenticationEnabled = undefined; } // Temporarily expose input value. Use with caution. public get iamDatabaseAuthenticationEnabledInput() { return this._iamDatabaseAuthenticationEnabled; } // iam_roles - computed: true, optional: true, required: false private _iamRoles?: string[]; public get iamRoles() { return this.getListAttribute('iam_roles'); } public set iamRoles(value: string[]) { this._iamRoles = value; } public resetIamRoles() { this._iamRoles = undefined; } // Temporarily expose input value. Use with caution. public get iamRolesInput() { return this._iamRoles; } // id - computed: true, optional: true, required: false public get id() { return this.getStringAttribute('id'); } // kms_key_id - computed: true, optional: true, required: false private _kmsKeyId?: string; public get kmsKeyId() { return this.getStringAttribute('kms_key_id'); } public set kmsKeyId(value: string) { this._kmsKeyId = value; } public resetKmsKeyId() { this._kmsKeyId = undefined; } // Temporarily expose input value. Use with caution. public get kmsKeyIdInput() { return this._kmsKeyId; } // master_password - computed: false, optional: true, required: false private _masterPassword?: string; public get masterPassword() { return this.getStringAttribute('master_password'); } public set masterPassword(value: string) { this._masterPassword = value; } public resetMasterPassword() { this._masterPassword = undefined; } // Temporarily expose input value. Use with caution. public get masterPasswordInput() { return this._masterPassword; } // master_username - computed: true, optional: true, required: false private _masterUsername?: string; public get masterUsername() { return this.getStringAttribute('master_username'); } public set masterUsername(value: string) { this._masterUsername = value; } public resetMasterUsername() { this._masterUsername = undefined; } // Temporarily expose input value. Use with caution. public get masterUsernameInput() { return this._masterUsername; } // port - computed: true, optional: true, required: false private _port?: number; public get port() { return this.getNumberAttribute('port'); } public set port(value: number) { this._port = value; } public resetPort() { this._port = undefined; } // Temporarily expose input value. Use with caution. public get portInput() { return this._port; } // preferred_backup_window - computed: true, optional: true, required: false private _preferredBackupWindow?: string; public get preferredBackupWindow() { return this.getStringAttribute('preferred_backup_window'); } public set preferredBackupWindow(value: string) { this._preferredBackupWindow = value; } public resetPreferredBackupWindow() { this._preferredBackupWindow = undefined; } // Temporarily expose input value. Use with caution. public get preferredBackupWindowInput() { return this._preferredBackupWindow; } // preferred_maintenance_window - computed: true, optional: true, required: false private _preferredMaintenanceWindow?: string; public get preferredMaintenanceWindow() { return this.getStringAttribute('preferred_maintenance_window'); } public set preferredMaintenanceWindow(value: string) { this._preferredMaintenanceWindow = value; } public resetPreferredMaintenanceWindow() { this._preferredMaintenanceWindow = undefined; } // Temporarily expose input value. Use with caution. public get preferredMaintenanceWindowInput() { return this._preferredMaintenanceWindow; } // reader_endpoint - computed: true, optional: false, required: false public get readerEndpoint() { return this.getStringAttribute('reader_endpoint'); } // replication_source_identifier - computed: false, optional: true, required: false private _replicationSourceIdentifier?: string; public get replicationSourceIdentifier() { return this.getStringAttribute('replication_source_identifier'); } public set replicationSourceIdentifier(value: string) { this._replicationSourceIdentifier = value; } public resetReplicationSourceIdentifier() { this._replicationSourceIdentifier = undefined; } // Temporarily expose input value. Use with caution. public get replicationSourceIdentifierInput() { return this._replicationSourceIdentifier; } // skip_final_snapshot - computed: false, optional: true, required: false private _skipFinalSnapshot?: boolean | cdktf.IResolvable; public get skipFinalSnapshot() { return this.getBooleanAttribute('skip_final_snapshot') as any; } public set skipFinalSnapshot(value: boolean | cdktf.IResolvable) { this._skipFinalSnapshot = value; } public resetSkipFinalSnapshot() { this._skipFinalSnapshot = undefined; } // Temporarily expose input value. Use with caution. public get skipFinalSnapshotInput() { return this._skipFinalSnapshot; } // snapshot_identifier - computed: false, optional: true, required: false private _snapshotIdentifier?: string; public get snapshotIdentifier() { return this.getStringAttribute('snapshot_identifier'); } public set snapshotIdentifier(value: string) { this._snapshotIdentifier = value; } public resetSnapshotIdentifier() { this._snapshotIdentifier = undefined; } // Temporarily expose input value. Use with caution. public get snapshotIdentifierInput() { return this._snapshotIdentifier; } // source_region - computed: false, optional: true, required: false private _sourceRegion?: string; public get sourceRegion() { return this.getStringAttribute('source_region'); } public set sourceRegion(value: string) { this._sourceRegion = value; } public resetSourceRegion() { this._sourceRegion = undefined; } // Temporarily expose input value. Use with caution. public get sourceRegionInput() { return this._sourceRegion; } // storage_encrypted - computed: true, optional: true, required: false private _storageEncrypted?: boolean | cdktf.IResolvable; public get storageEncrypted() { return this.getBooleanAttribute('storage_encrypted') as any; } public set storageEncrypted(value: boolean | cdktf.IResolvable) { this._storageEncrypted = value; } public resetStorageEncrypted() { this._storageEncrypted = undefined; } // Temporarily expose input value. Use with caution. public get storageEncryptedInput() { return this._storageEncrypted; } // 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; } // tags_all - computed: true, optional: true, required: false private _tagsAll?: { [key: string]: string } | cdktf.IResolvable; public get tagsAll() { // Getting the computed value is not yet implemented return this.interpolationForAttribute('tags_all') as any; } public set tagsAll(value: { [key: string]: string } | cdktf.IResolvable) { this._tagsAll = value; } public resetTagsAll() { this._tagsAll = undefined; } // Temporarily expose input value. Use with caution. public get tagsAllInput() { return this._tagsAll; } // vpc_security_group_ids - computed: true, optional: true, required: false private _vpcSecurityGroupIds?: string[]; public get vpcSecurityGroupIds() { return this.getListAttribute('vpc_security_group_ids'); } public set vpcSecurityGroupIds(value: string[]) { this._vpcSecurityGroupIds = value; } public resetVpcSecurityGroupIds() { this._vpcSecurityGroupIds = undefined; } // Temporarily expose input value. Use with caution. public get vpcSecurityGroupIdsInput() { return this._vpcSecurityGroupIds; } // restore_to_point_in_time - computed: false, optional: true, required: false private _restoreToPointInTime = new RdsClusterRestoreToPointInTimeOutputReference(this as any, "restore_to_point_in_time", true); public get restoreToPointInTime() { return this._restoreToPointInTime; } public putRestoreToPointInTime(value: RdsClusterRestoreToPointInTime) { this._restoreToPointInTime.internalValue = value; } public resetRestoreToPointInTime() { this._restoreToPointInTime.internalValue = undefined; } // Temporarily expose input value. Use with caution. public get restoreToPointInTimeInput() { return this._restoreToPointInTime.internalValue; } // s3_import - computed: false, optional: true, required: false private _s3Import = new RdsClusterS3ImportOutputReference(this as any, "s3_import", true); public get s3Import() { return this._s3Import; } public putS3Import(value: RdsClusterS3Import) { this._s3Import.internalValue = value; } public resetS3Import() { this._s3Import.internalValue = undefined; } // Temporarily expose input value. Use with caution. public get s3ImportInput() { return this._s3Import.internalValue; } // scaling_configuration - computed: false, optional: true, required: false private _scalingConfiguration = new RdsClusterScalingConfigurationOutputReference(this as any, "scaling_configuration", true); public get scalingConfiguration() { return this._scalingConfiguration; } public putScalingConfiguration(value: RdsClusterScalingConfiguration) { this._scalingConfiguration.internalValue = value; } public resetScalingConfiguration() { this._scalingConfiguration.internalValue = undefined; } // Temporarily expose input value. Use with caution. public get scalingConfigurationInput() { return this._scalingConfiguration.internalValue; } // timeouts - computed: false, optional: true, required: false private _timeouts = new RdsClusterTimeoutsOutputReference(this as any, "timeouts", true); public get timeouts() { return this._timeouts; } public putTimeouts(value: RdsClusterTimeouts) { this._timeouts.internalValue = value; } public resetTimeouts() { this._timeouts.internalValue = undefined; } // Temporarily expose input value. Use with caution. public get timeoutsInput() { return this._timeouts.internalValue; } // ========= // SYNTHESIS // ========= protected synthesizeAttributes(): { [name: string]: any } { return { allow_major_version_upgrade: cdktf.booleanToTerraform(this._allowMajorVersionUpgrade), apply_immediately: cdktf.booleanToTerraform(this._applyImmediately), availability_zones: cdktf.listMapper(cdktf.stringToTerraform)(this._availabilityZones), backtrack_window: cdktf.numberToTerraform(this._backtrackWindow), backup_retention_period: cdktf.numberToTerraform(this._backupRetentionPeriod), cluster_identifier: cdktf.stringToTerraform(this._clusterIdentifier), cluster_identifier_prefix: cdktf.stringToTerraform(this._clusterIdentifierPrefix), cluster_members: cdktf.listMapper(cdktf.stringToTerraform)(this._clusterMembers), copy_tags_to_snapshot: cdktf.booleanToTerraform(this._copyTagsToSnapshot), database_name: cdktf.stringToTerraform(this._databaseName), db_cluster_parameter_group_name: cdktf.stringToTerraform(this._dbClusterParameterGroupName), db_instance_parameter_group_name: cdktf.stringToTerraform(this._dbInstanceParameterGroupName), db_subnet_group_name: cdktf.stringToTerraform(this._dbSubnetGroupName), deletion_protection: cdktf.booleanToTerraform(this._deletionProtection), enable_global_write_forwarding: cdktf.booleanToTerraform(this._enableGlobalWriteForwarding), enable_http_endpoint: cdktf.booleanToTerraform(this._enableHttpEndpoint), enabled_cloudwatch_logs_exports: cdktf.listMapper(cdktf.stringToTerraform)(this._enabledCloudwatchLogsExports), engine: cdktf.stringToTerraform(this._engine), engine_mode: cdktf.stringToTerraform(this._engineMode), engine_version: cdktf.stringToTerraform(this._engineVersion), final_snapshot_identifier: cdktf.stringToTerraform(this._finalSnapshotIdentifier), global_cluster_identifier: cdktf.stringToTerraform(this._globalClusterIdentifier), iam_database_authentication_enabled: cdktf.booleanToTerraform(this._iamDatabaseAuthenticationEnabled), iam_roles: cdktf.listMapper(cdktf.stringToTerraform)(this._iamRoles), kms_key_id: cdktf.stringToTerraform(this._kmsKeyId), master_password: cdktf.stringToTerraform(this._masterPassword), master_username: cdktf.stringToTerraform(this._masterUsername), port: cdktf.numberToTerraform(this._port), preferred_backup_window: cdktf.stringToTerraform(this._preferredBackupWindow), preferred_maintenance_window: cdktf.stringToTerraform(this._preferredMaintenanceWindow), replication_source_identifier: cdktf.stringToTerraform(this._replicationSourceIdentifier), skip_final_snapshot: cdktf.booleanToTerraform(this._skipFinalSnapshot), snapshot_identifier: cdktf.stringToTerraform(this._snapshotIdentifier), source_region: cdktf.stringToTerraform(this._sourceRegion), storage_encrypted: cdktf.booleanToTerraform(this._storageEncrypted), tags: cdktf.hashMapper(cdktf.anyToTerraform)(this._tags), tags_all: cdktf.hashMapper(cdktf.anyToTerraform)(this._tagsAll), vpc_security_group_ids: cdktf.listMapper(cdktf.stringToTerraform)(this._vpcSecurityGroupIds), restore_to_point_in_time: rdsClusterRestoreToPointInTimeToTerraform(this._restoreToPointInTime.internalValue), s3_import: rdsClusterS3ImportToTerraform(this._s3Import.internalValue), scaling_configuration: rdsClusterScalingConfigurationToTerraform(this._scalingConfiguration.internalValue), timeouts: rdsClusterTimeoutsToTerraform(this._timeouts.internalValue), }; } }