aws.rds.Instance
Explore with Pulumi AI
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_immediatelycan result in a brief downtime as the server reboots. See the AWS Docs on [RDS Instance Maintenance][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 instance classes for the following use cases: General-purpose, Memory-optimized, Burstable Performance, and Optimized-reads. 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 [RDS Blue/Green deployment][blue-green] and switching over the instances when complete.
Low-downtime updates are only available for DB Instances using MySQL, MariaDB and PostgreSQL, as other engines are not supported by RDS Blue/Green deployments. They cannot be used with DB Instances with replicas.
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
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const _default = new aws.rds.Instance("default", {
    allocatedStorage: 10,
    dbName: "mydb",
    engine: "mysql",
    engineVersion: "8.0",
    instanceClass: aws.rds.InstanceType.T3_Micro,
    username: "foo",
    password: "foobarbaz",
    parameterGroupName: "default.mysql8.0",
    skipFinalSnapshot: true,
});
import pulumi
import pulumi_aws as aws
default = aws.rds.Instance("default",
    allocated_storage=10,
    db_name="mydb",
    engine="mysql",
    engine_version="8.0",
    instance_class=aws.rds.InstanceType.T3_MICRO,
    username="foo",
    password="foobarbaz",
    parameter_group_name="default.mysql8.0",
    skip_final_snapshot=True)
package main
import (
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/rds"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := rds.NewInstance(ctx, "default", &rds.InstanceArgs{
			AllocatedStorage:   pulumi.Int(10),
			DbName:             pulumi.String("mydb"),
			Engine:             pulumi.String("mysql"),
			EngineVersion:      pulumi.String("8.0"),
			InstanceClass:      pulumi.String(rds.InstanceType_T3_Micro),
			Username:           pulumi.String("foo"),
			Password:           pulumi.String("foobarbaz"),
			ParameterGroupName: pulumi.String("default.mysql8.0"),
			SkipFinalSnapshot:  pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() => 
{
    var @default = new Aws.Rds.Instance("default", new()
    {
        AllocatedStorage = 10,
        DbName = "mydb",
        Engine = "mysql",
        EngineVersion = "8.0",
        InstanceClass = Aws.Rds.InstanceType.T3_Micro,
        Username = "foo",
        Password = "foobarbaz",
        ParameterGroupName = "default.mysql8.0",
        SkipFinalSnapshot = true,
    });
});
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("8.0")
            .instanceClass("db.t3.micro")
            .username("foo")
            .password("foobarbaz")
            .parameterGroupName("default.mysql8.0")
            .skipFinalSnapshot(true)
            .build());
    }
}
resources:
  default:
    type: aws:rds:Instance
    properties:
      allocatedStorage: 10
      dbName: mydb
      engine: mysql
      engineVersion: '8.0'
      instanceClass: db.t3.micro
      username: foo
      password: foobarbaz
      parameterGroupName: default.mysql8.0
      skipFinalSnapshot: true
RDS Custom for Oracle Usage with Replica
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
// Lookup the available instance classes for the custom engine for the region being operated in
const custom_oracle = aws.rds.getOrderableDbInstance({
    engine: "custom-oracle-ee",
    engineVersion: "19.c.ee.002",
    licenseModel: "bring-your-own-license",
    storageType: "gp3",
    preferredInstanceClasses: [
        "db.r5.xlarge",
        "db.r5.2xlarge",
        "db.r5.4xlarge",
    ],
});
// The RDS instance resource requires an ARN. Look up the ARN of the KMS key associated with the CEV.
const byId = aws.kms.getKey({
    keyId: "example-ef278353ceba4a5a97de6784565b9f78",
});
const _default = new aws.rds.Instance("default", {
    allocatedStorage: 50,
    autoMinorVersionUpgrade: false,
    customIamInstanceProfile: "AWSRDSCustomInstanceProfile",
    backupRetentionPeriod: 7,
    dbSubnetGroupName: dbSubnetGroupName,
    engine: custom_oracle.then(custom_oracle => custom_oracle.engine),
    engineVersion: custom_oracle.then(custom_oracle => custom_oracle.engineVersion),
    identifier: "ee-instance-demo",
    instanceClass: custom_oracle.then(custom_oracle => custom_oracle.instanceClass).apply((x) => aws.rds.InstanceType[x]),
    kmsKeyId: byId.then(byId => byId.arn),
    licenseModel: custom_oracle.then(custom_oracle => custom_oracle.licenseModel),
    multiAz: false,
    password: "avoid-plaintext-passwords",
    username: "test",
    storageEncrypted: true,
});
const test_replica = new aws.rds.Instance("test-replica", {
    replicateSourceDb: _default.identifier,
    replicaMode: "mounted",
    autoMinorVersionUpgrade: false,
    customIamInstanceProfile: "AWSRDSCustomInstanceProfile",
    backupRetentionPeriod: 7,
    identifier: "ee-instance-replica",
    instanceClass: custom_oracle.then(custom_oracle => custom_oracle.instanceClass).apply((x) => aws.rds.InstanceType[x]),
    kmsKeyId: byId.then(byId => byId.arn),
    multiAz: false,
    skipFinalSnapshot: true,
    storageEncrypted: true,
});
import pulumi
import pulumi_aws as aws
# Lookup the available instance classes for the custom engine for the region being operated in
custom_oracle = aws.rds.get_orderable_db_instance(engine="custom-oracle-ee",
    engine_version="19.c.ee.002",
    license_model="bring-your-own-license",
    storage_type="gp3",
    preferred_instance_classes=[
        "db.r5.xlarge",
        "db.r5.2xlarge",
        "db.r5.4xlarge",
    ])
# The RDS instance resource requires an ARN. Look up the ARN of the KMS key associated with the CEV.
by_id = aws.kms.get_key(key_id="example-ef278353ceba4a5a97de6784565b9f78")
default = aws.rds.Instance("default",
    allocated_storage=50,
    auto_minor_version_upgrade=False,
    custom_iam_instance_profile="AWSRDSCustomInstanceProfile",
    backup_retention_period=7,
    db_subnet_group_name=db_subnet_group_name,
    engine=custom_oracle.engine,
    engine_version=custom_oracle.engine_version,
    identifier="ee-instance-demo",
    instance_class=custom_oracle.instance_class.apply(lambda x: aws.rds.InstanceType(x)),
    kms_key_id=by_id.arn,
    license_model=custom_oracle.license_model,
    multi_az=False,
    password="avoid-plaintext-passwords",
    username="test",
    storage_encrypted=True)
test_replica = aws.rds.Instance("test-replica",
    replicate_source_db=default.identifier,
    replica_mode="mounted",
    auto_minor_version_upgrade=False,
    custom_iam_instance_profile="AWSRDSCustomInstanceProfile",
    backup_retention_period=7,
    identifier="ee-instance-replica",
    instance_class=custom_oracle.instance_class.apply(lambda x: aws.rds.InstanceType(x)),
    kms_key_id=by_id.arn,
    multi_az=False,
    skip_final_snapshot=True,
    storage_encrypted=True)
package main
import (
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/kms"
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/rds"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		// Lookup the available instance classes for the custom engine for the region being operated in
		custom_oracle, err := rds.GetOrderableDbInstance(ctx, &rds.GetOrderableDbInstanceArgs{
			Engine:        "custom-oracle-ee",
			EngineVersion: pulumi.StringRef("19.c.ee.002"),
			LicenseModel:  pulumi.StringRef("bring-your-own-license"),
			StorageType:   pulumi.StringRef("gp3"),
			PreferredInstanceClasses: []string{
				"db.r5.xlarge",
				"db.r5.2xlarge",
				"db.r5.4xlarge",
			},
		}, nil)
		if err != nil {
			return err
		}
		// The RDS instance resource requires an ARN. Look up the ARN of the KMS key associated with the CEV.
		byId, err := kms.LookupKey(ctx, &kms.LookupKeyArgs{
			KeyId: "example-ef278353ceba4a5a97de6784565b9f78",
		}, nil)
		if err != nil {
			return err
		}
		_default, err := rds.NewInstance(ctx, "default", &rds.InstanceArgs{
			AllocatedStorage:         pulumi.Int(50),
			AutoMinorVersionUpgrade:  pulumi.Bool(false),
			CustomIamInstanceProfile: pulumi.String("AWSRDSCustomInstanceProfile"),
			BackupRetentionPeriod:    pulumi.Int(7),
			DbSubnetGroupName:        pulumi.Any(dbSubnetGroupName),
			Engine:                   pulumi.String(custom_oracle.Engine),
			EngineVersion:            pulumi.String(custom_oracle.EngineVersion),
			Identifier:               pulumi.String("ee-instance-demo"),
			InstanceClass:            custom_oracle.InstanceClass.ApplyT(func(x *string) rds.InstanceType { return rds.InstanceType(*x) }).(rds.InstanceTypeOutput),
			KmsKeyId:                 pulumi.String(byId.Arn),
			LicenseModel:             pulumi.String(custom_oracle.LicenseModel),
			MultiAz:                  pulumi.Bool(false),
			Password:                 pulumi.String("avoid-plaintext-passwords"),
			Username:                 pulumi.String("test"),
			StorageEncrypted:         pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		_, err = rds.NewInstance(ctx, "test-replica", &rds.InstanceArgs{
			ReplicateSourceDb:        _default.Identifier,
			ReplicaMode:              pulumi.String("mounted"),
			AutoMinorVersionUpgrade:  pulumi.Bool(false),
			CustomIamInstanceProfile: pulumi.String("AWSRDSCustomInstanceProfile"),
			BackupRetentionPeriod:    pulumi.Int(7),
			Identifier:               pulumi.String("ee-instance-replica"),
			InstanceClass:            custom_oracle.InstanceClass.ApplyT(func(x *string) rds.InstanceType { return rds.InstanceType(*x) }).(rds.InstanceTypeOutput),
			KmsKeyId:                 pulumi.String(byId.Arn),
			MultiAz:                  pulumi.Bool(false),
			SkipFinalSnapshot:        pulumi.Bool(true),
			StorageEncrypted:         pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() => 
{
    // Lookup the available instance classes for the custom engine for the region being operated in
    var custom_oracle = Aws.Rds.GetOrderableDbInstance.Invoke(new()
    {
        Engine = "custom-oracle-ee",
        EngineVersion = "19.c.ee.002",
        LicenseModel = "bring-your-own-license",
        StorageType = "gp3",
        PreferredInstanceClasses = new[]
        {
            "db.r5.xlarge",
            "db.r5.2xlarge",
            "db.r5.4xlarge",
        },
    });
    // The RDS instance resource requires an ARN. Look up the ARN of the KMS key associated with the CEV.
    var byId = Aws.Kms.GetKey.Invoke(new()
    {
        KeyId = "example-ef278353ceba4a5a97de6784565b9f78",
    });
    var @default = new Aws.Rds.Instance("default", new()
    {
        AllocatedStorage = 50,
        AutoMinorVersionUpgrade = false,
        CustomIamInstanceProfile = "AWSRDSCustomInstanceProfile",
        BackupRetentionPeriod = 7,
        DbSubnetGroupName = dbSubnetGroupName,
        Engine = custom_oracle.Apply(custom_oracle => custom_oracle.Apply(getOrderableDbInstanceResult => getOrderableDbInstanceResult.Engine)),
        EngineVersion = custom_oracle.Apply(custom_oracle => custom_oracle.Apply(getOrderableDbInstanceResult => getOrderableDbInstanceResult.EngineVersion)),
        Identifier = "ee-instance-demo",
        InstanceClass = custom_oracle.Apply(custom_oracle => custom_oracle.Apply(getOrderableDbInstanceResult => getOrderableDbInstanceResult.InstanceClass)).Apply(System.Enum.Parse<Aws.Rds.InstanceType>),
        KmsKeyId = byId.Apply(getKeyResult => getKeyResult.Arn),
        LicenseModel = custom_oracle.Apply(custom_oracle => custom_oracle.Apply(getOrderableDbInstanceResult => getOrderableDbInstanceResult.LicenseModel)),
        MultiAz = false,
        Password = "avoid-plaintext-passwords",
        Username = "test",
        StorageEncrypted = true,
    });
    var test_replica = new Aws.Rds.Instance("test-replica", new()
    {
        ReplicateSourceDb = @default.Identifier,
        ReplicaMode = "mounted",
        AutoMinorVersionUpgrade = false,
        CustomIamInstanceProfile = "AWSRDSCustomInstanceProfile",
        BackupRetentionPeriod = 7,
        Identifier = "ee-instance-replica",
        InstanceClass = custom_oracle.Apply(custom_oracle => custom_oracle.Apply(getOrderableDbInstanceResult => getOrderableDbInstanceResult.InstanceClass)).Apply(System.Enum.Parse<Aws.Rds.InstanceType>),
        KmsKeyId = byId.Apply(getKeyResult => getKeyResult.Arn),
        MultiAz = false,
        SkipFinalSnapshot = true,
        StorageEncrypted = true,
    });
});
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) {
        // Lookup the available instance classes for the custom engine for the region being operated in
        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.xlarge",
                "db.r5.2xlarge",
                "db.r5.4xlarge")
            .build());
        // The RDS instance resource requires an ARN. Look up the ARN of the KMS key associated with the CEV.
        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(dbSubnetGroupName)
            .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)
            .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)
            .build());
    }
}
resources:
  default:
    type: aws:rds:Instance
    properties:
      allocatedStorage: 50
      autoMinorVersionUpgrade: false # Custom for Oracle does not support minor version upgrades
      customIamInstanceProfile: AWSRDSCustomInstanceProfile
      backupRetentionPeriod: 7
      dbSubnetGroupName: ${dbSubnetGroupName}
      engine: ${["custom-oracle"].engine}
      engineVersion: ${["custom-oracle"].engineVersion}
      identifier: ee-instance-demo
      instanceClass: ${["custom-oracle"].instanceClass}
      kmsKeyId: ${byId.arn}
      licenseModel: ${["custom-oracle"].licenseModel}
      multiAz: false # Custom for Oracle does not support multi-az
      password: avoid-plaintext-passwords
      username: test
      storageEncrypted: true
  test-replica:
    type: aws:rds:Instance
    properties:
      replicateSourceDb: ${default.identifier}
      replicaMode: mounted
      autoMinorVersionUpgrade: false
      customIamInstanceProfile: AWSRDSCustomInstanceProfile
      backupRetentionPeriod: 7
      identifier: ee-instance-replica
      instanceClass: ${["custom-oracle"].instanceClass}
      kmsKeyId: ${byId.arn}
      multiAz: false # Custom for Oracle does not support multi-az
      skipFinalSnapshot: true
      storageEncrypted: true
variables:
  # Lookup the available instance classes for the custom engine for the region being operated in
  custom-oracle:
    fn::invoke:
      function: aws:rds:getOrderableDbInstance
      arguments:
        engine: custom-oracle-ee
        engineVersion: 19.c.ee.002
        licenseModel: bring-your-own-license
        storageType: gp3
        preferredInstanceClasses:
          - db.r5.xlarge
          - db.r5.2xlarge
          - db.r5.4xlarge
  # The RDS instance resource requires an ARN. Look up the ARN of the KMS key associated with the CEV.
  byId:
    fn::invoke:
      function: aws:kms:getKey
      arguments:
        keyId: example-ef278353ceba4a5a97de6784565b9f78
RDS Custom for SQL Server
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
// Lookup the available instance classes for the custom engine for the region being operated in
const custom_sqlserver = aws.rds.getOrderableDbInstance({
    engine: "custom-sqlserver-se",
    engineVersion: "15.00.4249.2.v1",
    storageType: "gp3",
    preferredInstanceClasses: [
        "db.r5.xlarge",
        "db.r5.2xlarge",
        "db.r5.4xlarge",
    ],
});
// The RDS instance resource requires an ARN. Look up the ARN of the KMS key.
const byId = aws.kms.getKey({
    keyId: "example-ef278353ceba4a5a97de6784565b9f78",
});
const example = new aws.rds.Instance("example", {
    allocatedStorage: 500,
    autoMinorVersionUpgrade: false,
    customIamInstanceProfile: "AWSRDSCustomSQLServerInstanceProfile",
    backupRetentionPeriod: 7,
    dbSubnetGroupName: dbSubnetGroupName,
    engine: custom_sqlserver.then(custom_sqlserver => custom_sqlserver.engine),
    engineVersion: custom_sqlserver.then(custom_sqlserver => custom_sqlserver.engineVersion),
    identifier: "sql-instance-demo",
    instanceClass: custom_sqlserver.then(custom_sqlserver => custom_sqlserver.instanceClass).apply((x) => aws.rds.InstanceType[x]),
    kmsKeyId: byId.then(byId => byId.arn),
    multiAz: false,
    password: "avoid-plaintext-passwords",
    storageEncrypted: true,
    username: "test",
});
import pulumi
import pulumi_aws as aws
# Lookup the available instance classes for the custom engine for the region being operated in
custom_sqlserver = aws.rds.get_orderable_db_instance(engine="custom-sqlserver-se",
    engine_version="15.00.4249.2.v1",
    storage_type="gp3",
    preferred_instance_classes=[
        "db.r5.xlarge",
        "db.r5.2xlarge",
        "db.r5.4xlarge",
    ])
# The RDS instance resource requires an ARN. Look up the ARN of the KMS key.
by_id = aws.kms.get_key(key_id="example-ef278353ceba4a5a97de6784565b9f78")
example = aws.rds.Instance("example",
    allocated_storage=500,
    auto_minor_version_upgrade=False,
    custom_iam_instance_profile="AWSRDSCustomSQLServerInstanceProfile",
    backup_retention_period=7,
    db_subnet_group_name=db_subnet_group_name,
    engine=custom_sqlserver.engine,
    engine_version=custom_sqlserver.engine_version,
    identifier="sql-instance-demo",
    instance_class=custom_sqlserver.instance_class.apply(lambda x: aws.rds.InstanceType(x)),
    kms_key_id=by_id.arn,
    multi_az=False,
    password="avoid-plaintext-passwords",
    storage_encrypted=True,
    username="test")
package main
import (
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/kms"
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/rds"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		// Lookup the available instance classes for the custom engine for the region being operated in
		custom_sqlserver, err := rds.GetOrderableDbInstance(ctx, &rds.GetOrderableDbInstanceArgs{
			Engine:        "custom-sqlserver-se",
			EngineVersion: pulumi.StringRef("15.00.4249.2.v1"),
			StorageType:   pulumi.StringRef("gp3"),
			PreferredInstanceClasses: []string{
				"db.r5.xlarge",
				"db.r5.2xlarge",
				"db.r5.4xlarge",
			},
		}, nil)
		if err != nil {
			return err
		}
		// The RDS instance resource requires an ARN. Look up the ARN of the KMS key.
		byId, err := kms.LookupKey(ctx, &kms.LookupKeyArgs{
			KeyId: "example-ef278353ceba4a5a97de6784565b9f78",
		}, nil)
		if err != nil {
			return err
		}
		_, err = rds.NewInstance(ctx, "example", &rds.InstanceArgs{
			AllocatedStorage:         pulumi.Int(500),
			AutoMinorVersionUpgrade:  pulumi.Bool(false),
			CustomIamInstanceProfile: pulumi.String("AWSRDSCustomSQLServerInstanceProfile"),
			BackupRetentionPeriod:    pulumi.Int(7),
			DbSubnetGroupName:        pulumi.Any(dbSubnetGroupName),
			Engine:                   pulumi.String(custom_sqlserver.Engine),
			EngineVersion:            pulumi.String(custom_sqlserver.EngineVersion),
			Identifier:               pulumi.String("sql-instance-demo"),
			InstanceClass:            custom_sqlserver.InstanceClass.ApplyT(func(x *string) rds.InstanceType { return rds.InstanceType(*x) }).(rds.InstanceTypeOutput),
			KmsKeyId:                 pulumi.String(byId.Arn),
			MultiAz:                  pulumi.Bool(false),
			Password:                 pulumi.String("avoid-plaintext-passwords"),
			StorageEncrypted:         pulumi.Bool(true),
			Username:                 pulumi.String("test"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() => 
{
    // Lookup the available instance classes for the custom engine for the region being operated in
    var custom_sqlserver = Aws.Rds.GetOrderableDbInstance.Invoke(new()
    {
        Engine = "custom-sqlserver-se",
        EngineVersion = "15.00.4249.2.v1",
        StorageType = "gp3",
        PreferredInstanceClasses = new[]
        {
            "db.r5.xlarge",
            "db.r5.2xlarge",
            "db.r5.4xlarge",
        },
    });
    // The RDS instance resource requires an ARN. Look up the ARN of the KMS key.
    var byId = Aws.Kms.GetKey.Invoke(new()
    {
        KeyId = "example-ef278353ceba4a5a97de6784565b9f78",
    });
    var example = new Aws.Rds.Instance("example", new()
    {
        AllocatedStorage = 500,
        AutoMinorVersionUpgrade = false,
        CustomIamInstanceProfile = "AWSRDSCustomSQLServerInstanceProfile",
        BackupRetentionPeriod = 7,
        DbSubnetGroupName = dbSubnetGroupName,
        Engine = custom_sqlserver.Apply(custom_sqlserver => custom_sqlserver.Apply(getOrderableDbInstanceResult => getOrderableDbInstanceResult.Engine)),
        EngineVersion = custom_sqlserver.Apply(custom_sqlserver => custom_sqlserver.Apply(getOrderableDbInstanceResult => getOrderableDbInstanceResult.EngineVersion)),
        Identifier = "sql-instance-demo",
        InstanceClass = custom_sqlserver.Apply(custom_sqlserver => custom_sqlserver.Apply(getOrderableDbInstanceResult => getOrderableDbInstanceResult.InstanceClass)).Apply(System.Enum.Parse<Aws.Rds.InstanceType>),
        KmsKeyId = byId.Apply(getKeyResult => getKeyResult.Arn),
        MultiAz = false,
        Password = "avoid-plaintext-passwords",
        StorageEncrypted = true,
        Username = "test",
    });
});
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) {
        // Lookup the available instance classes for the custom engine for the region being operated in
        final var custom-sqlserver = RdsFunctions.getOrderableDbInstance(GetOrderableDbInstanceArgs.builder()
            .engine("custom-sqlserver-se")
            .engineVersion("15.00.4249.2.v1")
            .storageType("gp3")
            .preferredInstanceClasses(            
                "db.r5.xlarge",
                "db.r5.2xlarge",
                "db.r5.4xlarge")
            .build());
        // The RDS instance resource requires an ARN. Look up the ARN of the KMS key.
        final var byId = KmsFunctions.getKey(GetKeyArgs.builder()
            .keyId("example-ef278353ceba4a5a97de6784565b9f78")
            .build());
        var example = new Instance("example", InstanceArgs.builder()
            .allocatedStorage(500)
            .autoMinorVersionUpgrade(false)
            .customIamInstanceProfile("AWSRDSCustomSQLServerInstanceProfile")
            .backupRetentionPeriod(7)
            .dbSubnetGroupName(dbSubnetGroupName)
            .engine(custom_sqlserver.engine())
            .engineVersion(custom_sqlserver.engineVersion())
            .identifier("sql-instance-demo")
            .instanceClass(custom_sqlserver.instanceClass())
            .kmsKeyId(byId.applyValue(getKeyResult -> getKeyResult.arn()))
            .multiAz(false)
            .password("avoid-plaintext-passwords")
            .storageEncrypted(true)
            .username("test")
            .build());
    }
}
resources:
  example:
    type: aws:rds:Instance
    properties:
      allocatedStorage: 500
      autoMinorVersionUpgrade: false # Custom for SQL Server does not support minor version upgrades
      customIamInstanceProfile: AWSRDSCustomSQLServerInstanceProfile
      backupRetentionPeriod: 7
      dbSubnetGroupName: ${dbSubnetGroupName}
      engine: ${["custom-sqlserver"].engine}
      engineVersion: ${["custom-sqlserver"].engineVersion}
      identifier: sql-instance-demo
      instanceClass: ${["custom-sqlserver"].instanceClass}
      kmsKeyId: ${byId.arn}
      multiAz: false # Custom for SQL Server does support multi-az
      password: avoid-plaintext-passwords
      storageEncrypted: true
      username: test
variables:
  # Lookup the available instance classes for the custom engine for the region being operated in
  custom-sqlserver:
    fn::invoke:
      function: aws:rds:getOrderableDbInstance
      arguments:
        engine: custom-sqlserver-se
        engineVersion: 15.00.4249.2.v1
        storageType: gp3
        preferredInstanceClasses:
          - db.r5.xlarge
          - db.r5.2xlarge
          - db.r5.4xlarge
  # The RDS instance resource requires an ARN. Look up the ARN of the KMS key.
  byId:
    fn::invoke:
      function: aws:kms:getKey
      arguments:
        keyId: example-ef278353ceba4a5a97de6784565b9f78
RDS Db2 Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
// Lookup the default version for the engine. Db2 Standard Edition is `db2-se`, Db2 Advanced Edition is `db2-ae`.
const _default = aws.rds.getEngineVersion({
    engine: "db2-se",
});
// Lookup the available instance classes for the engine in the region being operated in
const example = Promise.all([_default, _default]).then(([_default, _default1]) => aws.rds.getOrderableDbInstance({
    engine: _default.engine,
    engineVersion: _default1.version,
    licenseModel: "bring-your-own-license",
    storageType: "gp3",
    preferredInstanceClasses: [
        "db.t3.small",
        "db.r6i.large",
        "db.m6i.large",
    ],
}));
// The RDS Db2 instance resource requires licensing information. Create a new parameter group using the default paramater group as a source, and set license information.
const exampleParameterGroup = new aws.rds.ParameterGroup("example", {
    name: "db-db2-params",
    family: _default.then(_default => _default.parameterGroupFamily),
    parameters: [
        {
            applyMethod: "immediate",
            name: "rds.ibm_customer_id",
            value: "0",
        },
        {
            applyMethod: "immediate",
            name: "rds.ibm_site_id",
            value: "0",
        },
    ],
});
// Create the RDS Db2 instance, use the data sources defined to set attributes
const exampleInstance = new aws.rds.Instance("example", {
    allocatedStorage: 100,
    backupRetentionPeriod: 7,
    dbName: "test",
    engine: example.then(example => example.engine),
    engineVersion: example.then(example => example.engineVersion),
    identifier: "db2-instance-demo",
    instanceClass: example.then(example => example.instanceClass).apply((x) => aws.rds.InstanceType[x]),
    parameterGroupName: exampleParameterGroup.name,
    password: "avoid-plaintext-passwords",
    username: "test",
});
import pulumi
import pulumi_aws as aws
# Lookup the default version for the engine. Db2 Standard Edition is `db2-se`, Db2 Advanced Edition is `db2-ae`.
default = aws.rds.get_engine_version(engine="db2-se")
# Lookup the available instance classes for the engine in the region being operated in
example = aws.rds.get_orderable_db_instance(engine=default.engine,
    engine_version=default.version,
    license_model="bring-your-own-license",
    storage_type="gp3",
    preferred_instance_classes=[
        "db.t3.small",
        "db.r6i.large",
        "db.m6i.large",
    ])
# The RDS Db2 instance resource requires licensing information. Create a new parameter group using the default paramater group as a source, and set license information.
example_parameter_group = aws.rds.ParameterGroup("example",
    name="db-db2-params",
    family=default.parameter_group_family,
    parameters=[
        {
            "apply_method": "immediate",
            "name": "rds.ibm_customer_id",
            "value": "0",
        },
        {
            "apply_method": "immediate",
            "name": "rds.ibm_site_id",
            "value": "0",
        },
    ])
# Create the RDS Db2 instance, use the data sources defined to set attributes
example_instance = aws.rds.Instance("example",
    allocated_storage=100,
    backup_retention_period=7,
    db_name="test",
    engine=example.engine,
    engine_version=example.engine_version,
    identifier="db2-instance-demo",
    instance_class=example.instance_class.apply(lambda x: aws.rds.InstanceType(x)),
    parameter_group_name=example_parameter_group.name,
    password="avoid-plaintext-passwords",
    username="test")
package main
import (
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/rds"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		// Lookup the default version for the engine. Db2 Standard Edition is `db2-se`, Db2 Advanced Edition is `db2-ae`.
		_default, err := rds.GetEngineVersion(ctx, &rds.GetEngineVersionArgs{
			Engine: "db2-se",
		}, nil)
		if err != nil {
			return err
		}
		// Lookup the available instance classes for the engine in the region being operated in
		example, err := rds.GetOrderableDbInstance(ctx, &rds.GetOrderableDbInstanceArgs{
			Engine:        _default.Engine,
			EngineVersion: pulumi.StringRef(_default.Version),
			LicenseModel:  pulumi.StringRef("bring-your-own-license"),
			StorageType:   pulumi.StringRef("gp3"),
			PreferredInstanceClasses: []string{
				"db.t3.small",
				"db.r6i.large",
				"db.m6i.large",
			},
		}, nil)
		if err != nil {
			return err
		}
		// The RDS Db2 instance resource requires licensing information. Create a new parameter group using the default paramater group as a source, and set license information.
		exampleParameterGroup, err := rds.NewParameterGroup(ctx, "example", &rds.ParameterGroupArgs{
			Name:   pulumi.String("db-db2-params"),
			Family: pulumi.String(_default.ParameterGroupFamily),
			Parameters: rds.ParameterGroupParameterArray{
				&rds.ParameterGroupParameterArgs{
					ApplyMethod: pulumi.String("immediate"),
					Name:        pulumi.String("rds.ibm_customer_id"),
					Value:       pulumi.String("0"),
				},
				&rds.ParameterGroupParameterArgs{
					ApplyMethod: pulumi.String("immediate"),
					Name:        pulumi.String("rds.ibm_site_id"),
					Value:       pulumi.String("0"),
				},
			},
		})
		if err != nil {
			return err
		}
		// Create the RDS Db2 instance, use the data sources defined to set attributes
		_, err = rds.NewInstance(ctx, "example", &rds.InstanceArgs{
			AllocatedStorage:      pulumi.Int(100),
			BackupRetentionPeriod: pulumi.Int(7),
			DbName:                pulumi.String("test"),
			Engine:                pulumi.String(example.Engine),
			EngineVersion:         pulumi.String(example.EngineVersion),
			Identifier:            pulumi.String("db2-instance-demo"),
			InstanceClass:         example.InstanceClass.ApplyT(func(x *string) rds.InstanceType { return rds.InstanceType(*x) }).(rds.InstanceTypeOutput),
			ParameterGroupName:    exampleParameterGroup.Name,
			Password:              pulumi.String("avoid-plaintext-passwords"),
			Username:              pulumi.String("test"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() => 
{
    // Lookup the default version for the engine. Db2 Standard Edition is `db2-se`, Db2 Advanced Edition is `db2-ae`.
    var @default = Aws.Rds.GetEngineVersion.Invoke(new()
    {
        Engine = "db2-se",
    });
    // Lookup the available instance classes for the engine in the region being operated in
    var example = Aws.Rds.GetOrderableDbInstance.Invoke(new()
    {
        Engine = @default.Apply(getEngineVersionResult => getEngineVersionResult.Engine),
        EngineVersion = @default.Apply(getEngineVersionResult => getEngineVersionResult.Version),
        LicenseModel = "bring-your-own-license",
        StorageType = "gp3",
        PreferredInstanceClasses = new[]
        {
            "db.t3.small",
            "db.r6i.large",
            "db.m6i.large",
        },
    });
    // The RDS Db2 instance resource requires licensing information. Create a new parameter group using the default paramater group as a source, and set license information.
    var exampleParameterGroup = new Aws.Rds.ParameterGroup("example", new()
    {
        Name = "db-db2-params",
        Family = @default.Apply(@default => @default.Apply(getEngineVersionResult => getEngineVersionResult.ParameterGroupFamily)),
        Parameters = new[]
        {
            new Aws.Rds.Inputs.ParameterGroupParameterArgs
            {
                ApplyMethod = "immediate",
                Name = "rds.ibm_customer_id",
                Value = "0",
            },
            new Aws.Rds.Inputs.ParameterGroupParameterArgs
            {
                ApplyMethod = "immediate",
                Name = "rds.ibm_site_id",
                Value = "0",
            },
        },
    });
    // Create the RDS Db2 instance, use the data sources defined to set attributes
    var exampleInstance = new Aws.Rds.Instance("example", new()
    {
        AllocatedStorage = 100,
        BackupRetentionPeriod = 7,
        DbName = "test",
        Engine = example.Apply(getOrderableDbInstanceResult => getOrderableDbInstanceResult.Engine),
        EngineVersion = example.Apply(getOrderableDbInstanceResult => getOrderableDbInstanceResult.EngineVersion),
        Identifier = "db2-instance-demo",
        InstanceClass = example.Apply(getOrderableDbInstanceResult => getOrderableDbInstanceResult.InstanceClass).Apply(System.Enum.Parse<Aws.Rds.InstanceType>),
        ParameterGroupName = exampleParameterGroup.Name,
        Password = "avoid-plaintext-passwords",
        Username = "test",
    });
});
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.GetEngineVersionArgs;
import com.pulumi.aws.rds.inputs.GetOrderableDbInstanceArgs;
import com.pulumi.aws.rds.ParameterGroup;
import com.pulumi.aws.rds.ParameterGroupArgs;
import com.pulumi.aws.rds.inputs.ParameterGroupParameterArgs;
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) {
        // Lookup the default version for the engine. Db2 Standard Edition is `db2-se`, Db2 Advanced Edition is `db2-ae`.
        final var default = RdsFunctions.getEngineVersion(GetEngineVersionArgs.builder()
            .engine("db2-se")
            .build());
        // Lookup the available instance classes for the engine in the region being operated in
        final var example = RdsFunctions.getOrderableDbInstance(GetOrderableDbInstanceArgs.builder()
            .engine(default_.engine())
            .engineVersion(default_.version())
            .licenseModel("bring-your-own-license")
            .storageType("gp3")
            .preferredInstanceClasses(            
                "db.t3.small",
                "db.r6i.large",
                "db.m6i.large")
            .build());
        // The RDS Db2 instance resource requires licensing information. Create a new parameter group using the default paramater group as a source, and set license information.
        var exampleParameterGroup = new ParameterGroup("exampleParameterGroup", ParameterGroupArgs.builder()
            .name("db-db2-params")
            .family(default_.parameterGroupFamily())
            .parameters(            
                ParameterGroupParameterArgs.builder()
                    .applyMethod("immediate")
                    .name("rds.ibm_customer_id")
                    .value(0)
                    .build(),
                ParameterGroupParameterArgs.builder()
                    .applyMethod("immediate")
                    .name("rds.ibm_site_id")
                    .value(0)
                    .build())
            .build());
        // Create the RDS Db2 instance, use the data sources defined to set attributes
        var exampleInstance = new Instance("exampleInstance", InstanceArgs.builder()
            .allocatedStorage(100)
            .backupRetentionPeriod(7)
            .dbName("test")
            .engine(example.applyValue(getOrderableDbInstanceResult -> getOrderableDbInstanceResult.engine()))
            .engineVersion(example.applyValue(getOrderableDbInstanceResult -> getOrderableDbInstanceResult.engineVersion()))
            .identifier("db2-instance-demo")
            .instanceClass(example.applyValue(getOrderableDbInstanceResult -> getOrderableDbInstanceResult.instanceClass()))
            .parameterGroupName(exampleParameterGroup.name())
            .password("avoid-plaintext-passwords")
            .username("test")
            .build());
    }
}
resources:
  # The RDS Db2 instance resource requires licensing information. Create a new parameter group using the default paramater group as a source, and set license information.
  exampleParameterGroup:
    type: aws:rds:ParameterGroup
    name: example
    properties:
      name: db-db2-params
      family: ${default.parameterGroupFamily}
      parameters:
        - applyMethod: immediate
          name: rds.ibm_customer_id
          value: 0
        - applyMethod: immediate
          name: rds.ibm_site_id
          value: 0
  # Create the RDS Db2 instance, use the data sources defined to set attributes
  exampleInstance:
    type: aws:rds:Instance
    name: example
    properties:
      allocatedStorage: 100
      backupRetentionPeriod: 7
      dbName: test
      engine: ${example.engine}
      engineVersion: ${example.engineVersion}
      identifier: db2-instance-demo
      instanceClass: ${example.instanceClass}
      parameterGroupName: ${exampleParameterGroup.name}
      password: avoid-plaintext-passwords
      username: test
variables:
  # Lookup the default version for the engine. Db2 Standard Edition is `db2-se`, Db2 Advanced Edition is `db2-ae`.
  default:
    fn::invoke:
      function: aws:rds:getEngineVersion
      arguments:
        engine: db2-se
  # Lookup the available instance classes for the engine in the region being operated in
  example:
    fn::invoke:
      function: aws:rds:getOrderableDbInstance
      arguments:
        engine: ${default.engine}
        engineVersion: ${default.version}
        licenseModel: bring-your-own-license
        storageType: gp3
        preferredInstanceClasses:
          - db.t3.small
          - db.r6i.large
          - db.m6i.large
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.
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.rds.Instance("example", {
    allocatedStorage: 50,
    maxAllocatedStorage: 100,
});
import pulumi
import pulumi_aws as aws
example = aws.rds.Instance("example",
    allocated_storage=50,
    max_allocated_storage=100)
package main
import (
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/rds"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := rds.NewInstance(ctx, "example", &rds.InstanceArgs{
			AllocatedStorage:    pulumi.Int(50),
			MaxAllocatedStorage: pulumi.Int(100),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() => 
{
    var example = new Aws.Rds.Instance("example", new()
    {
        AllocatedStorage = 50,
        MaxAllocatedStorage = 100,
    });
});
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());
    }
}
resources:
  example:
    type: aws:rds:Instance
    properties:
      allocatedStorage: 50
      maxAllocatedStorage: 100
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).
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const _default = new aws.rds.Instance("default", {
    allocatedStorage: 10,
    dbName: "mydb",
    engine: "mysql",
    engineVersion: "8.0",
    instanceClass: aws.rds.InstanceType.T3_Micro,
    manageMasterUserPassword: true,
    username: "foo",
    parameterGroupName: "default.mysql8.0",
});
import pulumi
import pulumi_aws as aws
default = aws.rds.Instance("default",
    allocated_storage=10,
    db_name="mydb",
    engine="mysql",
    engine_version="8.0",
    instance_class=aws.rds.InstanceType.T3_MICRO,
    manage_master_user_password=True,
    username="foo",
    parameter_group_name="default.mysql8.0")
package main
import (
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/rds"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := rds.NewInstance(ctx, "default", &rds.InstanceArgs{
			AllocatedStorage:         pulumi.Int(10),
			DbName:                   pulumi.String("mydb"),
			Engine:                   pulumi.String("mysql"),
			EngineVersion:            pulumi.String("8.0"),
			InstanceClass:            pulumi.String(rds.InstanceType_T3_Micro),
			ManageMasterUserPassword: pulumi.Bool(true),
			Username:                 pulumi.String("foo"),
			ParameterGroupName:       pulumi.String("default.mysql8.0"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() => 
{
    var @default = new Aws.Rds.Instance("default", new()
    {
        AllocatedStorage = 10,
        DbName = "mydb",
        Engine = "mysql",
        EngineVersion = "8.0",
        InstanceClass = Aws.Rds.InstanceType.T3_Micro,
        ManageMasterUserPassword = true,
        Username = "foo",
        ParameterGroupName = "default.mysql8.0",
    });
});
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("8.0")
            .instanceClass("db.t3.micro")
            .manageMasterUserPassword(true)
            .username("foo")
            .parameterGroupName("default.mysql8.0")
            .build());
    }
}
resources:
  default:
    type: aws:rds:Instance
    properties:
      allocatedStorage: 10
      dbName: mydb
      engine: mysql
      engineVersion: '8.0'
      instanceClass: db.t3.micro
      manageMasterUserPassword: true
      username: foo
      parameterGroupName: default.mysql8.0
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.
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.kms.Key("example", {description: "Example KMS Key"});
const _default = new aws.rds.Instance("default", {
    allocatedStorage: 10,
    dbName: "mydb",
    engine: "mysql",
    engineVersion: "8.0",
    instanceClass: aws.rds.InstanceType.T3_Micro,
    manageMasterUserPassword: true,
    masterUserSecretKmsKeyId: example.keyId,
    username: "foo",
    parameterGroupName: "default.mysql8.0",
});
import pulumi
import pulumi_aws as aws
example = aws.kms.Key("example", description="Example KMS Key")
default = aws.rds.Instance("default",
    allocated_storage=10,
    db_name="mydb",
    engine="mysql",
    engine_version="8.0",
    instance_class=aws.rds.InstanceType.T3_MICRO,
    manage_master_user_password=True,
    master_user_secret_kms_key_id=example.key_id,
    username="foo",
    parameter_group_name="default.mysql8.0")
package main
import (
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/kms"
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/rds"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := kms.NewKey(ctx, "example", &kms.KeyArgs{
			Description: pulumi.String("Example KMS Key"),
		})
		if err != nil {
			return err
		}
		_, err = rds.NewInstance(ctx, "default", &rds.InstanceArgs{
			AllocatedStorage:         pulumi.Int(10),
			DbName:                   pulumi.String("mydb"),
			Engine:                   pulumi.String("mysql"),
			EngineVersion:            pulumi.String("8.0"),
			InstanceClass:            pulumi.String(rds.InstanceType_T3_Micro),
			ManageMasterUserPassword: pulumi.Bool(true),
			MasterUserSecretKmsKeyId: example.KeyId,
			Username:                 pulumi.String("foo"),
			ParameterGroupName:       pulumi.String("default.mysql8.0"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() => 
{
    var example = new Aws.Kms.Key("example", new()
    {
        Description = "Example KMS Key",
    });
    var @default = new Aws.Rds.Instance("default", new()
    {
        AllocatedStorage = 10,
        DbName = "mydb",
        Engine = "mysql",
        EngineVersion = "8.0",
        InstanceClass = Aws.Rds.InstanceType.T3_Micro,
        ManageMasterUserPassword = true,
        MasterUserSecretKmsKeyId = example.KeyId,
        Username = "foo",
        ParameterGroupName = "default.mysql8.0",
    });
});
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("8.0")
            .instanceClass("db.t3.micro")
            .manageMasterUserPassword(true)
            .masterUserSecretKmsKeyId(example.keyId())
            .username("foo")
            .parameterGroupName("default.mysql8.0")
            .build());
    }
}
resources:
  example:
    type: aws:kms:Key
    properties:
      description: Example KMS Key
  default:
    type: aws:rds:Instance
    properties:
      allocatedStorage: 10
      dbName: mydb
      engine: mysql
      engineVersion: '8.0'
      instanceClass: db.t3.micro
      manageMasterUserPassword: true
      masterUserSecretKmsKeyId: ${example.keyId}
      username: foo
      parameterGroupName: default.mysql8.0
Create Instance Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Instance(name: string, args: InstanceArgs, opts?: CustomResourceOptions);@overload
def Instance(resource_name: str,
             args: InstanceArgs,
             opts: Optional[ResourceOptions] = None)
@overload
def Instance(resource_name: str,
             opts: Optional[ResourceOptions] = None,
             instance_class: Optional[Union[str, InstanceType]] = None,
             allocated_storage: Optional[int] = None,
             allow_major_version_upgrade: Optional[bool] = None,
             apply_immediately: Optional[bool] = None,
             auto_minor_version_upgrade: Optional[bool] = None,
             availability_zone: Optional[str] = None,
             backup_retention_period: Optional[int] = None,
             backup_target: Optional[str] = None,
             backup_window: Optional[str] = None,
             blue_green_update: Optional[InstanceBlueGreenUpdateArgs] = None,
             ca_cert_identifier: Optional[str] = None,
             character_set_name: Optional[str] = None,
             copy_tags_to_snapshot: Optional[bool] = None,
             custom_iam_instance_profile: Optional[str] = None,
             customer_owned_ip_enabled: Optional[bool] = None,
             db_name: Optional[str] = None,
             db_subnet_group_name: Optional[str] = None,
             dedicated_log_volume: Optional[bool] = None,
             delete_automated_backups: Optional[bool] = None,
             deletion_protection: Optional[bool] = None,
             domain: Optional[str] = None,
             domain_auth_secret_arn: Optional[str] = None,
             domain_dns_ips: Optional[Sequence[str]] = None,
             domain_fqdn: Optional[str] = None,
             domain_iam_role_name: Optional[str] = None,
             domain_ou: Optional[str] = None,
             enabled_cloudwatch_logs_exports: Optional[Sequence[str]] = None,
             engine: Optional[str] = None,
             engine_lifecycle_support: Optional[str] = None,
             engine_version: Optional[str] = None,
             final_snapshot_identifier: Optional[str] = None,
             iam_database_authentication_enabled: Optional[bool] = None,
             identifier: Optional[str] = None,
             identifier_prefix: Optional[str] = None,
             iops: Optional[int] = None,
             kms_key_id: Optional[str] = None,
             license_model: Optional[str] = None,
             maintenance_window: Optional[str] = None,
             manage_master_user_password: Optional[bool] = None,
             master_user_secret_kms_key_id: Optional[str] = None,
             max_allocated_storage: Optional[int] = None,
             monitoring_interval: Optional[int] = None,
             monitoring_role_arn: Optional[str] = None,
             multi_az: Optional[bool] = None,
             name: Optional[str] = None,
             nchar_character_set_name: Optional[str] = None,
             network_type: Optional[str] = None,
             option_group_name: Optional[str] = None,
             parameter_group_name: Optional[str] = None,
             password: Optional[str] = None,
             performance_insights_enabled: Optional[bool] = None,
             performance_insights_kms_key_id: Optional[str] = None,
             performance_insights_retention_period: Optional[int] = None,
             port: Optional[int] = None,
             publicly_accessible: Optional[bool] = None,
             replica_mode: Optional[str] = None,
             replicate_source_db: Optional[str] = None,
             restore_to_point_in_time: Optional[InstanceRestoreToPointInTimeArgs] = None,
             s3_import: Optional[InstanceS3ImportArgs] = None,
             skip_final_snapshot: Optional[bool] = None,
             snapshot_identifier: Optional[str] = None,
             storage_encrypted: Optional[bool] = None,
             storage_throughput: Optional[int] = None,
             storage_type: Optional[Union[str, StorageType]] = None,
             tags: Optional[Mapping[str, str]] = None,
             timezone: Optional[str] = None,
             upgrade_storage_config: Optional[bool] = None,
             username: Optional[str] = None,
             vpc_security_group_ids: Optional[Sequence[str]] = None)func NewInstance(ctx *Context, name string, args InstanceArgs, opts ...ResourceOption) (*Instance, error)public Instance(string name, InstanceArgs args, CustomResourceOptions? opts = null)
public Instance(String name, InstanceArgs args)
public Instance(String name, InstanceArgs args, CustomResourceOptions options)
type: aws:rds:Instance
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args InstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args InstanceArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args InstanceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args InstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args InstanceArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var exampleinstanceResourceResourceFromRdsinstance = new Aws.Rds.Instance("exampleinstanceResourceResourceFromRdsinstance", new()
{
    InstanceClass = "string",
    AllocatedStorage = 0,
    AllowMajorVersionUpgrade = false,
    ApplyImmediately = false,
    AutoMinorVersionUpgrade = false,
    AvailabilityZone = "string",
    BackupRetentionPeriod = 0,
    BackupTarget = "string",
    BackupWindow = "string",
    BlueGreenUpdate = new Aws.Rds.Inputs.InstanceBlueGreenUpdateArgs
    {
        Enabled = false,
    },
    CaCertIdentifier = "string",
    CharacterSetName = "string",
    CopyTagsToSnapshot = false,
    CustomIamInstanceProfile = "string",
    CustomerOwnedIpEnabled = false,
    DbName = "string",
    DbSubnetGroupName = "string",
    DedicatedLogVolume = false,
    DeleteAutomatedBackups = false,
    DeletionProtection = false,
    Domain = "string",
    DomainAuthSecretArn = "string",
    DomainDnsIps = new[]
    {
        "string",
    },
    DomainFqdn = "string",
    DomainIamRoleName = "string",
    DomainOu = "string",
    EnabledCloudwatchLogsExports = new[]
    {
        "string",
    },
    Engine = "string",
    EngineLifecycleSupport = "string",
    EngineVersion = "string",
    FinalSnapshotIdentifier = "string",
    IamDatabaseAuthenticationEnabled = false,
    Identifier = "string",
    IdentifierPrefix = "string",
    Iops = 0,
    KmsKeyId = "string",
    LicenseModel = "string",
    MaintenanceWindow = "string",
    ManageMasterUserPassword = false,
    MasterUserSecretKmsKeyId = "string",
    MaxAllocatedStorage = 0,
    MonitoringInterval = 0,
    MonitoringRoleArn = "string",
    MultiAz = false,
    NcharCharacterSetName = "string",
    NetworkType = "string",
    OptionGroupName = "string",
    ParameterGroupName = "string",
    Password = "string",
    PerformanceInsightsEnabled = false,
    PerformanceInsightsKmsKeyId = "string",
    PerformanceInsightsRetentionPeriod = 0,
    Port = 0,
    PubliclyAccessible = false,
    ReplicaMode = "string",
    ReplicateSourceDb = "string",
    RestoreToPointInTime = new Aws.Rds.Inputs.InstanceRestoreToPointInTimeArgs
    {
        RestoreTime = "string",
        SourceDbInstanceAutomatedBackupsArn = "string",
        SourceDbInstanceIdentifier = "string",
        SourceDbiResourceId = "string",
        UseLatestRestorableTime = false,
    },
    S3Import = new Aws.Rds.Inputs.InstanceS3ImportArgs
    {
        BucketName = "string",
        IngestionRole = "string",
        SourceEngine = "string",
        SourceEngineVersion = "string",
        BucketPrefix = "string",
    },
    SkipFinalSnapshot = false,
    SnapshotIdentifier = "string",
    StorageEncrypted = false,
    StorageThroughput = 0,
    StorageType = "string",
    Tags = 
    {
        { "string", "string" },
    },
    Timezone = "string",
    UpgradeStorageConfig = false,
    Username = "string",
    VpcSecurityGroupIds = new[]
    {
        "string",
    },
});
example, err := rds.NewInstance(ctx, "exampleinstanceResourceResourceFromRdsinstance", &rds.InstanceArgs{
	InstanceClass:            pulumi.String("string"),
	AllocatedStorage:         pulumi.Int(0),
	AllowMajorVersionUpgrade: pulumi.Bool(false),
	ApplyImmediately:         pulumi.Bool(false),
	AutoMinorVersionUpgrade:  pulumi.Bool(false),
	AvailabilityZone:         pulumi.String("string"),
	BackupRetentionPeriod:    pulumi.Int(0),
	BackupTarget:             pulumi.String("string"),
	BackupWindow:             pulumi.String("string"),
	BlueGreenUpdate: &rds.InstanceBlueGreenUpdateArgs{
		Enabled: pulumi.Bool(false),
	},
	CaCertIdentifier:         pulumi.String("string"),
	CharacterSetName:         pulumi.String("string"),
	CopyTagsToSnapshot:       pulumi.Bool(false),
	CustomIamInstanceProfile: pulumi.String("string"),
	CustomerOwnedIpEnabled:   pulumi.Bool(false),
	DbName:                   pulumi.String("string"),
	DbSubnetGroupName:        pulumi.String("string"),
	DedicatedLogVolume:       pulumi.Bool(false),
	DeleteAutomatedBackups:   pulumi.Bool(false),
	DeletionProtection:       pulumi.Bool(false),
	Domain:                   pulumi.String("string"),
	DomainAuthSecretArn:      pulumi.String("string"),
	DomainDnsIps: pulumi.StringArray{
		pulumi.String("string"),
	},
	DomainFqdn:        pulumi.String("string"),
	DomainIamRoleName: pulumi.String("string"),
	DomainOu:          pulumi.String("string"),
	EnabledCloudwatchLogsExports: pulumi.StringArray{
		pulumi.String("string"),
	},
	Engine:                             pulumi.String("string"),
	EngineLifecycleSupport:             pulumi.String("string"),
	EngineVersion:                      pulumi.String("string"),
	FinalSnapshotIdentifier:            pulumi.String("string"),
	IamDatabaseAuthenticationEnabled:   pulumi.Bool(false),
	Identifier:                         pulumi.String("string"),
	IdentifierPrefix:                   pulumi.String("string"),
	Iops:                               pulumi.Int(0),
	KmsKeyId:                           pulumi.String("string"),
	LicenseModel:                       pulumi.String("string"),
	MaintenanceWindow:                  pulumi.String("string"),
	ManageMasterUserPassword:           pulumi.Bool(false),
	MasterUserSecretKmsKeyId:           pulumi.String("string"),
	MaxAllocatedStorage:                pulumi.Int(0),
	MonitoringInterval:                 pulumi.Int(0),
	MonitoringRoleArn:                  pulumi.String("string"),
	MultiAz:                            pulumi.Bool(false),
	NcharCharacterSetName:              pulumi.String("string"),
	NetworkType:                        pulumi.String("string"),
	OptionGroupName:                    pulumi.String("string"),
	ParameterGroupName:                 pulumi.String("string"),
	Password:                           pulumi.String("string"),
	PerformanceInsightsEnabled:         pulumi.Bool(false),
	PerformanceInsightsKmsKeyId:        pulumi.String("string"),
	PerformanceInsightsRetentionPeriod: pulumi.Int(0),
	Port:                               pulumi.Int(0),
	PubliclyAccessible:                 pulumi.Bool(false),
	ReplicaMode:                        pulumi.String("string"),
	ReplicateSourceDb:                  pulumi.String("string"),
	RestoreToPointInTime: &rds.InstanceRestoreToPointInTimeArgs{
		RestoreTime:                         pulumi.String("string"),
		SourceDbInstanceAutomatedBackupsArn: pulumi.String("string"),
		SourceDbInstanceIdentifier:          pulumi.String("string"),
		SourceDbiResourceId:                 pulumi.String("string"),
		UseLatestRestorableTime:             pulumi.Bool(false),
	},
	S3Import: &rds.InstanceS3ImportArgs{
		BucketName:          pulumi.String("string"),
		IngestionRole:       pulumi.String("string"),
		SourceEngine:        pulumi.String("string"),
		SourceEngineVersion: pulumi.String("string"),
		BucketPrefix:        pulumi.String("string"),
	},
	SkipFinalSnapshot:  pulumi.Bool(false),
	SnapshotIdentifier: pulumi.String("string"),
	StorageEncrypted:   pulumi.Bool(false),
	StorageThroughput:  pulumi.Int(0),
	StorageType:        pulumi.String("string"),
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	Timezone:             pulumi.String("string"),
	UpgradeStorageConfig: pulumi.Bool(false),
	Username:             pulumi.String("string"),
	VpcSecurityGroupIds: pulumi.StringArray{
		pulumi.String("string"),
	},
})
var exampleinstanceResourceResourceFromRdsinstance = new Instance("exampleinstanceResourceResourceFromRdsinstance", InstanceArgs.builder()
    .instanceClass("string")
    .allocatedStorage(0)
    .allowMajorVersionUpgrade(false)
    .applyImmediately(false)
    .autoMinorVersionUpgrade(false)
    .availabilityZone("string")
    .backupRetentionPeriod(0)
    .backupTarget("string")
    .backupWindow("string")
    .blueGreenUpdate(InstanceBlueGreenUpdateArgs.builder()
        .enabled(false)
        .build())
    .caCertIdentifier("string")
    .characterSetName("string")
    .copyTagsToSnapshot(false)
    .customIamInstanceProfile("string")
    .customerOwnedIpEnabled(false)
    .dbName("string")
    .dbSubnetGroupName("string")
    .dedicatedLogVolume(false)
    .deleteAutomatedBackups(false)
    .deletionProtection(false)
    .domain("string")
    .domainAuthSecretArn("string")
    .domainDnsIps("string")
    .domainFqdn("string")
    .domainIamRoleName("string")
    .domainOu("string")
    .enabledCloudwatchLogsExports("string")
    .engine("string")
    .engineLifecycleSupport("string")
    .engineVersion("string")
    .finalSnapshotIdentifier("string")
    .iamDatabaseAuthenticationEnabled(false)
    .identifier("string")
    .identifierPrefix("string")
    .iops(0)
    .kmsKeyId("string")
    .licenseModel("string")
    .maintenanceWindow("string")
    .manageMasterUserPassword(false)
    .masterUserSecretKmsKeyId("string")
    .maxAllocatedStorage(0)
    .monitoringInterval(0)
    .monitoringRoleArn("string")
    .multiAz(false)
    .ncharCharacterSetName("string")
    .networkType("string")
    .optionGroupName("string")
    .parameterGroupName("string")
    .password("string")
    .performanceInsightsEnabled(false)
    .performanceInsightsKmsKeyId("string")
    .performanceInsightsRetentionPeriod(0)
    .port(0)
    .publiclyAccessible(false)
    .replicaMode("string")
    .replicateSourceDb("string")
    .restoreToPointInTime(InstanceRestoreToPointInTimeArgs.builder()
        .restoreTime("string")
        .sourceDbInstanceAutomatedBackupsArn("string")
        .sourceDbInstanceIdentifier("string")
        .sourceDbiResourceId("string")
        .useLatestRestorableTime(false)
        .build())
    .s3Import(InstanceS3ImportArgs.builder()
        .bucketName("string")
        .ingestionRole("string")
        .sourceEngine("string")
        .sourceEngineVersion("string")
        .bucketPrefix("string")
        .build())
    .skipFinalSnapshot(false)
    .snapshotIdentifier("string")
    .storageEncrypted(false)
    .storageThroughput(0)
    .storageType("string")
    .tags(Map.of("string", "string"))
    .timezone("string")
    .upgradeStorageConfig(false)
    .username("string")
    .vpcSecurityGroupIds("string")
    .build());
exampleinstance_resource_resource_from_rdsinstance = aws.rds.Instance("exampleinstanceResourceResourceFromRdsinstance",
    instance_class="string",
    allocated_storage=0,
    allow_major_version_upgrade=False,
    apply_immediately=False,
    auto_minor_version_upgrade=False,
    availability_zone="string",
    backup_retention_period=0,
    backup_target="string",
    backup_window="string",
    blue_green_update={
        "enabled": False,
    },
    ca_cert_identifier="string",
    character_set_name="string",
    copy_tags_to_snapshot=False,
    custom_iam_instance_profile="string",
    customer_owned_ip_enabled=False,
    db_name="string",
    db_subnet_group_name="string",
    dedicated_log_volume=False,
    delete_automated_backups=False,
    deletion_protection=False,
    domain="string",
    domain_auth_secret_arn="string",
    domain_dns_ips=["string"],
    domain_fqdn="string",
    domain_iam_role_name="string",
    domain_ou="string",
    enabled_cloudwatch_logs_exports=["string"],
    engine="string",
    engine_lifecycle_support="string",
    engine_version="string",
    final_snapshot_identifier="string",
    iam_database_authentication_enabled=False,
    identifier="string",
    identifier_prefix="string",
    iops=0,
    kms_key_id="string",
    license_model="string",
    maintenance_window="string",
    manage_master_user_password=False,
    master_user_secret_kms_key_id="string",
    max_allocated_storage=0,
    monitoring_interval=0,
    monitoring_role_arn="string",
    multi_az=False,
    nchar_character_set_name="string",
    network_type="string",
    option_group_name="string",
    parameter_group_name="string",
    password="string",
    performance_insights_enabled=False,
    performance_insights_kms_key_id="string",
    performance_insights_retention_period=0,
    port=0,
    publicly_accessible=False,
    replica_mode="string",
    replicate_source_db="string",
    restore_to_point_in_time={
        "restore_time": "string",
        "source_db_instance_automated_backups_arn": "string",
        "source_db_instance_identifier": "string",
        "source_dbi_resource_id": "string",
        "use_latest_restorable_time": False,
    },
    s3_import={
        "bucket_name": "string",
        "ingestion_role": "string",
        "source_engine": "string",
        "source_engine_version": "string",
        "bucket_prefix": "string",
    },
    skip_final_snapshot=False,
    snapshot_identifier="string",
    storage_encrypted=False,
    storage_throughput=0,
    storage_type="string",
    tags={
        "string": "string",
    },
    timezone="string",
    upgrade_storage_config=False,
    username="string",
    vpc_security_group_ids=["string"])
const exampleinstanceResourceResourceFromRdsinstance = new aws.rds.Instance("exampleinstanceResourceResourceFromRdsinstance", {
    instanceClass: "string",
    allocatedStorage: 0,
    allowMajorVersionUpgrade: false,
    applyImmediately: false,
    autoMinorVersionUpgrade: false,
    availabilityZone: "string",
    backupRetentionPeriod: 0,
    backupTarget: "string",
    backupWindow: "string",
    blueGreenUpdate: {
        enabled: false,
    },
    caCertIdentifier: "string",
    characterSetName: "string",
    copyTagsToSnapshot: false,
    customIamInstanceProfile: "string",
    customerOwnedIpEnabled: false,
    dbName: "string",
    dbSubnetGroupName: "string",
    dedicatedLogVolume: false,
    deleteAutomatedBackups: false,
    deletionProtection: false,
    domain: "string",
    domainAuthSecretArn: "string",
    domainDnsIps: ["string"],
    domainFqdn: "string",
    domainIamRoleName: "string",
    domainOu: "string",
    enabledCloudwatchLogsExports: ["string"],
    engine: "string",
    engineLifecycleSupport: "string",
    engineVersion: "string",
    finalSnapshotIdentifier: "string",
    iamDatabaseAuthenticationEnabled: false,
    identifier: "string",
    identifierPrefix: "string",
    iops: 0,
    kmsKeyId: "string",
    licenseModel: "string",
    maintenanceWindow: "string",
    manageMasterUserPassword: false,
    masterUserSecretKmsKeyId: "string",
    maxAllocatedStorage: 0,
    monitoringInterval: 0,
    monitoringRoleArn: "string",
    multiAz: false,
    ncharCharacterSetName: "string",
    networkType: "string",
    optionGroupName: "string",
    parameterGroupName: "string",
    password: "string",
    performanceInsightsEnabled: false,
    performanceInsightsKmsKeyId: "string",
    performanceInsightsRetentionPeriod: 0,
    port: 0,
    publiclyAccessible: false,
    replicaMode: "string",
    replicateSourceDb: "string",
    restoreToPointInTime: {
        restoreTime: "string",
        sourceDbInstanceAutomatedBackupsArn: "string",
        sourceDbInstanceIdentifier: "string",
        sourceDbiResourceId: "string",
        useLatestRestorableTime: false,
    },
    s3Import: {
        bucketName: "string",
        ingestionRole: "string",
        sourceEngine: "string",
        sourceEngineVersion: "string",
        bucketPrefix: "string",
    },
    skipFinalSnapshot: false,
    snapshotIdentifier: "string",
    storageEncrypted: false,
    storageThroughput: 0,
    storageType: "string",
    tags: {
        string: "string",
    },
    timezone: "string",
    upgradeStorageConfig: false,
    username: "string",
    vpcSecurityGroupIds: ["string"],
});
type: aws:rds:Instance
properties:
    allocatedStorage: 0
    allowMajorVersionUpgrade: false
    applyImmediately: false
    autoMinorVersionUpgrade: false
    availabilityZone: string
    backupRetentionPeriod: 0
    backupTarget: string
    backupWindow: string
    blueGreenUpdate:
        enabled: false
    caCertIdentifier: string
    characterSetName: string
    copyTagsToSnapshot: false
    customIamInstanceProfile: string
    customerOwnedIpEnabled: false
    dbName: string
    dbSubnetGroupName: string
    dedicatedLogVolume: false
    deleteAutomatedBackups: false
    deletionProtection: false
    domain: string
    domainAuthSecretArn: string
    domainDnsIps:
        - string
    domainFqdn: string
    domainIamRoleName: string
    domainOu: string
    enabledCloudwatchLogsExports:
        - string
    engine: string
    engineLifecycleSupport: string
    engineVersion: string
    finalSnapshotIdentifier: string
    iamDatabaseAuthenticationEnabled: false
    identifier: string
    identifierPrefix: string
    instanceClass: string
    iops: 0
    kmsKeyId: string
    licenseModel: string
    maintenanceWindow: string
    manageMasterUserPassword: false
    masterUserSecretKmsKeyId: string
    maxAllocatedStorage: 0
    monitoringInterval: 0
    monitoringRoleArn: string
    multiAz: false
    ncharCharacterSetName: string
    networkType: string
    optionGroupName: string
    parameterGroupName: string
    password: string
    performanceInsightsEnabled: false
    performanceInsightsKmsKeyId: string
    performanceInsightsRetentionPeriod: 0
    port: 0
    publiclyAccessible: false
    replicaMode: string
    replicateSourceDb: string
    restoreToPointInTime:
        restoreTime: string
        sourceDbInstanceAutomatedBackupsArn: string
        sourceDbInstanceIdentifier: string
        sourceDbiResourceId: string
        useLatestRestorableTime: false
    s3Import:
        bucketName: string
        bucketPrefix: string
        ingestionRole: string
        sourceEngine: string
        sourceEngineVersion: string
    skipFinalSnapshot: false
    snapshotIdentifier: string
    storageEncrypted: false
    storageThroughput: 0
    storageType: string
    tags:
        string: string
    timezone: string
    upgradeStorageConfig: false
    username: string
    vpcSecurityGroupIds:
        - string
Instance Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Instance resource accepts the following input properties:
- InstanceClass string | Pulumi.Aws. Rds. Instance Type 
- The instance type of the RDS instance.
- AllocatedStorage int
- The allocated storage in gibibytes. If max_allocated_storageis configured, this argument represents the initial storage allocation and differences from the configuration will be ignored automatically when Storage Autoscaling occurs. Ifreplicate_source_dbis set, the value is ignored during the creation of the instance.
- AllowMajor boolVersion Upgrade 
- 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.
- ApplyImmediately bool
- Specifies whether any database modifications
are applied immediately, or during the next maintenance window. Default is
false. See Amazon RDS Documentation for more information.
- AutoMinor boolVersion Upgrade 
- Indicates that minor engine upgrades will be applied automatically to the DB instance during the maintenance window. Defaults to true.
- AvailabilityZone string
- The AZ for the RDS instance.
- BackupRetention intPeriod 
- The days to retain backups for.
Must be between 0and35. Default is0. Must be greater than0if the database is used as a source for a [Read Replica][instance-replication], uses low-downtime updates, or will use [RDS Blue/Green deployments][blue-green].
- BackupTarget string
- Specifies where automated backups and manual snapshots are stored. Possible values are region(default) andoutposts. See Working with Amazon RDS on AWS Outposts for more information.
- BackupWindow string
- 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.
- BlueGreen InstanceUpdate Blue Green Update 
- Enables low-downtime updates using [RDS Blue/Green deployments][blue-green].
See blue_green_updatebelow.
- CaCert stringIdentifier 
- The identifier of the CA certificate for the DB instance.
- CharacterSet stringName 
- 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 Supported in Amazon RDS or
Server-Level Collation for Microsoft SQL Server for more information.
Cannot be set with replicate_source_db,restore_to_point_in_time,s3_import, orsnapshot_identifier.
- bool
- Copy all Instance tagsto snapshots. Default isfalse.
- CustomIam stringInstance Profile 
- The instance profile associated with the underlying Amazon EC2 instance of an RDS Custom DB instance.
- CustomerOwned boolIp Enabled 
- 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. - NOTE: Removing the - replicate_source_dbattribute from an existing RDS Replicate database managed by the provider will promote the database to a fully standalone database.
- DbName string
- 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.
- DbSubnet stringGroup Name 
- 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 defaultSubnet Group. When working with read replicas created in the same region, defaults to the Subnet Group Name of the source DB. When working with read replicas created in a different region, defaults to thedefaultSubnet Group. See DBSubnetGroupName in API action CreateDBInstanceReadReplica for additional read replica constraints.
- DedicatedLog boolVolume 
- Use a dedicated log volume (DLV) for the DB instance. Requires Provisioned IOPS. See the AWS documentation for more details.
- DeleteAutomated boolBackups 
- Specifies whether to remove automated backups immediately after the DB instance is deleted. Default is true.
- DeletionProtection bool
- If the DB instance should have deletion protection enabled. The database can't be deleted when this value is set to true. The default isfalse.
- Domain string
- The ID of the Directory Service Active Directory domain to create the instance in. Conflicts with domain_fqdn,domain_ou,domain_auth_secret_arnand adomain_dns_ips.
- DomainAuth stringSecret Arn 
- The ARN for the Secrets Manager secret with the self managed Active Directory credentials for the user joining the domain. Conflicts with domainanddomain_iam_role_name.
- DomainDns List<string>Ips 
- The IPv4 DNS IP addresses of your primary and secondary self managed Active Directory domain controllers. Two IP addresses must be provided. If there isn't a secondary domain controller, use the IP address of the primary domain controller for both entries in the list. Conflicts with domainanddomain_iam_role_name.
- DomainFqdn string
- The fully qualified domain name (FQDN) of the self managed Active Directory domain. Conflicts with domainanddomain_iam_role_name.
- DomainIam stringRole Name 
- The name of the IAM role to be used when making API calls to the Directory Service. Conflicts with domain_fqdn,domain_ou,domain_auth_secret_arnand adomain_dns_ips.
- DomainOu string
- The self managed Active Directory organizational unit for your DB instance to join. Conflicts with domainanddomain_iam_role_name.
- EnabledCloudwatch List<string>Logs Exports 
- Set of log types to enable for exporting to CloudWatch logs. If omitted, no logs will be exported. For supported values, see the EnableCloudwatchLogsExports.member.N parameter in API action CreateDBInstance.
- Engine string
- 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.
- EngineLifecycle stringSupport 
- The life cycle type for this DB instance. This setting applies only to RDS for MySQL and RDS for PostgreSQL. Valid values are open-source-rds-extended-support,open-source-rds-extended-support-disabled. Default value isopen-source-rds-extended-support. [Using Amazon RDS Extended Support]: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/extended-support.html
- EngineVersion string
- The engine version to use. If auto_minor_version_upgradeis enabled, you can provide a prefix of the version such as8.0(for8.0.36). The actual engine version used is returned in the attributeengine_version_actual, see Attribute 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'.
- FinalSnapshot stringIdentifier 
- The name of your final DB snapshot
when this DB instance is deleted. Must be provided if skip_final_snapshotis set tofalse. 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.
- IamDatabase boolAuthentication Enabled 
- Specifies whether mappings of AWS Identity and Access Management (IAM) accounts to database accounts is enabled.
- Identifier string
- The name of the RDS instance, if omitted, this provider will assign a random, unique identifier. Required if restore_to_point_in_timeis specified.
- IdentifierPrefix string
- Creates a unique identifier beginning with the specified prefix. Conflicts with identifier.
- Iops int
- The amount of provisioned IOPS. Setting this implies a
storage_type of "io1" or "io2". Can only be set when storage_typeis"io1","io2or"gp3". Cannot be specified for gp3 storage if theallocated_storagevalue is below a per-enginethreshold. See the RDS User Guide for details.
- KmsKey stringId 
- The ARN for the KMS encryption key. If creating an encrypted replica, set this to the destination KMS ARN.
- LicenseModel string
- License model information for this DB instance. Valid values for this field are as follows:- RDS for MariaDB: general-public-license
- RDS for Microsoft SQL Server: license-included
- RDS for MySQL: general-public-license
- RDS for Oracle: bring-your-own-license | license-included
- RDS for PostgreSQL: postgresql-license
 
- RDS for MariaDB: 
- MaintenanceWindow string
- The window to perform maintenance in. Syntax: "ddd:hh24:mi-ddd:hh24:mi". Eg: "Mon:00:00-Mon:03:00". See RDS Maintenance Window docs for more information.
- ManageMaster boolUser Password 
- Set to true to allow RDS to manage the master user password in Secrets Manager. Cannot be set if passwordorpassword_wois provided.
- MasterUser stringSecret Kms Key Id 
- 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.
- MaxAllocated intStorage 
- Specifies the maximum storage (in GiB) that Amazon RDS can automatically scale to for this DB instance. By default, Storage Autoscaling is disabled. To enable Storage Autoscaling, set max_allocated_storageto greater than or equal toallocated_storage. Settingmax_allocated_storageto 0 explicitly disables Storage Autoscaling. When configured, changes toallocated_storagewill be automatically ignored as the storage can dynamically scale.
- MonitoringInterval int
- 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.
- MonitoringRole stringArn 
- 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 Documentation what IAM permissions are needed to allow Enhanced Monitoring for RDS Instances.
- MultiAz bool
- Specifies if the RDS instance is multi-AZ
- Name string
- NcharCharacter stringSet Name 
- 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 Supported in Amazon RDS.
- NetworkType string
- The network type of the DB instance. Valid values: IPV4,DUAL.
- OptionGroup stringName 
- Name of the DB option group to associate.
- ParameterGroup stringName 
- Name of the DB parameter group to associate.
- Password string
- 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_passwordis set totrue.
- PerformanceInsights boolEnabled 
- Specifies whether Performance Insights are enabled. Defaults to false.
- PerformanceInsights stringKms Key Id 
- The ARN for the KMS key to encrypt Performance Insights data. When specifying performance_insights_kms_key_id,performance_insights_enabledneeds to be set to true. Once KMS key is set, it can never be changed.
- PerformanceInsights intRetention Period 
- Amount of time in days to retain Performance Insights data. Valid values are 7,731(2 years) or a multiple of31. When specifyingperformance_insights_retention_period,performance_insights_enabledneeds to be set to true. Defaults to '7'.
- Port int
- The port on which the DB accepts connections.
- PubliclyAccessible bool
- Bool to control if instance is publicly
accessible. Default is false.
- ReplicaMode string
- Specifies whether the replica is in either mountedoropen-read-onlymode. This attribute is only supported by Oracle instances. Oracle replicas operate inopen-read-onlymode unless otherwise specified. See Working with Oracle Read Replicas for more information.
- ReplicateSource stringDb 
- Specifies that this resource is a Replica database, and to use this value as the source database.
If replicating an Amazon RDS Database Instance in the same region, use the identifierof the source DB, unless also specifying thedb_subnet_group_name. If specifying thedb_subnet_group_namein the same region, use thearnof the source DB. If replicating an Instance in a different region, use thearnof the source DB. Note that if you are creating a cross-region replica of an encrypted database you will also need to specify akms_key_id. See [DB Instance Replication][instance-replication] and Working with PostgreSQL and MySQL Read Replicas for more information on using Replication.
- RestoreTo InstancePoint In Time Restore To Point In Time 
- A configuration block for restoring a DB instance to an arbitrary point in time.
Requires the identifierargument to be set with the name of the new DB instance to be created. See Restore To Point In Time below for details.
- S3Import
InstanceS3Import 
- Restore from a Percona Xtrabackup in S3. See Importing Data into an Amazon RDS MySQL DB Instance
- SkipFinal boolSnapshot 
- 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 isfalse.
- SnapshotIdentifier string
- Specifies whether or not to create this database from a snapshot. This corresponds to the snapshot ID you'd find in the RDS console, e.g: rds:production-2015-06-26-06-05.
- StorageEncrypted bool
- 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_idwith a valid ARN. The default isfalseif not specified.
- StorageThroughput int
- The storage throughput value for the DB instance. Can only be set when storage_typeis"gp3". Cannot be specified if theallocated_storagevalue is below a per-enginethreshold. See the RDS User Guide for details.
- StorageType string | Pulumi.Aws. Rds. Storage Type 
- One of "standard" (magnetic), "gp2" (general
purpose SSD), "gp3" (general purpose SSD that needs iopsindependently) "io1" (provisioned IOPS SSD) or "io2" (block express storage provisioned IOPS SSD). The default is "io1" ifiopsis specified, "gp2" if not.
- Dictionary<string, string>
- A map of tags to assign to the resource. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- Timezone string
- Time zone of the DB instance. timezoneis currently only supported by Microsoft SQL Server. Thetimezonecan only be set on creation. See MSSQL User Guide for more information.
- UpgradeStorage boolConfig 
- Whether to upgrade the storage file system configuration on the read replica.
Can only be set with replicate_source_db.
- Username string
- (Required unless a snapshot_identifierorreplicate_source_dbis provided) Username for the master DB user. Cannot be specified for a replica.
- VpcSecurity List<string>Group Ids 
- List of VPC security groups to associate.
- InstanceClass string | InstanceType 
- The instance type of the RDS instance.
- AllocatedStorage int
- The allocated storage in gibibytes. If max_allocated_storageis configured, this argument represents the initial storage allocation and differences from the configuration will be ignored automatically when Storage Autoscaling occurs. Ifreplicate_source_dbis set, the value is ignored during the creation of the instance.
- AllowMajor boolVersion Upgrade 
- 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.
- ApplyImmediately bool
- Specifies whether any database modifications
are applied immediately, or during the next maintenance window. Default is
false. See Amazon RDS Documentation for more information.
- AutoMinor boolVersion Upgrade 
- Indicates that minor engine upgrades will be applied automatically to the DB instance during the maintenance window. Defaults to true.
- AvailabilityZone string
- The AZ for the RDS instance.
- BackupRetention intPeriod 
- The days to retain backups for.
Must be between 0and35. Default is0. Must be greater than0if the database is used as a source for a [Read Replica][instance-replication], uses low-downtime updates, or will use [RDS Blue/Green deployments][blue-green].
- BackupTarget string
- Specifies where automated backups and manual snapshots are stored. Possible values are region(default) andoutposts. See Working with Amazon RDS on AWS Outposts for more information.
- BackupWindow string
- 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.
- BlueGreen InstanceUpdate Blue Green Update Args 
- Enables low-downtime updates using [RDS Blue/Green deployments][blue-green].
See blue_green_updatebelow.
- CaCert stringIdentifier 
- The identifier of the CA certificate for the DB instance.
- CharacterSet stringName 
- 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 Supported in Amazon RDS or
Server-Level Collation for Microsoft SQL Server for more information.
Cannot be set with replicate_source_db,restore_to_point_in_time,s3_import, orsnapshot_identifier.
- bool
- Copy all Instance tagsto snapshots. Default isfalse.
- CustomIam stringInstance Profile 
- The instance profile associated with the underlying Amazon EC2 instance of an RDS Custom DB instance.
- CustomerOwned boolIp Enabled 
- 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. - NOTE: Removing the - replicate_source_dbattribute from an existing RDS Replicate database managed by the provider will promote the database to a fully standalone database.
- DbName string
- 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.
- DbSubnet stringGroup Name 
- 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 defaultSubnet Group. When working with read replicas created in the same region, defaults to the Subnet Group Name of the source DB. When working with read replicas created in a different region, defaults to thedefaultSubnet Group. See DBSubnetGroupName in API action CreateDBInstanceReadReplica for additional read replica constraints.
- DedicatedLog boolVolume 
- Use a dedicated log volume (DLV) for the DB instance. Requires Provisioned IOPS. See the AWS documentation for more details.
- DeleteAutomated boolBackups 
- Specifies whether to remove automated backups immediately after the DB instance is deleted. Default is true.
- DeletionProtection bool
- If the DB instance should have deletion protection enabled. The database can't be deleted when this value is set to true. The default isfalse.
- Domain string
- The ID of the Directory Service Active Directory domain to create the instance in. Conflicts with domain_fqdn,domain_ou,domain_auth_secret_arnand adomain_dns_ips.
- DomainAuth stringSecret Arn 
- The ARN for the Secrets Manager secret with the self managed Active Directory credentials for the user joining the domain. Conflicts with domainanddomain_iam_role_name.
- DomainDns []stringIps 
- The IPv4 DNS IP addresses of your primary and secondary self managed Active Directory domain controllers. Two IP addresses must be provided. If there isn't a secondary domain controller, use the IP address of the primary domain controller for both entries in the list. Conflicts with domainanddomain_iam_role_name.
- DomainFqdn string
- The fully qualified domain name (FQDN) of the self managed Active Directory domain. Conflicts with domainanddomain_iam_role_name.
- DomainIam stringRole Name 
- The name of the IAM role to be used when making API calls to the Directory Service. Conflicts with domain_fqdn,domain_ou,domain_auth_secret_arnand adomain_dns_ips.
- DomainOu string
- The self managed Active Directory organizational unit for your DB instance to join. Conflicts with domainanddomain_iam_role_name.
- EnabledCloudwatch []stringLogs Exports 
- Set of log types to enable for exporting to CloudWatch logs. If omitted, no logs will be exported. For supported values, see the EnableCloudwatchLogsExports.member.N parameter in API action CreateDBInstance.
- Engine string
- 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.
- EngineLifecycle stringSupport 
- The life cycle type for this DB instance. This setting applies only to RDS for MySQL and RDS for PostgreSQL. Valid values are open-source-rds-extended-support,open-source-rds-extended-support-disabled. Default value isopen-source-rds-extended-support. [Using Amazon RDS Extended Support]: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/extended-support.html
- EngineVersion string
- The engine version to use. If auto_minor_version_upgradeis enabled, you can provide a prefix of the version such as8.0(for8.0.36). The actual engine version used is returned in the attributeengine_version_actual, see Attribute 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'.
- FinalSnapshot stringIdentifier 
- The name of your final DB snapshot
when this DB instance is deleted. Must be provided if skip_final_snapshotis set tofalse. 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.
- IamDatabase boolAuthentication Enabled 
- Specifies whether mappings of AWS Identity and Access Management (IAM) accounts to database accounts is enabled.
- Identifier string
- The name of the RDS instance, if omitted, this provider will assign a random, unique identifier. Required if restore_to_point_in_timeis specified.
- IdentifierPrefix string
- Creates a unique identifier beginning with the specified prefix. Conflicts with identifier.
- Iops int
- The amount of provisioned IOPS. Setting this implies a
storage_type of "io1" or "io2". Can only be set when storage_typeis"io1","io2or"gp3". Cannot be specified for gp3 storage if theallocated_storagevalue is below a per-enginethreshold. See the RDS User Guide for details.
- KmsKey stringId 
- The ARN for the KMS encryption key. If creating an encrypted replica, set this to the destination KMS ARN.
- LicenseModel string
- License model information for this DB instance. Valid values for this field are as follows:- RDS for MariaDB: general-public-license
- RDS for Microsoft SQL Server: license-included
- RDS for MySQL: general-public-license
- RDS for Oracle: bring-your-own-license | license-included
- RDS for PostgreSQL: postgresql-license
 
- RDS for MariaDB: 
- MaintenanceWindow string
- The window to perform maintenance in. Syntax: "ddd:hh24:mi-ddd:hh24:mi". Eg: "Mon:00:00-Mon:03:00". See RDS Maintenance Window docs for more information.
- ManageMaster boolUser Password 
- Set to true to allow RDS to manage the master user password in Secrets Manager. Cannot be set if passwordorpassword_wois provided.
- MasterUser stringSecret Kms Key Id 
- 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.
- MaxAllocated intStorage 
- Specifies the maximum storage (in GiB) that Amazon RDS can automatically scale to for this DB instance. By default, Storage Autoscaling is disabled. To enable Storage Autoscaling, set max_allocated_storageto greater than or equal toallocated_storage. Settingmax_allocated_storageto 0 explicitly disables Storage Autoscaling. When configured, changes toallocated_storagewill be automatically ignored as the storage can dynamically scale.
- MonitoringInterval int
- 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.
- MonitoringRole stringArn 
- 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 Documentation what IAM permissions are needed to allow Enhanced Monitoring for RDS Instances.
- MultiAz bool
- Specifies if the RDS instance is multi-AZ
- Name string
- NcharCharacter stringSet Name 
- 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 Supported in Amazon RDS.
- NetworkType string
- The network type of the DB instance. Valid values: IPV4,DUAL.
- OptionGroup stringName 
- Name of the DB option group to associate.
- ParameterGroup stringName 
- Name of the DB parameter group to associate.
- Password string
- 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_passwordis set totrue.
- PerformanceInsights boolEnabled 
- Specifies whether Performance Insights are enabled. Defaults to false.
- PerformanceInsights stringKms Key Id 
- The ARN for the KMS key to encrypt Performance Insights data. When specifying performance_insights_kms_key_id,performance_insights_enabledneeds to be set to true. Once KMS key is set, it can never be changed.
- PerformanceInsights intRetention Period 
- Amount of time in days to retain Performance Insights data. Valid values are 7,731(2 years) or a multiple of31. When specifyingperformance_insights_retention_period,performance_insights_enabledneeds to be set to true. Defaults to '7'.
- Port int
- The port on which the DB accepts connections.
- PubliclyAccessible bool
- Bool to control if instance is publicly
accessible. Default is false.
- ReplicaMode string
- Specifies whether the replica is in either mountedoropen-read-onlymode. This attribute is only supported by Oracle instances. Oracle replicas operate inopen-read-onlymode unless otherwise specified. See Working with Oracle Read Replicas for more information.
- ReplicateSource stringDb 
- Specifies that this resource is a Replica database, and to use this value as the source database.
If replicating an Amazon RDS Database Instance in the same region, use the identifierof the source DB, unless also specifying thedb_subnet_group_name. If specifying thedb_subnet_group_namein the same region, use thearnof the source DB. If replicating an Instance in a different region, use thearnof the source DB. Note that if you are creating a cross-region replica of an encrypted database you will also need to specify akms_key_id. See [DB Instance Replication][instance-replication] and Working with PostgreSQL and MySQL Read Replicas for more information on using Replication.
- RestoreTo InstancePoint In Time Restore To Point In Time Args 
- A configuration block for restoring a DB instance to an arbitrary point in time.
Requires the identifierargument to be set with the name of the new DB instance to be created. See Restore To Point In Time below for details.
- S3Import
InstanceS3Import Args 
- Restore from a Percona Xtrabackup in S3. See Importing Data into an Amazon RDS MySQL DB Instance
- SkipFinal boolSnapshot 
- 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 isfalse.
- SnapshotIdentifier string
- Specifies whether or not to create this database from a snapshot. This corresponds to the snapshot ID you'd find in the RDS console, e.g: rds:production-2015-06-26-06-05.
- StorageEncrypted bool
- 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_idwith a valid ARN. The default isfalseif not specified.
- StorageThroughput int
- The storage throughput value for the DB instance. Can only be set when storage_typeis"gp3". Cannot be specified if theallocated_storagevalue is below a per-enginethreshold. See the RDS User Guide for details.
- StorageType string | StorageType 
- One of "standard" (magnetic), "gp2" (general
purpose SSD), "gp3" (general purpose SSD that needs iopsindependently) "io1" (provisioned IOPS SSD) or "io2" (block express storage provisioned IOPS SSD). The default is "io1" ifiopsis specified, "gp2" if not.
- map[string]string
- A map of tags to assign to the resource. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- Timezone string
- Time zone of the DB instance. timezoneis currently only supported by Microsoft SQL Server. Thetimezonecan only be set on creation. See MSSQL User Guide for more information.
- UpgradeStorage boolConfig 
- Whether to upgrade the storage file system configuration on the read replica.
Can only be set with replicate_source_db.
- Username string
- (Required unless a snapshot_identifierorreplicate_source_dbis provided) Username for the master DB user. Cannot be specified for a replica.
- VpcSecurity []stringGroup Ids 
- List of VPC security groups to associate.
- instanceClass String | InstanceType 
- The instance type of the RDS instance.
- allocatedStorage Integer
- The allocated storage in gibibytes. If max_allocated_storageis configured, this argument represents the initial storage allocation and differences from the configuration will be ignored automatically when Storage Autoscaling occurs. Ifreplicate_source_dbis set, the value is ignored during the creation of the instance.
- allowMajor BooleanVersion Upgrade 
- 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.
- applyImmediately Boolean
- Specifies whether any database modifications
are applied immediately, or during the next maintenance window. Default is
false. See Amazon RDS Documentation for more information.
- autoMinor BooleanVersion Upgrade 
- Indicates that minor engine upgrades will be applied automatically to the DB instance during the maintenance window. Defaults to true.
- availabilityZone String
- The AZ for the RDS instance.
- backupRetention IntegerPeriod 
- The days to retain backups for.
Must be between 0and35. Default is0. Must be greater than0if the database is used as a source for a [Read Replica][instance-replication], uses low-downtime updates, or will use [RDS Blue/Green deployments][blue-green].
- backupTarget String
- Specifies where automated backups and manual snapshots are stored. Possible values are region(default) andoutposts. See Working with Amazon RDS on AWS Outposts for more information.
- backupWindow String
- 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.
- blueGreen InstanceUpdate Blue Green Update 
- Enables low-downtime updates using [RDS Blue/Green deployments][blue-green].
See blue_green_updatebelow.
- caCert StringIdentifier 
- The identifier of the CA certificate for the DB instance.
- characterSet StringName 
- 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 Supported in Amazon RDS or
Server-Level Collation for Microsoft SQL Server for more information.
Cannot be set with replicate_source_db,restore_to_point_in_time,s3_import, orsnapshot_identifier.
- Boolean
- Copy all Instance tagsto snapshots. Default isfalse.
- customIam StringInstance Profile 
- The instance profile associated with the underlying Amazon EC2 instance of an RDS Custom DB instance.
- customerOwned BooleanIp Enabled 
- 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. - NOTE: Removing the - replicate_source_dbattribute from an existing RDS Replicate database managed by the provider will promote the database to a fully standalone database.
- dbName String
- 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.
- dbSubnet StringGroup Name 
- 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 defaultSubnet Group. When working with read replicas created in the same region, defaults to the Subnet Group Name of the source DB. When working with read replicas created in a different region, defaults to thedefaultSubnet Group. See DBSubnetGroupName in API action CreateDBInstanceReadReplica for additional read replica constraints.
- dedicatedLog BooleanVolume 
- Use a dedicated log volume (DLV) for the DB instance. Requires Provisioned IOPS. See the AWS documentation for more details.
- deleteAutomated BooleanBackups 
- Specifies whether to remove automated backups immediately after the DB instance is deleted. Default is true.
- deletionProtection Boolean
- If the DB instance should have deletion protection enabled. The database can't be deleted when this value is set to true. The default isfalse.
- domain String
- The ID of the Directory Service Active Directory domain to create the instance in. Conflicts with domain_fqdn,domain_ou,domain_auth_secret_arnand adomain_dns_ips.
- domainAuth StringSecret Arn 
- The ARN for the Secrets Manager secret with the self managed Active Directory credentials for the user joining the domain. Conflicts with domainanddomain_iam_role_name.
- domainDns List<String>Ips 
- The IPv4 DNS IP addresses of your primary and secondary self managed Active Directory domain controllers. Two IP addresses must be provided. If there isn't a secondary domain controller, use the IP address of the primary domain controller for both entries in the list. Conflicts with domainanddomain_iam_role_name.
- domainFqdn String
- The fully qualified domain name (FQDN) of the self managed Active Directory domain. Conflicts with domainanddomain_iam_role_name.
- domainIam StringRole Name 
- The name of the IAM role to be used when making API calls to the Directory Service. Conflicts with domain_fqdn,domain_ou,domain_auth_secret_arnand adomain_dns_ips.
- domainOu String
- The self managed Active Directory organizational unit for your DB instance to join. Conflicts with domainanddomain_iam_role_name.
- enabledCloudwatch List<String>Logs Exports 
- Set of log types to enable for exporting to CloudWatch logs. If omitted, no logs will be exported. For supported values, see the EnableCloudwatchLogsExports.member.N parameter in API action CreateDBInstance.
- engine String
- 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.
- engineLifecycle StringSupport 
- The life cycle type for this DB instance. This setting applies only to RDS for MySQL and RDS for PostgreSQL. Valid values are open-source-rds-extended-support,open-source-rds-extended-support-disabled. Default value isopen-source-rds-extended-support. [Using Amazon RDS Extended Support]: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/extended-support.html
- engineVersion String
- The engine version to use. If auto_minor_version_upgradeis enabled, you can provide a prefix of the version such as8.0(for8.0.36). The actual engine version used is returned in the attributeengine_version_actual, see Attribute 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'.
- finalSnapshot StringIdentifier 
- The name of your final DB snapshot
when this DB instance is deleted. Must be provided if skip_final_snapshotis set tofalse. 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.
- iamDatabase BooleanAuthentication Enabled 
- Specifies whether mappings of AWS Identity and Access Management (IAM) accounts to database accounts is enabled.
- identifier String
- The name of the RDS instance, if omitted, this provider will assign a random, unique identifier. Required if restore_to_point_in_timeis specified.
- identifierPrefix String
- Creates a unique identifier beginning with the specified prefix. Conflicts with identifier.
- iops Integer
- The amount of provisioned IOPS. Setting this implies a
storage_type of "io1" or "io2". Can only be set when storage_typeis"io1","io2or"gp3". Cannot be specified for gp3 storage if theallocated_storagevalue is below a per-enginethreshold. See the RDS User Guide for details.
- kmsKey StringId 
- The ARN for the KMS encryption key. If creating an encrypted replica, set this to the destination KMS ARN.
- licenseModel String
- License model information for this DB instance. Valid values for this field are as follows:- RDS for MariaDB: general-public-license
- RDS for Microsoft SQL Server: license-included
- RDS for MySQL: general-public-license
- RDS for Oracle: bring-your-own-license | license-included
- RDS for PostgreSQL: postgresql-license
 
- RDS for MariaDB: 
- maintenanceWindow String
- The window to perform maintenance in. Syntax: "ddd:hh24:mi-ddd:hh24:mi". Eg: "Mon:00:00-Mon:03:00". See RDS Maintenance Window docs for more information.
- manageMaster BooleanUser Password 
- Set to true to allow RDS to manage the master user password in Secrets Manager. Cannot be set if passwordorpassword_wois provided.
- masterUser StringSecret Kms Key Id 
- 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.
- maxAllocated IntegerStorage 
- Specifies the maximum storage (in GiB) that Amazon RDS can automatically scale to for this DB instance. By default, Storage Autoscaling is disabled. To enable Storage Autoscaling, set max_allocated_storageto greater than or equal toallocated_storage. Settingmax_allocated_storageto 0 explicitly disables Storage Autoscaling. When configured, changes toallocated_storagewill be automatically ignored as the storage can dynamically scale.
- monitoringInterval Integer
- 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.
- monitoringRole StringArn 
- 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 Documentation what IAM permissions are needed to allow Enhanced Monitoring for RDS Instances.
- multiAz Boolean
- Specifies if the RDS instance is multi-AZ
- name String
- ncharCharacter StringSet Name 
- 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 Supported in Amazon RDS.
- networkType String
- The network type of the DB instance. Valid values: IPV4,DUAL.
- optionGroup StringName 
- Name of the DB option group to associate.
- parameterGroup StringName 
- Name of the DB parameter group to associate.
- password String
- 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_passwordis set totrue.
- performanceInsights BooleanEnabled 
- Specifies whether Performance Insights are enabled. Defaults to false.
- performanceInsights StringKms Key Id 
- The ARN for the KMS key to encrypt Performance Insights data. When specifying performance_insights_kms_key_id,performance_insights_enabledneeds to be set to true. Once KMS key is set, it can never be changed.
- performanceInsights IntegerRetention Period 
- Amount of time in days to retain Performance Insights data. Valid values are 7,731(2 years) or a multiple of31. When specifyingperformance_insights_retention_period,performance_insights_enabledneeds to be set to true. Defaults to '7'.
- port Integer
- The port on which the DB accepts connections.
- publiclyAccessible Boolean
- Bool to control if instance is publicly
accessible. Default is false.
- replicaMode String
- Specifies whether the replica is in either mountedoropen-read-onlymode. This attribute is only supported by Oracle instances. Oracle replicas operate inopen-read-onlymode unless otherwise specified. See Working with Oracle Read Replicas for more information.
- replicateSource StringDb 
- Specifies that this resource is a Replica database, and to use this value as the source database.
If replicating an Amazon RDS Database Instance in the same region, use the identifierof the source DB, unless also specifying thedb_subnet_group_name. If specifying thedb_subnet_group_namein the same region, use thearnof the source DB. If replicating an Instance in a different region, use thearnof the source DB. Note that if you are creating a cross-region replica of an encrypted database you will also need to specify akms_key_id. See [DB Instance Replication][instance-replication] and Working with PostgreSQL and MySQL Read Replicas for more information on using Replication.
- restoreTo InstancePoint In Time Restore To Point In Time 
- A configuration block for restoring a DB instance to an arbitrary point in time.
Requires the identifierargument to be set with the name of the new DB instance to be created. See Restore To Point In Time below for details.
- s3Import
InstanceS3Import 
- Restore from a Percona Xtrabackup in S3. See Importing Data into an Amazon RDS MySQL DB Instance
- skipFinal BooleanSnapshot 
- 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 isfalse.
- snapshotIdentifier String
- Specifies whether or not to create this database from a snapshot. This corresponds to the snapshot ID you'd find in the RDS console, e.g: rds:production-2015-06-26-06-05.
- storageEncrypted Boolean
- 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_idwith a valid ARN. The default isfalseif not specified.
- storageThroughput Integer
- The storage throughput value for the DB instance. Can only be set when storage_typeis"gp3". Cannot be specified if theallocated_storagevalue is below a per-enginethreshold. See the RDS User Guide for details.
- storageType String | StorageType 
- One of "standard" (magnetic), "gp2" (general
purpose SSD), "gp3" (general purpose SSD that needs iopsindependently) "io1" (provisioned IOPS SSD) or "io2" (block express storage provisioned IOPS SSD). The default is "io1" ifiopsis specified, "gp2" if not.
- Map<String,String>
- A map of tags to assign to the resource. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- timezone String
- Time zone of the DB instance. timezoneis currently only supported by Microsoft SQL Server. Thetimezonecan only be set on creation. See MSSQL User Guide for more information.
- upgradeStorage BooleanConfig 
- Whether to upgrade the storage file system configuration on the read replica.
Can only be set with replicate_source_db.
- username String
- (Required unless a snapshot_identifierorreplicate_source_dbis provided) Username for the master DB user. Cannot be specified for a replica.
- vpcSecurity List<String>Group Ids 
- List of VPC security groups to associate.
- instanceClass string | InstanceType 
- The instance type of the RDS instance.
- allocatedStorage number
- The allocated storage in gibibytes. If max_allocated_storageis configured, this argument represents the initial storage allocation and differences from the configuration will be ignored automatically when Storage Autoscaling occurs. Ifreplicate_source_dbis set, the value is ignored during the creation of the instance.
- allowMajor booleanVersion Upgrade 
- 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.
- applyImmediately boolean
- Specifies whether any database modifications
are applied immediately, or during the next maintenance window. Default is
false. See Amazon RDS Documentation for more information.
- autoMinor booleanVersion Upgrade 
- Indicates that minor engine upgrades will be applied automatically to the DB instance during the maintenance window. Defaults to true.
- availabilityZone string
- The AZ for the RDS instance.
- backupRetention numberPeriod 
- The days to retain backups for.
Must be between 0and35. Default is0. Must be greater than0if the database is used as a source for a [Read Replica][instance-replication], uses low-downtime updates, or will use [RDS Blue/Green deployments][blue-green].
- backupTarget string
- Specifies where automated backups and manual snapshots are stored. Possible values are region(default) andoutposts. See Working with Amazon RDS on AWS Outposts for more information.
- backupWindow string
- 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.
- blueGreen InstanceUpdate Blue Green Update 
- Enables low-downtime updates using [RDS Blue/Green deployments][blue-green].
See blue_green_updatebelow.
- caCert stringIdentifier 
- The identifier of the CA certificate for the DB instance.
- characterSet stringName 
- 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 Supported in Amazon RDS or
Server-Level Collation for Microsoft SQL Server for more information.
Cannot be set with replicate_source_db,restore_to_point_in_time,s3_import, orsnapshot_identifier.
- boolean
- Copy all Instance tagsto snapshots. Default isfalse.
- customIam stringInstance Profile 
- The instance profile associated with the underlying Amazon EC2 instance of an RDS Custom DB instance.
- customerOwned booleanIp Enabled 
- 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. - NOTE: Removing the - replicate_source_dbattribute from an existing RDS Replicate database managed by the provider will promote the database to a fully standalone database.
- dbName string
- 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.
- dbSubnet stringGroup Name 
- 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 defaultSubnet Group. When working with read replicas created in the same region, defaults to the Subnet Group Name of the source DB. When working with read replicas created in a different region, defaults to thedefaultSubnet Group. See DBSubnetGroupName in API action CreateDBInstanceReadReplica for additional read replica constraints.
- dedicatedLog booleanVolume 
- Use a dedicated log volume (DLV) for the DB instance. Requires Provisioned IOPS. See the AWS documentation for more details.
- deleteAutomated booleanBackups 
- Specifies whether to remove automated backups immediately after the DB instance is deleted. Default is true.
- deletionProtection boolean
- If the DB instance should have deletion protection enabled. The database can't be deleted when this value is set to true. The default isfalse.
- domain string
- The ID of the Directory Service Active Directory domain to create the instance in. Conflicts with domain_fqdn,domain_ou,domain_auth_secret_arnand adomain_dns_ips.
- domainAuth stringSecret Arn 
- The ARN for the Secrets Manager secret with the self managed Active Directory credentials for the user joining the domain. Conflicts with domainanddomain_iam_role_name.
- domainDns string[]Ips 
- The IPv4 DNS IP addresses of your primary and secondary self managed Active Directory domain controllers. Two IP addresses must be provided. If there isn't a secondary domain controller, use the IP address of the primary domain controller for both entries in the list. Conflicts with domainanddomain_iam_role_name.
- domainFqdn string
- The fully qualified domain name (FQDN) of the self managed Active Directory domain. Conflicts with domainanddomain_iam_role_name.
- domainIam stringRole Name 
- The name of the IAM role to be used when making API calls to the Directory Service. Conflicts with domain_fqdn,domain_ou,domain_auth_secret_arnand adomain_dns_ips.
- domainOu string
- The self managed Active Directory organizational unit for your DB instance to join. Conflicts with domainanddomain_iam_role_name.
- enabledCloudwatch string[]Logs Exports 
- Set of log types to enable for exporting to CloudWatch logs. If omitted, no logs will be exported. For supported values, see the EnableCloudwatchLogsExports.member.N parameter in API action CreateDBInstance.
- engine string
- 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.
- engineLifecycle stringSupport 
- The life cycle type for this DB instance. This setting applies only to RDS for MySQL and RDS for PostgreSQL. Valid values are open-source-rds-extended-support,open-source-rds-extended-support-disabled. Default value isopen-source-rds-extended-support. [Using Amazon RDS Extended Support]: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/extended-support.html
- engineVersion string
- The engine version to use. If auto_minor_version_upgradeis enabled, you can provide a prefix of the version such as8.0(for8.0.36). The actual engine version used is returned in the attributeengine_version_actual, see Attribute 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'.
- finalSnapshot stringIdentifier 
- The name of your final DB snapshot
when this DB instance is deleted. Must be provided if skip_final_snapshotis set tofalse. 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.
- iamDatabase booleanAuthentication Enabled 
- Specifies whether mappings of AWS Identity and Access Management (IAM) accounts to database accounts is enabled.
- identifier string
- The name of the RDS instance, if omitted, this provider will assign a random, unique identifier. Required if restore_to_point_in_timeis specified.
- identifierPrefix string
- Creates a unique identifier beginning with the specified prefix. Conflicts with identifier.
- iops number
- The amount of provisioned IOPS. Setting this implies a
storage_type of "io1" or "io2". Can only be set when storage_typeis"io1","io2or"gp3". Cannot be specified for gp3 storage if theallocated_storagevalue is below a per-enginethreshold. See the RDS User Guide for details.
- kmsKey stringId 
- The ARN for the KMS encryption key. If creating an encrypted replica, set this to the destination KMS ARN.
- licenseModel string
- License model information for this DB instance. Valid values for this field are as follows:- RDS for MariaDB: general-public-license
- RDS for Microsoft SQL Server: license-included
- RDS for MySQL: general-public-license
- RDS for Oracle: bring-your-own-license | license-included
- RDS for PostgreSQL: postgresql-license
 
- RDS for MariaDB: 
- maintenanceWindow string
- The window to perform maintenance in. Syntax: "ddd:hh24:mi-ddd:hh24:mi". Eg: "Mon:00:00-Mon:03:00". See RDS Maintenance Window docs for more information.
- manageMaster booleanUser Password 
- Set to true to allow RDS to manage the master user password in Secrets Manager. Cannot be set if passwordorpassword_wois provided.
- masterUser stringSecret Kms Key Id 
- 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.
- maxAllocated numberStorage 
- Specifies the maximum storage (in GiB) that Amazon RDS can automatically scale to for this DB instance. By default, Storage Autoscaling is disabled. To enable Storage Autoscaling, set max_allocated_storageto greater than or equal toallocated_storage. Settingmax_allocated_storageto 0 explicitly disables Storage Autoscaling. When configured, changes toallocated_storagewill be automatically ignored as the storage can dynamically scale.
- monitoringInterval number
- 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.
- monitoringRole stringArn 
- 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 Documentation what IAM permissions are needed to allow Enhanced Monitoring for RDS Instances.
- multiAz boolean
- Specifies if the RDS instance is multi-AZ
- name string
- ncharCharacter stringSet Name 
- 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 Supported in Amazon RDS.
- networkType string
- The network type of the DB instance. Valid values: IPV4,DUAL.
- optionGroup stringName 
- Name of the DB option group to associate.
- parameterGroup stringName 
- Name of the DB parameter group to associate.
- password string
- 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_passwordis set totrue.
- performanceInsights booleanEnabled 
- Specifies whether Performance Insights are enabled. Defaults to false.
- performanceInsights stringKms Key Id 
- The ARN for the KMS key to encrypt Performance Insights data. When specifying performance_insights_kms_key_id,performance_insights_enabledneeds to be set to true. Once KMS key is set, it can never be changed.
- performanceInsights numberRetention Period 
- Amount of time in days to retain Performance Insights data. Valid values are 7,731(2 years) or a multiple of31. When specifyingperformance_insights_retention_period,performance_insights_enabledneeds to be set to true. Defaults to '7'.
- port number
- The port on which the DB accepts connections.
- publiclyAccessible boolean
- Bool to control if instance is publicly
accessible. Default is false.
- replicaMode string
- Specifies whether the replica is in either mountedoropen-read-onlymode. This attribute is only supported by Oracle instances. Oracle replicas operate inopen-read-onlymode unless otherwise specified. See Working with Oracle Read Replicas for more information.
- replicateSource stringDb 
- Specifies that this resource is a Replica database, and to use this value as the source database.
If replicating an Amazon RDS Database Instance in the same region, use the identifierof the source DB, unless also specifying thedb_subnet_group_name. If specifying thedb_subnet_group_namein the same region, use thearnof the source DB. If replicating an Instance in a different region, use thearnof the source DB. Note that if you are creating a cross-region replica of an encrypted database you will also need to specify akms_key_id. See [DB Instance Replication][instance-replication] and Working with PostgreSQL and MySQL Read Replicas for more information on using Replication.
- restoreTo InstancePoint In Time Restore To Point In Time 
- A configuration block for restoring a DB instance to an arbitrary point in time.
Requires the identifierargument to be set with the name of the new DB instance to be created. See Restore To Point In Time below for details.
- s3Import
InstanceS3Import 
- Restore from a Percona Xtrabackup in S3. See Importing Data into an Amazon RDS MySQL DB Instance
- skipFinal booleanSnapshot 
- 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 isfalse.
- snapshotIdentifier string
- Specifies whether or not to create this database from a snapshot. This corresponds to the snapshot ID you'd find in the RDS console, e.g: rds:production-2015-06-26-06-05.
- storageEncrypted boolean
- 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_idwith a valid ARN. The default isfalseif not specified.
- storageThroughput number
- The storage throughput value for the DB instance. Can only be set when storage_typeis"gp3". Cannot be specified if theallocated_storagevalue is below a per-enginethreshold. See the RDS User Guide for details.
- storageType string | StorageType 
- One of "standard" (magnetic), "gp2" (general
purpose SSD), "gp3" (general purpose SSD that needs iopsindependently) "io1" (provisioned IOPS SSD) or "io2" (block express storage provisioned IOPS SSD). The default is "io1" ifiopsis specified, "gp2" if not.
- {[key: string]: string}
- A map of tags to assign to the resource. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- timezone string
- Time zone of the DB instance. timezoneis currently only supported by Microsoft SQL Server. Thetimezonecan only be set on creation. See MSSQL User Guide for more information.
- upgradeStorage booleanConfig 
- Whether to upgrade the storage file system configuration on the read replica.
Can only be set with replicate_source_db.
- username string
- (Required unless a snapshot_identifierorreplicate_source_dbis provided) Username for the master DB user. Cannot be specified for a replica.
- vpcSecurity string[]Group Ids 
- List of VPC security groups to associate.
- instance_class str | InstanceType 
- The instance type of the RDS instance.
- allocated_storage int
- The allocated storage in gibibytes. If max_allocated_storageis configured, this argument represents the initial storage allocation and differences from the configuration will be ignored automatically when Storage Autoscaling occurs. Ifreplicate_source_dbis set, the value is ignored during the creation of the instance.
- allow_major_ boolversion_ upgrade 
- 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.
- apply_immediately bool
- Specifies whether any database modifications
are applied immediately, or during the next maintenance window. Default is
false. See Amazon RDS Documentation for more information.
- auto_minor_ boolversion_ upgrade 
- Indicates that minor engine upgrades will be applied automatically to the DB instance during the maintenance window. Defaults to true.
- availability_zone str
- The AZ for the RDS instance.
- backup_retention_ intperiod 
- The days to retain backups for.
Must be between 0and35. Default is0. Must be greater than0if the database is used as a source for a [Read Replica][instance-replication], uses low-downtime updates, or will use [RDS Blue/Green deployments][blue-green].
- backup_target str
- Specifies where automated backups and manual snapshots are stored. Possible values are region(default) andoutposts. See Working with Amazon RDS on AWS Outposts for more information.
- backup_window str
- 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.
- blue_green_ Instanceupdate Blue Green Update Args 
- Enables low-downtime updates using [RDS Blue/Green deployments][blue-green].
See blue_green_updatebelow.
- ca_cert_ stridentifier 
- The identifier of the CA certificate for the DB instance.
- character_set_ strname 
- 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 Supported in Amazon RDS or
Server-Level Collation for Microsoft SQL Server for more information.
Cannot be set with replicate_source_db,restore_to_point_in_time,s3_import, orsnapshot_identifier.
- bool
- Copy all Instance tagsto snapshots. Default isfalse.
- custom_iam_ strinstance_ profile 
- The instance profile associated with the underlying Amazon EC2 instance of an RDS Custom DB instance.
- customer_owned_ boolip_ enabled 
- 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. - NOTE: Removing the - replicate_source_dbattribute from an existing RDS Replicate database managed by the provider will promote the database to a fully standalone database.
- db_name str
- 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.
- db_subnet_ strgroup_ name 
- 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 defaultSubnet Group. When working with read replicas created in the same region, defaults to the Subnet Group Name of the source DB. When working with read replicas created in a different region, defaults to thedefaultSubnet Group. See DBSubnetGroupName in API action CreateDBInstanceReadReplica for additional read replica constraints.
- dedicated_log_ boolvolume 
- Use a dedicated log volume (DLV) for the DB instance. Requires Provisioned IOPS. See the AWS documentation for more details.
- delete_automated_ boolbackups 
- Specifies whether to remove automated backups immediately after the DB instance is deleted. Default is true.
- deletion_protection bool
- If the DB instance should have deletion protection enabled. The database can't be deleted when this value is set to true. The default isfalse.
- domain str
- The ID of the Directory Service Active Directory domain to create the instance in. Conflicts with domain_fqdn,domain_ou,domain_auth_secret_arnand adomain_dns_ips.
- domain_auth_ strsecret_ arn 
- The ARN for the Secrets Manager secret with the self managed Active Directory credentials for the user joining the domain. Conflicts with domainanddomain_iam_role_name.
- domain_dns_ Sequence[str]ips 
- The IPv4 DNS IP addresses of your primary and secondary self managed Active Directory domain controllers. Two IP addresses must be provided. If there isn't a secondary domain controller, use the IP address of the primary domain controller for both entries in the list. Conflicts with domainanddomain_iam_role_name.
- domain_fqdn str
- The fully qualified domain name (FQDN) of the self managed Active Directory domain. Conflicts with domainanddomain_iam_role_name.
- domain_iam_ strrole_ name 
- The name of the IAM role to be used when making API calls to the Directory Service. Conflicts with domain_fqdn,domain_ou,domain_auth_secret_arnand adomain_dns_ips.
- domain_ou str
- The self managed Active Directory organizational unit for your DB instance to join. Conflicts with domainanddomain_iam_role_name.
- enabled_cloudwatch_ Sequence[str]logs_ exports 
- Set of log types to enable for exporting to CloudWatch logs. If omitted, no logs will be exported. For supported values, see the EnableCloudwatchLogsExports.member.N parameter in API action CreateDBInstance.
- engine str
- 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.
- engine_lifecycle_ strsupport 
- The life cycle type for this DB instance. This setting applies only to RDS for MySQL and RDS for PostgreSQL. Valid values are open-source-rds-extended-support,open-source-rds-extended-support-disabled. Default value isopen-source-rds-extended-support. [Using Amazon RDS Extended Support]: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/extended-support.html
- engine_version str
- The engine version to use. If auto_minor_version_upgradeis enabled, you can provide a prefix of the version such as8.0(for8.0.36). The actual engine version used is returned in the attributeengine_version_actual, see Attribute 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'.
- final_snapshot_ stridentifier 
- The name of your final DB snapshot
when this DB instance is deleted. Must be provided if skip_final_snapshotis set tofalse. 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.
- iam_database_ boolauthentication_ enabled 
- Specifies whether mappings of AWS Identity and Access Management (IAM) accounts to database accounts is enabled.
- identifier str
- The name of the RDS instance, if omitted, this provider will assign a random, unique identifier. Required if restore_to_point_in_timeis specified.
- identifier_prefix str
- Creates a unique identifier beginning with the specified prefix. Conflicts with identifier.
- iops int
- The amount of provisioned IOPS. Setting this implies a
storage_type of "io1" or "io2". Can only be set when storage_typeis"io1","io2or"gp3". Cannot be specified for gp3 storage if theallocated_storagevalue is below a per-enginethreshold. See the RDS User Guide for details.
- kms_key_ strid 
- The ARN for the KMS encryption key. If creating an encrypted replica, set this to the destination KMS ARN.
- license_model str
- License model information for this DB instance. Valid values for this field are as follows:- RDS for MariaDB: general-public-license
- RDS for Microsoft SQL Server: license-included
- RDS for MySQL: general-public-license
- RDS for Oracle: bring-your-own-license | license-included
- RDS for PostgreSQL: postgresql-license
 
- RDS for MariaDB: 
- maintenance_window str
- The window to perform maintenance in. Syntax: "ddd:hh24:mi-ddd:hh24:mi". Eg: "Mon:00:00-Mon:03:00". See RDS Maintenance Window docs for more information.
- manage_master_ booluser_ password 
- Set to true to allow RDS to manage the master user password in Secrets Manager. Cannot be set if passwordorpassword_wois provided.
- master_user_ strsecret_ kms_ key_ id 
- 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.
- max_allocated_ intstorage 
- Specifies the maximum storage (in GiB) that Amazon RDS can automatically scale to for this DB instance. By default, Storage Autoscaling is disabled. To enable Storage Autoscaling, set max_allocated_storageto greater than or equal toallocated_storage. Settingmax_allocated_storageto 0 explicitly disables Storage Autoscaling. When configured, changes toallocated_storagewill be automatically ignored as the storage can dynamically scale.
- monitoring_interval int
- 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.
- monitoring_role_ strarn 
- 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 Documentation what IAM permissions are needed to allow Enhanced Monitoring for RDS Instances.
- multi_az bool
- Specifies if the RDS instance is multi-AZ
- name str
- nchar_character_ strset_ name 
- 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 Supported in Amazon RDS.
- network_type str
- The network type of the DB instance. Valid values: IPV4,DUAL.
- option_group_ strname 
- Name of the DB option group to associate.
- parameter_group_ strname 
- Name of the DB parameter group to associate.
- password str
- 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_passwordis set totrue.
- performance_insights_ boolenabled 
- Specifies whether Performance Insights are enabled. Defaults to false.
- performance_insights_ strkms_ key_ id 
- The ARN for the KMS key to encrypt Performance Insights data. When specifying performance_insights_kms_key_id,performance_insights_enabledneeds to be set to true. Once KMS key is set, it can never be changed.
- performance_insights_ intretention_ period 
- Amount of time in days to retain Performance Insights data. Valid values are 7,731(2 years) or a multiple of31. When specifyingperformance_insights_retention_period,performance_insights_enabledneeds to be set to true. Defaults to '7'.
- port int
- The port on which the DB accepts connections.
- publicly_accessible bool
- Bool to control if instance is publicly
accessible. Default is false.
- replica_mode str
- Specifies whether the replica is in either mountedoropen-read-onlymode. This attribute is only supported by Oracle instances. Oracle replicas operate inopen-read-onlymode unless otherwise specified. See Working with Oracle Read Replicas for more information.
- replicate_source_ strdb 
- Specifies that this resource is a Replica database, and to use this value as the source database.
If replicating an Amazon RDS Database Instance in the same region, use the identifierof the source DB, unless also specifying thedb_subnet_group_name. If specifying thedb_subnet_group_namein the same region, use thearnof the source DB. If replicating an Instance in a different region, use thearnof the source DB. Note that if you are creating a cross-region replica of an encrypted database you will also need to specify akms_key_id. See [DB Instance Replication][instance-replication] and Working with PostgreSQL and MySQL Read Replicas for more information on using Replication.
- restore_to_ Instancepoint_ in_ time Restore To Point In Time Args 
- A configuration block for restoring a DB instance to an arbitrary point in time.
Requires the identifierargument to be set with the name of the new DB instance to be created. See Restore To Point In Time below for details.
- s3_import InstanceS3Import Args 
- Restore from a Percona Xtrabackup in S3. See Importing Data into an Amazon RDS MySQL DB Instance
- skip_final_ boolsnapshot 
- 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 isfalse.
- snapshot_identifier str
- Specifies whether or not to create this database from a snapshot. This corresponds to the snapshot ID you'd find in the RDS console, e.g: rds:production-2015-06-26-06-05.
- storage_encrypted bool
- 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_idwith a valid ARN. The default isfalseif not specified.
- storage_throughput int
- The storage throughput value for the DB instance. Can only be set when storage_typeis"gp3". Cannot be specified if theallocated_storagevalue is below a per-enginethreshold. See the RDS User Guide for details.
- storage_type str | StorageType 
- One of "standard" (magnetic), "gp2" (general
purpose SSD), "gp3" (general purpose SSD that needs iopsindependently) "io1" (provisioned IOPS SSD) or "io2" (block express storage provisioned IOPS SSD). The default is "io1" ifiopsis specified, "gp2" if not.
- Mapping[str, str]
- A map of tags to assign to the resource. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- timezone str
- Time zone of the DB instance. timezoneis currently only supported by Microsoft SQL Server. Thetimezonecan only be set on creation. See MSSQL User Guide for more information.
- upgrade_storage_ boolconfig 
- Whether to upgrade the storage file system configuration on the read replica.
Can only be set with replicate_source_db.
- username str
- (Required unless a snapshot_identifierorreplicate_source_dbis provided) Username for the master DB user. Cannot be specified for a replica.
- vpc_security_ Sequence[str]group_ ids 
- List of VPC security groups to associate.
- instanceClass String | "db.t4g.micro" | "db.t4g.small" | "db.t4g.medium" | "db.t4g.large" | "db.t4g.xlarge" | "db.t4g.2xlarge" | "db.t3.micro" | "db.t3.small" | "db.t3.medium" | "db.t3.large" | "db.t3.xlarge" | "db.t3.2xlarge" | "db.t2.micro" | "db.t2.small" | "db.t2.medium" | "db.t2.large" | "db.t2.xlarge" | "db.t2.2xlarge" | "db.m1.small" | "db.m1.medium" | "db.m1.large" | "db.m1.xlarge" | "db.m2.xlarge" | "db.m2.2xlarge" | "db.m2.4xlarge" | "db.m3.medium" | "db.m3.large" | "db.m3.xlarge" | "db.m3.2xlarge" | "db.m4.large" | "db.m4.xlarge" | "db.m4.2xlarge" | "db.m4.4xlarge" | "db.m4.10xlarge" | "db.m4.10xlarge" | "db.m5.large" | "db.m5.xlarge" | "db.m5.2xlarge" | "db.m5.4xlarge" | "db.m5.12xlarge" | "db.m5.24xlarge" | "db.m6g.large" | "db.m6g.xlarge" | "db.m6g.2xlarge" | "db.m6g.4xlarge" | "db.m6g.8xlarge" | "db.m6g.12xlarge" | "db.m6g.16xlarge" | "db.r3.large" | "db.r3.xlarge" | "db.r3.2xlarge" | "db.r3.4xlarge" | "db.r3.8xlarge" | "db.r4.large" | "db.r4.xlarge" | "db.r4.2xlarge" | "db.r4.4xlarge" | "db.r4.8xlarge" | "db.r4.16xlarge" | "db.r5.large" | "db.r5.xlarge" | "db.r5.2xlarge" | "db.r5.4xlarge" | "db.r5.12xlarge" | "db.r5.24xlarge" | "db.r6g.large" | "db.r6g.xlarge" | "db.r6g.2xlarge" | "db.r6g.4xlarge" | "db.r6g.8xlarge" | "db.r6g.12xlarge" | "db.r6g.16xlarge" | "db.x1.16xlarge" | "db.x1.32xlarge" | "db.x1e.xlarge" | "db.x1e.2xlarge" | "db.x1e.4xlarge" | "db.x1e.8xlarge" | "db.x1e.32xlarge"
- The instance type of the RDS instance.
- allocatedStorage Number
- The allocated storage in gibibytes. If max_allocated_storageis configured, this argument represents the initial storage allocation and differences from the configuration will be ignored automatically when Storage Autoscaling occurs. Ifreplicate_source_dbis set, the value is ignored during the creation of the instance.
- allowMajor BooleanVersion Upgrade 
- 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.
- applyImmediately Boolean
- Specifies whether any database modifications
are applied immediately, or during the next maintenance window. Default is
false. See Amazon RDS Documentation for more information.
- autoMinor BooleanVersion Upgrade 
- Indicates that minor engine upgrades will be applied automatically to the DB instance during the maintenance window. Defaults to true.
- availabilityZone String
- The AZ for the RDS instance.
- backupRetention NumberPeriod 
- The days to retain backups for.
Must be between 0and35. Default is0. Must be greater than0if the database is used as a source for a [Read Replica][instance-replication], uses low-downtime updates, or will use [RDS Blue/Green deployments][blue-green].
- backupTarget String
- Specifies where automated backups and manual snapshots are stored. Possible values are region(default) andoutposts. See Working with Amazon RDS on AWS Outposts for more information.
- backupWindow String
- 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.
- blueGreen Property MapUpdate 
- Enables low-downtime updates using [RDS Blue/Green deployments][blue-green].
See blue_green_updatebelow.
- caCert StringIdentifier 
- The identifier of the CA certificate for the DB instance.
- characterSet StringName 
- 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 Supported in Amazon RDS or
Server-Level Collation for Microsoft SQL Server for more information.
Cannot be set with replicate_source_db,restore_to_point_in_time,s3_import, orsnapshot_identifier.
- Boolean
- Copy all Instance tagsto snapshots. Default isfalse.
- customIam StringInstance Profile 
- The instance profile associated with the underlying Amazon EC2 instance of an RDS Custom DB instance.
- customerOwned BooleanIp Enabled 
- 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. - NOTE: Removing the - replicate_source_dbattribute from an existing RDS Replicate database managed by the provider will promote the database to a fully standalone database.
- dbName String
- 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.
- dbSubnet StringGroup Name 
- 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 defaultSubnet Group. When working with read replicas created in the same region, defaults to the Subnet Group Name of the source DB. When working with read replicas created in a different region, defaults to thedefaultSubnet Group. See DBSubnetGroupName in API action CreateDBInstanceReadReplica for additional read replica constraints.
- dedicatedLog BooleanVolume 
- Use a dedicated log volume (DLV) for the DB instance. Requires Provisioned IOPS. See the AWS documentation for more details.
- deleteAutomated BooleanBackups 
- Specifies whether to remove automated backups immediately after the DB instance is deleted. Default is true.
- deletionProtection Boolean
- If the DB instance should have deletion protection enabled. The database can't be deleted when this value is set to true. The default isfalse.
- domain String
- The ID of the Directory Service Active Directory domain to create the instance in. Conflicts with domain_fqdn,domain_ou,domain_auth_secret_arnand adomain_dns_ips.
- domainAuth StringSecret Arn 
- The ARN for the Secrets Manager secret with the self managed Active Directory credentials for the user joining the domain. Conflicts with domainanddomain_iam_role_name.
- domainDns List<String>Ips 
- The IPv4 DNS IP addresses of your primary and secondary self managed Active Directory domain controllers. Two IP addresses must be provided. If there isn't a secondary domain controller, use the IP address of the primary domain controller for both entries in the list. Conflicts with domainanddomain_iam_role_name.
- domainFqdn String
- The fully qualified domain name (FQDN) of the self managed Active Directory domain. Conflicts with domainanddomain_iam_role_name.
- domainIam StringRole Name 
- The name of the IAM role to be used when making API calls to the Directory Service. Conflicts with domain_fqdn,domain_ou,domain_auth_secret_arnand adomain_dns_ips.
- domainOu String
- The self managed Active Directory organizational unit for your DB instance to join. Conflicts with domainanddomain_iam_role_name.
- enabledCloudwatch List<String>Logs Exports 
- Set of log types to enable for exporting to CloudWatch logs. If omitted, no logs will be exported. For supported values, see the EnableCloudwatchLogsExports.member.N parameter in API action CreateDBInstance.
- engine String
- 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.
- engineLifecycle StringSupport 
- The life cycle type for this DB instance. This setting applies only to RDS for MySQL and RDS for PostgreSQL. Valid values are open-source-rds-extended-support,open-source-rds-extended-support-disabled. Default value isopen-source-rds-extended-support. [Using Amazon RDS Extended Support]: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/extended-support.html
- engineVersion String
- The engine version to use. If auto_minor_version_upgradeis enabled, you can provide a prefix of the version such as8.0(for8.0.36). The actual engine version used is returned in the attributeengine_version_actual, see Attribute 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'.
- finalSnapshot StringIdentifier 
- The name of your final DB snapshot
when this DB instance is deleted. Must be provided if skip_final_snapshotis set tofalse. 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.
- iamDatabase BooleanAuthentication Enabled 
- Specifies whether mappings of AWS Identity and Access Management (IAM) accounts to database accounts is enabled.
- identifier String
- The name of the RDS instance, if omitted, this provider will assign a random, unique identifier. Required if restore_to_point_in_timeis specified.
- identifierPrefix String
- Creates a unique identifier beginning with the specified prefix. Conflicts with identifier.
- iops Number
- The amount of provisioned IOPS. Setting this implies a
storage_type of "io1" or "io2". Can only be set when storage_typeis"io1","io2or"gp3". Cannot be specified for gp3 storage if theallocated_storagevalue is below a per-enginethreshold. See the RDS User Guide for details.
- kmsKey StringId 
- The ARN for the KMS encryption key. If creating an encrypted replica, set this to the destination KMS ARN.
- licenseModel String
- License model information for this DB instance. Valid values for this field are as follows:- RDS for MariaDB: general-public-license
- RDS for Microsoft SQL Server: license-included
- RDS for MySQL: general-public-license
- RDS for Oracle: bring-your-own-license | license-included
- RDS for PostgreSQL: postgresql-license
 
- RDS for MariaDB: 
- maintenanceWindow String
- The window to perform maintenance in. Syntax: "ddd:hh24:mi-ddd:hh24:mi". Eg: "Mon:00:00-Mon:03:00". See RDS Maintenance Window docs for more information.
- manageMaster BooleanUser Password 
- Set to true to allow RDS to manage the master user password in Secrets Manager. Cannot be set if passwordorpassword_wois provided.
- masterUser StringSecret Kms Key Id 
- 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.
- maxAllocated NumberStorage 
- Specifies the maximum storage (in GiB) that Amazon RDS can automatically scale to for this DB instance. By default, Storage Autoscaling is disabled. To enable Storage Autoscaling, set max_allocated_storageto greater than or equal toallocated_storage. Settingmax_allocated_storageto 0 explicitly disables Storage Autoscaling. When configured, changes toallocated_storagewill be automatically ignored as the storage can dynamically scale.
- monitoringInterval Number
- 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.
- monitoringRole StringArn 
- 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 Documentation what IAM permissions are needed to allow Enhanced Monitoring for RDS Instances.
- multiAz Boolean
- Specifies if the RDS instance is multi-AZ
- name String
- ncharCharacter StringSet Name 
- 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 Supported in Amazon RDS.
- networkType String
- The network type of the DB instance. Valid values: IPV4,DUAL.
- optionGroup StringName 
- Name of the DB option group to associate.
- parameterGroup StringName 
- Name of the DB parameter group to associate.
- password String
- 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_passwordis set totrue.
- performanceInsights BooleanEnabled 
- Specifies whether Performance Insights are enabled. Defaults to false.
- performanceInsights StringKms Key Id 
- The ARN for the KMS key to encrypt Performance Insights data. When specifying performance_insights_kms_key_id,performance_insights_enabledneeds to be set to true. Once KMS key is set, it can never be changed.
- performanceInsights NumberRetention Period 
- Amount of time in days to retain Performance Insights data. Valid values are 7,731(2 years) or a multiple of31. When specifyingperformance_insights_retention_period,performance_insights_enabledneeds to be set to true. Defaults to '7'.
- port Number
- The port on which the DB accepts connections.
- publiclyAccessible Boolean
- Bool to control if instance is publicly
accessible. Default is false.
- replicaMode String
- Specifies whether the replica is in either mountedoropen-read-onlymode. This attribute is only supported by Oracle instances. Oracle replicas operate inopen-read-onlymode unless otherwise specified. See Working with Oracle Read Replicas for more information.
- replicateSource StringDb 
- Specifies that this resource is a Replica database, and to use this value as the source database.
If replicating an Amazon RDS Database Instance in the same region, use the identifierof the source DB, unless also specifying thedb_subnet_group_name. If specifying thedb_subnet_group_namein the same region, use thearnof the source DB. If replicating an Instance in a different region, use thearnof the source DB. Note that if you are creating a cross-region replica of an encrypted database you will also need to specify akms_key_id. See [DB Instance Replication][instance-replication] and Working with PostgreSQL and MySQL Read Replicas for more information on using Replication.
- restoreTo Property MapPoint In Time 
- A configuration block for restoring a DB instance to an arbitrary point in time.
Requires the identifierargument to be set with the name of the new DB instance to be created. See Restore To Point In Time below for details.
- s3Import Property Map
- Restore from a Percona Xtrabackup in S3. See Importing Data into an Amazon RDS MySQL DB Instance
- skipFinal BooleanSnapshot 
- 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 isfalse.
- snapshotIdentifier String
- Specifies whether or not to create this database from a snapshot. This corresponds to the snapshot ID you'd find in the RDS console, e.g: rds:production-2015-06-26-06-05.
- storageEncrypted Boolean
- 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_idwith a valid ARN. The default isfalseif not specified.
- storageThroughput Number
- The storage throughput value for the DB instance. Can only be set when storage_typeis"gp3". Cannot be specified if theallocated_storagevalue is below a per-enginethreshold. See the RDS User Guide for details.
- storageType String | "standard" | "gp2" | "gp3" | "io1"
- One of "standard" (magnetic), "gp2" (general
purpose SSD), "gp3" (general purpose SSD that needs iopsindependently) "io1" (provisioned IOPS SSD) or "io2" (block express storage provisioned IOPS SSD). The default is "io1" ifiopsis specified, "gp2" if not.
- Map<String>
- A map of tags to assign to the resource. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- timezone String
- Time zone of the DB instance. timezoneis currently only supported by Microsoft SQL Server. Thetimezonecan only be set on creation. See MSSQL User Guide for more information.
- upgradeStorage BooleanConfig 
- Whether to upgrade the storage file system configuration on the read replica.
Can only be set with replicate_source_db.
- username String
- (Required unless a snapshot_identifierorreplicate_source_dbis provided) Username for the master DB user. Cannot be specified for a replica.
- vpcSecurity List<String>Group Ids 
- List of VPC security groups to associate.
Outputs
All input properties are implicitly available as output properties. Additionally, the Instance resource produces the following output properties:
- Address string
- Specifies the DNS address of the DB instance.
- Arn string
- The ARN of the RDS instance.
- Endpoint string
- The connection endpoint in address:portformat.
- EngineVersion stringActual 
- The running version of the database.
- HostedZone stringId 
- Specifies the ID that Amazon Route 53 assigns when you create a hosted zone.
- Id string
- The provider-assigned unique ID for this managed resource.
- LatestRestorable stringTime 
- The latest time, in UTC RFC3339 format, to which a database can be restored with point-in-time restore.
- ListenerEndpoints List<InstanceListener Endpoint> 
- Specifies the listener connection endpoint for SQL Server Always On. See endpoint below.
- MasterUser List<InstanceSecrets Master User Secret> 
- A block that specifies the master user secret. Only available when manage_master_user_passwordis set to true. Documented below.
- Replicas List<string>
- ResourceId string
- The RDS Resource ID of this instance.
- Status string
- The RDS instance status.
- Dictionary<string, string>
- A map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
- Address string
- Specifies the DNS address of the DB instance.
- Arn string
- The ARN of the RDS instance.
- Endpoint string
- The connection endpoint in address:portformat.
- EngineVersion stringActual 
- The running version of the database.
- HostedZone stringId 
- Specifies the ID that Amazon Route 53 assigns when you create a hosted zone.
- Id string
- The provider-assigned unique ID for this managed resource.
- LatestRestorable stringTime 
- The latest time, in UTC RFC3339 format, to which a database can be restored with point-in-time restore.
- ListenerEndpoints []InstanceListener Endpoint 
- Specifies the listener connection endpoint for SQL Server Always On. See endpoint below.
- MasterUser []InstanceSecrets Master User Secret 
- A block that specifies the master user secret. Only available when manage_master_user_passwordis set to true. Documented below.
- Replicas []string
- ResourceId string
- The RDS Resource ID of this instance.
- Status string
- The RDS instance status.
- map[string]string
- A map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
- address String
- Specifies the DNS address of the DB instance.
- arn String
- The ARN of the RDS instance.
- endpoint String
- The connection endpoint in address:portformat.
- engineVersion StringActual 
- The running version of the database.
- hostedZone StringId 
- Specifies the ID that Amazon Route 53 assigns when you create a hosted zone.
- id String
- The provider-assigned unique ID for this managed resource.
- latestRestorable StringTime 
- The latest time, in UTC RFC3339 format, to which a database can be restored with point-in-time restore.
- listenerEndpoints List<InstanceListener Endpoint> 
- Specifies the listener connection endpoint for SQL Server Always On. See endpoint below.
- masterUser List<InstanceSecrets Master User Secret> 
- A block that specifies the master user secret. Only available when manage_master_user_passwordis set to true. Documented below.
- replicas List<String>
- resourceId String
- The RDS Resource ID of this instance.
- status String
- The RDS instance status.
- Map<String,String>
- A map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
- address string
- Specifies the DNS address of the DB instance.
- arn string
- The ARN of the RDS instance.
- endpoint string
- The connection endpoint in address:portformat.
- engineVersion stringActual 
- The running version of the database.
- hostedZone stringId 
- Specifies the ID that Amazon Route 53 assigns when you create a hosted zone.
- id string
- The provider-assigned unique ID for this managed resource.
- latestRestorable stringTime 
- The latest time, in UTC RFC3339 format, to which a database can be restored with point-in-time restore.
- listenerEndpoints InstanceListener Endpoint[] 
- Specifies the listener connection endpoint for SQL Server Always On. See endpoint below.
- masterUser InstanceSecrets Master User Secret[] 
- A block that specifies the master user secret. Only available when manage_master_user_passwordis set to true. Documented below.
- replicas string[]
- resourceId string
- The RDS Resource ID of this instance.
- status string
- The RDS instance status.
- {[key: string]: string}
- A map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
- address str
- Specifies the DNS address of the DB instance.
- arn str
- The ARN of the RDS instance.
- endpoint str
- The connection endpoint in address:portformat.
- engine_version_ stractual 
- The running version of the database.
- hosted_zone_ strid 
- Specifies the ID that Amazon Route 53 assigns when you create a hosted zone.
- id str
- The provider-assigned unique ID for this managed resource.
- latest_restorable_ strtime 
- The latest time, in UTC RFC3339 format, to which a database can be restored with point-in-time restore.
- listener_endpoints Sequence[InstanceListener Endpoint] 
- Specifies the listener connection endpoint for SQL Server Always On. See endpoint below.
- master_user_ Sequence[Instancesecrets Master User Secret] 
- A block that specifies the master user secret. Only available when manage_master_user_passwordis set to true. Documented below.
- replicas Sequence[str]
- resource_id str
- The RDS Resource ID of this instance.
- status str
- The RDS instance status.
- Mapping[str, str]
- A map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
- address String
- Specifies the DNS address of the DB instance.
- arn String
- The ARN of the RDS instance.
- endpoint String
- The connection endpoint in address:portformat.
- engineVersion StringActual 
- The running version of the database.
- hostedZone StringId 
- Specifies the ID that Amazon Route 53 assigns when you create a hosted zone.
- id String
- The provider-assigned unique ID for this managed resource.
- latestRestorable StringTime 
- The latest time, in UTC RFC3339 format, to which a database can be restored with point-in-time restore.
- listenerEndpoints List<Property Map>
- Specifies the listener connection endpoint for SQL Server Always On. See endpoint below.
- masterUser List<Property Map>Secrets 
- A block that specifies the master user secret. Only available when manage_master_user_passwordis set to true. Documented below.
- replicas List<String>
- resourceId String
- The RDS Resource ID of this instance.
- status String
- The RDS instance status.
- Map<String>
- A map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
Look up Existing Instance Resource
Get an existing Instance resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: InstanceState, opts?: CustomResourceOptions): Instance@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        address: Optional[str] = None,
        allocated_storage: Optional[int] = None,
        allow_major_version_upgrade: Optional[bool] = None,
        apply_immediately: Optional[bool] = None,
        arn: Optional[str] = None,
        auto_minor_version_upgrade: Optional[bool] = None,
        availability_zone: Optional[str] = None,
        backup_retention_period: Optional[int] = None,
        backup_target: Optional[str] = None,
        backup_window: Optional[str] = None,
        blue_green_update: Optional[InstanceBlueGreenUpdateArgs] = None,
        ca_cert_identifier: Optional[str] = None,
        character_set_name: Optional[str] = None,
        copy_tags_to_snapshot: Optional[bool] = None,
        custom_iam_instance_profile: Optional[str] = None,
        customer_owned_ip_enabled: Optional[bool] = None,
        db_name: Optional[str] = None,
        db_subnet_group_name: Optional[str] = None,
        dedicated_log_volume: Optional[bool] = None,
        delete_automated_backups: Optional[bool] = None,
        deletion_protection: Optional[bool] = None,
        domain: Optional[str] = None,
        domain_auth_secret_arn: Optional[str] = None,
        domain_dns_ips: Optional[Sequence[str]] = None,
        domain_fqdn: Optional[str] = None,
        domain_iam_role_name: Optional[str] = None,
        domain_ou: Optional[str] = None,
        enabled_cloudwatch_logs_exports: Optional[Sequence[str]] = None,
        endpoint: Optional[str] = None,
        engine: Optional[str] = None,
        engine_lifecycle_support: Optional[str] = None,
        engine_version: Optional[str] = None,
        engine_version_actual: Optional[str] = None,
        final_snapshot_identifier: Optional[str] = None,
        hosted_zone_id: Optional[str] = None,
        iam_database_authentication_enabled: Optional[bool] = None,
        identifier: Optional[str] = None,
        identifier_prefix: Optional[str] = None,
        instance_class: Optional[Union[str, InstanceType]] = None,
        iops: Optional[int] = None,
        kms_key_id: Optional[str] = None,
        latest_restorable_time: Optional[str] = None,
        license_model: Optional[str] = None,
        listener_endpoints: Optional[Sequence[InstanceListenerEndpointArgs]] = None,
        maintenance_window: Optional[str] = None,
        manage_master_user_password: Optional[bool] = None,
        master_user_secret_kms_key_id: Optional[str] = None,
        master_user_secrets: Optional[Sequence[InstanceMasterUserSecretArgs]] = None,
        max_allocated_storage: Optional[int] = None,
        monitoring_interval: Optional[int] = None,
        monitoring_role_arn: Optional[str] = None,
        multi_az: Optional[bool] = None,
        name: Optional[str] = None,
        nchar_character_set_name: Optional[str] = None,
        network_type: Optional[str] = None,
        option_group_name: Optional[str] = None,
        parameter_group_name: Optional[str] = None,
        password: Optional[str] = None,
        performance_insights_enabled: Optional[bool] = None,
        performance_insights_kms_key_id: Optional[str] = None,
        performance_insights_retention_period: Optional[int] = None,
        port: Optional[int] = None,
        publicly_accessible: Optional[bool] = None,
        replica_mode: Optional[str] = None,
        replicas: Optional[Sequence[str]] = None,
        replicate_source_db: Optional[str] = None,
        resource_id: Optional[str] = None,
        restore_to_point_in_time: Optional[InstanceRestoreToPointInTimeArgs] = None,
        s3_import: Optional[InstanceS3ImportArgs] = None,
        skip_final_snapshot: Optional[bool] = None,
        snapshot_identifier: Optional[str] = None,
        status: Optional[str] = None,
        storage_encrypted: Optional[bool] = None,
        storage_throughput: Optional[int] = None,
        storage_type: Optional[Union[str, StorageType]] = None,
        tags: Optional[Mapping[str, str]] = None,
        tags_all: Optional[Mapping[str, str]] = None,
        timezone: Optional[str] = None,
        upgrade_storage_config: Optional[bool] = None,
        username: Optional[str] = None,
        vpc_security_group_ids: Optional[Sequence[str]] = None) -> Instancefunc GetInstance(ctx *Context, name string, id IDInput, state *InstanceState, opts ...ResourceOption) (*Instance, error)public static Instance Get(string name, Input<string> id, InstanceState? state, CustomResourceOptions? opts = null)public static Instance get(String name, Output<String> id, InstanceState state, CustomResourceOptions options)resources:  _:    type: aws:rds:Instance    get:      id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Address string
- Specifies the DNS address of the DB instance.
- AllocatedStorage int
- The allocated storage in gibibytes. If max_allocated_storageis configured, this argument represents the initial storage allocation and differences from the configuration will be ignored automatically when Storage Autoscaling occurs. Ifreplicate_source_dbis set, the value is ignored during the creation of the instance.
- AllowMajor boolVersion Upgrade 
- 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.
- ApplyImmediately bool
- Specifies whether any database modifications
are applied immediately, or during the next maintenance window. Default is
false. See Amazon RDS Documentation for more information.
- Arn string
- The ARN of the RDS instance.
- AutoMinor boolVersion Upgrade 
- Indicates that minor engine upgrades will be applied automatically to the DB instance during the maintenance window. Defaults to true.
- AvailabilityZone string
- The AZ for the RDS instance.
- BackupRetention intPeriod 
- The days to retain backups for.
Must be between 0and35. Default is0. Must be greater than0if the database is used as a source for a [Read Replica][instance-replication], uses low-downtime updates, or will use [RDS Blue/Green deployments][blue-green].
- BackupTarget string
- Specifies where automated backups and manual snapshots are stored. Possible values are region(default) andoutposts. See Working with Amazon RDS on AWS Outposts for more information.
- BackupWindow string
- 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.
- BlueGreen InstanceUpdate Blue Green Update 
- Enables low-downtime updates using [RDS Blue/Green deployments][blue-green].
See blue_green_updatebelow.
- CaCert stringIdentifier 
- The identifier of the CA certificate for the DB instance.
- CharacterSet stringName 
- 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 Supported in Amazon RDS or
Server-Level Collation for Microsoft SQL Server for more information.
Cannot be set with replicate_source_db,restore_to_point_in_time,s3_import, orsnapshot_identifier.
- bool
- Copy all Instance tagsto snapshots. Default isfalse.
- CustomIam stringInstance Profile 
- The instance profile associated with the underlying Amazon EC2 instance of an RDS Custom DB instance.
- CustomerOwned boolIp Enabled 
- 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. - NOTE: Removing the - replicate_source_dbattribute from an existing RDS Replicate database managed by the provider will promote the database to a fully standalone database.
- DbName string
- 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.
- DbSubnet stringGroup Name 
- 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 defaultSubnet Group. When working with read replicas created in the same region, defaults to the Subnet Group Name of the source DB. When working with read replicas created in a different region, defaults to thedefaultSubnet Group. See DBSubnetGroupName in API action CreateDBInstanceReadReplica for additional read replica constraints.
- DedicatedLog boolVolume 
- Use a dedicated log volume (DLV) for the DB instance. Requires Provisioned IOPS. See the AWS documentation for more details.
- DeleteAutomated boolBackups 
- Specifies whether to remove automated backups immediately after the DB instance is deleted. Default is true.
- DeletionProtection bool
- If the DB instance should have deletion protection enabled. The database can't be deleted when this value is set to true. The default isfalse.
- Domain string
- The ID of the Directory Service Active Directory domain to create the instance in. Conflicts with domain_fqdn,domain_ou,domain_auth_secret_arnand adomain_dns_ips.
- DomainAuth stringSecret Arn 
- The ARN for the Secrets Manager secret with the self managed Active Directory credentials for the user joining the domain. Conflicts with domainanddomain_iam_role_name.
- DomainDns List<string>Ips 
- The IPv4 DNS IP addresses of your primary and secondary self managed Active Directory domain controllers. Two IP addresses must be provided. If there isn't a secondary domain controller, use the IP address of the primary domain controller for both entries in the list. Conflicts with domainanddomain_iam_role_name.
- DomainFqdn string
- The fully qualified domain name (FQDN) of the self managed Active Directory domain. Conflicts with domainanddomain_iam_role_name.
- DomainIam stringRole Name 
- The name of the IAM role to be used when making API calls to the Directory Service. Conflicts with domain_fqdn,domain_ou,domain_auth_secret_arnand adomain_dns_ips.
- DomainOu string
- The self managed Active Directory organizational unit for your DB instance to join. Conflicts with domainanddomain_iam_role_name.
- EnabledCloudwatch List<string>Logs Exports 
- Set of log types to enable for exporting to CloudWatch logs. If omitted, no logs will be exported. For supported values, see the EnableCloudwatchLogsExports.member.N parameter in API action CreateDBInstance.
- Endpoint string
- The connection endpoint in address:portformat.
- Engine string
- 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.
- EngineLifecycle stringSupport 
- The life cycle type for this DB instance. This setting applies only to RDS for MySQL and RDS for PostgreSQL. Valid values are open-source-rds-extended-support,open-source-rds-extended-support-disabled. Default value isopen-source-rds-extended-support. [Using Amazon RDS Extended Support]: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/extended-support.html
- EngineVersion string
- The engine version to use. If auto_minor_version_upgradeis enabled, you can provide a prefix of the version such as8.0(for8.0.36). The actual engine version used is returned in the attributeengine_version_actual, see Attribute 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'.
- EngineVersion stringActual 
- The running version of the database.
- FinalSnapshot stringIdentifier 
- The name of your final DB snapshot
when this DB instance is deleted. Must be provided if skip_final_snapshotis set tofalse. 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.
- HostedZone stringId 
- Specifies the ID that Amazon Route 53 assigns when you create a hosted zone.
- IamDatabase boolAuthentication Enabled 
- Specifies whether mappings of AWS Identity and Access Management (IAM) accounts to database accounts is enabled.
- Identifier string
- The name of the RDS instance, if omitted, this provider will assign a random, unique identifier. Required if restore_to_point_in_timeis specified.
- IdentifierPrefix string
- Creates a unique identifier beginning with the specified prefix. Conflicts with identifier.
- InstanceClass string | Pulumi.Aws. Rds. Instance Type 
- The instance type of the RDS instance.
- Iops int
- The amount of provisioned IOPS. Setting this implies a
storage_type of "io1" or "io2". Can only be set when storage_typeis"io1","io2or"gp3". Cannot be specified for gp3 storage if theallocated_storagevalue is below a per-enginethreshold. See the RDS User Guide for details.
- KmsKey stringId 
- The ARN for the KMS encryption key. If creating an encrypted replica, set this to the destination KMS ARN.
- LatestRestorable stringTime 
- The latest time, in UTC RFC3339 format, to which a database can be restored with point-in-time restore.
- LicenseModel string
- License model information for this DB instance. Valid values for this field are as follows:- RDS for MariaDB: general-public-license
- RDS for Microsoft SQL Server: license-included
- RDS for MySQL: general-public-license
- RDS for Oracle: bring-your-own-license | license-included
- RDS for PostgreSQL: postgresql-license
 
- RDS for MariaDB: 
- ListenerEndpoints List<InstanceListener Endpoint> 
- Specifies the listener connection endpoint for SQL Server Always On. See endpoint below.
- MaintenanceWindow string
- The window to perform maintenance in. Syntax: "ddd:hh24:mi-ddd:hh24:mi". Eg: "Mon:00:00-Mon:03:00". See RDS Maintenance Window docs for more information.
- ManageMaster boolUser Password 
- Set to true to allow RDS to manage the master user password in Secrets Manager. Cannot be set if passwordorpassword_wois provided.
- MasterUser stringSecret Kms Key Id 
- 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.
- MasterUser List<InstanceSecrets Master User Secret> 
- A block that specifies the master user secret. Only available when manage_master_user_passwordis set to true. Documented below.
- MaxAllocated intStorage 
- Specifies the maximum storage (in GiB) that Amazon RDS can automatically scale to for this DB instance. By default, Storage Autoscaling is disabled. To enable Storage Autoscaling, set max_allocated_storageto greater than or equal toallocated_storage. Settingmax_allocated_storageto 0 explicitly disables Storage Autoscaling. When configured, changes toallocated_storagewill be automatically ignored as the storage can dynamically scale.
- MonitoringInterval int
- 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.
- MonitoringRole stringArn 
- 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 Documentation what IAM permissions are needed to allow Enhanced Monitoring for RDS Instances.
- MultiAz bool
- Specifies if the RDS instance is multi-AZ
- Name string
- NcharCharacter stringSet Name 
- 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 Supported in Amazon RDS.
- NetworkType string
- The network type of the DB instance. Valid values: IPV4,DUAL.
- OptionGroup stringName 
- Name of the DB option group to associate.
- ParameterGroup stringName 
- Name of the DB parameter group to associate.
- Password string
- 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_passwordis set totrue.
- PerformanceInsights boolEnabled 
- Specifies whether Performance Insights are enabled. Defaults to false.
- PerformanceInsights stringKms Key Id 
- The ARN for the KMS key to encrypt Performance Insights data. When specifying performance_insights_kms_key_id,performance_insights_enabledneeds to be set to true. Once KMS key is set, it can never be changed.
- PerformanceInsights intRetention Period 
- Amount of time in days to retain Performance Insights data. Valid values are 7,731(2 years) or a multiple of31. When specifyingperformance_insights_retention_period,performance_insights_enabledneeds to be set to true. Defaults to '7'.
- Port int
- The port on which the DB accepts connections.
- PubliclyAccessible bool
- Bool to control if instance is publicly
accessible. Default is false.
- ReplicaMode string
- Specifies whether the replica is in either mountedoropen-read-onlymode. This attribute is only supported by Oracle instances. Oracle replicas operate inopen-read-onlymode unless otherwise specified. See Working with Oracle Read Replicas for more information.
- Replicas List<string>
- ReplicateSource stringDb 
- Specifies that this resource is a Replica database, and to use this value as the source database.
If replicating an Amazon RDS Database Instance in the same region, use the identifierof the source DB, unless also specifying thedb_subnet_group_name. If specifying thedb_subnet_group_namein the same region, use thearnof the source DB. If replicating an Instance in a different region, use thearnof the source DB. Note that if you are creating a cross-region replica of an encrypted database you will also need to specify akms_key_id. See [DB Instance Replication][instance-replication] and Working with PostgreSQL and MySQL Read Replicas for more information on using Replication.
- ResourceId string
- The RDS Resource ID of this instance.
- RestoreTo InstancePoint In Time Restore To Point In Time 
- A configuration block for restoring a DB instance to an arbitrary point in time.
Requires the identifierargument to be set with the name of the new DB instance to be created. See Restore To Point In Time below for details.
- S3Import
InstanceS3Import 
- Restore from a Percona Xtrabackup in S3. See Importing Data into an Amazon RDS MySQL DB Instance
- SkipFinal boolSnapshot 
- 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 isfalse.
- SnapshotIdentifier string
- Specifies whether or not to create this database from a snapshot. This corresponds to the snapshot ID you'd find in the RDS console, e.g: rds:production-2015-06-26-06-05.
- Status string
- The RDS instance status.
- StorageEncrypted bool
- 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_idwith a valid ARN. The default isfalseif not specified.
- StorageThroughput int
- The storage throughput value for the DB instance. Can only be set when storage_typeis"gp3". Cannot be specified if theallocated_storagevalue is below a per-enginethreshold. See the RDS User Guide for details.
- StorageType string | Pulumi.Aws. Rds. Storage Type 
- One of "standard" (magnetic), "gp2" (general
purpose SSD), "gp3" (general purpose SSD that needs iopsindependently) "io1" (provisioned IOPS SSD) or "io2" (block express storage provisioned IOPS SSD). The default is "io1" ifiopsis specified, "gp2" if not.
- Dictionary<string, string>
- A map of tags to assign to the resource. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- Dictionary<string, string>
- A map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
- Timezone string
- Time zone of the DB instance. timezoneis currently only supported by Microsoft SQL Server. Thetimezonecan only be set on creation. See MSSQL User Guide for more information.
- UpgradeStorage boolConfig 
- Whether to upgrade the storage file system configuration on the read replica.
Can only be set with replicate_source_db.
- Username string
- (Required unless a snapshot_identifierorreplicate_source_dbis provided) Username for the master DB user. Cannot be specified for a replica.
- VpcSecurity List<string>Group Ids 
- List of VPC security groups to associate.
- Address string
- Specifies the DNS address of the DB instance.
- AllocatedStorage int
- The allocated storage in gibibytes. If max_allocated_storageis configured, this argument represents the initial storage allocation and differences from the configuration will be ignored automatically when Storage Autoscaling occurs. Ifreplicate_source_dbis set, the value is ignored during the creation of the instance.
- AllowMajor boolVersion Upgrade 
- 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.
- ApplyImmediately bool
- Specifies whether any database modifications
are applied immediately, or during the next maintenance window. Default is
false. See Amazon RDS Documentation for more information.
- Arn string
- The ARN of the RDS instance.
- AutoMinor boolVersion Upgrade 
- Indicates that minor engine upgrades will be applied automatically to the DB instance during the maintenance window. Defaults to true.
- AvailabilityZone string
- The AZ for the RDS instance.
- BackupRetention intPeriod 
- The days to retain backups for.
Must be between 0and35. Default is0. Must be greater than0if the database is used as a source for a [Read Replica][instance-replication], uses low-downtime updates, or will use [RDS Blue/Green deployments][blue-green].
- BackupTarget string
- Specifies where automated backups and manual snapshots are stored. Possible values are region(default) andoutposts. See Working with Amazon RDS on AWS Outposts for more information.
- BackupWindow string
- 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.
- BlueGreen InstanceUpdate Blue Green Update Args 
- Enables low-downtime updates using [RDS Blue/Green deployments][blue-green].
See blue_green_updatebelow.
- CaCert stringIdentifier 
- The identifier of the CA certificate for the DB instance.
- CharacterSet stringName 
- 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 Supported in Amazon RDS or
Server-Level Collation for Microsoft SQL Server for more information.
Cannot be set with replicate_source_db,restore_to_point_in_time,s3_import, orsnapshot_identifier.
- bool
- Copy all Instance tagsto snapshots. Default isfalse.
- CustomIam stringInstance Profile 
- The instance profile associated with the underlying Amazon EC2 instance of an RDS Custom DB instance.
- CustomerOwned boolIp Enabled 
- 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. - NOTE: Removing the - replicate_source_dbattribute from an existing RDS Replicate database managed by the provider will promote the database to a fully standalone database.
- DbName string
- 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.
- DbSubnet stringGroup Name 
- 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 defaultSubnet Group. When working with read replicas created in the same region, defaults to the Subnet Group Name of the source DB. When working with read replicas created in a different region, defaults to thedefaultSubnet Group. See DBSubnetGroupName in API action CreateDBInstanceReadReplica for additional read replica constraints.
- DedicatedLog boolVolume 
- Use a dedicated log volume (DLV) for the DB instance. Requires Provisioned IOPS. See the AWS documentation for more details.
- DeleteAutomated boolBackups 
- Specifies whether to remove automated backups immediately after the DB instance is deleted. Default is true.
- DeletionProtection bool
- If the DB instance should have deletion protection enabled. The database can't be deleted when this value is set to true. The default isfalse.
- Domain string
- The ID of the Directory Service Active Directory domain to create the instance in. Conflicts with domain_fqdn,domain_ou,domain_auth_secret_arnand adomain_dns_ips.
- DomainAuth stringSecret Arn 
- The ARN for the Secrets Manager secret with the self managed Active Directory credentials for the user joining the domain. Conflicts with domainanddomain_iam_role_name.
- DomainDns []stringIps 
- The IPv4 DNS IP addresses of your primary and secondary self managed Active Directory domain controllers. Two IP addresses must be provided. If there isn't a secondary domain controller, use the IP address of the primary domain controller for both entries in the list. Conflicts with domainanddomain_iam_role_name.
- DomainFqdn string
- The fully qualified domain name (FQDN) of the self managed Active Directory domain. Conflicts with domainanddomain_iam_role_name.
- DomainIam stringRole Name 
- The name of the IAM role to be used when making API calls to the Directory Service. Conflicts with domain_fqdn,domain_ou,domain_auth_secret_arnand adomain_dns_ips.
- DomainOu string
- The self managed Active Directory organizational unit for your DB instance to join. Conflicts with domainanddomain_iam_role_name.
- EnabledCloudwatch []stringLogs Exports 
- Set of log types to enable for exporting to CloudWatch logs. If omitted, no logs will be exported. For supported values, see the EnableCloudwatchLogsExports.member.N parameter in API action CreateDBInstance.
- Endpoint string
- The connection endpoint in address:portformat.
- Engine string
- 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.
- EngineLifecycle stringSupport 
- The life cycle type for this DB instance. This setting applies only to RDS for MySQL and RDS for PostgreSQL. Valid values are open-source-rds-extended-support,open-source-rds-extended-support-disabled. Default value isopen-source-rds-extended-support. [Using Amazon RDS Extended Support]: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/extended-support.html
- EngineVersion string
- The engine version to use. If auto_minor_version_upgradeis enabled, you can provide a prefix of the version such as8.0(for8.0.36). The actual engine version used is returned in the attributeengine_version_actual, see Attribute 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'.
- EngineVersion stringActual 
- The running version of the database.
- FinalSnapshot stringIdentifier 
- The name of your final DB snapshot
when this DB instance is deleted. Must be provided if skip_final_snapshotis set tofalse. 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.
- HostedZone stringId 
- Specifies the ID that Amazon Route 53 assigns when you create a hosted zone.
- IamDatabase boolAuthentication Enabled 
- Specifies whether mappings of AWS Identity and Access Management (IAM) accounts to database accounts is enabled.
- Identifier string
- The name of the RDS instance, if omitted, this provider will assign a random, unique identifier. Required if restore_to_point_in_timeis specified.
- IdentifierPrefix string
- Creates a unique identifier beginning with the specified prefix. Conflicts with identifier.
- InstanceClass string | InstanceType 
- The instance type of the RDS instance.
- Iops int
- The amount of provisioned IOPS. Setting this implies a
storage_type of "io1" or "io2". Can only be set when storage_typeis"io1","io2or"gp3". Cannot be specified for gp3 storage if theallocated_storagevalue is below a per-enginethreshold. See the RDS User Guide for details.
- KmsKey stringId 
- The ARN for the KMS encryption key. If creating an encrypted replica, set this to the destination KMS ARN.
- LatestRestorable stringTime 
- The latest time, in UTC RFC3339 format, to which a database can be restored with point-in-time restore.
- LicenseModel string
- License model information for this DB instance. Valid values for this field are as follows:- RDS for MariaDB: general-public-license
- RDS for Microsoft SQL Server: license-included
- RDS for MySQL: general-public-license
- RDS for Oracle: bring-your-own-license | license-included
- RDS for PostgreSQL: postgresql-license
 
- RDS for MariaDB: 
- ListenerEndpoints []InstanceListener Endpoint Args 
- Specifies the listener connection endpoint for SQL Server Always On. See endpoint below.
- MaintenanceWindow string
- The window to perform maintenance in. Syntax: "ddd:hh24:mi-ddd:hh24:mi". Eg: "Mon:00:00-Mon:03:00". See RDS Maintenance Window docs for more information.
- ManageMaster boolUser Password 
- Set to true to allow RDS to manage the master user password in Secrets Manager. Cannot be set if passwordorpassword_wois provided.
- MasterUser stringSecret Kms Key Id 
- 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.
- MasterUser []InstanceSecrets Master User Secret Args 
- A block that specifies the master user secret. Only available when manage_master_user_passwordis set to true. Documented below.
- MaxAllocated intStorage 
- Specifies the maximum storage (in GiB) that Amazon RDS can automatically scale to for this DB instance. By default, Storage Autoscaling is disabled. To enable Storage Autoscaling, set max_allocated_storageto greater than or equal toallocated_storage. Settingmax_allocated_storageto 0 explicitly disables Storage Autoscaling. When configured, changes toallocated_storagewill be automatically ignored as the storage can dynamically scale.
- MonitoringInterval int
- 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.
- MonitoringRole stringArn 
- 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 Documentation what IAM permissions are needed to allow Enhanced Monitoring for RDS Instances.
- MultiAz bool
- Specifies if the RDS instance is multi-AZ
- Name string
- NcharCharacter stringSet Name 
- 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 Supported in Amazon RDS.
- NetworkType string
- The network type of the DB instance. Valid values: IPV4,DUAL.
- OptionGroup stringName 
- Name of the DB option group to associate.
- ParameterGroup stringName 
- Name of the DB parameter group to associate.
- Password string
- 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_passwordis set totrue.
- PerformanceInsights boolEnabled 
- Specifies whether Performance Insights are enabled. Defaults to false.
- PerformanceInsights stringKms Key Id 
- The ARN for the KMS key to encrypt Performance Insights data. When specifying performance_insights_kms_key_id,performance_insights_enabledneeds to be set to true. Once KMS key is set, it can never be changed.
- PerformanceInsights intRetention Period 
- Amount of time in days to retain Performance Insights data. Valid values are 7,731(2 years) or a multiple of31. When specifyingperformance_insights_retention_period,performance_insights_enabledneeds to be set to true. Defaults to '7'.
- Port int
- The port on which the DB accepts connections.
- PubliclyAccessible bool
- Bool to control if instance is publicly
accessible. Default is false.
- ReplicaMode string
- Specifies whether the replica is in either mountedoropen-read-onlymode. This attribute is only supported by Oracle instances. Oracle replicas operate inopen-read-onlymode unless otherwise specified. See Working with Oracle Read Replicas for more information.
- Replicas []string
- ReplicateSource stringDb 
- Specifies that this resource is a Replica database, and to use this value as the source database.
If replicating an Amazon RDS Database Instance in the same region, use the identifierof the source DB, unless also specifying thedb_subnet_group_name. If specifying thedb_subnet_group_namein the same region, use thearnof the source DB. If replicating an Instance in a different region, use thearnof the source DB. Note that if you are creating a cross-region replica of an encrypted database you will also need to specify akms_key_id. See [DB Instance Replication][instance-replication] and Working with PostgreSQL and MySQL Read Replicas for more information on using Replication.
- ResourceId string
- The RDS Resource ID of this instance.
- RestoreTo InstancePoint In Time Restore To Point In Time Args 
- A configuration block for restoring a DB instance to an arbitrary point in time.
Requires the identifierargument to be set with the name of the new DB instance to be created. See Restore To Point In Time below for details.
- S3Import
InstanceS3Import Args 
- Restore from a Percona Xtrabackup in S3. See Importing Data into an Amazon RDS MySQL DB Instance
- SkipFinal boolSnapshot 
- 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 isfalse.
- SnapshotIdentifier string
- Specifies whether or not to create this database from a snapshot. This corresponds to the snapshot ID you'd find in the RDS console, e.g: rds:production-2015-06-26-06-05.
- Status string
- The RDS instance status.
- StorageEncrypted bool
- 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_idwith a valid ARN. The default isfalseif not specified.
- StorageThroughput int
- The storage throughput value for the DB instance. Can only be set when storage_typeis"gp3". Cannot be specified if theallocated_storagevalue is below a per-enginethreshold. See the RDS User Guide for details.
- StorageType string | StorageType 
- One of "standard" (magnetic), "gp2" (general
purpose SSD), "gp3" (general purpose SSD that needs iopsindependently) "io1" (provisioned IOPS SSD) or "io2" (block express storage provisioned IOPS SSD). The default is "io1" ifiopsis specified, "gp2" if not.
- map[string]string
- A map of tags to assign to the resource. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- map[string]string
- A map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
- Timezone string
- Time zone of the DB instance. timezoneis currently only supported by Microsoft SQL Server. Thetimezonecan only be set on creation. See MSSQL User Guide for more information.
- UpgradeStorage boolConfig 
- Whether to upgrade the storage file system configuration on the read replica.
Can only be set with replicate_source_db.
- Username string
- (Required unless a snapshot_identifierorreplicate_source_dbis provided) Username for the master DB user. Cannot be specified for a replica.
- VpcSecurity []stringGroup Ids 
- List of VPC security groups to associate.
- address String
- Specifies the DNS address of the DB instance.
- allocatedStorage Integer
- The allocated storage in gibibytes. If max_allocated_storageis configured, this argument represents the initial storage allocation and differences from the configuration will be ignored automatically when Storage Autoscaling occurs. Ifreplicate_source_dbis set, the value is ignored during the creation of the instance.
- allowMajor BooleanVersion Upgrade 
- 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.
- applyImmediately Boolean
- Specifies whether any database modifications
are applied immediately, or during the next maintenance window. Default is
false. See Amazon RDS Documentation for more information.
- arn String
- The ARN of the RDS instance.
- autoMinor BooleanVersion Upgrade 
- Indicates that minor engine upgrades will be applied automatically to the DB instance during the maintenance window. Defaults to true.
- availabilityZone String
- The AZ for the RDS instance.
- backupRetention IntegerPeriod 
- The days to retain backups for.
Must be between 0and35. Default is0. Must be greater than0if the database is used as a source for a [Read Replica][instance-replication], uses low-downtime updates, or will use [RDS Blue/Green deployments][blue-green].
- backupTarget String
- Specifies where automated backups and manual snapshots are stored. Possible values are region(default) andoutposts. See Working with Amazon RDS on AWS Outposts for more information.
- backupWindow String
- 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.
- blueGreen InstanceUpdate Blue Green Update 
- Enables low-downtime updates using [RDS Blue/Green deployments][blue-green].
See blue_green_updatebelow.
- caCert StringIdentifier 
- The identifier of the CA certificate for the DB instance.
- characterSet StringName 
- 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 Supported in Amazon RDS or
Server-Level Collation for Microsoft SQL Server for more information.
Cannot be set with replicate_source_db,restore_to_point_in_time,s3_import, orsnapshot_identifier.
- Boolean
- Copy all Instance tagsto snapshots. Default isfalse.
- customIam StringInstance Profile 
- The instance profile associated with the underlying Amazon EC2 instance of an RDS Custom DB instance.
- customerOwned BooleanIp Enabled 
- 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. - NOTE: Removing the - replicate_source_dbattribute from an existing RDS Replicate database managed by the provider will promote the database to a fully standalone database.
- dbName String
- 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.
- dbSubnet StringGroup Name 
- 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 defaultSubnet Group. When working with read replicas created in the same region, defaults to the Subnet Group Name of the source DB. When working with read replicas created in a different region, defaults to thedefaultSubnet Group. See DBSubnetGroupName in API action CreateDBInstanceReadReplica for additional read replica constraints.
- dedicatedLog BooleanVolume 
- Use a dedicated log volume (DLV) for the DB instance. Requires Provisioned IOPS. See the AWS documentation for more details.
- deleteAutomated BooleanBackups 
- Specifies whether to remove automated backups immediately after the DB instance is deleted. Default is true.
- deletionProtection Boolean
- If the DB instance should have deletion protection enabled. The database can't be deleted when this value is set to true. The default isfalse.
- domain String
- The ID of the Directory Service Active Directory domain to create the instance in. Conflicts with domain_fqdn,domain_ou,domain_auth_secret_arnand adomain_dns_ips.
- domainAuth StringSecret Arn 
- The ARN for the Secrets Manager secret with the self managed Active Directory credentials for the user joining the domain. Conflicts with domainanddomain_iam_role_name.
- domainDns List<String>Ips 
- The IPv4 DNS IP addresses of your primary and secondary self managed Active Directory domain controllers. Two IP addresses must be provided. If there isn't a secondary domain controller, use the IP address of the primary domain controller for both entries in the list. Conflicts with domainanddomain_iam_role_name.
- domainFqdn String
- The fully qualified domain name (FQDN) of the self managed Active Directory domain. Conflicts with domainanddomain_iam_role_name.
- domainIam StringRole Name 
- The name of the IAM role to be used when making API calls to the Directory Service. Conflicts with domain_fqdn,domain_ou,domain_auth_secret_arnand adomain_dns_ips.
- domainOu String
- The self managed Active Directory organizational unit for your DB instance to join. Conflicts with domainanddomain_iam_role_name.
- enabledCloudwatch List<String>Logs Exports 
- Set of log types to enable for exporting to CloudWatch logs. If omitted, no logs will be exported. For supported values, see the EnableCloudwatchLogsExports.member.N parameter in API action CreateDBInstance.
- endpoint String
- The connection endpoint in address:portformat.
- engine String
- 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.
- engineLifecycle StringSupport 
- The life cycle type for this DB instance. This setting applies only to RDS for MySQL and RDS for PostgreSQL. Valid values are open-source-rds-extended-support,open-source-rds-extended-support-disabled. Default value isopen-source-rds-extended-support. [Using Amazon RDS Extended Support]: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/extended-support.html
- engineVersion String
- The engine version to use. If auto_minor_version_upgradeis enabled, you can provide a prefix of the version such as8.0(for8.0.36). The actual engine version used is returned in the attributeengine_version_actual, see Attribute 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'.
- engineVersion StringActual 
- The running version of the database.
- finalSnapshot StringIdentifier 
- The name of your final DB snapshot
when this DB instance is deleted. Must be provided if skip_final_snapshotis set tofalse. 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.
- hostedZone StringId 
- Specifies the ID that Amazon Route 53 assigns when you create a hosted zone.
- iamDatabase BooleanAuthentication Enabled 
- Specifies whether mappings of AWS Identity and Access Management (IAM) accounts to database accounts is enabled.
- identifier String
- The name of the RDS instance, if omitted, this provider will assign a random, unique identifier. Required if restore_to_point_in_timeis specified.
- identifierPrefix String
- Creates a unique identifier beginning with the specified prefix. Conflicts with identifier.
- instanceClass String | InstanceType 
- The instance type of the RDS instance.
- iops Integer
- The amount of provisioned IOPS. Setting this implies a
storage_type of "io1" or "io2". Can only be set when storage_typeis"io1","io2or"gp3". Cannot be specified for gp3 storage if theallocated_storagevalue is below a per-enginethreshold. See the RDS User Guide for details.
- kmsKey StringId 
- The ARN for the KMS encryption key. If creating an encrypted replica, set this to the destination KMS ARN.
- latestRestorable StringTime 
- The latest time, in UTC RFC3339 format, to which a database can be restored with point-in-time restore.
- licenseModel String
- License model information for this DB instance. Valid values for this field are as follows:- RDS for MariaDB: general-public-license
- RDS for Microsoft SQL Server: license-included
- RDS for MySQL: general-public-license
- RDS for Oracle: bring-your-own-license | license-included
- RDS for PostgreSQL: postgresql-license
 
- RDS for MariaDB: 
- listenerEndpoints List<InstanceListener Endpoint> 
- Specifies the listener connection endpoint for SQL Server Always On. See endpoint below.
- maintenanceWindow String
- The window to perform maintenance in. Syntax: "ddd:hh24:mi-ddd:hh24:mi". Eg: "Mon:00:00-Mon:03:00". See RDS Maintenance Window docs for more information.
- manageMaster BooleanUser Password 
- Set to true to allow RDS to manage the master user password in Secrets Manager. Cannot be set if passwordorpassword_wois provided.
- masterUser StringSecret Kms Key Id 
- 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.
- masterUser List<InstanceSecrets Master User Secret> 
- A block that specifies the master user secret. Only available when manage_master_user_passwordis set to true. Documented below.
- maxAllocated IntegerStorage 
- Specifies the maximum storage (in GiB) that Amazon RDS can automatically scale to for this DB instance. By default, Storage Autoscaling is disabled. To enable Storage Autoscaling, set max_allocated_storageto greater than or equal toallocated_storage. Settingmax_allocated_storageto 0 explicitly disables Storage Autoscaling. When configured, changes toallocated_storagewill be automatically ignored as the storage can dynamically scale.
- monitoringInterval Integer
- 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.
- monitoringRole StringArn 
- 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 Documentation what IAM permissions are needed to allow Enhanced Monitoring for RDS Instances.
- multiAz Boolean
- Specifies if the RDS instance is multi-AZ
- name String
- ncharCharacter StringSet Name 
- 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 Supported in Amazon RDS.
- networkType String
- The network type of the DB instance. Valid values: IPV4,DUAL.
- optionGroup StringName 
- Name of the DB option group to associate.
- parameterGroup StringName 
- Name of the DB parameter group to associate.
- password String
- 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_passwordis set totrue.
- performanceInsights BooleanEnabled 
- Specifies whether Performance Insights are enabled. Defaults to false.
- performanceInsights StringKms Key Id 
- The ARN for the KMS key to encrypt Performance Insights data. When specifying performance_insights_kms_key_id,performance_insights_enabledneeds to be set to true. Once KMS key is set, it can never be changed.
- performanceInsights IntegerRetention Period 
- Amount of time in days to retain Performance Insights data. Valid values are 7,731(2 years) or a multiple of31. When specifyingperformance_insights_retention_period,performance_insights_enabledneeds to be set to true. Defaults to '7'.
- port Integer
- The port on which the DB accepts connections.
- publiclyAccessible Boolean
- Bool to control if instance is publicly
accessible. Default is false.
- replicaMode String
- Specifies whether the replica is in either mountedoropen-read-onlymode. This attribute is only supported by Oracle instances. Oracle replicas operate inopen-read-onlymode unless otherwise specified. See Working with Oracle Read Replicas for more information.
- replicas List<String>
- replicateSource StringDb 
- Specifies that this resource is a Replica database, and to use this value as the source database.
If replicating an Amazon RDS Database Instance in the same region, use the identifierof the source DB, unless also specifying thedb_subnet_group_name. If specifying thedb_subnet_group_namein the same region, use thearnof the source DB. If replicating an Instance in a different region, use thearnof the source DB. Note that if you are creating a cross-region replica of an encrypted database you will also need to specify akms_key_id. See [DB Instance Replication][instance-replication] and Working with PostgreSQL and MySQL Read Replicas for more information on using Replication.
- resourceId String
- The RDS Resource ID of this instance.
- restoreTo InstancePoint In Time Restore To Point In Time 
- A configuration block for restoring a DB instance to an arbitrary point in time.
Requires the identifierargument to be set with the name of the new DB instance to be created. See Restore To Point In Time below for details.
- s3Import
InstanceS3Import 
- Restore from a Percona Xtrabackup in S3. See Importing Data into an Amazon RDS MySQL DB Instance
- skipFinal BooleanSnapshot 
- 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 isfalse.
- snapshotIdentifier String
- Specifies whether or not to create this database from a snapshot. This corresponds to the snapshot ID you'd find in the RDS console, e.g: rds:production-2015-06-26-06-05.
- status String
- The RDS instance status.
- storageEncrypted Boolean
- 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_idwith a valid ARN. The default isfalseif not specified.
- storageThroughput Integer
- The storage throughput value for the DB instance. Can only be set when storage_typeis"gp3". Cannot be specified if theallocated_storagevalue is below a per-enginethreshold. See the RDS User Guide for details.
- storageType String | StorageType 
- One of "standard" (magnetic), "gp2" (general
purpose SSD), "gp3" (general purpose SSD that needs iopsindependently) "io1" (provisioned IOPS SSD) or "io2" (block express storage provisioned IOPS SSD). The default is "io1" ifiopsis specified, "gp2" if not.
- Map<String,String>
- A map of tags to assign to the resource. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- Map<String,String>
- A map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
- timezone String
- Time zone of the DB instance. timezoneis currently only supported by Microsoft SQL Server. Thetimezonecan only be set on creation. See MSSQL User Guide for more information.
- upgradeStorage BooleanConfig 
- Whether to upgrade the storage file system configuration on the read replica.
Can only be set with replicate_source_db.
- username String
- (Required unless a snapshot_identifierorreplicate_source_dbis provided) Username for the master DB user. Cannot be specified for a replica.
- vpcSecurity List<String>Group Ids 
- List of VPC security groups to associate.
- address string
- Specifies the DNS address of the DB instance.
- allocatedStorage number
- The allocated storage in gibibytes. If max_allocated_storageis configured, this argument represents the initial storage allocation and differences from the configuration will be ignored automatically when Storage Autoscaling occurs. Ifreplicate_source_dbis set, the value is ignored during the creation of the instance.
- allowMajor booleanVersion Upgrade 
- 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.
- applyImmediately boolean
- Specifies whether any database modifications
are applied immediately, or during the next maintenance window. Default is
false. See Amazon RDS Documentation for more information.
- arn string
- The ARN of the RDS instance.
- autoMinor booleanVersion Upgrade 
- Indicates that minor engine upgrades will be applied automatically to the DB instance during the maintenance window. Defaults to true.
- availabilityZone string
- The AZ for the RDS instance.
- backupRetention numberPeriod 
- The days to retain backups for.
Must be between 0and35. Default is0. Must be greater than0if the database is used as a source for a [Read Replica][instance-replication], uses low-downtime updates, or will use [RDS Blue/Green deployments][blue-green].
- backupTarget string
- Specifies where automated backups and manual snapshots are stored. Possible values are region(default) andoutposts. See Working with Amazon RDS on AWS Outposts for more information.
- backupWindow string
- 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.
- blueGreen InstanceUpdate Blue Green Update 
- Enables low-downtime updates using [RDS Blue/Green deployments][blue-green].
See blue_green_updatebelow.
- caCert stringIdentifier 
- The identifier of the CA certificate for the DB instance.
- characterSet stringName 
- 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 Supported in Amazon RDS or
Server-Level Collation for Microsoft SQL Server for more information.
Cannot be set with replicate_source_db,restore_to_point_in_time,s3_import, orsnapshot_identifier.
- boolean
- Copy all Instance tagsto snapshots. Default isfalse.
- customIam stringInstance Profile 
- The instance profile associated with the underlying Amazon EC2 instance of an RDS Custom DB instance.
- customerOwned booleanIp Enabled 
- 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. - NOTE: Removing the - replicate_source_dbattribute from an existing RDS Replicate database managed by the provider will promote the database to a fully standalone database.
- dbName string
- 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.
- dbSubnet stringGroup Name 
- 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 defaultSubnet Group. When working with read replicas created in the same region, defaults to the Subnet Group Name of the source DB. When working with read replicas created in a different region, defaults to thedefaultSubnet Group. See DBSubnetGroupName in API action CreateDBInstanceReadReplica for additional read replica constraints.
- dedicatedLog booleanVolume 
- Use a dedicated log volume (DLV) for the DB instance. Requires Provisioned IOPS. See the AWS documentation for more details.
- deleteAutomated booleanBackups 
- Specifies whether to remove automated backups immediately after the DB instance is deleted. Default is true.
- deletionProtection boolean
- If the DB instance should have deletion protection enabled. The database can't be deleted when this value is set to true. The default isfalse.
- domain string
- The ID of the Directory Service Active Directory domain to create the instance in. Conflicts with domain_fqdn,domain_ou,domain_auth_secret_arnand adomain_dns_ips.
- domainAuth stringSecret Arn 
- The ARN for the Secrets Manager secret with the self managed Active Directory credentials for the user joining the domain. Conflicts with domainanddomain_iam_role_name.
- domainDns string[]Ips 
- The IPv4 DNS IP addresses of your primary and secondary self managed Active Directory domain controllers. Two IP addresses must be provided. If there isn't a secondary domain controller, use the IP address of the primary domain controller for both entries in the list. Conflicts with domainanddomain_iam_role_name.
- domainFqdn string
- The fully qualified domain name (FQDN) of the self managed Active Directory domain. Conflicts with domainanddomain_iam_role_name.
- domainIam stringRole Name 
- The name of the IAM role to be used when making API calls to the Directory Service. Conflicts with domain_fqdn,domain_ou,domain_auth_secret_arnand adomain_dns_ips.
- domainOu string
- The self managed Active Directory organizational unit for your DB instance to join. Conflicts with domainanddomain_iam_role_name.
- enabledCloudwatch string[]Logs Exports 
- Set of log types to enable for exporting to CloudWatch logs. If omitted, no logs will be exported. For supported values, see the EnableCloudwatchLogsExports.member.N parameter in API action CreateDBInstance.
- endpoint string
- The connection endpoint in address:portformat.
- engine string
- 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.
- engineLifecycle stringSupport 
- The life cycle type for this DB instance. This setting applies only to RDS for MySQL and RDS for PostgreSQL. Valid values are open-source-rds-extended-support,open-source-rds-extended-support-disabled. Default value isopen-source-rds-extended-support. [Using Amazon RDS Extended Support]: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/extended-support.html
- engineVersion string
- The engine version to use. If auto_minor_version_upgradeis enabled, you can provide a prefix of the version such as8.0(for8.0.36). The actual engine version used is returned in the attributeengine_version_actual, see Attribute 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'.
- engineVersion stringActual 
- The running version of the database.
- finalSnapshot stringIdentifier 
- The name of your final DB snapshot
when this DB instance is deleted. Must be provided if skip_final_snapshotis set tofalse. 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.
- hostedZone stringId 
- Specifies the ID that Amazon Route 53 assigns when you create a hosted zone.
- iamDatabase booleanAuthentication Enabled 
- Specifies whether mappings of AWS Identity and Access Management (IAM) accounts to database accounts is enabled.
- identifier string
- The name of the RDS instance, if omitted, this provider will assign a random, unique identifier. Required if restore_to_point_in_timeis specified.
- identifierPrefix string
- Creates a unique identifier beginning with the specified prefix. Conflicts with identifier.
- instanceClass string | InstanceType 
- The instance type of the RDS instance.
- iops number
- The amount of provisioned IOPS. Setting this implies a
storage_type of "io1" or "io2". Can only be set when storage_typeis"io1","io2or"gp3". Cannot be specified for gp3 storage if theallocated_storagevalue is below a per-enginethreshold. See the RDS User Guide for details.
- kmsKey stringId 
- The ARN for the KMS encryption key. If creating an encrypted replica, set this to the destination KMS ARN.
- latestRestorable stringTime 
- The latest time, in UTC RFC3339 format, to which a database can be restored with point-in-time restore.
- licenseModel string
- License model information for this DB instance. Valid values for this field are as follows:- RDS for MariaDB: general-public-license
- RDS for Microsoft SQL Server: license-included
- RDS for MySQL: general-public-license
- RDS for Oracle: bring-your-own-license | license-included
- RDS for PostgreSQL: postgresql-license
 
- RDS for MariaDB: 
- listenerEndpoints InstanceListener Endpoint[] 
- Specifies the listener connection endpoint for SQL Server Always On. See endpoint below.
- maintenanceWindow string
- The window to perform maintenance in. Syntax: "ddd:hh24:mi-ddd:hh24:mi". Eg: "Mon:00:00-Mon:03:00". See RDS Maintenance Window docs for more information.
- manageMaster booleanUser Password 
- Set to true to allow RDS to manage the master user password in Secrets Manager. Cannot be set if passwordorpassword_wois provided.
- masterUser stringSecret Kms Key Id 
- 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.
- masterUser InstanceSecrets Master User Secret[] 
- A block that specifies the master user secret. Only available when manage_master_user_passwordis set to true. Documented below.
- maxAllocated numberStorage 
- Specifies the maximum storage (in GiB) that Amazon RDS can automatically scale to for this DB instance. By default, Storage Autoscaling is disabled. To enable Storage Autoscaling, set max_allocated_storageto greater than or equal toallocated_storage. Settingmax_allocated_storageto 0 explicitly disables Storage Autoscaling. When configured, changes toallocated_storagewill be automatically ignored as the storage can dynamically scale.
- monitoringInterval number
- 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.
- monitoringRole stringArn 
- 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 Documentation what IAM permissions are needed to allow Enhanced Monitoring for RDS Instances.
- multiAz boolean
- Specifies if the RDS instance is multi-AZ
- name string
- ncharCharacter stringSet Name 
- 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 Supported in Amazon RDS.
- networkType string
- The network type of the DB instance. Valid values: IPV4,DUAL.
- optionGroup stringName 
- Name of the DB option group to associate.
- parameterGroup stringName 
- Name of the DB parameter group to associate.
- password string
- 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_passwordis set totrue.
- performanceInsights booleanEnabled 
- Specifies whether Performance Insights are enabled. Defaults to false.
- performanceInsights stringKms Key Id 
- The ARN for the KMS key to encrypt Performance Insights data. When specifying performance_insights_kms_key_id,performance_insights_enabledneeds to be set to true. Once KMS key is set, it can never be changed.
- performanceInsights numberRetention Period 
- Amount of time in days to retain Performance Insights data. Valid values are 7,731(2 years) or a multiple of31. When specifyingperformance_insights_retention_period,performance_insights_enabledneeds to be set to true. Defaults to '7'.
- port number
- The port on which the DB accepts connections.
- publiclyAccessible boolean
- Bool to control if instance is publicly
accessible. Default is false.
- replicaMode string
- Specifies whether the replica is in either mountedoropen-read-onlymode. This attribute is only supported by Oracle instances. Oracle replicas operate inopen-read-onlymode unless otherwise specified. See Working with Oracle Read Replicas for more information.
- replicas string[]
- replicateSource stringDb 
- Specifies that this resource is a Replica database, and to use this value as the source database.
If replicating an Amazon RDS Database Instance in the same region, use the identifierof the source DB, unless also specifying thedb_subnet_group_name. If specifying thedb_subnet_group_namein the same region, use thearnof the source DB. If replicating an Instance in a different region, use thearnof the source DB. Note that if you are creating a cross-region replica of an encrypted database you will also need to specify akms_key_id. See [DB Instance Replication][instance-replication] and Working with PostgreSQL and MySQL Read Replicas for more information on using Replication.
- resourceId string
- The RDS Resource ID of this instance.
- restoreTo InstancePoint In Time Restore To Point In Time 
- A configuration block for restoring a DB instance to an arbitrary point in time.
Requires the identifierargument to be set with the name of the new DB instance to be created. See Restore To Point In Time below for details.
- s3Import
InstanceS3Import 
- Restore from a Percona Xtrabackup in S3. See Importing Data into an Amazon RDS MySQL DB Instance
- skipFinal booleanSnapshot 
- 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 isfalse.
- snapshotIdentifier string
- Specifies whether or not to create this database from a snapshot. This corresponds to the snapshot ID you'd find in the RDS console, e.g: rds:production-2015-06-26-06-05.
- status string
- The RDS instance status.
- storageEncrypted boolean
- 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_idwith a valid ARN. The default isfalseif not specified.
- storageThroughput number
- The storage throughput value for the DB instance. Can only be set when storage_typeis"gp3". Cannot be specified if theallocated_storagevalue is below a per-enginethreshold. See the RDS User Guide for details.
- storageType string | StorageType 
- One of "standard" (magnetic), "gp2" (general
purpose SSD), "gp3" (general purpose SSD that needs iopsindependently) "io1" (provisioned IOPS SSD) or "io2" (block express storage provisioned IOPS SSD). The default is "io1" ifiopsis specified, "gp2" if not.
- {[key: string]: string}
- A map of tags to assign to the resource. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- {[key: string]: string}
- A map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
- timezone string
- Time zone of the DB instance. timezoneis currently only supported by Microsoft SQL Server. Thetimezonecan only be set on creation. See MSSQL User Guide for more information.
- upgradeStorage booleanConfig 
- Whether to upgrade the storage file system configuration on the read replica.
Can only be set with replicate_source_db.
- username string
- (Required unless a snapshot_identifierorreplicate_source_dbis provided) Username for the master DB user. Cannot be specified for a replica.
- vpcSecurity string[]Group Ids 
- List of VPC security groups to associate.
- address str
- Specifies the DNS address of the DB instance.
- allocated_storage int
- The allocated storage in gibibytes. If max_allocated_storageis configured, this argument represents the initial storage allocation and differences from the configuration will be ignored automatically when Storage Autoscaling occurs. Ifreplicate_source_dbis set, the value is ignored during the creation of the instance.
- allow_major_ boolversion_ upgrade 
- 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.
- apply_immediately bool
- Specifies whether any database modifications
are applied immediately, or during the next maintenance window. Default is
false. See Amazon RDS Documentation for more information.
- arn str
- The ARN of the RDS instance.
- auto_minor_ boolversion_ upgrade 
- Indicates that minor engine upgrades will be applied automatically to the DB instance during the maintenance window. Defaults to true.
- availability_zone str
- The AZ for the RDS instance.
- backup_retention_ intperiod 
- The days to retain backups for.
Must be between 0and35. Default is0. Must be greater than0if the database is used as a source for a [Read Replica][instance-replication], uses low-downtime updates, or will use [RDS Blue/Green deployments][blue-green].
- backup_target str
- Specifies where automated backups and manual snapshots are stored. Possible values are region(default) andoutposts. See Working with Amazon RDS on AWS Outposts for more information.
- backup_window str
- 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.
- blue_green_ Instanceupdate Blue Green Update Args 
- Enables low-downtime updates using [RDS Blue/Green deployments][blue-green].
See blue_green_updatebelow.
- ca_cert_ stridentifier 
- The identifier of the CA certificate for the DB instance.
- character_set_ strname 
- 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 Supported in Amazon RDS or
Server-Level Collation for Microsoft SQL Server for more information.
Cannot be set with replicate_source_db,restore_to_point_in_time,s3_import, orsnapshot_identifier.
- bool
- Copy all Instance tagsto snapshots. Default isfalse.
- custom_iam_ strinstance_ profile 
- The instance profile associated with the underlying Amazon EC2 instance of an RDS Custom DB instance.
- customer_owned_ boolip_ enabled 
- 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. - NOTE: Removing the - replicate_source_dbattribute from an existing RDS Replicate database managed by the provider will promote the database to a fully standalone database.
- db_name str
- 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.
- db_subnet_ strgroup_ name 
- 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 defaultSubnet Group. When working with read replicas created in the same region, defaults to the Subnet Group Name of the source DB. When working with read replicas created in a different region, defaults to thedefaultSubnet Group. See DBSubnetGroupName in API action CreateDBInstanceReadReplica for additional read replica constraints.
- dedicated_log_ boolvolume 
- Use a dedicated log volume (DLV) for the DB instance. Requires Provisioned IOPS. See the AWS documentation for more details.
- delete_automated_ boolbackups 
- Specifies whether to remove automated backups immediately after the DB instance is deleted. Default is true.
- deletion_protection bool
- If the DB instance should have deletion protection enabled. The database can't be deleted when this value is set to true. The default isfalse.
- domain str
- The ID of the Directory Service Active Directory domain to create the instance in. Conflicts with domain_fqdn,domain_ou,domain_auth_secret_arnand adomain_dns_ips.
- domain_auth_ strsecret_ arn 
- The ARN for the Secrets Manager secret with the self managed Active Directory credentials for the user joining the domain. Conflicts with domainanddomain_iam_role_name.
- domain_dns_ Sequence[str]ips 
- The IPv4 DNS IP addresses of your primary and secondary self managed Active Directory domain controllers. Two IP addresses must be provided. If there isn't a secondary domain controller, use the IP address of the primary domain controller for both entries in the list. Conflicts with domainanddomain_iam_role_name.
- domain_fqdn str
- The fully qualified domain name (FQDN) of the self managed Active Directory domain. Conflicts with domainanddomain_iam_role_name.
- domain_iam_ strrole_ name 
- The name of the IAM role to be used when making API calls to the Directory Service. Conflicts with domain_fqdn,domain_ou,domain_auth_secret_arnand adomain_dns_ips.
- domain_ou str
- The self managed Active Directory organizational unit for your DB instance to join. Conflicts with domainanddomain_iam_role_name.
- enabled_cloudwatch_ Sequence[str]logs_ exports 
- Set of log types to enable for exporting to CloudWatch logs. If omitted, no logs will be exported. For supported values, see the EnableCloudwatchLogsExports.member.N parameter in API action CreateDBInstance.
- endpoint str
- The connection endpoint in address:portformat.
- engine str
- 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.
- engine_lifecycle_ strsupport 
- The life cycle type for this DB instance. This setting applies only to RDS for MySQL and RDS for PostgreSQL. Valid values are open-source-rds-extended-support,open-source-rds-extended-support-disabled. Default value isopen-source-rds-extended-support. [Using Amazon RDS Extended Support]: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/extended-support.html
- engine_version str
- The engine version to use. If auto_minor_version_upgradeis enabled, you can provide a prefix of the version such as8.0(for8.0.36). The actual engine version used is returned in the attributeengine_version_actual, see Attribute 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'.
- engine_version_ stractual 
- The running version of the database.
- final_snapshot_ stridentifier 
- The name of your final DB snapshot
when this DB instance is deleted. Must be provided if skip_final_snapshotis set tofalse. 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.
- hosted_zone_ strid 
- Specifies the ID that Amazon Route 53 assigns when you create a hosted zone.
- iam_database_ boolauthentication_ enabled 
- Specifies whether mappings of AWS Identity and Access Management (IAM) accounts to database accounts is enabled.
- identifier str
- The name of the RDS instance, if omitted, this provider will assign a random, unique identifier. Required if restore_to_point_in_timeis specified.
- identifier_prefix str
- Creates a unique identifier beginning with the specified prefix. Conflicts with identifier.
- instance_class str | InstanceType 
- The instance type of the RDS instance.
- iops int
- The amount of provisioned IOPS. Setting this implies a
storage_type of "io1" or "io2". Can only be set when storage_typeis"io1","io2or"gp3". Cannot be specified for gp3 storage if theallocated_storagevalue is below a per-enginethreshold. See the RDS User Guide for details.
- kms_key_ strid 
- The ARN for the KMS encryption key. If creating an encrypted replica, set this to the destination KMS ARN.
- latest_restorable_ strtime 
- The latest time, in UTC RFC3339 format, to which a database can be restored with point-in-time restore.
- license_model str
- License model information for this DB instance. Valid values for this field are as follows:- RDS for MariaDB: general-public-license
- RDS for Microsoft SQL Server: license-included
- RDS for MySQL: general-public-license
- RDS for Oracle: bring-your-own-license | license-included
- RDS for PostgreSQL: postgresql-license
 
- RDS for MariaDB: 
- listener_endpoints Sequence[InstanceListener Endpoint Args] 
- Specifies the listener connection endpoint for SQL Server Always On. See endpoint below.
- maintenance_window str
- The window to perform maintenance in. Syntax: "ddd:hh24:mi-ddd:hh24:mi". Eg: "Mon:00:00-Mon:03:00". See RDS Maintenance Window docs for more information.
- manage_master_ booluser_ password 
- Set to true to allow RDS to manage the master user password in Secrets Manager. Cannot be set if passwordorpassword_wois provided.
- master_user_ strsecret_ kms_ key_ id 
- 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.
- master_user_ Sequence[Instancesecrets Master User Secret Args] 
- A block that specifies the master user secret. Only available when manage_master_user_passwordis set to true. Documented below.
- max_allocated_ intstorage 
- Specifies the maximum storage (in GiB) that Amazon RDS can automatically scale to for this DB instance. By default, Storage Autoscaling is disabled. To enable Storage Autoscaling, set max_allocated_storageto greater than or equal toallocated_storage. Settingmax_allocated_storageto 0 explicitly disables Storage Autoscaling. When configured, changes toallocated_storagewill be automatically ignored as the storage can dynamically scale.
- monitoring_interval int
- 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.
- monitoring_role_ strarn 
- 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 Documentation what IAM permissions are needed to allow Enhanced Monitoring for RDS Instances.
- multi_az bool
- Specifies if the RDS instance is multi-AZ
- name str
- nchar_character_ strset_ name 
- 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 Supported in Amazon RDS.
- network_type str
- The network type of the DB instance. Valid values: IPV4,DUAL.
- option_group_ strname 
- Name of the DB option group to associate.
- parameter_group_ strname 
- Name of the DB parameter group to associate.
- password str
- 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_passwordis set totrue.
- performance_insights_ boolenabled 
- Specifies whether Performance Insights are enabled. Defaults to false.
- performance_insights_ strkms_ key_ id 
- The ARN for the KMS key to encrypt Performance Insights data. When specifying performance_insights_kms_key_id,performance_insights_enabledneeds to be set to true. Once KMS key is set, it can never be changed.
- performance_insights_ intretention_ period 
- Amount of time in days to retain Performance Insights data. Valid values are 7,731(2 years) or a multiple of31. When specifyingperformance_insights_retention_period,performance_insights_enabledneeds to be set to true. Defaults to '7'.
- port int
- The port on which the DB accepts connections.
- publicly_accessible bool
- Bool to control if instance is publicly
accessible. Default is false.
- replica_mode str
- Specifies whether the replica is in either mountedoropen-read-onlymode. This attribute is only supported by Oracle instances. Oracle replicas operate inopen-read-onlymode unless otherwise specified. See Working with Oracle Read Replicas for more information.
- replicas Sequence[str]
- replicate_source_ strdb 
- Specifies that this resource is a Replica database, and to use this value as the source database.
If replicating an Amazon RDS Database Instance in the same region, use the identifierof the source DB, unless also specifying thedb_subnet_group_name. If specifying thedb_subnet_group_namein the same region, use thearnof the source DB. If replicating an Instance in a different region, use thearnof the source DB. Note that if you are creating a cross-region replica of an encrypted database you will also need to specify akms_key_id. See [DB Instance Replication][instance-replication] and Working with PostgreSQL and MySQL Read Replicas for more information on using Replication.
- resource_id str
- The RDS Resource ID of this instance.
- restore_to_ Instancepoint_ in_ time Restore To Point In Time Args 
- A configuration block for restoring a DB instance to an arbitrary point in time.
Requires the identifierargument to be set with the name of the new DB instance to be created. See Restore To Point In Time below for details.
- s3_import InstanceS3Import Args 
- Restore from a Percona Xtrabackup in S3. See Importing Data into an Amazon RDS MySQL DB Instance
- skip_final_ boolsnapshot 
- 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 isfalse.
- snapshot_identifier str
- Specifies whether or not to create this database from a snapshot. This corresponds to the snapshot ID you'd find in the RDS console, e.g: rds:production-2015-06-26-06-05.
- status str
- The RDS instance status.
- storage_encrypted bool
- 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_idwith a valid ARN. The default isfalseif not specified.
- storage_throughput int
- The storage throughput value for the DB instance. Can only be set when storage_typeis"gp3". Cannot be specified if theallocated_storagevalue is below a per-enginethreshold. See the RDS User Guide for details.
- storage_type str | StorageType 
- One of "standard" (magnetic), "gp2" (general
purpose SSD), "gp3" (general purpose SSD that needs iopsindependently) "io1" (provisioned IOPS SSD) or "io2" (block express storage provisioned IOPS SSD). The default is "io1" ifiopsis specified, "gp2" if not.
- Mapping[str, str]
- A map of tags to assign to the resource. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- Mapping[str, str]
- A map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
- timezone str
- Time zone of the DB instance. timezoneis currently only supported by Microsoft SQL Server. Thetimezonecan only be set on creation. See MSSQL User Guide for more information.
- upgrade_storage_ boolconfig 
- Whether to upgrade the storage file system configuration on the read replica.
Can only be set with replicate_source_db.
- username str
- (Required unless a snapshot_identifierorreplicate_source_dbis provided) Username for the master DB user. Cannot be specified for a replica.
- vpc_security_ Sequence[str]group_ ids 
- List of VPC security groups to associate.
- address String
- Specifies the DNS address of the DB instance.
- allocatedStorage Number
- The allocated storage in gibibytes. If max_allocated_storageis configured, this argument represents the initial storage allocation and differences from the configuration will be ignored automatically when Storage Autoscaling occurs. Ifreplicate_source_dbis set, the value is ignored during the creation of the instance.
- allowMajor BooleanVersion Upgrade 
- 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.
- applyImmediately Boolean
- Specifies whether any database modifications
are applied immediately, or during the next maintenance window. Default is
false. See Amazon RDS Documentation for more information.
- arn String
- The ARN of the RDS instance.
- autoMinor BooleanVersion Upgrade 
- Indicates that minor engine upgrades will be applied automatically to the DB instance during the maintenance window. Defaults to true.
- availabilityZone String
- The AZ for the RDS instance.
- backupRetention NumberPeriod 
- The days to retain backups for.
Must be between 0and35. Default is0. Must be greater than0if the database is used as a source for a [Read Replica][instance-replication], uses low-downtime updates, or will use [RDS Blue/Green deployments][blue-green].
- backupTarget String
- Specifies where automated backups and manual snapshots are stored. Possible values are region(default) andoutposts. See Working with Amazon RDS on AWS Outposts for more information.
- backupWindow String
- 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.
- blueGreen Property MapUpdate 
- Enables low-downtime updates using [RDS Blue/Green deployments][blue-green].
See blue_green_updatebelow.
- caCert StringIdentifier 
- The identifier of the CA certificate for the DB instance.
- characterSet StringName 
- 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 Supported in Amazon RDS or
Server-Level Collation for Microsoft SQL Server for more information.
Cannot be set with replicate_source_db,restore_to_point_in_time,s3_import, orsnapshot_identifier.
- Boolean
- Copy all Instance tagsto snapshots. Default isfalse.
- customIam StringInstance Profile 
- The instance profile associated with the underlying Amazon EC2 instance of an RDS Custom DB instance.
- customerOwned BooleanIp Enabled 
- 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. - NOTE: Removing the - replicate_source_dbattribute from an existing RDS Replicate database managed by the provider will promote the database to a fully standalone database.
- dbName String
- 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.
- dbSubnet StringGroup Name 
- 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 defaultSubnet Group. When working with read replicas created in the same region, defaults to the Subnet Group Name of the source DB. When working with read replicas created in a different region, defaults to thedefaultSubnet Group. See DBSubnetGroupName in API action CreateDBInstanceReadReplica for additional read replica constraints.
- dedicatedLog BooleanVolume 
- Use a dedicated log volume (DLV) for the DB instance. Requires Provisioned IOPS. See the AWS documentation for more details.
- deleteAutomated BooleanBackups 
- Specifies whether to remove automated backups immediately after the DB instance is deleted. Default is true.
- deletionProtection Boolean
- If the DB instance should have deletion protection enabled. The database can't be deleted when this value is set to true. The default isfalse.
- domain String
- The ID of the Directory Service Active Directory domain to create the instance in. Conflicts with domain_fqdn,domain_ou,domain_auth_secret_arnand adomain_dns_ips.
- domainAuth StringSecret Arn 
- The ARN for the Secrets Manager secret with the self managed Active Directory credentials for the user joining the domain. Conflicts with domainanddomain_iam_role_name.
- domainDns List<String>Ips 
- The IPv4 DNS IP addresses of your primary and secondary self managed Active Directory domain controllers. Two IP addresses must be provided. If there isn't a secondary domain controller, use the IP address of the primary domain controller for both entries in the list. Conflicts with domainanddomain_iam_role_name.
- domainFqdn String
- The fully qualified domain name (FQDN) of the self managed Active Directory domain. Conflicts with domainanddomain_iam_role_name.
- domainIam StringRole Name 
- The name of the IAM role to be used when making API calls to the Directory Service. Conflicts with domain_fqdn,domain_ou,domain_auth_secret_arnand adomain_dns_ips.
- domainOu String
- The self managed Active Directory organizational unit for your DB instance to join. Conflicts with domainanddomain_iam_role_name.
- enabledCloudwatch List<String>Logs Exports 
- Set of log types to enable for exporting to CloudWatch logs. If omitted, no logs will be exported. For supported values, see the EnableCloudwatchLogsExports.member.N parameter in API action CreateDBInstance.
- endpoint String
- The connection endpoint in address:portformat.
- engine String
- 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.
- engineLifecycle StringSupport 
- The life cycle type for this DB instance. This setting applies only to RDS for MySQL and RDS for PostgreSQL. Valid values are open-source-rds-extended-support,open-source-rds-extended-support-disabled. Default value isopen-source-rds-extended-support. [Using Amazon RDS Extended Support]: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/extended-support.html
- engineVersion String
- The engine version to use. If auto_minor_version_upgradeis enabled, you can provide a prefix of the version such as8.0(for8.0.36). The actual engine version used is returned in the attributeengine_version_actual, see Attribute 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'.
- engineVersion StringActual 
- The running version of the database.
- finalSnapshot StringIdentifier 
- The name of your final DB snapshot
when this DB instance is deleted. Must be provided if skip_final_snapshotis set tofalse. 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.
- hostedZone StringId 
- Specifies the ID that Amazon Route 53 assigns when you create a hosted zone.
- iamDatabase BooleanAuthentication Enabled 
- Specifies whether mappings of AWS Identity and Access Management (IAM) accounts to database accounts is enabled.
- identifier String
- The name of the RDS instance, if omitted, this provider will assign a random, unique identifier. Required if restore_to_point_in_timeis specified.
- identifierPrefix String
- Creates a unique identifier beginning with the specified prefix. Conflicts with identifier.
- instanceClass String | "db.t4g.micro" | "db.t4g.small" | "db.t4g.medium" | "db.t4g.large" | "db.t4g.xlarge" | "db.t4g.2xlarge" | "db.t3.micro" | "db.t3.small" | "db.t3.medium" | "db.t3.large" | "db.t3.xlarge" | "db.t3.2xlarge" | "db.t2.micro" | "db.t2.small" | "db.t2.medium" | "db.t2.large" | "db.t2.xlarge" | "db.t2.2xlarge" | "db.m1.small" | "db.m1.medium" | "db.m1.large" | "db.m1.xlarge" | "db.m2.xlarge" | "db.m2.2xlarge" | "db.m2.4xlarge" | "db.m3.medium" | "db.m3.large" | "db.m3.xlarge" | "db.m3.2xlarge" | "db.m4.large" | "db.m4.xlarge" | "db.m4.2xlarge" | "db.m4.4xlarge" | "db.m4.10xlarge" | "db.m4.10xlarge" | "db.m5.large" | "db.m5.xlarge" | "db.m5.2xlarge" | "db.m5.4xlarge" | "db.m5.12xlarge" | "db.m5.24xlarge" | "db.m6g.large" | "db.m6g.xlarge" | "db.m6g.2xlarge" | "db.m6g.4xlarge" | "db.m6g.8xlarge" | "db.m6g.12xlarge" | "db.m6g.16xlarge" | "db.r3.large" | "db.r3.xlarge" | "db.r3.2xlarge" | "db.r3.4xlarge" | "db.r3.8xlarge" | "db.r4.large" | "db.r4.xlarge" | "db.r4.2xlarge" | "db.r4.4xlarge" | "db.r4.8xlarge" | "db.r4.16xlarge" | "db.r5.large" | "db.r5.xlarge" | "db.r5.2xlarge" | "db.r5.4xlarge" | "db.r5.12xlarge" | "db.r5.24xlarge" | "db.r6g.large" | "db.r6g.xlarge" | "db.r6g.2xlarge" | "db.r6g.4xlarge" | "db.r6g.8xlarge" | "db.r6g.12xlarge" | "db.r6g.16xlarge" | "db.x1.16xlarge" | "db.x1.32xlarge" | "db.x1e.xlarge" | "db.x1e.2xlarge" | "db.x1e.4xlarge" | "db.x1e.8xlarge" | "db.x1e.32xlarge"
- The instance type of the RDS instance.
- iops Number
- The amount of provisioned IOPS. Setting this implies a
storage_type of "io1" or "io2". Can only be set when storage_typeis"io1","io2or"gp3". Cannot be specified for gp3 storage if theallocated_storagevalue is below a per-enginethreshold. See the RDS User Guide for details.
- kmsKey StringId 
- The ARN for the KMS encryption key. If creating an encrypted replica, set this to the destination KMS ARN.
- latestRestorable StringTime 
- The latest time, in UTC RFC3339 format, to which a database can be restored with point-in-time restore.
- licenseModel String
- License model information for this DB instance. Valid values for this field are as follows:- RDS for MariaDB: general-public-license
- RDS for Microsoft SQL Server: license-included
- RDS for MySQL: general-public-license
- RDS for Oracle: bring-your-own-license | license-included
- RDS for PostgreSQL: postgresql-license
 
- RDS for MariaDB: 
- listenerEndpoints List<Property Map>
- Specifies the listener connection endpoint for SQL Server Always On. See endpoint below.
- maintenanceWindow String
- The window to perform maintenance in. Syntax: "ddd:hh24:mi-ddd:hh24:mi". Eg: "Mon:00:00-Mon:03:00". See RDS Maintenance Window docs for more information.
- manageMaster BooleanUser Password 
- Set to true to allow RDS to manage the master user password in Secrets Manager. Cannot be set if passwordorpassword_wois provided.
- masterUser StringSecret Kms Key Id 
- 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.
- masterUser List<Property Map>Secrets 
- A block that specifies the master user secret. Only available when manage_master_user_passwordis set to true. Documented below.
- maxAllocated NumberStorage 
- Specifies the maximum storage (in GiB) that Amazon RDS can automatically scale to for this DB instance. By default, Storage Autoscaling is disabled. To enable Storage Autoscaling, set max_allocated_storageto greater than or equal toallocated_storage. Settingmax_allocated_storageto 0 explicitly disables Storage Autoscaling. When configured, changes toallocated_storagewill be automatically ignored as the storage can dynamically scale.
- monitoringInterval Number
- 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.
- monitoringRole StringArn 
- 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 Documentation what IAM permissions are needed to allow Enhanced Monitoring for RDS Instances.
- multiAz Boolean
- Specifies if the RDS instance is multi-AZ
- name String
- ncharCharacter StringSet Name 
- 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 Supported in Amazon RDS.
- networkType String
- The network type of the DB instance. Valid values: IPV4,DUAL.
- optionGroup StringName 
- Name of the DB option group to associate.
- parameterGroup StringName 
- Name of the DB parameter group to associate.
- password String
- 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_passwordis set totrue.
- performanceInsights BooleanEnabled 
- Specifies whether Performance Insights are enabled. Defaults to false.
- performanceInsights StringKms Key Id 
- The ARN for the KMS key to encrypt Performance Insights data. When specifying performance_insights_kms_key_id,performance_insights_enabledneeds to be set to true. Once KMS key is set, it can never be changed.
- performanceInsights NumberRetention Period 
- Amount of time in days to retain Performance Insights data. Valid values are 7,731(2 years) or a multiple of31. When specifyingperformance_insights_retention_period,performance_insights_enabledneeds to be set to true. Defaults to '7'.
- port Number
- The port on which the DB accepts connections.
- publiclyAccessible Boolean
- Bool to control if instance is publicly
accessible. Default is false.
- replicaMode String
- Specifies whether the replica is in either mountedoropen-read-onlymode. This attribute is only supported by Oracle instances. Oracle replicas operate inopen-read-onlymode unless otherwise specified. See Working with Oracle Read Replicas for more information.
- replicas List<String>
- replicateSource StringDb 
- Specifies that this resource is a Replica database, and to use this value as the source database.
If replicating an Amazon RDS Database Instance in the same region, use the identifierof the source DB, unless also specifying thedb_subnet_group_name. If specifying thedb_subnet_group_namein the same region, use thearnof the source DB. If replicating an Instance in a different region, use thearnof the source DB. Note that if you are creating a cross-region replica of an encrypted database you will also need to specify akms_key_id. See [DB Instance Replication][instance-replication] and Working with PostgreSQL and MySQL Read Replicas for more information on using Replication.
- resourceId String
- The RDS Resource ID of this instance.
- restoreTo Property MapPoint In Time 
- A configuration block for restoring a DB instance to an arbitrary point in time.
Requires the identifierargument to be set with the name of the new DB instance to be created. See Restore To Point In Time below for details.
- s3Import Property Map
- Restore from a Percona Xtrabackup in S3. See Importing Data into an Amazon RDS MySQL DB Instance
- skipFinal BooleanSnapshot 
- 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 isfalse.
- snapshotIdentifier String
- Specifies whether or not to create this database from a snapshot. This corresponds to the snapshot ID you'd find in the RDS console, e.g: rds:production-2015-06-26-06-05.
- status String
- The RDS instance status.
- storageEncrypted Boolean
- 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_idwith a valid ARN. The default isfalseif not specified.
- storageThroughput Number
- The storage throughput value for the DB instance. Can only be set when storage_typeis"gp3". Cannot be specified if theallocated_storagevalue is below a per-enginethreshold. See the RDS User Guide for details.
- storageType String | "standard" | "gp2" | "gp3" | "io1"
- One of "standard" (magnetic), "gp2" (general
purpose SSD), "gp3" (general purpose SSD that needs iopsindependently) "io1" (provisioned IOPS SSD) or "io2" (block express storage provisioned IOPS SSD). The default is "io1" ifiopsis specified, "gp2" if not.
- Map<String>
- A map of tags to assign to the resource. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- Map<String>
- A map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
- timezone String
- Time zone of the DB instance. timezoneis currently only supported by Microsoft SQL Server. Thetimezonecan only be set on creation. See MSSQL User Guide for more information.
- upgradeStorage BooleanConfig 
- Whether to upgrade the storage file system configuration on the read replica.
Can only be set with replicate_source_db.
- username String
- (Required unless a snapshot_identifierorreplicate_source_dbis provided) Username for the master DB user. Cannot be specified for a replica.
- vpcSecurity List<String>Group Ids 
- List of VPC security groups to associate.
Supporting Types
InstanceBlueGreenUpdate, InstanceBlueGreenUpdateArgs        
- Enabled bool
- Enables low-downtime updates when true. Default isfalse.
- Enabled bool
- Enables low-downtime updates when true. Default isfalse.
- enabled Boolean
- Enables low-downtime updates when true. Default isfalse.
- enabled boolean
- Enables low-downtime updates when true. Default isfalse.
- enabled bool
- Enables low-downtime updates when true. Default isfalse.
- enabled Boolean
- Enables low-downtime updates when true. Default isfalse.
InstanceListenerEndpoint, InstanceListenerEndpointArgs      
- Address string
- Specifies the DNS address of the DB instance.
- HostedZone stringId 
- Specifies the ID that Amazon Route 53 assigns when you create a hosted zone.
- Port int
- The port on which the DB accepts connections.
- Address string
- Specifies the DNS address of the DB instance.
- HostedZone stringId 
- Specifies the ID that Amazon Route 53 assigns when you create a hosted zone.
- Port int
- The port on which the DB accepts connections.
- address String
- Specifies the DNS address of the DB instance.
- hostedZone StringId 
- Specifies the ID that Amazon Route 53 assigns when you create a hosted zone.
- port Integer
- The port on which the DB accepts connections.
- address string
- Specifies the DNS address of the DB instance.
- hostedZone stringId 
- Specifies the ID that Amazon Route 53 assigns when you create a hosted zone.
- port number
- The port on which the DB accepts connections.
- address str
- Specifies the DNS address of the DB instance.
- hosted_zone_ strid 
- Specifies the ID that Amazon Route 53 assigns when you create a hosted zone.
- port int
- The port on which the DB accepts connections.
- address String
- Specifies the DNS address of the DB instance.
- hostedZone StringId 
- Specifies the ID that Amazon Route 53 assigns when you create a hosted zone.
- port Number
- The port on which the DB accepts connections.
InstanceMasterUserSecret, InstanceMasterUserSecretArgs        
- KmsKey stringId 
- The ARN for the KMS encryption key. If creating an encrypted replica, set this to the destination KMS ARN.
- SecretArn string
- The Amazon Resource Name (ARN) of the secret.
- SecretStatus string
- The status of the secret. Valid Values: creating|active|rotating|impaired.
- KmsKey stringId 
- The ARN for the KMS encryption key. If creating an encrypted replica, set this to the destination KMS ARN.
- SecretArn string
- The Amazon Resource Name (ARN) of the secret.
- SecretStatus string
- The status of the secret. Valid Values: creating|active|rotating|impaired.
- kmsKey StringId 
- The ARN for the KMS encryption key. If creating an encrypted replica, set this to the destination KMS ARN.
- secretArn String
- The Amazon Resource Name (ARN) of the secret.
- secretStatus String
- The status of the secret. Valid Values: creating|active|rotating|impaired.
- kmsKey stringId 
- The ARN for the KMS encryption key. If creating an encrypted replica, set this to the destination KMS ARN.
- secretArn string
- The Amazon Resource Name (ARN) of the secret.
- secretStatus string
- The status of the secret. Valid Values: creating|active|rotating|impaired.
- kms_key_ strid 
- The ARN for the KMS encryption key. If creating an encrypted replica, set this to the destination KMS ARN.
- secret_arn str
- The Amazon Resource Name (ARN) of the secret.
- secret_status str
- The status of the secret. Valid Values: creating|active|rotating|impaired.
- kmsKey StringId 
- The ARN for the KMS encryption key. If creating an encrypted replica, set this to the destination KMS ARN.
- secretArn String
- The Amazon Resource Name (ARN) of the secret.
- secretStatus String
- The status of the secret. Valid Values: creating|active|rotating|impaired.
InstanceRestoreToPointInTime, InstanceRestoreToPointInTimeArgs            
- RestoreTime string
- The date and time to restore from. Value must be a time in Universal Coordinated Time (UTC) format and must be before the latest restorable time for the DB instance. Cannot be specified with use_latest_restorable_time.
- SourceDb stringInstance Automated Backups Arn 
- The ARN of the automated backup from which to restore. Required if source_db_instance_identifierorsource_dbi_resource_idis not specified.
- SourceDb stringInstance Identifier 
- The identifier of the source DB instance from which to restore. Must match the identifier of an existing DB instance. Required if source_db_instance_automated_backups_arnorsource_dbi_resource_idis not specified.
- SourceDbi stringResource Id 
- The resource ID of the source DB instance from which to restore. Required if source_db_instance_identifierorsource_db_instance_automated_backups_arnis not specified.
- UseLatest boolRestorable Time 
- A boolean value that indicates whether the DB instance is restored from the latest backup time. Defaults to false. Cannot be specified withrestore_time.
- RestoreTime string
- The date and time to restore from. Value must be a time in Universal Coordinated Time (UTC) format and must be before the latest restorable time for the DB instance. Cannot be specified with use_latest_restorable_time.
- SourceDb stringInstance Automated Backups Arn 
- The ARN of the automated backup from which to restore. Required if source_db_instance_identifierorsource_dbi_resource_idis not specified.
- SourceDb stringInstance Identifier 
- The identifier of the source DB instance from which to restore. Must match the identifier of an existing DB instance. Required if source_db_instance_automated_backups_arnorsource_dbi_resource_idis not specified.
- SourceDbi stringResource Id 
- The resource ID of the source DB instance from which to restore. Required if source_db_instance_identifierorsource_db_instance_automated_backups_arnis not specified.
- UseLatest boolRestorable Time 
- A boolean value that indicates whether the DB instance is restored from the latest backup time. Defaults to false. Cannot be specified withrestore_time.
- restoreTime String
- The date and time to restore from. Value must be a time in Universal Coordinated Time (UTC) format and must be before the latest restorable time for the DB instance. Cannot be specified with use_latest_restorable_time.
- sourceDb StringInstance Automated Backups Arn 
- The ARN of the automated backup from which to restore. Required if source_db_instance_identifierorsource_dbi_resource_idis not specified.
- sourceDb StringInstance Identifier 
- The identifier of the source DB instance from which to restore. Must match the identifier of an existing DB instance. Required if source_db_instance_automated_backups_arnorsource_dbi_resource_idis not specified.
- sourceDbi StringResource Id 
- The resource ID of the source DB instance from which to restore. Required if source_db_instance_identifierorsource_db_instance_automated_backups_arnis not specified.
- useLatest BooleanRestorable Time 
- A boolean value that indicates whether the DB instance is restored from the latest backup time. Defaults to false. Cannot be specified withrestore_time.
- restoreTime string
- The date and time to restore from. Value must be a time in Universal Coordinated Time (UTC) format and must be before the latest restorable time for the DB instance. Cannot be specified with use_latest_restorable_time.
- sourceDb stringInstance Automated Backups Arn 
- The ARN of the automated backup from which to restore. Required if source_db_instance_identifierorsource_dbi_resource_idis not specified.
- sourceDb stringInstance Identifier 
- The identifier of the source DB instance from which to restore. Must match the identifier of an existing DB instance. Required if source_db_instance_automated_backups_arnorsource_dbi_resource_idis not specified.
- sourceDbi stringResource Id 
- The resource ID of the source DB instance from which to restore. Required if source_db_instance_identifierorsource_db_instance_automated_backups_arnis not specified.
- useLatest booleanRestorable Time 
- A boolean value that indicates whether the DB instance is restored from the latest backup time. Defaults to false. Cannot be specified withrestore_time.
- restore_time str
- The date and time to restore from. Value must be a time in Universal Coordinated Time (UTC) format and must be before the latest restorable time for the DB instance. Cannot be specified with use_latest_restorable_time.
- source_db_ strinstance_ automated_ backups_ arn 
- The ARN of the automated backup from which to restore. Required if source_db_instance_identifierorsource_dbi_resource_idis not specified.
- source_db_ strinstance_ identifier 
- The identifier of the source DB instance from which to restore. Must match the identifier of an existing DB instance. Required if source_db_instance_automated_backups_arnorsource_dbi_resource_idis not specified.
- source_dbi_ strresource_ id 
- The resource ID of the source DB instance from which to restore. Required if source_db_instance_identifierorsource_db_instance_automated_backups_arnis not specified.
- use_latest_ boolrestorable_ time 
- A boolean value that indicates whether the DB instance is restored from the latest backup time. Defaults to false. Cannot be specified withrestore_time.
- restoreTime String
- The date and time to restore from. Value must be a time in Universal Coordinated Time (UTC) format and must be before the latest restorable time for the DB instance. Cannot be specified with use_latest_restorable_time.
- sourceDb StringInstance Automated Backups Arn 
- The ARN of the automated backup from which to restore. Required if source_db_instance_identifierorsource_dbi_resource_idis not specified.
- sourceDb StringInstance Identifier 
- The identifier of the source DB instance from which to restore. Must match the identifier of an existing DB instance. Required if source_db_instance_automated_backups_arnorsource_dbi_resource_idis not specified.
- sourceDbi StringResource Id 
- The resource ID of the source DB instance from which to restore. Required if source_db_instance_identifierorsource_db_instance_automated_backups_arnis not specified.
- useLatest BooleanRestorable Time 
- A boolean value that indicates whether the DB instance is restored from the latest backup time. Defaults to false. Cannot be specified withrestore_time.
InstanceS3Import, InstanceS3ImportArgs    
- BucketName string
- The bucket name where your backup is stored
- IngestionRole string
- Role applied to load the data.
- SourceEngine string
- Source engine for the backup
- SourceEngine stringVersion 
- Version of the source engine used to make the backup - This will not recreate the resource if the S3 object changes in some way. It's only used to initialize the database. 
- BucketPrefix string
- Can be blank, but is the path to your backup
- BucketName string
- The bucket name where your backup is stored
- IngestionRole string
- Role applied to load the data.
- SourceEngine string
- Source engine for the backup
- SourceEngine stringVersion 
- Version of the source engine used to make the backup - This will not recreate the resource if the S3 object changes in some way. It's only used to initialize the database. 
- BucketPrefix string
- Can be blank, but is the path to your backup
- bucketName String
- The bucket name where your backup is stored
- ingestionRole String
- Role applied to load the data.
- sourceEngine String
- Source engine for the backup
- sourceEngine StringVersion 
- Version of the source engine used to make the backup - This will not recreate the resource if the S3 object changes in some way. It's only used to initialize the database. 
- bucketPrefix String
- Can be blank, but is the path to your backup
- bucketName string
- The bucket name where your backup is stored
- ingestionRole string
- Role applied to load the data.
- sourceEngine string
- Source engine for the backup
- sourceEngine stringVersion 
- Version of the source engine used to make the backup - This will not recreate the resource if the S3 object changes in some way. It's only used to initialize the database. 
- bucketPrefix string
- Can be blank, but is the path to your backup
- bucket_name str
- The bucket name where your backup is stored
- ingestion_role str
- Role applied to load the data.
- source_engine str
- Source engine for the backup
- source_engine_ strversion 
- Version of the source engine used to make the backup - This will not recreate the resource if the S3 object changes in some way. It's only used to initialize the database. 
- bucket_prefix str
- Can be blank, but is the path to your backup
- bucketName String
- The bucket name where your backup is stored
- ingestionRole String
- Role applied to load the data.
- sourceEngine String
- Source engine for the backup
- sourceEngine StringVersion 
- Version of the source engine used to make the backup - This will not recreate the resource if the S3 object changes in some way. It's only used to initialize the database. 
- bucketPrefix String
- Can be blank, but is the path to your backup
InstanceType, InstanceTypeArgs    
- T4G_Micro
- db.t4g.micro
- T4G_Small
- db.t4g.small
- T4G_Medium
- db.t4g.medium
- T4G_Large
- db.t4g.large
- T4G_XLarge
- db.t4g.xlarge
- T4G_2XLarge
- db.t4g.2xlarge
- T3_Micro
- db.t3.micro
- T3_Small
- db.t3.small
- T3_Medium
- db.t3.medium
- T3_Large
- db.t3.large
- T3_XLarge
- db.t3.xlarge
- T3_2XLarge
- db.t3.2xlarge
- T2_Micro
- db.t2.micro
- T2_Small
- db.t2.small
- T2_Medium
- db.t2.medium
- T2_Large
- db.t2.large
- T2_XLarge
- db.t2.xlarge
- T2_2XLarge
- db.t2.2xlarge
- M1_Small
- db.m1.small
- M1_Medium
- db.m1.medium
- M1_Large
- db.m1.large
- M1_XLarge
- db.m1.xlarge
- M2_XLarge
- db.m2.xlarge
- M2_2XLarge
- db.m2.2xlarge
- M2_4XLarge
- db.m2.4xlarge
- M3_Medium
- db.m3.medium
- M3_Large
- db.m3.large
- M3_XLarge
- db.m3.xlarge
- M3_2XLarge
- db.m3.2xlarge
- M4_Large
- db.m4.large
- M4_XLarge
- db.m4.xlarge
- M4_2XLarge
- db.m4.2xlarge
- M4_4XLarge
- db.m4.4xlarge
- M4_10XLarge
- db.m4.10xlarge
- M4_16XLarge
- db.m4.10xlarge
- M5_Large
- db.m5.large
- M5_XLarge
- db.m5.xlarge
- M5_2XLarge
- db.m5.2xlarge
- M5_4XLarge
- db.m5.4xlarge
- M5_12XLarge
- db.m5.12xlarge
- M5_24XLarge
- db.m5.24xlarge
- M6G_Large
- db.m6g.large
- M6G_XLarge
- db.m6g.xlarge
- M6G_2XLarge
- db.m6g.2xlarge
- M6G_4XLarge
- db.m6g.4xlarge
- M6G_8XLarge
- db.m6g.8xlarge
- M6G_12XLarge
- db.m6g.12xlarge
- M6G_16XLarge
- db.m6g.16xlarge
- R3_Large
- db.r3.large
- R3_XLarge
- db.r3.xlarge
- R3_2XLarge
- db.r3.2xlarge
- R3_4XLarge
- db.r3.4xlarge
- R3_8XLarge
- db.r3.8xlarge
- R4_Large
- db.r4.large
- R4_XLarge
- db.r4.xlarge
- R4_2XLarge
- db.r4.2xlarge
- R4_4XLarge
- db.r4.4xlarge
- R4_8XLarge
- db.r4.8xlarge
- R4_16XLarge
- db.r4.16xlarge
- R5_Large
- db.r5.large
- R5_XLarge
- db.r5.xlarge
- R5_2XLarge
- db.r5.2xlarge
- R5_4XLarge
- db.r5.4xlarge
- R5_12XLarge
- db.r5.12xlarge
- R5_24XLarge
- db.r5.24xlarge
- R6G_Large
- db.r6g.large
- R6G_XLarge
- db.r6g.xlarge
- R6G_2XLarge
- db.r6g.2xlarge
- R6G_4XLarge
- db.r6g.4xlarge
- R6G_8XLarge
- db.r6g.8xlarge
- R6G_12XLarge
- db.r6g.12xlarge
- R6G_16XLarge
- db.r6g.16xlarge
- X1_16XLarge
- db.x1.16xlarge
- X1_32XLarge
- db.x1.32xlarge
- X1E_XLarge
- db.x1e.xlarge
- X1E_2XLarge
- db.x1e.2xlarge
- X1E_4XLarge
- db.x1e.4xlarge
- X1E_8XLarge
- db.x1e.8xlarge
- X1E_32XLarge
- db.x1e.32xlarge
- InstanceType_T4G_Micro 
- db.t4g.micro
- InstanceType_T4G_Small 
- db.t4g.small
- InstanceType_T4G_Medium 
- db.t4g.medium
- InstanceType_T4G_Large 
- db.t4g.large
- InstanceType_T4G_XLarge 
- db.t4g.xlarge
- InstanceType_T4G_2XLarge 
- db.t4g.2xlarge
- InstanceType_T3_Micro 
- db.t3.micro
- InstanceType_T3_Small 
- db.t3.small
- InstanceType_T3_Medium 
- db.t3.medium
- InstanceType_T3_Large 
- db.t3.large
- InstanceType_T3_XLarge 
- db.t3.xlarge
- InstanceType_T3_2XLarge 
- db.t3.2xlarge
- InstanceType_T2_Micro 
- db.t2.micro
- InstanceType_T2_Small 
- db.t2.small
- InstanceType_T2_Medium 
- db.t2.medium
- InstanceType_T2_Large 
- db.t2.large
- InstanceType_T2_XLarge 
- db.t2.xlarge
- InstanceType_T2_2XLarge 
- db.t2.2xlarge
- InstanceType_M1_Small 
- db.m1.small
- InstanceType_M1_Medium 
- db.m1.medium
- InstanceType_M1_Large 
- db.m1.large
- InstanceType_M1_XLarge 
- db.m1.xlarge
- InstanceType_M2_XLarge 
- db.m2.xlarge
- InstanceType_M2_2XLarge 
- db.m2.2xlarge
- InstanceType_M2_4XLarge 
- db.m2.4xlarge
- InstanceType_M3_Medium 
- db.m3.medium
- InstanceType_M3_Large 
- db.m3.large
- InstanceType_M3_XLarge 
- db.m3.xlarge
- InstanceType_M3_2XLarge 
- db.m3.2xlarge
- InstanceType_M4_Large 
- db.m4.large
- InstanceType_M4_XLarge 
- db.m4.xlarge
- InstanceType_M4_2XLarge 
- db.m4.2xlarge
- InstanceType_M4_4XLarge 
- db.m4.4xlarge
- InstanceType_M4_10XLarge 
- db.m4.10xlarge
- InstanceType_M4_16XLarge 
- db.m4.10xlarge
- InstanceType_M5_Large 
- db.m5.large
- InstanceType_M5_XLarge 
- db.m5.xlarge
- InstanceType_M5_2XLarge 
- db.m5.2xlarge
- InstanceType_M5_4XLarge 
- db.m5.4xlarge
- InstanceType_M5_12XLarge 
- db.m5.12xlarge
- InstanceType_M5_24XLarge 
- db.m5.24xlarge
- InstanceType_M6G_Large 
- db.m6g.large
- InstanceType_M6G_XLarge 
- db.m6g.xlarge
- InstanceType_M6G_2XLarge 
- db.m6g.2xlarge
- InstanceType_M6G_4XLarge 
- db.m6g.4xlarge
- InstanceType_M6G_8XLarge 
- db.m6g.8xlarge
- InstanceType_M6G_12XLarge 
- db.m6g.12xlarge
- InstanceType_M6G_16XLarge 
- db.m6g.16xlarge
- InstanceType_R3_Large 
- db.r3.large
- InstanceType_R3_XLarge 
- db.r3.xlarge
- InstanceType_R3_2XLarge 
- db.r3.2xlarge
- InstanceType_R3_4XLarge 
- db.r3.4xlarge
- InstanceType_R3_8XLarge 
- db.r3.8xlarge
- InstanceType_R4_Large 
- db.r4.large
- InstanceType_R4_XLarge 
- db.r4.xlarge
- InstanceType_R4_2XLarge 
- db.r4.2xlarge
- InstanceType_R4_4XLarge 
- db.r4.4xlarge
- InstanceType_R4_8XLarge 
- db.r4.8xlarge
- InstanceType_R4_16XLarge 
- db.r4.16xlarge
- InstanceType_R5_Large 
- db.r5.large
- InstanceType_R5_XLarge 
- db.r5.xlarge
- InstanceType_R5_2XLarge 
- db.r5.2xlarge
- InstanceType_R5_4XLarge 
- db.r5.4xlarge
- InstanceType_R5_12XLarge 
- db.r5.12xlarge
- InstanceType_R5_24XLarge 
- db.r5.24xlarge
- InstanceType_R6G_Large 
- db.r6g.large
- InstanceType_R6G_XLarge 
- db.r6g.xlarge
- InstanceType_R6G_2XLarge 
- db.r6g.2xlarge
- InstanceType_R6G_4XLarge 
- db.r6g.4xlarge
- InstanceType_R6G_8XLarge 
- db.r6g.8xlarge
- InstanceType_R6G_12XLarge 
- db.r6g.12xlarge
- InstanceType_R6G_16XLarge 
- db.r6g.16xlarge
- InstanceType_X1_16XLarge 
- db.x1.16xlarge
- InstanceType_X1_32XLarge 
- db.x1.32xlarge
- InstanceType_X1E_XLarge 
- db.x1e.xlarge
- InstanceType_X1E_2XLarge 
- db.x1e.2xlarge
- InstanceType_X1E_4XLarge 
- db.x1e.4xlarge
- InstanceType_X1E_8XLarge 
- db.x1e.8xlarge
- InstanceType_X1E_32XLarge 
- db.x1e.32xlarge
- T4G_Micro
- db.t4g.micro
- T4G_Small
- db.t4g.small
- T4G_Medium
- db.t4g.medium
- T4G_Large
- db.t4g.large
- T4G_XLarge
- db.t4g.xlarge
- T4G_2XLarge
- db.t4g.2xlarge
- T3_Micro
- db.t3.micro
- T3_Small
- db.t3.small
- T3_Medium
- db.t3.medium
- T3_Large
- db.t3.large
- T3_XLarge
- db.t3.xlarge
- T3_2XLarge
- db.t3.2xlarge
- T2_Micro
- db.t2.micro
- T2_Small
- db.t2.small
- T2_Medium
- db.t2.medium
- T2_Large
- db.t2.large
- T2_XLarge
- db.t2.xlarge
- T2_2XLarge
- db.t2.2xlarge
- M1_Small
- db.m1.small
- M1_Medium
- db.m1.medium
- M1_Large
- db.m1.large
- M1_XLarge
- db.m1.xlarge
- M2_XLarge
- db.m2.xlarge
- M2_2XLarge
- db.m2.2xlarge
- M2_4XLarge
- db.m2.4xlarge
- M3_Medium
- db.m3.medium
- M3_Large
- db.m3.large
- M3_XLarge
- db.m3.xlarge
- M3_2XLarge
- db.m3.2xlarge
- M4_Large
- db.m4.large
- M4_XLarge
- db.m4.xlarge
- M4_2XLarge
- db.m4.2xlarge
- M4_4XLarge
- db.m4.4xlarge
- M4_10XLarge
- db.m4.10xlarge
- M4_16XLarge
- db.m4.10xlarge
- M5_Large
- db.m5.large
- M5_XLarge
- db.m5.xlarge
- M5_2XLarge
- db.m5.2xlarge
- M5_4XLarge
- db.m5.4xlarge
- M5_12XLarge
- db.m5.12xlarge
- M5_24XLarge
- db.m5.24xlarge
- M6G_Large
- db.m6g.large
- M6G_XLarge
- db.m6g.xlarge
- M6G_2XLarge
- db.m6g.2xlarge
- M6G_4XLarge
- db.m6g.4xlarge
- M6G_8XLarge
- db.m6g.8xlarge
- M6G_12XLarge
- db.m6g.12xlarge
- M6G_16XLarge
- db.m6g.16xlarge
- R3_Large
- db.r3.large
- R3_XLarge
- db.r3.xlarge
- R3_2XLarge
- db.r3.2xlarge
- R3_4XLarge
- db.r3.4xlarge
- R3_8XLarge
- db.r3.8xlarge
- R4_Large
- db.r4.large
- R4_XLarge
- db.r4.xlarge
- R4_2XLarge
- db.r4.2xlarge
- R4_4XLarge
- db.r4.4xlarge
- R4_8XLarge
- db.r4.8xlarge
- R4_16XLarge
- db.r4.16xlarge
- R5_Large
- db.r5.large
- R5_XLarge
- db.r5.xlarge
- R5_2XLarge
- db.r5.2xlarge
- R5_4XLarge
- db.r5.4xlarge
- R5_12XLarge
- db.r5.12xlarge
- R5_24XLarge
- db.r5.24xlarge
- R6G_Large
- db.r6g.large
- R6G_XLarge
- db.r6g.xlarge
- R6G_2XLarge
- db.r6g.2xlarge
- R6G_4XLarge
- db.r6g.4xlarge
- R6G_8XLarge
- db.r6g.8xlarge
- R6G_12XLarge
- db.r6g.12xlarge
- R6G_16XLarge
- db.r6g.16xlarge
- X1_16XLarge
- db.x1.16xlarge
- X1_32XLarge
- db.x1.32xlarge
- X1E_XLarge
- db.x1e.xlarge
- X1E_2XLarge
- db.x1e.2xlarge
- X1E_4XLarge
- db.x1e.4xlarge
- X1E_8XLarge
- db.x1e.8xlarge
- X1E_32XLarge
- db.x1e.32xlarge
- T4G_Micro
- db.t4g.micro
- T4G_Small
- db.t4g.small
- T4G_Medium
- db.t4g.medium
- T4G_Large
- db.t4g.large
- T4G_XLarge
- db.t4g.xlarge
- T4G_2XLarge
- db.t4g.2xlarge
- T3_Micro
- db.t3.micro
- T3_Small
- db.t3.small
- T3_Medium
- db.t3.medium
- T3_Large
- db.t3.large
- T3_XLarge
- db.t3.xlarge
- T3_2XLarge
- db.t3.2xlarge
- T2_Micro
- db.t2.micro
- T2_Small
- db.t2.small
- T2_Medium
- db.t2.medium
- T2_Large
- db.t2.large
- T2_XLarge
- db.t2.xlarge
- T2_2XLarge
- db.t2.2xlarge
- M1_Small
- db.m1.small
- M1_Medium
- db.m1.medium
- M1_Large
- db.m1.large
- M1_XLarge
- db.m1.xlarge
- M2_XLarge
- db.m2.xlarge
- M2_2XLarge
- db.m2.2xlarge
- M2_4XLarge
- db.m2.4xlarge
- M3_Medium
- db.m3.medium
- M3_Large
- db.m3.large
- M3_XLarge
- db.m3.xlarge
- M3_2XLarge
- db.m3.2xlarge
- M4_Large
- db.m4.large
- M4_XLarge
- db.m4.xlarge
- M4_2XLarge
- db.m4.2xlarge
- M4_4XLarge
- db.m4.4xlarge
- M4_10XLarge
- db.m4.10xlarge
- M4_16XLarge
- db.m4.10xlarge
- M5_Large
- db.m5.large
- M5_XLarge
- db.m5.xlarge
- M5_2XLarge
- db.m5.2xlarge
- M5_4XLarge
- db.m5.4xlarge
- M5_12XLarge
- db.m5.12xlarge
- M5_24XLarge
- db.m5.24xlarge
- M6G_Large
- db.m6g.large
- M6G_XLarge
- db.m6g.xlarge
- M6G_2XLarge
- db.m6g.2xlarge
- M6G_4XLarge
- db.m6g.4xlarge
- M6G_8XLarge
- db.m6g.8xlarge
- M6G_12XLarge
- db.m6g.12xlarge
- M6G_16XLarge
- db.m6g.16xlarge
- R3_Large
- db.r3.large
- R3_XLarge
- db.r3.xlarge
- R3_2XLarge
- db.r3.2xlarge
- R3_4XLarge
- db.r3.4xlarge
- R3_8XLarge
- db.r3.8xlarge
- R4_Large
- db.r4.large
- R4_XLarge
- db.r4.xlarge
- R4_2XLarge
- db.r4.2xlarge
- R4_4XLarge
- db.r4.4xlarge
- R4_8XLarge
- db.r4.8xlarge
- R4_16XLarge
- db.r4.16xlarge
- R5_Large
- db.r5.large
- R5_XLarge
- db.r5.xlarge
- R5_2XLarge
- db.r5.2xlarge
- R5_4XLarge
- db.r5.4xlarge
- R5_12XLarge
- db.r5.12xlarge
- R5_24XLarge
- db.r5.24xlarge
- R6G_Large
- db.r6g.large
- R6G_XLarge
- db.r6g.xlarge
- R6G_2XLarge
- db.r6g.2xlarge
- R6G_4XLarge
- db.r6g.4xlarge
- R6G_8XLarge
- db.r6g.8xlarge
- R6G_12XLarge
- db.r6g.12xlarge
- R6G_16XLarge
- db.r6g.16xlarge
- X1_16XLarge
- db.x1.16xlarge
- X1_32XLarge
- db.x1.32xlarge
- X1E_XLarge
- db.x1e.xlarge
- X1E_2XLarge
- db.x1e.2xlarge
- X1E_4XLarge
- db.x1e.4xlarge
- X1E_8XLarge
- db.x1e.8xlarge
- X1E_32XLarge
- db.x1e.32xlarge
- T4_G_MICRO
- db.t4g.micro
- T4_G_SMALL
- db.t4g.small
- T4_G_MEDIUM
- db.t4g.medium
- T4_G_LARGE
- db.t4g.large
- T4_G_X_LARGE
- db.t4g.xlarge
- T4_G_2_X_LARGE
- db.t4g.2xlarge
- T3_MICRO
- db.t3.micro
- T3_SMALL
- db.t3.small
- T3_MEDIUM
- db.t3.medium
- T3_LARGE
- db.t3.large
- T3_X_LARGE
- db.t3.xlarge
- T3_2_X_LARGE
- db.t3.2xlarge
- T2_MICRO
- db.t2.micro
- T2_SMALL
- db.t2.small
- T2_MEDIUM
- db.t2.medium
- T2_LARGE
- db.t2.large
- T2_X_LARGE
- db.t2.xlarge
- T2_2_X_LARGE
- db.t2.2xlarge
- M1_SMALL
- db.m1.small
- M1_MEDIUM
- db.m1.medium
- M1_LARGE
- db.m1.large
- M1_X_LARGE
- db.m1.xlarge
- M2_X_LARGE
- db.m2.xlarge
- M2_2_X_LARGE
- db.m2.2xlarge
- M2_4_X_LARGE
- db.m2.4xlarge
- M3_MEDIUM
- db.m3.medium
- M3_LARGE
- db.m3.large
- M3_X_LARGE
- db.m3.xlarge
- M3_2_X_LARGE
- db.m3.2xlarge
- M4_LARGE
- db.m4.large
- M4_X_LARGE
- db.m4.xlarge
- M4_2_X_LARGE
- db.m4.2xlarge
- M4_4_X_LARGE
- db.m4.4xlarge
- M4_10_X_LARGE
- db.m4.10xlarge
- M4_16_X_LARGE
- db.m4.10xlarge
- M5_LARGE
- db.m5.large
- M5_X_LARGE
- db.m5.xlarge
- M5_2_X_LARGE
- db.m5.2xlarge
- M5_4_X_LARGE
- db.m5.4xlarge
- M5_12_X_LARGE
- db.m5.12xlarge
- M5_24_X_LARGE
- db.m5.24xlarge
- M6_G_LARGE
- db.m6g.large
- M6_G_X_LARGE
- db.m6g.xlarge
- M6_G_2_X_LARGE
- db.m6g.2xlarge
- M6_G_4_X_LARGE
- db.m6g.4xlarge
- M6_G_8_X_LARGE
- db.m6g.8xlarge
- M6_G_12_X_LARGE
- db.m6g.12xlarge
- M6_G_16_X_LARGE
- db.m6g.16xlarge
- R3_LARGE
- db.r3.large
- R3_X_LARGE
- db.r3.xlarge
- R3_2_X_LARGE
- db.r3.2xlarge
- R3_4_X_LARGE
- db.r3.4xlarge
- R3_8_X_LARGE
- db.r3.8xlarge
- R4_LARGE
- db.r4.large
- R4_X_LARGE
- db.r4.xlarge
- R4_2_X_LARGE
- db.r4.2xlarge
- R4_4_X_LARGE
- db.r4.4xlarge
- R4_8_X_LARGE
- db.r4.8xlarge
- R4_16_X_LARGE
- db.r4.16xlarge
- R5_LARGE
- db.r5.large
- R5_X_LARGE
- db.r5.xlarge
- R5_2_X_LARGE
- db.r5.2xlarge
- R5_4_X_LARGE
- db.r5.4xlarge
- R5_12_X_LARGE
- db.r5.12xlarge
- R5_24_X_LARGE
- db.r5.24xlarge
- R6_G_LARGE
- db.r6g.large
- R6_G_X_LARGE
- db.r6g.xlarge
- R6_G_2_X_LARGE
- db.r6g.2xlarge
- R6_G_4_X_LARGE
- db.r6g.4xlarge
- R6_G_8_X_LARGE
- db.r6g.8xlarge
- R6_G_12_X_LARGE
- db.r6g.12xlarge
- R6_G_16_X_LARGE
- db.r6g.16xlarge
- X1_16_X_LARGE
- db.x1.16xlarge
- X1_32_X_LARGE
- db.x1.32xlarge
- X1_E_X_LARGE
- db.x1e.xlarge
- X1_E_2_X_LARGE
- db.x1e.2xlarge
- X1_E_4_X_LARGE
- db.x1e.4xlarge
- X1_E_8_X_LARGE
- db.x1e.8xlarge
- X1_E_32_X_LARGE
- db.x1e.32xlarge
- "db.t4g.micro"
- db.t4g.micro
- "db.t4g.small"
- db.t4g.small
- "db.t4g.medium"
- db.t4g.medium
- "db.t4g.large"
- db.t4g.large
- "db.t4g.xlarge"
- db.t4g.xlarge
- "db.t4g.2xlarge"
- db.t4g.2xlarge
- "db.t3.micro"
- db.t3.micro
- "db.t3.small"
- db.t3.small
- "db.t3.medium"
- db.t3.medium
- "db.t3.large"
- db.t3.large
- "db.t3.xlarge"
- db.t3.xlarge
- "db.t3.2xlarge"
- db.t3.2xlarge
- "db.t2.micro"
- db.t2.micro
- "db.t2.small"
- db.t2.small
- "db.t2.medium"
- db.t2.medium
- "db.t2.large"
- db.t2.large
- "db.t2.xlarge"
- db.t2.xlarge
- "db.t2.2xlarge"
- db.t2.2xlarge
- "db.m1.small"
- db.m1.small
- "db.m1.medium"
- db.m1.medium
- "db.m1.large"
- db.m1.large
- "db.m1.xlarge"
- db.m1.xlarge
- "db.m2.xlarge"
- db.m2.xlarge
- "db.m2.2xlarge"
- db.m2.2xlarge
- "db.m2.4xlarge"
- db.m2.4xlarge
- "db.m3.medium"
- db.m3.medium
- "db.m3.large"
- db.m3.large
- "db.m3.xlarge"
- db.m3.xlarge
- "db.m3.2xlarge"
- db.m3.2xlarge
- "db.m4.large"
- db.m4.large
- "db.m4.xlarge"
- db.m4.xlarge
- "db.m4.2xlarge"
- db.m4.2xlarge
- "db.m4.4xlarge"
- db.m4.4xlarge
- "db.m4.10xlarge"
- db.m4.10xlarge
- "db.m4.10xlarge"
- db.m4.10xlarge
- "db.m5.large"
- db.m5.large
- "db.m5.xlarge"
- db.m5.xlarge
- "db.m5.2xlarge"
- db.m5.2xlarge
- "db.m5.4xlarge"
- db.m5.4xlarge
- "db.m5.12xlarge"
- db.m5.12xlarge
- "db.m5.24xlarge"
- db.m5.24xlarge
- "db.m6g.large"
- db.m6g.large
- "db.m6g.xlarge"
- db.m6g.xlarge
- "db.m6g.2xlarge"
- db.m6g.2xlarge
- "db.m6g.4xlarge"
- db.m6g.4xlarge
- "db.m6g.8xlarge"
- db.m6g.8xlarge
- "db.m6g.12xlarge"
- db.m6g.12xlarge
- "db.m6g.16xlarge"
- db.m6g.16xlarge
- "db.r3.large"
- db.r3.large
- "db.r3.xlarge"
- db.r3.xlarge
- "db.r3.2xlarge"
- db.r3.2xlarge
- "db.r3.4xlarge"
- db.r3.4xlarge
- "db.r3.8xlarge"
- db.r3.8xlarge
- "db.r4.large"
- db.r4.large
- "db.r4.xlarge"
- db.r4.xlarge
- "db.r4.2xlarge"
- db.r4.2xlarge
- "db.r4.4xlarge"
- db.r4.4xlarge
- "db.r4.8xlarge"
- db.r4.8xlarge
- "db.r4.16xlarge"
- db.r4.16xlarge
- "db.r5.large"
- db.r5.large
- "db.r5.xlarge"
- db.r5.xlarge
- "db.r5.2xlarge"
- db.r5.2xlarge
- "db.r5.4xlarge"
- db.r5.4xlarge
- "db.r5.12xlarge"
- db.r5.12xlarge
- "db.r5.24xlarge"
- db.r5.24xlarge
- "db.r6g.large"
- db.r6g.large
- "db.r6g.xlarge"
- db.r6g.xlarge
- "db.r6g.2xlarge"
- db.r6g.2xlarge
- "db.r6g.4xlarge"
- db.r6g.4xlarge
- "db.r6g.8xlarge"
- db.r6g.8xlarge
- "db.r6g.12xlarge"
- db.r6g.12xlarge
- "db.r6g.16xlarge"
- db.r6g.16xlarge
- "db.x1.16xlarge"
- db.x1.16xlarge
- "db.x1.32xlarge"
- db.x1.32xlarge
- "db.x1e.xlarge"
- db.x1e.xlarge
- "db.x1e.2xlarge"
- db.x1e.2xlarge
- "db.x1e.4xlarge"
- db.x1e.4xlarge
- "db.x1e.8xlarge"
- db.x1e.8xlarge
- "db.x1e.32xlarge"
- db.x1e.32xlarge
StorageType, StorageTypeArgs    
- Standard
- standard
- GP2
- gp2
- GP3
- gp3
- IO1
- io1
- StorageType Standard 
- standard
- StorageType GP2 
- gp2
- StorageType GP3 
- gp3
- StorageType IO1 
- io1
- Standard
- standard
- GP2
- gp2
- GP3
- gp3
- IO1
- io1
- Standard
- standard
- GP2
- gp2
- GP3
- gp3
- IO1
- io1
- STANDARD
- standard
- GP2
- gp2
- GP3
- gp3
- IO1
- io1
- "standard"
- standard
- "gp2"
- gp2
- "gp3"
- gp3
- "io1"
- io1
Import
Using pulumi import, import DB Instances using the identifier. For example:
$ pulumi import aws:rds/instance:Instance default mydb-rds-instance
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the awsTerraform Provider.