Show / Hide Table of Contents

Class CfnDBInstance

A CloudFormation AWS::RDS::DBInstance.

Inheritance
System.Object
Construct
CfnElement
CfnRefElement
CfnResource
CfnDBInstance
Implements
IConstruct
Constructs.IConstruct
IDependable
IInspectable
Inherited Members
CfnResource.IsCfnResource(IConstruct)
CfnResource.AddDeletionOverride(String)
CfnResource.AddDependsOn(CfnResource)
CfnResource.AddMetadata(String, Object)
CfnResource.AddOverride(String, Object)
CfnResource.AddPropertyDeletionOverride(String)
CfnResource.AddPropertyOverride(String, Object)
CfnResource.ApplyRemovalPolicy(Nullable<RemovalPolicy>, IRemovalPolicyOptions)
CfnResource.GetAtt(String)
CfnResource.GetMetadata(String)
CfnResource.ShouldSynthesize()
CfnResource.ToString()
CfnResource.ValidateProperties(Object)
CfnResource.CfnOptions
CfnResource.CfnResourceType
CfnResource.UpdatedProperites
CfnRefElement.Ref
CfnElement.IsCfnElement(Object)
CfnElement.OverrideLogicalId(String)
CfnElement.CreationStack
CfnElement.LogicalId
CfnElement.Stack
Construct.IsConstruct(Object)
Construct.OnPrepare()
Construct.OnSynthesize(ISynthesisSession)
Construct.OnValidate()
Construct.Prepare()
Construct.Synthesize(ISynthesisSession)
Construct.Validate()
Construct.Node
Namespace: Amazon.CDK.AWS.RDS
Assembly: Amazon.CDK.AWS.RDS.dll
Syntax (csharp)
public class CfnDBInstance : CfnResource, IConstruct, IConstruct, IDependable, IInspectable
Syntax (vb)
Public Class CfnDBInstance
    Inherits CfnResource
    Implements IConstruct, IConstruct, IDependable, IInspectable
Remarks

The AWS::RDS::DBInstance resource creates an Amazon RDS DB instance.

If you import an existing DB instance, and the template configuration doesn't match the actual configuration of the DB instance, AWS CloudFormation applies the changes in the template during the import operation.

If a DB instance is deleted or replaced during an update, AWS CloudFormation deletes all automated snapshots. However, it retains manual DB snapshots. During an update that requires replacement, you can apply a stack policy to prevent DB instances from being replaced. For more information, see Prevent Updates to Stack Resources .

This topic covers the resource for Amazon RDS DB instances. For the documentation on the resource for Amazon Aurora DB clusters, see AWS::RDS::DBCluster .

Updating DB instances

When properties labeled " Update requires: Replacement " are updated, AWS CloudFormation first creates a replacement DB instance, then changes references from other dependent resources to point to the replacement DB instance, and finally deletes the old DB instance.

We highly recommend that you take a snapshot of the database before updating the stack. If you don&apos;t, you lose the data when AWS CloudFormation replaces your DB instance. To preserve your data, perform the following procedure:

    After you restore a DB instance with a DBSnapshotIdentifier property, you must specify the same DBSnapshotIdentifier property for any future updates to the DB instance. When you specify this property for an update, the DB instance is not restored from the DB snapshot again, and the data in the database is not changed. However, if you don't specify the DBSnapshotIdentifier property, an empty DB instance is created, and the original DB instance is deleted. If you specify a property that is different from the previous snapshot restore property, a new DB instance is restored from the specified DBSnapshotIdentifier property, and the original DB instance is deleted.

      For more information about updating other properties of this resource, see ModifyDBInstance . For more information about updating stacks, see AWS CloudFormation Stacks Updates .

      Deleting DB instances

      For DB instances that are part of an Aurora DB cluster, you can set a deletion policy for your DB instance to control how AWS CloudFormation handles the DB instance when the stack is deleted. For Amazon RDS DB instances, you can choose to retain the DB instance, to delete the DB instance, or to create a snapshot of the DB instance. The default AWS CloudFormation behavior depends on the DBClusterIdentifier property:

        For more information, see DeletionPolicy Attribute .

        CloudformationResource: AWS::RDS::DBInstance

        Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html

        ExampleMetadata: fixture=_generated

        Examples
        // The code below shows an example of how to instantiate this type.
        // The values are placeholders you should change.
        using Amazon.CDK.AWS.RDS;
        
        CfnDBInstance cfnDBInstance = new CfnDBInstance(this, "MyCfnDBInstance", new CfnDBInstanceProps {
            DbInstanceClass = "dbInstanceClass",
        
            // the properties below are optional
            AllocatedStorage = "allocatedStorage",
            AllowMajorVersionUpgrade = false,
            AssociatedRoles = new [] { new DBInstanceRoleProperty {
                FeatureName = "featureName",
                RoleArn = "roleArn"
            } },
            AutoMinorVersionUpgrade = false,
            AvailabilityZone = "availabilityZone",
            BackupRetentionPeriod = 123,
            CaCertificateIdentifier = "caCertificateIdentifier",
            CharacterSetName = "characterSetName",
            CopyTagsToSnapshot = false,
            DbClusterIdentifier = "dbClusterIdentifier",
            DbInstanceIdentifier = "dbInstanceIdentifier",
            DbName = "dbName",
            DbParameterGroupName = "dbParameterGroupName",
            DbSecurityGroups = new [] { "dbSecurityGroups" },
            DbSnapshotIdentifier = "dbSnapshotIdentifier",
            DbSubnetGroupName = "dbSubnetGroupName",
            DeleteAutomatedBackups = false,
            DeletionProtection = false,
            Domain = "domain",
            DomainIamRoleName = "domainIamRoleName",
            EnableCloudwatchLogsExports = new [] { "enableCloudwatchLogsExports" },
            EnableIamDatabaseAuthentication = false,
            EnablePerformanceInsights = false,
            Engine = "engine",
            EngineVersion = "engineVersion",
            Iops = 123,
            KmsKeyId = "kmsKeyId",
            LicenseModel = "licenseModel",
            MasterUsername = "masterUsername",
            MasterUserPassword = "masterUserPassword",
            MaxAllocatedStorage = 123,
            MonitoringInterval = 123,
            MonitoringRoleArn = "monitoringRoleArn",
            MultiAz = false,
            OptionGroupName = "optionGroupName",
            PerformanceInsightsKmsKeyId = "performanceInsightsKmsKeyId",
            PerformanceInsightsRetentionPeriod = 123,
            Port = "port",
            PreferredBackupWindow = "preferredBackupWindow",
            PreferredMaintenanceWindow = "preferredMaintenanceWindow",
            ProcessorFeatures = new [] { new ProcessorFeatureProperty {
                Name = "name",
                Value = "value"
            } },
            PromotionTier = 123,
            PubliclyAccessible = false,
            SourceDbInstanceIdentifier = "sourceDbInstanceIdentifier",
            SourceRegion = "sourceRegion",
            StorageEncrypted = false,
            StorageType = "storageType",
            Tags = new [] { new CfnTag {
                Key = "key",
                Value = "value"
            } },
            Timezone = "timezone",
            UseDefaultProcessorFeatures = false,
            VpcSecurityGroups = new [] { "vpcSecurityGroups" }
        });

        Synopsis

        Constructors

        CfnDBInstance(Construct, String, ICfnDBInstanceProps)

        Create a new AWS::RDS::DBInstance.

        CfnDBInstance(ByRefValue)

        Used by jsii to construct an instance of this class from a Javascript-owned object reference

        CfnDBInstance(DeputyBase.DeputyProps)

        Used by jsii to construct an instance of this class from DeputyProps

        Properties

        AllocatedStorage

        The amount of storage (in gigabytes) to be initially allocated for the database instance.

        AllowMajorVersionUpgrade

        A value that indicates whether major version upgrades are allowed.

        AssociatedRoles

        The AWS Identity and Access Management (IAM) roles associated with the DB instance.

        AttrEndpointAddress

        The connection endpoint for the database.

        AttrEndpointPort

        The port number on which the database accepts connections.

        AutoMinorVersionUpgrade

        A value that indicates whether minor engine upgrades are applied automatically to the DB instance during the maintenance window.

        AvailabilityZone

        The Availability Zone (AZ) where the database will be created.

        BackupRetentionPeriod

        The number of days for which automated backups are retained.

        CaCertificateIdentifier

        The identifier of the CA certificate for this DB instance.

        CFN_RESOURCE_TYPE_NAME

        The CloudFormation resource type name for this resource class.

        CfnProperties
        CharacterSetName

        For supported engines, indicates that the DB instance should be associated with the specified character set.

        CopyTagsToSnapshot

        A value that indicates whether to copy tags from the DB instance to snapshots of the DB instance.

        DbClusterIdentifier

        The identifier of the DB cluster that the instance will belong to.

        DbInstanceClass

        The compute and memory capacity of the DB instance, for example, db.m4.large . Not all DB instance classes are available in all AWS Regions, or for all database engines.

        DbInstanceIdentifier

        A name for the DB instance.

        DbName

        The meaning of this parameter differs according to the database engine you use.

        DbParameterGroupName

        The name of an existing DB parameter group or a reference to an AWS::RDS::DBParameterGroup resource created in the template.

        DbSecurityGroups

        A list of the DB security groups to assign to the DB instance.

        DbSnapshotIdentifier

        The name or Amazon Resource Name (ARN) of the DB snapshot that's used to restore the DB instance.

        DbSubnetGroupName

        A DB subnet group to associate with the DB instance.

        DeleteAutomatedBackups

        A value that indicates whether to remove automated backups immediately after the DB instance is deleted.

        DeletionProtection

        A value that indicates whether the DB instance has deletion protection enabled.

        Domain

        The Active Directory directory ID to create the DB instance in.

        DomainIamRoleName

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

        EnableCloudwatchLogsExports

        The list of log types that need to be enabled for exporting to CloudWatch Logs.

        EnableIamDatabaseAuthentication

        A value that indicates whether to enable mapping of AWS Identity and Access Management (IAM) accounts to database accounts.

        EnablePerformanceInsights

        A value that indicates whether to enable Performance Insights for the DB instance.

        Engine

        The name of the database engine that you want to use for this DB instance.

        EngineVersion

        The version number of the database engine to use.

        Iops

        The number of I/O operations per second (IOPS) that the database provisions.

        KmsKeyId

        The ARN of the AWS KMS key that's used to encrypt the DB instance, such as arn:aws:kms:us-east-1:012345678910:key/abcd1234-a123-456a-a12b-a123b4cd56ef .

        LicenseModel

        License model information for this DB instance.

        MasterUsername

        The master user name for the DB instance.

        MasterUserPassword

        The password for the master user. The password can include any printable ASCII character except "/", """, or "@".

        MaxAllocatedStorage

        The upper limit in gibibytes (GiB) to which Amazon RDS can automatically scale the storage of the DB instance.

        MonitoringInterval

        The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB instance.

        MonitoringRoleArn

        The ARN for the IAM role that permits RDS to send enhanced monitoring metrics to Amazon CloudWatch Logs.

        MultiAz

        Specifies whether the database instance is a Multi-AZ DB instance deployment.

        OptionGroupName

        Indicates that the DB instance should be associated with the specified option group.

        PerformanceInsightsKmsKeyId

        The AWS KMS key identifier for encryption of Performance Insights data.

        PerformanceInsightsRetentionPeriod

        The amount of time, in days, to retain Performance Insights data. Valid values are 7 or 731 (2 years).

        Port

        The port number on which the database accepts connections.

        PreferredBackupWindow

        The daily time range during which automated backups are created if automated backups are enabled, using the BackupRetentionPeriod parameter.

        PreferredMaintenanceWindow

        The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).

        ProcessorFeatures

        The number of CPU cores and the number of threads per core for the DB instance class of the DB instance.

        PromotionTier

        A value that specifies the order in which an Aurora Replica is promoted to the primary instance after a failure of the existing primary instance.

        PubliclyAccessible

        Indicates whether the DB instance is an internet-facing instance.

        SourceDbInstanceIdentifier

        If you want to create a read replica DB instance, specify the ID of the source DB instance.

        SourceRegion

        The ID of the region that contains the source DB instance for the read replica.

        StorageEncrypted

        A value that indicates whether the DB instance is encrypted. By default, it isn't encrypted.

        StorageType

        Specifies the storage type to be associated with the DB instance.

        Tags

        Tags to assign to the DB instance.

        Timezone

        The time zone of the DB instance.

        UseDefaultProcessorFeatures

        A value that indicates whether the DB instance class of the DB instance uses its default processor features.

        VpcSecurityGroups

        A list of the VPC security group IDs to assign to the DB instance.

        Methods

        Inspect(TreeInspector)

        Examines the CloudFormation resource and discloses attributes.

        RenderProperties(IDictionary<String, Object>)

        Constructors

        CfnDBInstance(Construct, String, ICfnDBInstanceProps)

        Create a new AWS::RDS::DBInstance.

        public CfnDBInstance(Construct scope, string id, ICfnDBInstanceProps props)
        Parameters
        scope Construct
        • scope in which this resource is defined.
        id System.String
        • scoped id of the resource.
        props ICfnDBInstanceProps
        • resource properties.

        CfnDBInstance(ByRefValue)

        Used by jsii to construct an instance of this class from a Javascript-owned object reference

        protected CfnDBInstance(ByRefValue reference)
        Parameters
        reference Amazon.JSII.Runtime.Deputy.ByRefValue

        The Javascript-owned object reference

        CfnDBInstance(DeputyBase.DeputyProps)

        Used by jsii to construct an instance of this class from DeputyProps

        protected CfnDBInstance(DeputyBase.DeputyProps props)
        Parameters
        props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps

        The deputy props

        Properties

        AllocatedStorage

        The amount of storage (in gigabytes) to be initially allocated for the database instance.

        public virtual string AllocatedStorage { get; set; }
        Property Value

        System.String

        Remarks

        If any value is set in the Iops parameter, AllocatedStorage must be at least 100 GiB, which corresponds to the minimum Iops value of 1,000. If you increase the Iops value (in 1,000 IOPS increments), then you must also increase the AllocatedStorage value (in 100-GiB increments).

        Amazon Aurora

        Not applicable. Aurora cluster volumes automatically grow as the amount of data in your database increases, though you are only charged for the space that you use in an Aurora cluster volume.

        MySQL

        Constraints to the amount of storage for each storage type are the following:

          MariaDB

          Constraints to the amount of storage for each storage type are the following:

            PostgreSQL

            Constraints to the amount of storage for each storage type are the following:

              Oracle

              Constraints to the amount of storage for each storage type are the following:

                SQL Server

                Constraints to the amount of storage for each storage type are the following:

                  Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-allocatedstorage

                  AllowMajorVersionUpgrade

                  A value that indicates whether major version upgrades are allowed.

                  public virtual object AllowMajorVersionUpgrade { get; set; }
                  Property Value

                  System.Object

                  Remarks

                  Changing this parameter doesn't result in an outage and the change is asynchronously applied as soon as possible.

                  Constraints: Major version upgrades must be allowed when specifying a value for the EngineVersion parameter that is a different major version than the DB instance's current version.

                  Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-allowmajorversionupgrade

                  AssociatedRoles

                  The AWS Identity and Access Management (IAM) roles associated with the DB instance.

                  public virtual object AssociatedRoles { get; set; }
                  Property Value

                  System.Object

                  Remarks

                  Amazon Aurora

                  Not applicable. The associated roles are managed by the DB cluster.

                  Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-associatedroles

                  AttrEndpointAddress

                  The connection endpoint for the database.

                  public virtual string AttrEndpointAddress { get; }
                  Property Value

                  System.String

                  Remarks

                  For example: mystack-mydb-1apw1j4phylrk.cg034hpkmmjt.us-east-2.rds.amazonaws.com

                  CloudformationAttribute: Endpoint.Address

                  AttrEndpointPort

                  The port number on which the database accepts connections.

                  public virtual string AttrEndpointPort { get; }
                  Property Value

                  System.String

                  Remarks

                  For example: 3306

                  CloudformationAttribute: Endpoint.Port

                  AutoMinorVersionUpgrade

                  A value that indicates whether minor engine upgrades are applied automatically to the DB instance during the maintenance window.

                  public virtual object AutoMinorVersionUpgrade { get; set; }
                  Property Value

                  System.Object

                  Remarks

                  By default, minor engine upgrades are applied automatically.

                  Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-autominorversionupgrade

                  AvailabilityZone

                  The Availability Zone (AZ) where the database will be created.

                  public virtual string AvailabilityZone { get; set; }
                  Property Value

                  System.String

                  Remarks

                  For information on AWS Regions and Availability Zones, see Regions and Availability Zones .

                  Amazon Aurora

                  Each Aurora DB cluster hosts copies of its storage in three separate Availability Zones. Specify one of these Availability Zones. Aurora automatically chooses an appropriate Availability Zone if you don't specify one.

                  Default: A random, system-chosen Availability Zone in the endpoint's AWS Region .

                  Example: us-east-1d

                  Constraint: The AvailabilityZone parameter can't be specified if the DB instance is a Multi-AZ deployment. The specified Availability Zone must be in the same AWS Region as the current endpoint.

                  Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-availabilityzone

                  BackupRetentionPeriod

                  The number of days for which automated backups are retained.

                  public virtual Nullable<double> BackupRetentionPeriod { get; set; }
                  Property Value

                  System.Nullable<System.Double>

                  Remarks

                  Setting this parameter to a positive number enables backups. Setting this parameter to 0 disables automated backups.

                  Amazon Aurora

                  Not applicable. The retention period for automated backups is managed by the DB cluster.

                  Default: 1

                  Constraints:

                    Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-backupretentionperiod

                    CaCertificateIdentifier

                    The identifier of the CA certificate for this DB instance.

                    public virtual string CaCertificateIdentifier { get; set; }
                    Property Value

                    System.String

                    Remarks

                    Specifying or updating this property triggers a reboot.

                    For more information about CA certificate identifiers for RDS DB engines, see Rotating Your SSL/TLS Certificate in the Amazon RDS User Guide .

                    For more information about CA certificate identifiers for Aurora DB engines, see Rotating Your SSL/TLS Certificate in the Amazon Aurora User Guide .

                    Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-cacertificateidentifier

                    CFN_RESOURCE_TYPE_NAME

                    The CloudFormation resource type name for this resource class.

                    public static string CFN_RESOURCE_TYPE_NAME { get; }
                    Property Value

                    System.String

                    CfnProperties

                    protected override IDictionary<string, object> CfnProperties { get; }
                    Property Value

                    System.Collections.Generic.IDictionary<System.String, System.Object>

                    Overrides
                    CfnResource.CfnProperties

                    CharacterSetName

                    For supported engines, indicates that the DB instance should be associated with the specified character set.

                    public virtual string CharacterSetName { get; set; }
                    Property Value

                    System.String

                    Remarks

                    Amazon Aurora

                    Not applicable. The character set is managed by the DB cluster. For more information, see AWS::RDS::DBCluster .

                    Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-charactersetname

                    CopyTagsToSnapshot

                    A value that indicates whether to copy tags from the DB instance to snapshots of the DB instance.

                    public virtual object CopyTagsToSnapshot { get; set; }
                    Property Value

                    System.Object

                    Remarks

                    By default, tags are not copied.

                    Amazon Aurora

                    Not applicable. Copying tags to snapshots is managed by the DB cluster. Setting this value for an Aurora DB instance has no effect on the DB cluster setting.

                    Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-copytagstosnapshot

                    DbClusterIdentifier

                    The identifier of the DB cluster that the instance will belong to.

                    public virtual string DbClusterIdentifier { get; set; }
                    Property Value

                    System.String

                    Remarks

                    Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-dbclusteridentifier

                    DbInstanceClass

                    The compute and memory capacity of the DB instance, for example, db.m4.large . Not all DB instance classes are available in all AWS Regions, or for all database engines.

                    public virtual string DbInstanceClass { get; set; }
                    Property Value

                    System.String

                    Remarks

                    For the full list of DB instance classes, and availability for your engine, see DB Instance Class in the Amazon RDS User Guide. For more information about DB instance class pricing and AWS Region support for DB instance classes, see Amazon RDS Pricing .

                    Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-dbinstanceclass

                    DbInstanceIdentifier

                    A name for the DB instance.

                    public virtual string DbInstanceIdentifier { get; set; }
                    Property Value

                    System.String

                    Remarks

                    If you specify a name, AWS CloudFormation converts it to lowercase. If you don't specify a name, AWS CloudFormation generates a unique physical ID and uses that ID for the DB instance. For more information, see Name Type .

                    For information about constraints that apply to DB instance identifiers, see Naming constraints in Amazon RDS in the Amazon RDS User Guide .

                    If you specify a name, you can't perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you must replace the resource, specify a new name.

                    Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-dbinstanceidentifier

                    DbName

                    The meaning of this parameter differs according to the database engine you use.

                    public virtual string DbName { get; set; }
                    Property Value

                    System.String

                    Remarks

                    If you specify the DBSnapshotIdentifier property, this property only applies to RDS for Oracle.

                    Amazon Aurora

                    Not applicable. The database name is managed by the DB cluster.

                    MySQL

                    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.

                    Constraints:

                      MariaDB

                      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.

                      Constraints:

                        PostgreSQL

                        The name of the database to create when the DB instance is created. If this parameter is not specified, the default postgres database is created in the DB instance.

                        Constraints:

                          Oracle

                          The Oracle System ID (SID) of the created DB instance. If you specify null , the default value ORCL is used. You can't specify the string NULL, or any other reserved word, for DBName .

                          Default: ORCL

                          Constraints:

                            SQL Server

                            Not applicable. Must be null.

                            Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-dbname

                            DbParameterGroupName

                            The name of an existing DB parameter group or a reference to an AWS::RDS::DBParameterGroup resource created in the template.

                            public virtual string DbParameterGroupName { get; set; }
                            Property Value

                            System.String

                            Remarks

                            To list all of the available DB parameter group names, use the following command:

                            aws rds describe-db-parameter-groups --query "DBParameterGroups[].DBParameterGroupName" --output text

                            If any of the data members of the referenced parameter group are changed during an update, the DB instance might need to be restarted, which causes some interruption. If the parameter group contains static parameters, whether they were changed or not, an update triggers a reboot.
                            

                            If you don't specify a value for the DBParameterGroupName property, the default DB parameter group for the specified engine and engine version is used.

                            Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-dbparametergroupname

                            DbSecurityGroups

                            A list of the DB security groups to assign to the DB instance.

                            public virtual string[] DbSecurityGroups { get; set; }
                            Property Value

                            System.String[]

                            Remarks

                            The list can include both the name of existing DB security groups or references to AWS::RDS::DBSecurityGroup resources created in the template.

                            If you set DBSecurityGroups, you must not set VPCSecurityGroups, and vice versa. Also, note that the DBSecurityGroups property exists only for backwards compatibility with older regions and is no longer recommended for providing security information to an RDS DB instance. Instead, use VPCSecurityGroups.

                            If you specify this property, AWS CloudFormation sends only the following properties (if specified) to Amazon RDS during create operations:

                              All other properties are ignored. Specify a virtual private cloud (VPC) security group if you want to submit other properties, such as StorageType , StorageEncrypted , or KmsKeyId . If you're already using the DBSecurityGroups property, you can't use these other properties by updating your DB instance to use a VPC security group. You must recreate the DB instance.

                              Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-dbsecuritygroups

                              DbSnapshotIdentifier

                              The name or Amazon Resource Name (ARN) of the DB snapshot that's used to restore the DB instance.

                              public virtual string DbSnapshotIdentifier { get; set; }
                              Property Value

                              System.String

                              Remarks

                              If you're restoring from a shared manual DB snapshot, you must specify the ARN of the snapshot.

                              By specifying this property, you can create a DB instance from the specified DB snapshot. If the DBSnapshotIdentifier property is an empty string or the AWS::RDS::DBInstance declaration has no DBSnapshotIdentifier property, AWS CloudFormation creates a new database. If the property contains a value (other than an empty string), AWS CloudFormation creates a database from the specified snapshot. If a snapshot with the specified name doesn't exist, AWS CloudFormation can't create the database and it rolls back the stack.

                              Some DB instance properties aren't valid when you restore from a snapshot, such as the MasterUsername and MasterUserPassword properties. For information about the properties that you can specify, see the RestoreDBInstanceFromDBSnapshot action in the Amazon RDS API Reference .

                              After you restore a DB instance with a DBSnapshotIdentifier property, you must specify the same DBSnapshotIdentifier property for any future updates to the DB instance. When you specify this property for an update, the DB instance is not restored from the DB snapshot again, and the data in the database is not changed. However, if you don't specify the DBSnapshotIdentifier property, an empty DB instance is created, and the original DB instance is deleted. If you specify a property that is different from the previous snapshot restore property, a new DB instance is restored from the specified DBSnapshotIdentifier property, and the original DB instance is deleted.

                              If you specify the DBSnapshotIdentifier property to restore a DB instance (as opposed to specifying it for DB instance updates), then don't specify the following properties:

                                Amazon Aurora

                                Not applicable. Snapshot restore is managed by the DB cluster.

                                Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-dbsnapshotidentifier

                                DbSubnetGroupName

                                A DB subnet group to associate with the DB instance.

                                public virtual string DbSubnetGroupName { get; set; }
                                Property Value

                                System.String

                                Remarks

                                If you update this value, the new subnet group must be a subnet group in a new VPC.

                                If there's no DB subnet group, then the DB instance isn't a VPC DB instance.

                                For more information about using Amazon RDS in a VPC, see Using Amazon RDS with Amazon Virtual Private Cloud (VPC) in the Amazon RDS User Guide .

                                Amazon Aurora

                                Not applicable. The DB subnet group is managed by the DB cluster. If specified, the setting must match the DB cluster setting.

                                Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-dbsubnetgroupname

                                DeleteAutomatedBackups

                                A value that indicates whether to remove automated backups immediately after the DB instance is deleted.

                                public virtual object DeleteAutomatedBackups { get; set; }
                                Property Value

                                System.Object

                                Remarks

                                This parameter isn't case-sensitive. The default is to remove automated backups immediately after the DB instance is deleted.

                                Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-deleteautomatedbackups

                                DeletionProtection

                                A value that indicates whether the DB instance has deletion protection enabled.

                                public virtual object DeletionProtection { get; set; }
                                Property Value

                                System.Object

                                Remarks

                                The database can't be deleted when deletion protection is enabled. By default, deletion protection is disabled. For more information, see Deleting a DB Instance .

                                Amazon Aurora

                                Not applicable. You can enable or disable deletion protection for the DB cluster. For more information, see CreateDBCluster . DB instances in a DB cluster can be deleted even when deletion protection is enabled for the DB cluster.

                                Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-deletionprotection

                                Domain

                                The Active Directory directory ID to create the DB instance in.

                                public virtual string Domain { get; set; }
                                Property Value

                                System.String

                                Remarks

                                Currently, only Microsoft SQL Server, Oracle, and PostgreSQL DB instances can be created in an Active Directory Domain.

                                For more information, see Kerberos Authentication in the Amazon RDS User Guide .

                                Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-domain

                                DomainIamRoleName

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

                                public virtual string DomainIamRoleName { get; set; }
                                Property Value

                                System.String

                                Remarks

                                This setting doesn't apply to RDS Custom.

                                Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-domainiamrolename

                                EnableCloudwatchLogsExports

                                The list of log types that need to be enabled for exporting to CloudWatch Logs.

                                public virtual string[] EnableCloudwatchLogsExports { get; set; }
                                Property Value

                                System.String[]

                                Remarks

                                The values in the list depend on the DB engine being used. For more information, see Publishing Database Logs to Amazon CloudWatch Logs in the Amazon Relational Database Service User Guide .

                                Amazon Aurora

                                Not applicable. CloudWatch Logs exports are managed by the DB cluster.

                                MariaDB

                                Valid values: audit , error , general , slowquery

                                Microsoft SQL Server

                                Valid values: agent , error

                                MySQL

                                Valid values: audit , error , general , slowquery

                                Oracle

                                Valid values: alert , audit , listener , trace

                                PostgreSQL

                                Valid values: postgresql , upgrade

                                Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-enablecloudwatchlogsexports

                                EnableIamDatabaseAuthentication

                                A value that indicates whether to enable mapping of AWS Identity and Access Management (IAM) accounts to database accounts.

                                public virtual object EnableIamDatabaseAuthentication { get; set; }
                                Property Value

                                System.Object

                                Remarks

                                By default, mapping is disabled.

                                For more information, see IAM Database Authentication for MySQL and PostgreSQL in the Amazon RDS User Guide.

                                Amazon Aurora

                                Not applicable. Mapping AWS IAM accounts to database accounts is managed by the DB cluster.

                                Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-enableiamdatabaseauthentication

                                EnablePerformanceInsights

                                A value that indicates whether to enable Performance Insights for the DB instance.

                                public virtual object EnablePerformanceInsights { get; set; }
                                Property Value

                                System.Object

                                Remarks

                                For more information, see Using Amazon Performance Insights in the Amazon RDS User Guide .

                                This setting doesn't apply to RDS Custom.

                                Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-enableperformanceinsights

                                Engine

                                The name of the database engine that you want to use for this DB instance.

                                public virtual string Engine { get; set; }
                                Property Value

                                System.String

                                Remarks

                                When you are creating a DB instance, the Engine property is required.

                                Valid Values:

                                  Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-engine

                                  EngineVersion

                                  The version number of the database engine to use.

                                  public virtual string EngineVersion { get; set; }
                                  Property Value

                                  System.String

                                  Remarks

                                  For a list of valid engine versions, use the DescribeDBEngineVersions action.

                                  The following are the database engines and links to information about the major and minor versions that are available with Amazon RDS. Not every database engine is available for every AWS Region.

                                  Amazon Aurora

                                  Not applicable. The version number of the database engine to be used by the DB instance is managed by the DB cluster.

                                  MariaDB

                                  See MariaDB on Amazon RDS Versions in the Amazon RDS User Guide.

                                  Microsoft SQL Server

                                  See Microsoft SQL Server Versions on Amazon RDS in the Amazon RDS User Guide.

                                  MySQL

                                  See MySQL on Amazon RDS Versions in the Amazon RDS User Guide.

                                  Oracle

                                  See Oracle Database Engine Release Notes in the Amazon RDS User Guide.

                                  PostgreSQL

                                  See Supported PostgreSQL Database Versions in the Amazon RDS User Guide.

                                  Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-engineversion

                                  Iops

                                  The number of I/O operations per second (IOPS) that the database provisions.

                                  public virtual Nullable<double> Iops { get; set; }
                                  Property Value

                                  System.Nullable<System.Double>

                                  Remarks

                                  The value must be equal to or greater than 1000.

                                  If you specify this property, you must follow the range of allowed ratios of your requested IOPS rate to the amount of storage that you allocate (IOPS to allocated storage). For example, you can provision an Oracle database instance with 1000 IOPS and 200 GiB of storage (a ratio of 5:1), or specify 2000 IOPS with 200 GiB of storage (a ratio of 10:1). For more information, see Amazon RDS Provisioned IOPS Storage to Improve Performance in the Amazon RDS User Guide .

                                  If you specify io1 for the StorageType property, then you must also specify the Iops property.

                                  Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-iops

                                  KmsKeyId

                                  The ARN of the AWS KMS key that's used to encrypt the DB instance, such as arn:aws:kms:us-east-1:012345678910:key/abcd1234-a123-456a-a12b-a123b4cd56ef .

                                  public virtual string KmsKeyId { get; set; }
                                  Property Value

                                  System.String

                                  Remarks

                                  If you enable the StorageEncrypted property but don't specify this property, AWS CloudFormation uses the default KMS key. If you specify this property, you must set the StorageEncrypted property to true.

                                  If you specify the SourceDBInstanceIdentifier property, the value is inherited from the source DB instance if the read replica is created in the same region.

                                  If you create an encrypted read replica in a different AWS Region, then you must specify a KMS key for the destination AWS Region. KMS encryption keys are specific to the region that they're created in, and you can't use encryption keys from one region in another region.

                                  If you specify the SnapshotIdentifier property, the StorageEncrypted property value is inherited from the snapshot, and if the DB instance is encrypted, the specified KmsKeyId property is used.

                                  If you specify DBSecurityGroups , AWS CloudFormation ignores this property. To specify both a security group and this property, you must use a VPC security group. For more information about Amazon RDS and VPC, see Using Amazon RDS with Amazon VPC in the Amazon RDS User Guide .

                                  Amazon Aurora

                                  Not applicable. The KMS key identifier is managed by the DB cluster.

                                  Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-kmskeyid

                                  LicenseModel

                                  License model information for this DB instance.

                                  public virtual string LicenseModel { get; set; }
                                  Property Value

                                  System.String

                                  Remarks

                                  Valid values:

                                    If you&apos;ve specified <code>DBSecurityGroups</code> and then you update the license model, AWS CloudFormation replaces the underlying DB instance. This will incur some interruptions to database availability.
                                    

                                    Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-licensemodel

                                    MasterUsername

                                    The master user name for the DB instance.

                                    public virtual string MasterUsername { get; set; }
                                    Property Value

                                    System.String

                                    Remarks

                                    If you specify the SourceDBInstanceIdentifier or DBSnapshotIdentifier property, don't specify this property. The value is inherited from the source DB instance or snapshot.

                                    Amazon Aurora

                                    Not applicable. The name for the master user is managed by the DB cluster.

                                    MariaDB

                                    Constraints:

                                      Microsoft SQL Server

                                      Constraints:

                                        MySQL

                                        Constraints:

                                          Oracle

                                          Constraints:

                                            PostgreSQL

                                            Constraints:

                                              Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-masterusername

                                              MasterUserPassword

                                              The password for the master user. The password can include any printable ASCII character except "/", """, or "@".

                                              public virtual string MasterUserPassword { get; set; }
                                              Property Value

                                              System.String

                                              Remarks

                                              Amazon Aurora

                                              Not applicable. The password for the master user is managed by the DB cluster.

                                              MariaDB

                                              Constraints: Must contain from 8 to 41 characters.

                                              Microsoft SQL Server

                                              Constraints: Must contain from 8 to 128 characters.

                                              MySQL

                                              Constraints: Must contain from 8 to 41 characters.

                                              Oracle

                                              Constraints: Must contain from 8 to 30 characters.

                                              PostgreSQL

                                              Constraints: Must contain from 8 to 128 characters.

                                              Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-masteruserpassword

                                              MaxAllocatedStorage

                                              The upper limit in gibibytes (GiB) to which Amazon RDS can automatically scale the storage of the DB instance.

                                              public virtual Nullable<double> MaxAllocatedStorage { get; set; }
                                              Property Value

                                              System.Nullable<System.Double>

                                              Remarks

                                              For more information about this setting, including limitations that apply to it, see Managing capacity automatically with Amazon RDS storage autoscaling in the Amazon RDS User Guide .

                                              This setting doesn't apply to RDS Custom.

                                              Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-maxallocatedstorage

                                              MonitoringInterval

                                              The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB instance.

                                              public virtual Nullable<double> MonitoringInterval { get; set; }
                                              Property Value

                                              System.Nullable<System.Double>

                                              Remarks

                                              To disable collection of Enhanced Monitoring metrics, specify 0. The default is 0.

                                              If MonitoringRoleArn is specified, then you must set MonitoringInterval to a value other than 0.

                                              This setting doesn't apply to RDS Custom.

                                              Valid Values: 0, 1, 5, 10, 15, 30, 60

                                              Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-monitoringinterval

                                              MonitoringRoleArn

                                              The ARN for the IAM role that permits RDS to send enhanced monitoring metrics to Amazon CloudWatch Logs.

                                              public virtual string MonitoringRoleArn { get; set; }
                                              Property Value

                                              System.String

                                              Remarks

                                              For example, arn:aws:iam:123456789012:role/emaccess . For information on creating a monitoring role, see Setting Up and Enabling Enhanced Monitoring in the Amazon RDS User Guide .

                                              If MonitoringInterval is set to a value other than 0, then you must supply a MonitoringRoleArn value.

                                              This setting doesn't apply to RDS Custom.

                                              Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-monitoringrolearn

                                              MultiAz

                                              Specifies whether the database instance is a Multi-AZ DB instance deployment.

                                              public virtual object MultiAz { get; set; }
                                              Property Value

                                              System.Object

                                              Remarks

                                              You can't set the AvailabilityZone parameter if the MultiAZ parameter is set to true.

                                              Currently, you can't use AWS CloudFormation to create a Multi-AZ DB cluster deployment.

                                              For more information, see Multi-AZ deployments for high availability in the Amazon RDS User Guide .

                                              Amazon Aurora

                                              Not applicable. Amazon Aurora storage is replicated across all of the Availability Zones and doesn't require the MultiAZ option to be set.

                                              Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-multiaz

                                              OptionGroupName

                                              Indicates that the DB instance should be associated with the specified option group.

                                              public virtual string OptionGroupName { get; set; }
                                              Property Value

                                              System.String

                                              Remarks

                                              Permanent options, such as the TDE option for Oracle Advanced Security TDE, can't be removed from an option group. Also, that option group can't be removed from a DB instance once it is associated with a DB instance.

                                              Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-optiongroupname

                                              PerformanceInsightsKmsKeyId

                                              The AWS KMS key identifier for encryption of Performance Insights data.

                                              public virtual string PerformanceInsightsKmsKeyId { get; set; }
                                              Property Value

                                              System.String

                                              Remarks

                                              The KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key.

                                              If you do not specify a value for PerformanceInsightsKMSKeyId , then Amazon RDS uses your default KMS key. There is a default KMS key for your AWS account. Your AWS account has a different default KMS key for each AWS Region.

                                              For information about enabling Performance Insights, see EnablePerformanceInsights .

                                              Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-performanceinsightskmskeyid

                                              PerformanceInsightsRetentionPeriod

                                              The amount of time, in days, to retain Performance Insights data. Valid values are 7 or 731 (2 years).

                                              public virtual Nullable<double> PerformanceInsightsRetentionPeriod { get; set; }
                                              Property Value

                                              System.Nullable<System.Double>

                                              Remarks

                                              For information about enabling Performance Insights, see EnablePerformanceInsights .

                                              Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-performanceinsightsretentionperiod

                                              Port

                                              The port number on which the database accepts connections.

                                              public virtual string Port { get; set; }
                                              Property Value

                                              System.String

                                              Remarks

                                              Amazon Aurora

                                              Not applicable. The port number is managed by the DB cluster.

                                              Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-port

                                              PreferredBackupWindow

                                              The daily time range during which automated backups are created if automated backups are enabled, using the BackupRetentionPeriod parameter.

                                              public virtual string PreferredBackupWindow { get; set; }
                                              Property Value

                                              System.String

                                              Remarks

                                              For more information, see Backup Window in the Amazon RDS User Guide.

                                              Constraints:

                                                Amazon Aurora

                                                Not applicable. The daily time range for creating automated backups is managed by the DB cluster.

                                                Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-preferredbackupwindow

                                                PreferredMaintenanceWindow

                                                The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).

                                                public virtual string PreferredMaintenanceWindow { get; set; }
                                                Property Value

                                                System.String

                                                Remarks

                                                Format: ddd:hh24:mi-ddd:hh24:mi

                                                The default is a 30-minute window selected at random from an 8-hour block of time for each AWS Region, occurring on a random day of the week. To see the time blocks available, see Adjusting the Preferred DB Instance Maintenance Window in the Amazon RDS User Guide.

                                                This property applies when AWS CloudFormation initially creates the DB instance. If you use AWS CloudFormation to update the DB instance, those updates are applied immediately.

                                                Constraints: Minimum 30-minute window.

                                                Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-preferredmaintenancewindow

                                                ProcessorFeatures

                                                The number of CPU cores and the number of threads per core for the DB instance class of the DB instance.

                                                public virtual object ProcessorFeatures { get; set; }
                                                Property Value

                                                System.Object

                                                Remarks

                                                This setting doesn't apply to RDS Custom.

                                                Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-processorfeatures

                                                PromotionTier

                                                A value that specifies the order in which an Aurora Replica is promoted to the primary instance after a failure of the existing primary instance.

                                                public virtual Nullable<double> PromotionTier { get; set; }
                                                Property Value

                                                System.Nullable<System.Double>

                                                Remarks

                                                For more information, see Fault Tolerance for an Aurora DB Cluster in the Amazon Aurora User Guide .

                                                This setting doesn't apply to RDS Custom.

                                                Default: 1

                                                Valid Values: 0 - 15

                                                Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-promotiontier

                                                PubliclyAccessible

                                                Indicates whether the DB instance is an internet-facing instance.

                                                public virtual object PubliclyAccessible { get; set; }
                                                Property Value

                                                System.Object

                                                Remarks

                                                If you specify true , AWS CloudFormation creates an instance with a publicly resolvable DNS name, which resolves to a public IP address. If you specify false, AWS CloudFormation creates an internal instance with a DNS name that resolves to a private IP address.

                                                The default behavior value depends on your VPC setup and the database subnet group. For more information, see the PubliclyAccessible parameter in CreateDBInstance in the Amazon RDS API Reference .

                                                If this resource has a public IP address and is also in a VPC that is defined in the same template, you must use the DependsOn attribute to declare a dependency on the VPC-gateway attachment. For more information, see DependsOn Attribute .

                                                If you specify DBSecurityGroups, AWS CloudFormation ignores this property. To specify a security group and this property, you must use a VPC security group. For more information about Amazon RDS and VPC, see Using Amazon RDS with Amazon VPC in the Amazon RDS User Guide .

                                                Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-publiclyaccessible

                                                SourceDbInstanceIdentifier

                                                If you want to create a read replica DB instance, specify the ID of the source DB instance.

                                                public virtual string SourceDbInstanceIdentifier { get; set; }
                                                Property Value

                                                System.String

                                                Remarks

                                                Each DB instance can have a limited number of read replicas. For more information, see Working with Read Replicas in the Amazon RDS User Guide .

                                                For information about constraints that apply to DB instance identifiers, see Naming constraints in Amazon RDS in the Amazon RDS User Guide .

                                                The SourceDBInstanceIdentifier property determines whether a DB instance is a read replica. If you remove the SourceDBInstanceIdentifier property from your template and then update your stack, AWS CloudFormation deletes the Read Replica and creates a new DB instance (not a read replica).

                                                  Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-sourcedbinstanceidentifier

                                                  SourceRegion

                                                  The ID of the region that contains the source DB instance for the read replica.

                                                  public virtual string SourceRegion { get; set; }
                                                  Property Value

                                                  System.String

                                                  Remarks

                                                  Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-sourceregion

                                                  StorageEncrypted

                                                  A value that indicates whether the DB instance is encrypted. By default, it isn't encrypted.

                                                  public virtual object StorageEncrypted { get; set; }
                                                  Property Value

                                                  System.Object

                                                  Remarks

                                                  If you specify the KmsKeyId property, then you must enable encryption.

                                                  If you specify the SourceDBInstanceIdentifier property, don't specify this property. The value is inherited from the source DB instance, and if the DB instance is encrypted, the specified KmsKeyId property is used.

                                                  If you specify the SnapshotIdentifier and the specified snapshot is encrypted, don't specify this property. The value is inherited from the snapshot, and the specified KmsKeyId property is used.

                                                  If you specify the SnapshotIdentifier and the specified snapshot isn't encrypted, you can use this property to specify that the restored DB instance is encrypted. Specify the KmsKeyId property for the KMS key to use for encryption. If you don't want the restored DB instance to be encrypted, then don't set this property or set it to false .

                                                  Amazon Aurora

                                                  Not applicable. The encryption for DB instances is managed by the DB cluster.

                                                  Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-storageencrypted

                                                  StorageType

                                                  Specifies the storage type to be associated with the DB instance.

                                                  public virtual string StorageType { get; set; }
                                                  Property Value

                                                  System.String

                                                  Remarks

                                                  Valid values: standard | gp2 | io1

                                                  The standard value is also known as magnetic.

                                                  If you specify io1 , you must also include a value for the Iops parameter.

                                                  Default: io1 if the Iops parameter is specified, otherwise standard

                                                  For more information, see Amazon RDS DB Instance Storage in the Amazon RDS User Guide .

                                                  Amazon Aurora

                                                  Not applicable. Aurora data is stored in the cluster volume, which is a single, virtual volume that uses solid state drives (SSDs).

                                                  Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-storagetype

                                                  Tags

                                                  Tags to assign to the DB instance.

                                                  public virtual TagManager Tags { get; }
                                                  Property Value

                                                  TagManager

                                                  Remarks

                                                  Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-tags

                                                  Timezone

                                                  The time zone of the DB instance.

                                                  public virtual string Timezone { get; set; }
                                                  Property Value

                                                  System.String

                                                  Remarks

                                                  The time zone parameter is currently supported only by Microsoft SQL Server .

                                                  Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-timezone

                                                  UseDefaultProcessorFeatures

                                                  A value that indicates whether the DB instance class of the DB instance uses its default processor features.

                                                  public virtual object UseDefaultProcessorFeatures { get; set; }
                                                  Property Value

                                                  System.Object

                                                  Remarks

                                                  This setting doesn't apply to RDS Custom.

                                                  Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-usedefaultprocessorfeatures

                                                  VpcSecurityGroups

                                                  A list of the VPC security group IDs to assign to the DB instance.

                                                  public virtual string[] VpcSecurityGroups { get; set; }
                                                  Property Value

                                                  System.String[]

                                                  Remarks

                                                  The list can include both the physical IDs of existing VPC security groups and references to AWS::EC2::SecurityGroup resources created in the template.

                                                  If you plan to update the resource, don't specify VPC security groups in a shared VPC.

                                                  If you set VPCSecurityGroups , you must not set DBSecurityGroups , and vice versa.

                                                  You can migrate a DB instance in your stack from an RDS DB security group to a VPC security group, but keep the following in mind:

                                                    To avoid this situation, migrate your DB instance to using VPC security groups only when that is the only change in your stack template.

                                                    Amazon Aurora

                                                    Not applicable. The associated list of EC2 VPC security groups is managed by the DB cluster. If specified, the setting must match the DB cluster setting.

                                                    Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-vpcsecuritygroups

                                                    Methods

                                                    Inspect(TreeInspector)

                                                    Examines the CloudFormation resource and discloses attributes.

                                                    public virtual void Inspect(TreeInspector inspector)
                                                    Parameters
                                                    inspector TreeInspector
                                                    • tree inspector to collect and process attributes.

                                                    RenderProperties(IDictionary<String, Object>)

                                                    protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
                                                    Parameters
                                                    props System.Collections.Generic.IDictionary<System.String, System.Object>
                                                    Returns

                                                    System.Collections.Generic.IDictionary<System.String, System.Object>

                                                    Overrides
                                                    CfnResource.RenderProperties(IDictionary<String, Object>)

                                                    Implements

                                                    IConstruct
                                                    Constructs.IConstruct
                                                    IDependable
                                                    IInspectable
                                                    Back to top Generated by DocFX