InstanceArgs

data class InstanceArgs(val allocatedStorage: Output<Int>? = null, val allowMajorVersionUpgrade: Output<Boolean>? = null, val applyImmediately: Output<Boolean>? = null, val autoMinorVersionUpgrade: Output<Boolean>? = null, val availabilityZone: Output<String>? = null, val backupRetentionPeriod: Output<Int>? = null, val backupWindow: Output<String>? = null, val blueGreenUpdate: Output<InstanceBlueGreenUpdateArgs>? = null, val caCertIdentifier: Output<String>? = null, val characterSetName: Output<String>? = null, val copyTagsToSnapshot: Output<Boolean>? = null, val customIamInstanceProfile: Output<String>? = null, val customerOwnedIpEnabled: Output<Boolean>? = null, val dbName: Output<String>? = null, val dbSubnetGroupName: Output<String>? = null, val deleteAutomatedBackups: Output<Boolean>? = null, val deletionProtection: Output<Boolean>? = null, val domain: Output<String>? = null, val domainIamRoleName: Output<String>? = null, val enabledCloudwatchLogsExports: Output<List<String>>? = null, val engine: Output<String>? = null, val engineVersion: Output<String>? = null, val finalSnapshotIdentifier: Output<String>? = null, val iamDatabaseAuthenticationEnabled: Output<Boolean>? = null, val identifier: Output<String>? = null, val identifierPrefix: Output<String>? = null, val instanceClass: Output<Either<String, InstanceType>>? = null, val iops: Output<Int>? = null, val kmsKeyId: Output<String>? = null, val licenseModel: Output<String>? = null, val maintenanceWindow: Output<String>? = null, val manageMasterUserPassword: Output<Boolean>? = null, val masterUserSecretKmsKeyId: Output<String>? = null, val maxAllocatedStorage: Output<Int>? = null, val monitoringInterval: Output<Int>? = null, val monitoringRoleArn: Output<String>? = null, val multiAz: Output<Boolean>? = null, val name: Output<String>? = null, val ncharCharacterSetName: Output<String>? = null, val networkType: Output<String>? = null, val optionGroupName: Output<String>? = null, val parameterGroupName: Output<String>? = null, val password: Output<String>? = null, val performanceInsightsEnabled: Output<Boolean>? = null, val performanceInsightsKmsKeyId: Output<String>? = null, val performanceInsightsRetentionPeriod: Output<Int>? = null, val port: Output<Int>? = null, val publiclyAccessible: Output<Boolean>? = null, val replicaMode: Output<String>? = null, val replicateSourceDb: Output<String>? = null, val restoreToPointInTime: Output<InstanceRestoreToPointInTimeArgs>? = null, val s3Import: Output<InstanceS3ImportArgs>? = null, val securityGroupNames: Output<List<String>>? = null, val skipFinalSnapshot: Output<Boolean>? = null, val snapshotIdentifier: Output<String>? = null, val storageEncrypted: Output<Boolean>? = null, val storageThroughput: Output<Int>? = null, val storageType: Output<Either<String, StorageType>>? = null, val tags: Output<Map<String, String>>? = null, val timezone: Output<String>? = null, val username: Output<String>? = null, val vpcSecurityGroupIds: Output<List<String>>? = null) : ConvertibleToJava<InstanceArgs>

Provides an RDS instance resource. A DB instance is an isolated database environment in the cloud. A DB instance can contain multiple user-created databases. Changes to a DB instance can occur when you manually change a parameter, such as allocated_storage, and are reflected in the next maintenance window. Because of this, this provider may report a difference in its planning phase because a modification has not yet taken place. You can use the apply_immediately flag to instruct the service to apply the change immediately (see documentation below). When upgrading the major version of an engine, allow_major_version_upgrade must be set to true.

Note: using apply_immediately can result in a brief downtime as the server reboots. See the AWS Docs on instance-maintenance for more information. Note: All arguments including the username and password will be stored in the raw state as plain-text. Read more about sensitive data instate.

RDS Instance Class Types

Amazon RDS supports three types of instance classes: Standard, Memory Optimized, and Burstable Performance. For more information please read the AWS RDS documentation about DB Instance Class Types

Low-Downtime Updates

By default, RDS applies updates to DB Instances in-place, which can lead to service interruptions. Low-downtime updates minimize service interruptions by performing the updates with an blue-green and switching over the instances when complete. Low-downtime updates are only available for DB Instances using MySQL and MariaDB, as other engines are not supported by RDS Blue/Green deployments. Backups must be enabled to use low-downtime updates. Enable low-downtime updates by setting blue_green_update.enabled to true.

Example Usage

Basic Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.rds.Instance;
import com.pulumi.aws.rds.InstanceArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var default_ = new Instance("default", InstanceArgs.builder()
.allocatedStorage(10)
.dbName("mydb")
.engine("mysql")
.engineVersion("5.7")
.instanceClass("db.t3.micro")
.parameterGroupName("default.mysql5.7")
.password("foobarbaz")
.skipFinalSnapshot(true)
.username("foo")
.build());
}
}

RDS Custom for Oracle Usage with Replica

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.rds.RdsFunctions;
import com.pulumi.aws.rds.inputs.GetOrderableDbInstanceArgs;
import com.pulumi.aws.kms.KmsFunctions;
import com.pulumi.aws.kms.inputs.GetKeyArgs;
import com.pulumi.aws.rds.Instance;
import com.pulumi.aws.rds.InstanceArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var custom-oracle = RdsFunctions.getOrderableDbInstance(GetOrderableDbInstanceArgs.builder()
.engine("custom-oracle-ee")
.engineVersion("19.c.ee.002")
.licenseModel("bring-your-own-license")
.storageType("gp3")
.preferredInstanceClasses(
"db.r5.24xlarge",
"db.r5.16xlarge",
"db.r5.12xlarge")
.build());
final var byId = KmsFunctions.getKey(GetKeyArgs.builder()
.keyId("example-ef278353ceba4a5a97de6784565b9f78")
.build());
var default_ = new Instance("default", InstanceArgs.builder()
.allocatedStorage(50)
.autoMinorVersionUpgrade(false)
.customIamInstanceProfile("AWSRDSCustomInstanceProfile")
.backupRetentionPeriod(7)
.dbSubnetGroupName(local.db_subnet_group_name())
.engine(custom_oracle.engine())
.engineVersion(custom_oracle.engineVersion())
.identifier("ee-instance-demo")
.instanceClass(custom_oracle.instanceClass())
.kmsKeyId(byId.applyValue(getKeyResult -> getKeyResult.arn()))
.licenseModel(custom_oracle.licenseModel())
.multiAz(false)
.password("avoid-plaintext-passwords")
.username("test")
.storageEncrypted(true)
.timeouts(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.build());
var test_replica = new Instance("test-replica", InstanceArgs.builder()
.replicateSourceDb(default_.identifier())
.replicaMode("mounted")
.autoMinorVersionUpgrade(false)
.customIamInstanceProfile("AWSRDSCustomInstanceProfile")
.backupRetentionPeriod(7)
.identifier("ee-instance-replica")
.instanceClass(custom_oracle.instanceClass())
.kmsKeyId(byId.applyValue(getKeyResult -> getKeyResult.arn()))
.multiAz(false)
.skipFinalSnapshot(true)
.storageEncrypted(true)
.timeouts(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.build());
}
}

Storage Autoscaling

To enable Storage Autoscaling with instances that support the feature, define the max_allocated_storage argument higher than the allocated_storage argument. This provider will automatically hide differences with the allocated_storage argument value if autoscaling occurs.

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.rds.Instance;
import com.pulumi.aws.rds.InstanceArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new Instance("example", InstanceArgs.builder()
.allocatedStorage(50)
.maxAllocatedStorage(100)
.build());
}
}

Managed Master Passwords via Secrets Manager, default KMS Key

More information about RDS/Aurora Aurora integrates with Secrets Manager to manage master user passwords for your DB clusters can be found in the RDS User Guide and Aurora User Guide. You can specify the manage_master_user_password attribute to enable managing the master password with Secrets Manager. You can also update an existing cluster to use Secrets Manager by specify the manage_master_user_password attribute and removing the password attribute (removal is required).

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.rds.Instance;
import com.pulumi.aws.rds.InstanceArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var default_ = new Instance("default", InstanceArgs.builder()
.allocatedStorage(10)
.dbName("mydb")
.engine("mysql")
.engineVersion("5.7")
.instanceClass("db.t3.micro")
.manageMasterUserPassword(true)
.parameterGroupName("default.mysql5.7")
.username("foo")
.build());
}
}

Managed Master Passwords via Secrets Manager, specific KMS Key

More information about RDS/Aurora Aurora integrates with Secrets Manager to manage master user passwords for your DB clusters can be found in the RDS User Guide and Aurora User Guide. You can specify the master_user_secret_kms_key_id attribute to specify a specific KMS Key.

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.kms.Key;
import com.pulumi.aws.kms.KeyArgs;
import com.pulumi.aws.rds.Instance;
import com.pulumi.aws.rds.InstanceArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new Key("example", KeyArgs.builder()
.description("Example KMS Key")
.build());
var default_ = new Instance("default", InstanceArgs.builder()
.allocatedStorage(10)
.dbName("mydb")
.engine("mysql")
.engineVersion("5.7")
.instanceClass("db.t3.micro")
.manageMasterUserPassword(true)
.masterUserSecretKmsKeyId(example.keyId())
.username("foo")
.parameterGroupName("default.mysql5.7")
.build());
}
}

Import

DB Instances can be imported using the identifier, e.g.,

$ pulumi import aws:rds/instance:Instance default mydb-rds-instance

Constructors

Link copied to clipboard
constructor(allocatedStorage: Output<Int>? = null, allowMajorVersionUpgrade: Output<Boolean>? = null, applyImmediately: Output<Boolean>? = null, autoMinorVersionUpgrade: Output<Boolean>? = null, availabilityZone: Output<String>? = null, backupRetentionPeriod: Output<Int>? = null, backupWindow: Output<String>? = null, blueGreenUpdate: Output<InstanceBlueGreenUpdateArgs>? = null, caCertIdentifier: Output<String>? = null, characterSetName: Output<String>? = null, copyTagsToSnapshot: Output<Boolean>? = null, customIamInstanceProfile: Output<String>? = null, customerOwnedIpEnabled: Output<Boolean>? = null, dbName: Output<String>? = null, dbSubnetGroupName: Output<String>? = null, deleteAutomatedBackups: Output<Boolean>? = null, deletionProtection: Output<Boolean>? = null, domain: Output<String>? = null, domainIamRoleName: Output<String>? = null, enabledCloudwatchLogsExports: Output<List<String>>? = null, engine: Output<String>? = null, engineVersion: Output<String>? = null, finalSnapshotIdentifier: Output<String>? = null, iamDatabaseAuthenticationEnabled: Output<Boolean>? = null, identifier: Output<String>? = null, identifierPrefix: Output<String>? = null, instanceClass: Output<Either<String, InstanceType>>? = null, iops: Output<Int>? = null, kmsKeyId: Output<String>? = null, licenseModel: Output<String>? = null, maintenanceWindow: Output<String>? = null, manageMasterUserPassword: Output<Boolean>? = null, masterUserSecretKmsKeyId: Output<String>? = null, maxAllocatedStorage: Output<Int>? = null, monitoringInterval: Output<Int>? = null, monitoringRoleArn: Output<String>? = null, multiAz: Output<Boolean>? = null, name: Output<String>? = null, ncharCharacterSetName: Output<String>? = null, networkType: Output<String>? = null, optionGroupName: Output<String>? = null, parameterGroupName: Output<String>? = null, password: Output<String>? = null, performanceInsightsEnabled: Output<Boolean>? = null, performanceInsightsKmsKeyId: Output<String>? = null, performanceInsightsRetentionPeriod: Output<Int>? = null, port: Output<Int>? = null, publiclyAccessible: Output<Boolean>? = null, replicaMode: Output<String>? = null, replicateSourceDb: Output<String>? = null, restoreToPointInTime: Output<InstanceRestoreToPointInTimeArgs>? = null, s3Import: Output<InstanceS3ImportArgs>? = null, securityGroupNames: Output<List<String>>? = null, skipFinalSnapshot: Output<Boolean>? = null, snapshotIdentifier: Output<String>? = null, storageEncrypted: Output<Boolean>? = null, storageThroughput: Output<Int>? = null, storageType: Output<Either<String, StorageType>>? = null, tags: Output<Map<String, String>>? = null, timezone: Output<String>? = null, username: Output<String>? = null, vpcSecurityGroupIds: Output<List<String>>? = null)

Properties

Link copied to clipboard
val allocatedStorage: Output<Int>? = null

The allocated storage in gibibytes. If max_allocated_storage is configured, this argument represents the initial storage allocation and differences from the configuration will be ignored automatically when Storage Autoscaling occurs. If replicate_source_db is set, the value is ignored during the creation of the instance.

Link copied to clipboard
val allowMajorVersionUpgrade: Output<Boolean>? = null

Indicates that major version upgrades are allowed. Changing this parameter does not result in an outage and the change is asynchronously applied as soon as possible.

Link copied to clipboard
val applyImmediately: Output<Boolean>? = null

Specifies whether any database modifications are applied immediately, or during the next maintenance window. Default is false. See [Amazon RDS Documentation for more

Link copied to clipboard
val autoMinorVersionUpgrade: Output<Boolean>? = null

Indicates that minor engine upgrades will be applied automatically to the DB instance during the maintenance window. Defaults to true.

Link copied to clipboard
val availabilityZone: Output<String>? = null

The AZ for the RDS instance.

Link copied to clipboard
val backupRetentionPeriod: Output<Int>? = null

The days to retain backups for. Must be between 0 and 35. Default is 0. Must be greater than 0 if the database is used as a source for a instance-replication, uses low-downtime updates, or will use blue-green.

Link copied to clipboard
val backupWindow: Output<String>? = null

The daily time range (in UTC) during which automated backups are created if they are enabled. Example: "09:46-10:16". Must not overlap with maintenance_window.

Link copied to clipboard

Enables low-downtime updates using blue-green. See blue_green_update below

Link copied to clipboard
val caCertIdentifier: Output<String>? = null

The identifier of the CA certificate for the DB instance.

Link copied to clipboard
val characterSetName: Output<String>? = null

The character set name to use for DB encoding in Oracle and Microsoft SQL instances (collation). This can't be changed. See [Oracle Character Sets

Link copied to clipboard
val copyTagsToSnapshot: Output<Boolean>? = null

Copy all Instance tags to snapshots. Default is false.

Link copied to clipboard
val customerOwnedIpEnabled: Output<Boolean>? = null

Indicates whether to enable a customer-owned IP address (CoIP) for an RDS on Outposts DB instance. See CoIP for RDS on Outposts for more information.

Link copied to clipboard
val customIamInstanceProfile: Output<String>? = null

The instance profile associated with the underlying Amazon EC2 instance of an RDS Custom DB instance.

Link copied to clipboard
val dbName: Output<String>? = null

The name of the database to create when the DB instance is created. If this parameter is not specified, no database is created in the DB instance. Note that this does not apply for Oracle or SQL Server engines. See the AWS documentation for more details on what applies for those engines. If you are providing an Oracle db name, it needs to be in all upper case. Cannot be specified for a replica.

Link copied to clipboard
val dbSubnetGroupName: Output<String>? = null

Name of DB subnet group. DB instance will be created in the VPC associated with the DB subnet group. If unspecified, will be created in the default VPC, or in EC2 Classic, if available. When working with read replicas, it should be specified only if the source database specifies an instance in another AWS Region. See [DBSubnetGroupName in API

Link copied to clipboard
val deleteAutomatedBackups: Output<Boolean>? = null

Specifies whether to remove automated backups immediately after the DB instance is deleted. Default is true.

Link copied to clipboard
val deletionProtection: Output<Boolean>? = null

If the DB instance should have deletion protection enabled. The database can't be deleted when this value is set to true. The default is false.

Link copied to clipboard
val domain: Output<String>? = null

The ID of the Directory Service Active Directory domain to create the instance in.

Link copied to clipboard
val domainIamRoleName: Output<String>? = null

The name of the IAM role to be used when making API calls to the Directory Service.

Link copied to clipboard

Set of log types to enable for exporting to CloudWatch logs. If omitted, no logs will be exported. Valid values (depending on engine). MySQL and MariaDB: audit, error, general, slowquery. PostgreSQL: postgresql, upgrade. MSSQL: agent , error. Oracle: alert, audit, listener, trace.

Link copied to clipboard
val engine: Output<String>? = null

The database engine to use. For supported values, see the Engine parameter in API action CreateDBInstance. Note that for Amazon Aurora instances the engine must match the DB cluster's engine'. For information on the difference between the available Aurora MySQL engines see Comparison between Aurora MySQL 1 and Aurora MySQL 2 in the Amazon RDS User Guide.

Link copied to clipboard
val engineVersion: Output<String>? = null

The engine version to use. If auto_minor_version_upgrade is enabled, you can provide a prefix of the version such as 5.7 (for 5.7.10). The actual engine version used is returned in the attribute engine_version_actual, see Attributes Reference below. For supported values, see the EngineVersion parameter in API action CreateDBInstance. Note that for Amazon Aurora instances the engine version must match the DB cluster's engine version'.

Link copied to clipboard
val finalSnapshotIdentifier: Output<String>? = null

The name of your final DB snapshot when this DB instance is deleted. Must be provided if skip_final_snapshot is set to false. The value must begin with a letter, only contain alphanumeric characters and hyphens, and not end with a hyphen or contain two consecutive hyphens. Must not be provided when deleting a read replica.

Link copied to clipboard

Specifies whether mappings of AWS Identity and Access Management (IAM) accounts to database accounts is enabled.

Link copied to clipboard
val identifier: Output<String>? = null

The name of the RDS instance, if omitted, this provider will assign a random, unique identifier. Required if restore_to_point_in_time is specified.

Link copied to clipboard
val identifierPrefix: Output<String>? = null

Creates a unique identifier beginning with the specified prefix. Conflicts with identifier.

Link copied to clipboard
val instanceClass: Output<Either<String, InstanceType>>? = null

The instance type of the RDS instance.

Link copied to clipboard
val iops: Output<Int>? = null

The amount of provisioned IOPS. Setting this implies a storage_type of "io1". Can only be set when storage_type is "io1" or "gp3". Cannot be specified for gp3 storage if the allocated_storage value is below a per-engine threshold. See the RDS User Guide for details.

Link copied to clipboard
val kmsKeyId: Output<String>? = null

The ARN for the KMS encryption key. If creating an encrypted replica, set this to the destination KMS ARN.

Link copied to clipboard
val licenseModel: Output<String>? = null

(Optional, but required for some DB engines, i.e., Oracle SE1) License model information for this DB instance.

Link copied to clipboard
val maintenanceWindow: Output<String>? = null

The window to perform maintenance in. Syntax: "ddd:hh24:mi-ddd:hh24:mi". Eg: "Mon:00:00-Mon:03:00". See [RDS

Link copied to clipboard
val manageMasterUserPassword: Output<Boolean>? = null

Set to true to allow RDS to manage the master user password in Secrets Manager. Cannot be set if password is provided.

Link copied to clipboard
val masterUserSecretKmsKeyId: Output<String>? = null

The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key. To use a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN. If not specified, the default KMS key for your Amazon Web Services account is used.

Link copied to clipboard
val maxAllocatedStorage: Output<Int>? = null

When configured, the upper limit to which Amazon RDS can automatically scale the storage of the DB instance. Configuring this will automatically ignore differences to allocated_storage. Must be greater than or equal to allocated_storage or 0 to disable Storage Autoscaling.

Link copied to clipboard
val monitoringInterval: Output<Int>? = null

The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB instance. To disable collecting Enhanced Monitoring metrics, specify 0. The default is 0. Valid Values: 0, 1, 5, 10, 15, 30, 60.

Link copied to clipboard
val monitoringRoleArn: Output<String>? = null

The ARN for the IAM role that permits RDS to send enhanced monitoring metrics to CloudWatch Logs. You can find more information on the [AWS

Link copied to clipboard
val multiAz: Output<Boolean>? = null

Specifies if the RDS instance is multi-AZ

Link copied to clipboard
val name: Output<String>? = null

The name of the database to create when the DB instance is created. If this parameter is not specified, no database is created in the DB instance. Note that this does not apply for Oracle or SQL Server engines. See the AWS documentation for more details on what applies for those engines. If you are providing an Oracle db name, it needs to be in all upper case. Cannot be specified for a replica.

Link copied to clipboard
val ncharCharacterSetName: Output<String>? = null

The national character set is used in the NCHAR, NVARCHAR2, and NCLOB data types for Oracle instances. This can't be changed. See [Oracle Character Sets

Link copied to clipboard
val networkType: Output<String>? = null

The network type of the DB instance. Valid values: IPV4, DUAL.

Link copied to clipboard
val optionGroupName: Output<String>? = null

Name of the DB option group to associate.

Link copied to clipboard
val parameterGroupName: Output<String>? = null

Name of the DB parameter group to associate.

Link copied to clipboard
val password: Output<String>? = null

(Required unless manage_master_user_password is set to true or unless a snapshot_identifier or replicate_source_db is provided or manage_master_user_password is set.) Password for the master DB user. Note that this may show up in logs, and it will be stored in the state file. Cannot be set if manage_master_user_password is set to true.

Link copied to clipboard
val performanceInsightsEnabled: Output<Boolean>? = null

Specifies whether Performance Insights are enabled. Defaults to false.

Link copied to clipboard
val performanceInsightsKmsKeyId: Output<String>? = null

The ARN for the KMS key to encrypt Performance Insights data. When specifying performance_insights_kms_key_id, performance_insights_enabled needs to be set to true. Once KMS key is set, it can never be changed.

Link copied to clipboard

Amount of time in days to retain Performance Insights data. Valid values are 7, 731 (2 years) or a multiple of 31. When specifying performance_insights_retention_period, performance_insights_enabled needs to be set to true. Defaults to '7'.

Link copied to clipboard
val port: Output<Int>? = null

The port on which the DB accepts connections.

Link copied to clipboard
val publiclyAccessible: Output<Boolean>? = null

Bool to control if instance is publicly accessible. Default is false.

Link copied to clipboard
val replicaMode: Output<String>? = null

Specifies whether the replica is in either mounted or open-read-only mode. This attribute is only supported by Oracle instances. Oracle replicas operate in open-read-only mode unless otherwise specified. See Working with Oracle Read Replicas for more information.

Link copied to clipboard
val replicateSourceDb: Output<String>? = null

Specifies that this resource is a Replicate database, and to use this value as the source database. This correlates to the identifier of another Amazon RDS Database to replicate (if replicating within a single region) or ARN of the Amazon RDS Database to replicate (if replicating cross-region). Note that if you are creating a cross-region replica of an encrypted database you will also need to specify a kms_key_id. See instance-replication and [Working with

Link copied to clipboard

A configuration block for restoring a DB instance to an arbitrary point in time. Requires the identifier argument to be set with the name of the new DB instance to be created. See Restore To Point In Time below for details.

Link copied to clipboard
val s3Import: Output<InstanceS3ImportArgs>? = null

Restore from a Percona Xtrabackup in S3. See Importing Data into an Amazon RDS MySQL DB Instance

Link copied to clipboard
val securityGroupNames: Output<List<String>>? = null

List of DB Security Groups to associate. Only used for [DB Instances on the EC2-Classic

Link copied to clipboard
val skipFinalSnapshot: Output<Boolean>? = null

Determines whether a final DB snapshot is created before the DB instance is deleted. If true is specified, no DBSnapshot is created. If false is specified, a DB snapshot is created before the DB instance is deleted, using the value from final_snapshot_identifier. Default is false.

Link copied to clipboard
val snapshotIdentifier: Output<String>? = null

Specifies whether or not to create this database from a snapshot. This correlates to the snapshot ID you'd find in the RDS console, e.g: rds:production-2015-06-26-06-05.

Link copied to clipboard
val storageEncrypted: Output<Boolean>? = null

Specifies whether the DB instance is encrypted. Note that if you are creating a cross-region read replica this field is ignored and you should instead declare kms_key_id with a valid ARN. The default is false if not specified.

Link copied to clipboard
val storageThroughput: Output<Int>? = null

The storage throughput value for the DB instance. Can only be set when storage_type is "gp3". Cannot be specified if the allocated_storage value is below a per-engine threshold. See the RDS User Guide for details.

Link copied to clipboard
val storageType: Output<Either<String, StorageType>>? = null

One of "standard" (magnetic), "gp2" (general purpose SSD), "gp3" (general purpose SSD that needs iops independently) or "io1" (provisioned IOPS SSD). The default is "io1" if iops is specified, "gp2" if not.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Link copied to clipboard
val timezone: Output<String>? = null

Time zone of the DB instance. timezone is currently only supported by Microsoft SQL Server. The timezone can only be set on creation. See [MSSQL User

Link copied to clipboard
val username: Output<String>? = null

(Required unless a snapshot_identifier or replicate_source_db is provided) Username for the master DB user. Cannot be specified for a replica.

Link copied to clipboard
val vpcSecurityGroupIds: Output<List<String>>? = null

List of VPC security groups to associate.

Functions

Link copied to clipboard
open override fun toJava(): InstanceArgs