CfnDBInstance L1 construct
The AWS::RDS::DBInstance resource creates an Amazon DB instance.
The new DB instance can be an RDS DB instance, or it can be a DB instance in an Aurora DB cluster.
For more information about creating an RDS DB instance, see Creating an Amazon RDS DB instance in the Amazon RDS User Guide .
For more information about creating a DB instance in an Aurora DB cluster, see Creating an Amazon Aurora DB cluster in the Amazon Aurora User Guide .
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 .
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't, you lose the data when AWS CloudFormation replaces your DB instance. To preserve your data, perform the following procedure:
- Deactivate any applications that are using the DB instance so that there's no activity on the DB instance.
- Create a snapshot of the DB instance. For more information, see Creating a DB Snapshot .
- If you want to restore your instance using a DB snapshot, modify the updated template with your DB instance changes and add the
DBSnapshotIdentifierproperty with the ID of the DB snapshot that you want to use.After you restore a DB instance with a
DBSnapshotIdentifierproperty, you can delete theDBSnapshotIdentifierproperty. 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 theDBSnapshotIdentifierproperty, 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 specifiedDBSnapshotIdentifierproperty, and the original DB instance is deleted.
- Update the stack.
For more information about updating other properties of this resource, see [ModifyDBInstance](https://docs.aws.amazon.com//AmazonRDS/latest/APIReference/API_ModifyDBInstance.html) . 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
AWS::RDS::DBInstanceresources that don't specify theDBClusterIdentifierproperty, AWS CloudFormation saves a snapshot of the DB instance. - For
AWS::RDS::DBInstanceresources that do specify theDBClusterIdentifierproperty, AWS CloudFormation deletes the DB instance.
For more information, see DeletionPolicy Attribute .
Example
declare const scope: Construct;
declare const parent: Construct;
declare const bucket: s3.CfnBucket;
// Apply DESTROY policy to all resources in a scope
RemovalPolicies.of(scope).destroy();
// Apply RETAIN policy to all resources in a scope
RemovalPolicies.of(scope).retain();
// Apply SNAPSHOT policy to all resources in a scope
RemovalPolicies.of(scope).snapshot();
// Apply RETAIN_ON_UPDATE_OR_DELETE policy to all resources in a scope
RemovalPolicies.of(scope).retainOnUpdateOrDelete();
// Apply RETAIN policy only to specific resource types
RemovalPolicies.of(parent).retain({
applyToResourceTypes: [
'AWS::DynamoDB::Table',
bucket.cfnResourceType, // 'AWS::S3::Bucket'
rds.CfnDBInstance.CFN_RESOURCE_TYPE_NAME, // 'AWS::RDS::DBInstance'
],
});
// Apply SNAPSHOT policy excluding specific resource types
RemovalPolicies.of(scope).snapshot({
excludeResourceTypes: ['AWS::Test::Resource'],
});
# scope: Construct
# parent: Construct
# bucket: s3.CfnBucket
# Apply DESTROY policy to all resources in a scope
RemovalPolicies.of(scope).destroy()
# Apply RETAIN policy to all resources in a scope
RemovalPolicies.of(scope).retain()
# Apply SNAPSHOT policy to all resources in a scope
RemovalPolicies.of(scope).snapshot()
# Apply RETAIN_ON_UPDATE_OR_DELETE policy to all resources in a scope
RemovalPolicies.of(scope).retain_on_update_or_delete()
# Apply RETAIN policy only to specific resource types
RemovalPolicies.of(parent).retain(
apply_to_resource_types=["AWS::DynamoDB::Table", bucket.cfn_resource_type, rds.CfnDBInstance.CFN_RESOURCE_TYPE_NAME
]
)
# Apply SNAPSHOT policy excluding specific resource types
RemovalPolicies.of(scope).snapshot(
exclude_resource_types=["AWS::Test::Resource"]
)
Construct scope;
Construct parent;
CfnBucket bucket;
// Apply DESTROY policy to all resources in a scope
RemovalPolicies.of(scope).destroy();
// Apply RETAIN policy to all resources in a scope
RemovalPolicies.of(scope).retain();
// Apply SNAPSHOT policy to all resources in a scope
RemovalPolicies.of(scope).snapshot();
// Apply RETAIN_ON_UPDATE_OR_DELETE policy to all resources in a scope
RemovalPolicies.of(scope).retainOnUpdateOrDelete();
// Apply RETAIN policy only to specific resource types
RemovalPolicies.of(parent).retain(RemovalPolicyProps.builder()
.applyToResourceTypes(List.of("AWS::DynamoDB::Table", bucket.getCfnResourceType(), CfnDBInstance.CFN_RESOURCE_TYPE_NAME))
.build());
// Apply SNAPSHOT policy excluding specific resource types
RemovalPolicies.of(scope).snapshot(RemovalPolicyProps.builder()
.excludeResourceTypes(List.of("AWS::Test::Resource"))
.build());
// Install: dotnet add package Amazon.CDK.Lib
Construct scope;
Construct parent;
CfnBucket bucket;
// Apply DESTROY policy to all resources in a scope
RemovalPolicies.Of(scope).Destroy();
// Apply RETAIN policy to all resources in a scope
RemovalPolicies.Of(scope).Retain();
// Apply SNAPSHOT policy to all resources in a scope
RemovalPolicies.Of(scope).Snapshot();
// Apply RETAIN_ON_UPDATE_OR_DELETE policy to all resources in a scope
RemovalPolicies.Of(scope).RetainOnUpdateOrDelete();
// Apply RETAIN policy only to specific resource types
RemovalPolicies.Of(parent).Retain(new RemovalPolicyProps {
ApplyToResourceTypes = new [] { "AWS::DynamoDB::Table", bucket.CfnResourceType, CfnDBInstance.CFN_RESOURCE_TYPE_NAME }
});
// Apply SNAPSHOT policy excluding specific resource types
RemovalPolicies.Of(scope).Snapshot(new RemovalPolicyProps {
ExcludeResourceTypes = new [] { "AWS::Test::Resource" }
});
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
var scope Construct
var parent Construct
var bucket CfnBucket
// Apply DESTROY policy to all resources in a scope
awscdk.RemovalPolicies_Of(*scope).Destroy()
// Apply RETAIN policy to all resources in a scope
awscdk.RemovalPolicies_Of(*scope).Retain()
// Apply SNAPSHOT policy to all resources in a scope
awscdk.RemovalPolicies_Of(*scope).Snapshot()
// Apply RETAIN_ON_UPDATE_OR_DELETE policy to all resources in a scope
awscdk.RemovalPolicies_Of(*scope).RetainOnUpdateOrDelete()
// Apply RETAIN policy only to specific resource types
awscdk.RemovalPolicies_Of(parent).Retain(&RemovalPolicyProps{
ApplyToResourceTypes: []*string{
jsii.String("AWS::DynamoDB::Table"),
bucket.CfnResourceType,
rds.CfnDBInstance_CFN_RESOURCE_TYPE_NAME(),
},
})
// Apply SNAPSHOT policy excluding specific resource types
awscdk.RemovalPolicies_Of(*scope).Snapshot(&RemovalPolicyProps{
ExcludeResourceTypes: []*string{
jsii.String("AWS::Test::Resource"),
},
})
Initializer
new CfnDBInstance(scope: Construct, id: string, props?: CfnDBInstanceProps)
CfnDBInstance(scope: Construct, id: str, props: typing.Optional[CfnDBInstanceProps] = None)
new CfnDBInstance(Construct scope, String id, CfnDBInstanceProps props)
new CfnDBInstance(Construct scope, string id, CfnDBInstanceProps? props = null)
NewCfnDBInstance(Scope Construct, Id *string, Props CfnDBInstanceProps)
Construct Props
additionalStorageVolumesoptionalIResolvable | IResolvable | CfnDBInstance.AdditionalStorageVolumeProperty[]additional_storage_volumesoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, AdditionalStorageVolumeProperty]]]additionalStorageVolumesoptionalIResolvableAdditionalStorageVolumesoptionalIResolvableAdditionalStorageVolumesoptionalinterface{}#RDS supports additional storage volumes for RDS for Oracle and RDS for SQL Server.
allocatedStorageoptionalstringallocated_storageoptionalstrallocatedStorageoptionalStringAllocatedStorageoptionalstringAllocatedStorageoptional*string#notes
If any value is set in the
Iopsparameter,AllocatedStoragemust be at least 100 GiB, which corresponds to the minimum Iops value of 1,000. If you increase theIopsvalue (in 1,000 IOPS increments), then you must also increase theAllocatedStoragevalue (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.
Db2
Constraints to the amount of storage for each storage type are the following:
- General Purpose (SSD) storage (gp3): Must be an integer from 20 to 64000.
- Provisioned IOPS storage (io1): Must be an integer from 100 to 64000.
MySQL
Constraints to the amount of storage for each storage type are the following:
- General Purpose (SSD) storage (gp2): Must be an integer from 20 to 65536.
- Provisioned IOPS storage (io1): Must be an integer from 100 to 65536.
- Magnetic storage (standard): Must be an integer from 5 to 3072.
MariaDB
Constraints to the amount of storage for each storage type are the following:
- General Purpose (SSD) storage (gp2): Must be an integer from 20 to 65536.
- Provisioned IOPS storage (io1): Must be an integer from 100 to 65536.
- Magnetic storage (standard): Must be an integer from 5 to 3072.
PostgreSQL
Constraints to the amount of storage for each storage type are the following:
- General Purpose (SSD) storage (gp2): Must be an integer from 20 to 65536.
- Provisioned IOPS storage (io1): Must be an integer from 100 to 65536.
- Magnetic storage (standard): Must be an integer from 5 to 3072.
Oracle
Constraints to the amount of storage for each storage type are the following:
- General Purpose (SSD) storage (gp2): Must be an integer from 20 to 65536.
- Provisioned IOPS storage (io1): Must be an integer from 100 to 65536.
- Magnetic storage (standard): Must be an integer from 10 to 3072.
SQL Server
Constraints to the amount of storage for each storage type are the following:
General Purpose (SSD) storage (gp2):
Enterprise and Standard editions: Must be an integer from 20 to 16384.
Web and Express editions: Must be an integer from 20 to 16384.
Provisioned IOPS storage (io1):
Enterprise and Standard editions: Must be an integer from 20 to 16384.
Web and Express editions: Must be an integer from 20 to 16384.
Magnetic storage (standard):
Enterprise and Standard editions: Must be an integer from 20 to 1024.
Web and Express editions: Must be an integer from 20 to 1024.
allowMajorVersionUpgradeoptionalboolean | IResolvableallow_major_version_upgradeoptionaltyping.Union[bool, IResolvable]allowMajorVersionUpgradeoptionalBooleanAllowMajorVersionUpgradeoptionalboolAllowMajorVersionUpgradeoptionalinterface{}#notes
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.
applyImmediatelyoptionalboolean | IResolvableapply_immediatelyoptionaltyping.Union[bool, IResolvable]applyImmediatelyoptionalBooleanApplyImmediatelyoptionalboolApplyImmediatelyoptionalinterface{}#notes
If set to false , changes are applied during the next maintenance window. Until RDS applies the changes, the DB instance remains in a drift state. As a result, the configuration doesn't fully reflect the requested modifications and temporarily diverges from the intended state.
In addition to the settings described in Modifying a DB instance , this property also determines whether the DB instance reboots when a static parameter is modified in the associated DB parameter group.
Default: true
associatedRolesoptionalIResolvable | IResolvable | CfnDBInstance.DBInstanceRoleProperty[]associated_rolesoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, DBInstanceRoleProperty]]]associatedRolesoptionalIResolvableAssociatedRolesoptionalIResolvableAssociatedRolesoptionalinterface{}#Amazon Aurora
Not applicable. The associated roles are managed by the DB cluster.
automaticBackupReplicationKmsKeyIdoptionalstringautomatic_backup_replication_kms_key_idoptionalstrautomaticBackupReplicationKmsKeyIdoptionalStringAutomaticBackupReplicationKmsKeyIdoptionalstringAutomaticBackupReplicationKmsKeyIdoptional*string#The KMS key ID is the Amazon Resource Name (ARN) for the KMS encryption key in the destination AWS Region , for example, arn:aws:kms:us-east-1:123456789012:key/AKIAIOSFODNN7EXAMPLE .
automaticBackupReplicationRegionoptionalstringautomatic_backup_replication_regionoptionalstrautomaticBackupReplicationRegionoptionalStringAutomaticBackupReplicationRegionoptionalstringAutomaticBackupReplicationRegionoptional*string#automaticBackupReplicationRetentionPeriodoptionalnumberautomatic_backup_replication_retention_periodoptionalint | floatautomaticBackupReplicationRetentionPeriodoptionalNumberAutomaticBackupReplicationRetentionPeriodoptionaldoubleAutomaticBackupReplicationRetentionPeriodoptional*float64#notes
Use this parameter to set a unique retention period that only applies to cross-Region automated backups. To enable automated backups in a different Region, specify a positive value for the AutomaticBackupReplicationRegion parameter.
If not specified, this parameter defaults to the value of the BackupRetentionPeriod parameter. The maximum allowed value is 35.
autoMinorVersionUpgradeoptionalboolean | IResolvableauto_minor_version_upgradeoptionaltyping.Union[bool, IResolvable]autoMinorVersionUpgradeoptionalBooleanAutoMinorVersionUpgradeoptionalboolAutoMinorVersionUpgradeoptionalinterface{}#By default, minor engine upgrades are applied automatically.
availabilityZoneoptionalstringavailability_zoneoptionalstravailabilityZoneoptionalStringAvailabilityZoneoptionalstringAvailabilityZoneoptional*string#notes
For information on AWS Regions and Availability Zones, see Regions and Availability Zones .
For 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 .
Constraints:
- The
AvailabilityZoneparameter 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.
Example: us-east-1d
backupRetentionPeriodoptionalnumberbackup_retention_periodoptionalint | floatbackupRetentionPeriodoptionalNumberBackupRetentionPeriodoptionaldoubleBackupRetentionPeriodoptional*float64#notes
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:
- Must be a value from 0 to 35
- Can't be set to 0 if the DB instance is a source to read replicas
backupTargetoptionalstringbackup_targetoptionalstrbackupTargetoptionalStringBackupTargetoptionalstringBackupTargetoptional*string#notes
Valid Values:
local(Dedicated Local Zone)outposts( AWS Outposts)region( AWS Region )
Default: region
For more information, see Working with Amazon RDS on AWS Outposts in the Amazon RDS User Guide .
caCertificateIdentifieroptionalstringca_certificate_identifieroptionalstrcaCertificateIdentifieroptionalStringCaCertificateIdentifieroptionalstringCaCertificateIdentifieroptional*string#notes
For more information, see Using SSL/TLS to encrypt a connection to a DB instance in the Amazon RDS User Guide and Using SSL/TLS to encrypt a connection to a DB cluster in the Amazon Aurora User Guide .
certificateRotationRestartoptionalboolean | IResolvablecertificate_rotation_restartoptionaltyping.Union[bool, IResolvable]certificateRotationRestartoptionalBooleanCertificateRotationRestartoptionalboolCertificateRotationRestartoptionalinterface{}#notes
By default, the DB instance is restarted when you rotate your SSL/TLS certificate. The certificate is not updated until the DB instance is restarted.
Set this parameter only if you are not using SSL/TLS to connect to the DB instance.
If you are using SSL/TLS to connect to the DB instance, follow the appropriate instructions for your DB engine to rotate your SSL/TLS certificate:
- For more information about rotating your SSL/TLS certificate for RDS DB engines, see Rotating Your SSL/TLS Certificate. in the Amazon RDS User Guide.
- For more information about rotating your SSL/TLS certificate for Aurora DB engines, see Rotating Your SSL/TLS Certificate in the Amazon Aurora User Guide .
This setting doesn't apply to RDS Custom DB instances.
characterSetNameoptionalstringcharacter_set_nameoptionalstrcharacterSetNameoptionalStringCharacterSetNameoptionalstringCharacterSetNameoptional*string#Amazon Aurora
Not applicable. The character set is managed by the DB cluster. For more information, see AWS::RDS::DBCluster .
copyTagsToSnapshotoptionalboolean | IResolvablecopy_tags_to_snapshotoptionaltyping.Union[bool, IResolvable]copyTagsToSnapshotoptionalBooleanCopyTagsToSnapshotoptionalboolCopyTagsToSnapshotoptionalinterface{}#By default, tags are not copied.
This setting doesn't apply to Amazon Aurora DB instances. 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.
customIamInstanceProfileoptionalstringcustom_iam_instance_profileoptionalstrcustomIamInstanceProfileoptionalStringCustomIamInstanceProfileoptionalstringCustomIamInstanceProfileoptional*string#notes
This setting is required for RDS Custom.
Constraints:
- The profile must exist in your account.
- The profile must have an IAM role that Amazon EC2 has permissions to assume.
- The instance profile name and the associated IAM role name must start with the prefix
AWSRDSCustom.
For the list of permissions required for the IAM role, see Configure IAM and your VPC in the Amazon RDS User Guide .
databaseInsightsModeoptionalstringdatabase_insights_modeoptionalstrdatabaseInsightsModeoptionalStringDatabaseInsightsModeoptionalstringDatabaseInsightsModeoptional*string#Aurora DB instances inherit this value from the DB cluster, so you can't change this value.
dbClusterIdentifieroptionalstring | IDBClusterRefdb_cluster_identifieroptionaltyping.Union[str, IDBClusterRef]dbClusterIdentifieroptionalStringDbClusterIdentifieroptionalstringDbClusterIdentifieroptionalinterface{}#This setting doesn't apply to RDS Custom DB instances.
dbClusterSnapshotIdentifieroptionalstringdb_cluster_snapshot_identifieroptionalstrdbClusterSnapshotIdentifieroptionalStringDbClusterSnapshotIdentifieroptionalstringDbClusterSnapshotIdentifieroptional*string#notes
For more information on Multi-AZ DB clusters, see Multi-AZ DB cluster deployments in the Amazon RDS User Guide .
Constraints:
- Must match the identifier of an existing Multi-AZ DB cluster snapshot.
- Can't be specified when
DBSnapshotIdentifieris specified. - Must be specified when
DBSnapshotIdentifierisn't specified. - If you are restoring from a shared manual Multi-AZ DB cluster snapshot, the
DBClusterSnapshotIdentifiermust be the ARN of the shared snapshot. - Can't be the identifier of an Aurora DB cluster snapshot.
dbInstanceClassoptionalstringdb_instance_classoptionalstrdbInstanceClassoptionalStringDbInstanceClassoptionalstringDbInstanceClassoptional*string#dbInstanceIdentifieroptionalstringdb_instance_identifieroptionalstrdbInstanceIdentifieroptionalStringDbInstanceIdentifieroptionalstringDbInstanceIdentifieroptional*string#notes
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.
dbNameoptionalstringdb_nameoptionalstrdbNameoptionalStringDbNameoptionalstringDbNameoptional*string#notes
If you specify the
[DBSnapshotIdentifier](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-dbsnapshotidentifier)property, this property only applies to RDS for Oracle.
Amazon Aurora
Not applicable. The database name is managed by the DB cluster.
Db2
The name of the database to create when the DB instance is created. If this parameter isn't specified, no database is created in the DB instance.
Constraints:
- Must contain 1 to 64 letters or numbers.
- Must begin with a letter. Subsequent characters can be letters, underscores, or digits (0-9).
- Can't be a word reserved by the specified database engine.
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:
- Must contain 1 to 64 letters or numbers.
- Can't be a word reserved by the specified database engine
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:
- Must contain 1 to 64 letters or numbers.
- Can't be a word reserved by the specified database engine
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:
- Must begin with a letter. Subsequent characters can be letters, underscores, or digits (0-9).
- Must contain 1 to 63 characters.
- Can't be a word reserved by the specified database engine
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:
- Can't be longer than 8 characters
SQL Server
Not applicable. Must be null.
dbParameterGroupNameoptionalstring | IDBParameterGroupRefdb_parameter_group_nameoptionaltyping.Union[str, IDBParameterGroupRef]dbParameterGroupNameoptionalStringDbParameterGroupNameoptionalstringDbParameterGroupNameoptionalinterface{}#notes
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 DBParameterGroupName property, the default DB parameter group for the specified engine and engine version is used.
dbSecurityGroupsoptionalstring[]db_security_groupsoptionaltyping.List[str]dbSecurityGroupsoptionalList<String>DbSecurityGroupsoptionalstring[]DbSecurityGroupsoptional*[]*string#notes
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:
AllocatedStorageAutoMinorVersionUpgradeAvailabilityZoneBackupRetentionPeriodCharacterSetNameDBInstanceClassDBNameDBParameterGroupNameDBSecurityGroupsDBSubnetGroupNameEngineEngineVersionIopsLicenseModelMasterUsernameMasterUserPasswordMultiAZOptionGroupNamePreferredBackupWindowPreferredMaintenanceWindowAll other properties are ignored. Specify a virtual private cloud (VPC) security group if you want to submit other properties, such as
StorageType,StorageEncrypted, orKmsKeyId. If you're already using theDBSecurityGroupsproperty, you can't use these other properties by updating your DB instance to use a VPC security group. You must recreate the DB instance.
dbSnapshotIdentifieroptionalstringdb_snapshot_identifieroptionalstrdbSnapshotIdentifieroptionalStringDbSnapshotIdentifieroptionalstringDbSnapshotIdentifieroptional*string#notes
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, and the point-in-time recovery properties RestoreTime and UseLatestRestorableTime . 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:
CharacterSetNameDBClusterIdentifierDBNameKmsKeyIdMasterUsernameMasterUserPasswordPromotionTierSourceDBInstanceIdentifierSourceRegionStorageEncrypted(for an unencrypted snapshot)Timezone
Amazon Aurora
Not applicable. Snapshot restore is managed by the DB cluster.
dbSubnetGroupNameoptionalstring | IDBSubnetGroupRefdb_subnet_group_nameoptionaltyping.Union[str, IDBSubnetGroupRef]dbSubnetGroupNameoptionalStringDbSubnetGroupNameoptionalstringDbSubnetGroupNameoptionalinterface{}#notes
If you update this value, the new subnet group must be a subnet group in a new VPC.
If you don't specify a DB subnet group, RDS uses the default DB subnet group if one exists. If a default DB subnet group does not exist, and you don't specify a DBSubnetGroupName , the DB instance fails to launch.
For more information about using Amazon RDS in a VPC, see Amazon VPC and Amazon RDS in the Amazon RDS User Guide .
This setting doesn't apply to Amazon Aurora DB instances. The DB subnet group is managed by the DB cluster. If specified, the setting must match the DB cluster setting.
dbSystemIdoptionalstringdb_system_idoptionalstrdbSystemIdoptionalStringDbSystemIdoptionalstringDbSystemIdoptional*string#notes
In this context, the term "Oracle database instance" refers exclusively to the system global area (SGA) and Oracle background processes. If you don't specify a SID, the value defaults to RDSCDB . The Oracle SID is also the name of your CDB.
dedicatedLogVolumeoptionalboolean | IResolvablededicated_log_volumeoptionaltyping.Union[bool, IResolvable]dedicatedLogVolumeoptionalBooleanDedicatedLogVolumeoptionalboolDedicatedLogVolumeoptionalinterface{}#deleteAutomatedBackupsoptionalboolean | IResolvabledelete_automated_backupsoptionaltyping.Union[bool, IResolvable]deleteAutomatedBackupsoptionalBooleanDeleteAutomatedBackupsoptionalboolDeleteAutomatedBackupsoptionalinterface{}#notes
This parameter isn't case-sensitive. The default is to remove automated backups immediately after the DB instance is deleted.
Amazon Aurora
Not applicable. When you delete a DB cluster, all automated backups for that DB cluster are deleted and can't be recovered. Manual DB cluster snapshots of the DB cluster are not deleted.
deletionProtectionoptionalboolean | IResolvabledeletion_protectionoptionaltyping.Union[bool, IResolvable]deletionProtectionoptionalBooleanDeletionProtectionoptionalboolDeletionProtectionoptionalinterface{}#notes
The database can't be deleted when deletion protection is enabled. By default, deletion protection isn't enabled. For more information, see Deleting a DB Instance .
This setting doesn't apply to Amazon Aurora DB instances. 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.
notes
Currently, only Db2, MySQL, 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 .
domainAuthSecretArnoptionalstringdomain_auth_secret_arnoptionalstrdomainAuthSecretArnoptionalStringDomainAuthSecretArnoptionalstringDomainAuthSecretArnoptional*string#Example: arn:aws:secretsmanager:region:account-number:secret:myselfmanagedADtestsecret-123456
domainDnsIpsoptionalstring[]domain_dns_ipsoptionaltyping.List[str]domainDnsIpsoptionalList<String>DomainDnsIpsoptionalstring[]DomainDnsIpsoptional*[]*string#Constraints:
- 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.
Example: 123.124.125.126,234.235.236.237
domainFqdnoptionalstringdomain_fqdnoptionalstrdomainFqdnoptionalStringDomainFqdnoptionalstringDomainFqdnoptional*string#Constraints:
- Can't be longer than 64 characters.
Example: mymanagedADtest.mymanagedAD.mydomain
domainIamRoleNameoptionalstringdomain_iam_role_nameoptionalstrdomainIamRoleNameoptionalStringDomainIamRoleNameoptionalstringDomainIamRoleNameoptional*string#This setting doesn't apply to the following DB instances:
- Amazon Aurora (The domain is managed by the DB cluster.)
- RDS Custom
domainOuoptionalstringdomain_ouoptionalstrdomainOuoptionalStringDomainOuoptionalstringDomainOuoptional*string#Constraints:
- Must be in the distinguished name format.
- Can't be longer than 64 characters.
Example: OU=mymanagedADtestOU,DC=mymanagedADtest,DC=mymanagedAD,DC=mydomain
enableCloudwatchLogsExportsoptionalstring[]enable_cloudwatch_logs_exportsoptionaltyping.List[str]enableCloudwatchLogsExportsoptionalList<String>EnableCloudwatchLogsExportsoptionalstring[]EnableCloudwatchLogsExportsoptional*[]*string#notes
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.
Db2
Valid values: diag.log , notify.log
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 , oemagent
PostgreSQL
Valid values: postgresql , upgrade
enableIamDatabaseAuthenticationoptionalboolean | IResolvableenable_iam_database_authenticationoptionaltyping.Union[bool, IResolvable]enableIamDatabaseAuthenticationoptionalBooleanEnableIamDatabaseAuthenticationoptionalboolEnableIamDatabaseAuthenticationoptionalinterface{}#notes
By default, mapping is disabled.
This property is supported for RDS for MariaDB, RDS for MySQL, and RDS for PostgreSQL. For more information, see IAM Database Authentication for MariaDB, 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.
enablePerformanceInsightsoptionalboolean | IResolvableenable_performance_insightsoptionaltyping.Union[bool, IResolvable]enablePerformanceInsightsoptionalBooleanEnablePerformanceInsightsoptionalboolEnablePerformanceInsightsoptionalinterface{}#For more information, see Using Amazon Performance Insights in the Amazon RDS User Guide .
This setting doesn't apply to RDS Custom DB instances.
notes
Not every database engine is available in every AWS Region.
This property is required when creating a DB instance.
You can convert an Oracle database from the non-CDB architecture to the container database (CDB) architecture by updating the
Enginevalue in your templates fromoracle-eetooracle-ee-cdbor fromoracle-se2tooracle-se2-cdb. Converting to the CDB architecture requires an interruption.
Valid Values:
aurora-mysql(for Aurora MySQL DB instances)aurora-postgresql(for Aurora PostgreSQL DB instances)custom-oracle-ee(for RDS Custom for Oracle DB instances)custom-oracle-ee-cdb(for RDS Custom for Oracle DB instances)custom-sqlserver-ee(for RDS Custom for SQL Server DB instances)custom-sqlserver-se(for RDS Custom for SQL Server DB instances)custom-sqlserver-web(for RDS Custom for SQL Server DB instances)db2-aedb2-semariadbmysqloracle-eeoracle-ee-cdboracle-se2oracle-se2-cdbpostgressqlserver-eesqlserver-sesqlserver-exsqlserver-web
engineLifecycleSupportoptionalstringengine_lifecycle_supportoptionalstrengineLifecycleSupportoptionalStringEngineLifecycleSupportoptionalstringEngineLifecycleSupportoptional*string#notes
By default, this value is set to
open-source-rds-extended-support, which enrolls your DB instance into Amazon RDS Extended Support. At the end of standard support, you can avoid charges for Extended Support by setting the value toopen-source-rds-extended-support-disabled. In this case, creating the DB instance will fail if the DB major version is past its end of standard support date.
This setting applies only to RDS for MySQL and RDS for PostgreSQL. For Amazon Aurora DB instances, the life cycle type is managed by the DB cluster.
You can use this setting to enroll your DB instance into Amazon RDS Extended Support. With RDS Extended Support, you can run the selected major engine version on your DB instance past the end of standard support for that engine version. For more information, see Amazon RDS Extended Support with Amazon RDS in the Amazon RDS User Guide .
Valid Values: open-source-rds-extended-support | open-source-rds-extended-support-disabled
Default: open-source-rds-extended-support
engineVersionoptionalstringengine_versionoptionalstrengineVersionoptionalStringEngineVersionoptionalstringEngineVersionoptional*string#notes
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.
Db2
See Amazon RDS for Db2 in the Amazon RDS User Guide.
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.
notes
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
io1for theStorageTypeproperty, then you must also specify theIopsproperty.
Constraints:
- For RDS for Db2, MariaDB, MySQL, Oracle, and PostgreSQL - Must be a multiple between .5 and 50 of the storage amount for the DB instance.
- For RDS for SQL Server - Must be a multiple between 1 and 50 of the storage amount for the DB instance.
kmsKeyIdoptionalstring | IKeyRefkms_key_idoptionaltyping.Union[str, IKeyRef]kmsKeyIdoptionalStringKmsKeyIdoptionalstringKmsKeyIdoptionalinterface{}#notes
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 or SourceDbiResourceId 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. However, if the source DB instance is in a different AWS Region, you must specify a KMS key ID.
If you specify the SourceDBInstanceAutomatedBackupsArn property, don't specify this property. The value is inherited from the source DB instance automated backup, and if the automated backup is encrypted, the specified KmsKeyId property is used.
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 DBSnapshotIdentifier property, don't specify this property. The StorageEncrypted property value is inherited from the snapshot. If the DB instance is encrypted, the specified KmsKeyId property is also inherited from the snapshot.
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.
licenseModeloptionalstringlicense_modeloptionalstrlicenseModeloptionalStringLicenseModeloptionalstringLicenseModeloptional*string#notes
Valid Values:
- Aurora MySQL -
general-public-license - Aurora PostgreSQL -
postgresql-license - RDS for Db2 -
bring-your-own-license. For more information about RDS for Db2 licensing, see in the Amazon RDS User Guide. - 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-licenseorlicense-included - RDS for PostgreSQL -
postgresql-license
If you've specified
DBSecurityGroupsand then you update the license model, AWS CloudFormation replaces the underlying DB instance. This will incur some interruptions to database availability.
manageMasterUserPasswordoptionalboolean | IResolvablemanage_master_user_passwordoptionaltyping.Union[bool, IResolvable]manageMasterUserPasswordoptionalBooleanManageMasterUserPasswordoptionalboolManageMasterUserPasswordoptionalinterface{}#notes
For more information, see Password management with AWS Secrets Manager in the Amazon RDS User Guide.
Constraints:
- Can't manage the master user password with AWS Secrets Manager if
MasterUserPasswordis specified.
masterUserAuthenticationTypeoptionalstringmaster_user_authentication_typeoptionalstrmasterUserAuthenticationTypeoptionalStringMasterUserAuthenticationTypeoptionalstringMasterUserAuthenticationTypeoptional*string#notes
With IAM master user authentication, you can configure the master DB user with IAM database authentication when you create a DB instance.
You can specify one of the following values:
password- Use standard database authentication with a password.iam-db-auth- Use IAM database authentication for the master user.
This option is only valid for RDS for MySQL, RDS for MariaDB, RDS for PostgreSQL, Aurora MySQL, and Aurora PostgreSQL engines.
masterUsernameoptionalstringmaster_usernameoptionalstrmasterUsernameoptionalStringMasterUsernameoptionalstringMasterUsernameoptional*string#notes
If you specify the
SourceDBInstanceIdentifierorDBSnapshotIdentifierproperty, don't specify this property. The value is inherited from the source DB instance or snapshot.When migrating a self-managed Db2 database, we recommend that you use the same master username as your self-managed Db2 instance name.
Amazon Aurora
Not applicable. The name for the master user is managed by the DB cluster.
RDS for Db2
Constraints:
- Must be 1 to 16 letters or numbers.
- First character must be a letter.
- Can't be a reserved word for the chosen database engine.
RDS for MariaDB
Constraints:
- Must be 1 to 16 letters or numbers.
- Can't be a reserved word for the chosen database engine.
RDS for Microsoft SQL Server
Constraints:
- Must be 1 to 128 letters or numbers.
- First character must be a letter.
- Can't be a reserved word for the chosen database engine.
RDS for MySQL
Constraints:
- Must be 1 to 16 letters or numbers.
- First character must be a letter.
- Can't be a reserved word for the chosen database engine.
RDS for Oracle
Constraints:
- Must be 1 to 30 letters or numbers.
- First character must be a letter.
- Can't be a reserved word for the chosen database engine.
RDS for PostgreSQL
Constraints:
- Must be 1 to 63 letters or numbers.
- First character must be a letter.
- Can't be a reserved word for the chosen database engine.
masterUserPasswordoptionalstringmaster_user_passwordoptionalstrmasterUserPasswordoptionalStringMasterUserPasswordoptionalstringMasterUserPasswordoptional*string#notes
Amazon Aurora
Not applicable. The password for the master user is managed by the DB cluster.
RDS for Db2
Must contain from 8 to 255 characters.
RDS for MariaDB
Constraints: Must contain from 8 to 41 characters.
RDS for Microsoft SQL Server
Constraints: Must contain from 8 to 128 characters.
RDS for MySQL
Constraints: Must contain from 8 to 41 characters.
RDS for Oracle
Constraints: Must contain from 8 to 30 characters.
RDS for PostgreSQL
Constraints: Must contain from 8 to 128 characters.
masterUserSecretoptionalIResolvable | CfnDBInstance.MasterUserSecretPropertymaster_user_secretoptionaltyping.Union[IResolvable, MasterUserSecretProperty]masterUserSecretoptionalIResolvableMasterUserSecretoptionalIResolvableMasterUserSecretoptionalinterface{}#For more information, see Password management with AWS Secrets Manager in the Amazon RDS User Guide.
maxAllocatedStorageoptionalnumbermax_allocated_storageoptionalint | floatmaxAllocatedStorageoptionalNumberMaxAllocatedStorageoptionaldoubleMaxAllocatedStorageoptional*float64#notes
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 the following DB instances:
- Amazon Aurora (Storage is managed by the DB cluster.)
- RDS Custom
monitoringIntervaloptionalnumbermonitoring_intervaloptionalint | floatmonitoringIntervaloptionalNumberMonitoringIntervaloptionaldoubleMonitoringIntervaloptional*float64#notes
To disable collection of Enhanced Monitoring metrics, specify 0 .
If MonitoringRoleArn is specified, then you must set MonitoringInterval to a value other than 0 .
This setting doesn't apply to RDS Custom DB instances.
Valid Values: 0 | 1 | 5 | 10 | 15 | 30 | 60
Default: 0
monitoringRoleArnoptionalstring | IRoleRefmonitoring_role_arnoptionaltyping.Union[str, IRoleRef]monitoringRoleArnoptionalStringMonitoringRoleArnoptionalstringMonitoringRoleArnoptionalinterface{}#notes
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 DB instances.
multiAzoptionalboolean | IResolvablemulti_azoptionaltyping.Union[bool, IResolvable]multiAzoptionalBooleanMultiAzoptionalboolMultiAzoptionalinterface{}#You can't set the AvailabilityZone parameter if the DB instance is a Multi-AZ deployment.
This setting doesn't apply to Amazon Aurora because the DB instance Availability Zones (AZs) are managed by the DB cluster.
ncharCharacterSetNameoptionalstringnchar_character_set_nameoptionalstrncharCharacterSetNameoptionalStringNcharCharacterSetNameoptionalstringNcharCharacterSetNameoptional*string#This setting doesn't apply to RDS Custom DB instances.
networkTypeoptionalstringnetwork_typeoptionalstrnetworkTypeoptionalStringNetworkTypeoptionalstringNetworkTypeoptional*string#notes
Valid values:
IPV4DUAL
The network type is determined by the DBSubnetGroup specified for the DB instance. A DBSubnetGroup can support only the IPv4 protocol or the IPv4 and IPv6 protocols ( DUAL ).
For more information, see Working with a DB instance in a VPC in the Amazon RDS User Guide.
optionGroupNameoptionalstringoption_group_nameoptionalstroptionGroupNameoptionalStringOptionGroupNameoptionalstringOptionGroupNameoptional*string#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.
performanceInsightsKmsKeyIdoptionalstring | IKeyRefperformance_insights_kms_key_idoptionaltyping.Union[str, IKeyRef]performanceInsightsKmsKeyIdoptionalStringPerformanceInsightsKmsKeyIdoptionalstringPerformanceInsightsKmsKeyIdoptionalinterface{}#notes
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 .
performanceInsightsRetentionPeriodoptionalnumberperformance_insights_retention_periodoptionalint | floatperformanceInsightsRetentionPeriodoptionalNumberPerformanceInsightsRetentionPeriodoptionaldoublePerformanceInsightsRetentionPeriodoptional*float64#notes
When creating a DB instance without enabling Performance Insights, you can't specify the parameter PerformanceInsightsRetentionPeriod .
This setting doesn't apply to RDS Custom DB instances.
Valid Values:
7- month * 31, where month is a number of months from 1-23. Examples:
93(3 months * 31),341(11 months * 31),589(19 months * 31) 731
Default: 7 days
If you specify a retention period that isn't valid, such as 94 , Amazon RDS returns an error.
notes
This setting doesn't apply to Aurora DB instances. The port number is managed by the cluster.
Valid Values: 1150-65535
Default:
- RDS for Db2 -
50000 - RDS for MariaDB -
3306 - RDS for Microsoft SQL Server -
1433 - RDS for MySQL -
3306 - RDS for Oracle -
1521 - RDS for PostgreSQL -
5432
Constraints:
- For RDS for Microsoft SQL Server, the value can't be
1234,1434,3260,3343,3389,47001, or49152-49156.
preferredBackupWindowoptionalstringpreferred_backup_windowoptionalstrpreferredBackupWindowoptionalStringPreferredBackupWindowoptionalstringPreferredBackupWindowoptional*string#notes
For more information, see Backup Window in the Amazon RDS User Guide.
Constraints:
- Must be in the format
hh24:mi-hh24:mi. - Must be in Universal Coordinated Time (UTC).
- Must not conflict with the preferred maintenance window.
- Must be at least 30 minutes.
Amazon Aurora
Not applicable. The daily time range for creating automated backups is managed by the DB cluster.
preferredMaintenanceWindowoptionalstringpreferred_maintenance_windowoptionalstrpreferredMaintenanceWindowoptionalStringPreferredMaintenanceWindowoptionalstringPreferredMaintenanceWindowoptional*string#notes
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 Maintaining a DB instance 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.
processorFeaturesoptionalIResolvable | IResolvable | CfnDBInstance.ProcessorFeatureProperty[]processor_featuresoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, ProcessorFeatureProperty]]]processorFeaturesoptionalIResolvableProcessorFeaturesoptionalIResolvableProcessorFeaturesoptionalinterface{}#This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.
promotionTieroptionalnumberpromotion_tieroptionalint | floatpromotionTieroptionalNumberPromotionTieroptionaldoublePromotionTieroptional*float64#notes
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 DB instances.
Default: 1
Valid Values: 0 - 15
publiclyAccessibleoptionalboolean | IResolvablepublicly_accessibleoptionaltyping.Union[bool, IResolvable]publiclyAccessibleoptionalBooleanPubliclyAccessibleoptionalboolPubliclyAccessibleoptionalinterface{}#notes
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 the CreateDBInstance in the Amazon RDS API Reference .
replicaModeoptionalstringreplica_modeoptionalstrreplicaModeoptionalStringReplicaModeoptionalstringReplicaModeoptional*string#notes
For more information, see Working with Oracle Read Replicas for Amazon RDS in the Amazon RDS User Guide .
This setting is only supported in RDS for Oracle.
Default: open-read-only
Valid Values: open-read-only or mounted
restoreTimeoptionalstringrestore_timeoptionalstrrestoreTimeoptionalStringRestoreTimeoptionalstringRestoreTimeoptional*string#notes
This parameter applies to point-in-time recovery. For more information, see Restoring a DB instance to a specified time in the in the Amazon RDS User Guide .
Constraints:
- Must be a time in Universal Coordinated Time (UTC) format.
- Must be before the latest restorable time for the DB instance.
- Can't be specified if the
UseLatestRestorableTimeparameter is enabled.
Example: 2009-09-07T23:45:00Z
sourceDbClusterIdentifieroptionalstringsource_db_cluster_identifieroptionalstrsourceDbClusterIdentifieroptionalStringSourceDbClusterIdentifieroptionalstringSourceDbClusterIdentifieroptional*string#notes
Each DB cluster can have up to 15 read replicas.
Constraints:
- Must be the identifier of an existing Multi-AZ DB cluster.
- Can't be specified if the
SourceDBInstanceIdentifierparameter is also specified. - The specified DB cluster must have automatic backups enabled, that is, its backup retention period must be greater than 0.
- The source DB cluster must be in the same AWS Region as the read replica. Cross-Region replication isn't supported.
sourceDbInstanceAutomatedBackupsArnoptionalstringsource_db_instance_automated_backups_arnoptionalstrsourceDbInstanceAutomatedBackupsArnoptionalStringSourceDbInstanceAutomatedBackupsArnoptionalstringSourceDbInstanceAutomatedBackupsArnoptional*string#This setting doesn't apply to RDS Custom.
sourceDbInstanceIdentifieroptionalstring | IDBInstanceRefsource_db_instance_identifieroptionaltyping.Union[str, IDBInstanceRef]sourceDbInstanceIdentifieroptionalStringSourceDbInstanceIdentifieroptionalstringSourceDbInstanceIdentifieroptionalinterface{}#notes
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 promotes the read replica to a standalone DB instance.
If you specify the UseLatestRestorableTime or RestoreTime properties in conjunction with the SourceDBInstanceIdentifier property, RDS restores the DB instance to the requested point in time, thereby creating a new DB instance.
- If you specify a source DB instance that uses VPC security groups, we recommend that you specify the
VPCSecurityGroupsproperty. If you don't specify the property, the read replica inherits the value of theVPCSecurityGroupsproperty from the source DB when you create the replica. However, if you update the stack, AWS CloudFormation reverts the replica'sVPCSecurityGroupsproperty to the default value because it's not defined in the stack's template. This change might cause unexpected issues.- Read replicas don't support deletion policies. AWS CloudFormation ignores any deletion policy that's associated with a read replica.
- If you specify
SourceDBInstanceIdentifier, don't specify theDBSnapshotIdentifierproperty. You can't create a read replica from a snapshot.- Don't set the
BackupRetentionPeriod,DBName,MasterUsername,MasterUserPassword, andPreferredBackupWindowproperties. The database attributes are inherited from the source DB instance, and backups are disabled for read replicas.- If the source DB instance is in a different region than the read replica, specify the source region in
SourceRegion, and specify an ARN for a valid DB instance inSourceDBInstanceIdentifier. For more information, see Constructing a Amazon RDS Amazon Resource Name (ARN) in the Amazon RDS User Guide .- For DB instances in Amazon Aurora clusters, don't specify this property. Amazon RDS automatically assigns writer and reader DB instances.
sourceDbiResourceIdoptionalstringsource_dbi_resource_idoptionalstrsourceDbiResourceIdoptionalStringSourceDbiResourceIdoptionalstringSourceDbiResourceIdoptional*string#sourceRegionoptionalstringsource_regionoptionalstrsourceRegionoptionalStringSourceRegionoptionalstringSourceRegionoptional*string#storageEncryptedoptionalboolean | IResolvablestorage_encryptedoptionaltyping.Union[bool, IResolvable]storageEncryptedoptionalBooleanStorageEncryptedoptionalboolStorageEncryptedoptionalinterface{}#notes
If you specify the KmsKeyId property, then you must enable encryption.
If you specify the SourceDBInstanceIdentifier or SourceDbiResourceId 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 SourceDBInstanceAutomatedBackupsArn property, don't specify this property. The value is inherited from the source DB instance automated backup.
If you specify DBSnapshotIdentifier property, don't specify this property. The value is inherited from the snapshot.
Amazon Aurora
Not applicable. The encryption for DB instances is managed by the DB cluster.
storageThroughputoptionalnumberstorage_throughputoptionalint | floatstorageThroughputoptionalNumberStorageThroughputoptionaldoubleStorageThroughputoptional*float64#This setting applies only to the gp3 storage type.
This setting doesn't apply to RDS Custom or Amazon Aurora.
storageTypeoptionalstringstorage_typeoptionalstrstorageTypeoptionalStringStorageTypeoptionalstringStorageTypeoptional*string#notes
If you specify io1 , io2 , or gp3 , you must also include a value for the Iops parameter.
This setting doesn't apply to Amazon Aurora DB instances. Storage is managed by the DB cluster.
Valid Values: gp2 | gp3 | io1 | io2 | standard
Default: io1 , if the Iops parameter is specified. Otherwise, gp3 .
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag#tdeCredentialArnoptionalstringtde_credential_arnoptionalstrtdeCredentialArnoptionalStringTdeCredentialArnoptionalstringTdeCredentialArnoptional*stringdeprecated#tdeCredentialPasswordoptionalstringtde_credential_passwordoptionalstrtdeCredentialPasswordoptionalStringTdeCredentialPasswordoptionalstringTdeCredentialPasswordoptional*stringdeprecated#timezoneoptionalstringtimezoneoptionalstrtimezoneoptionalStringTimezoneoptionalstringTimezoneoptional*string#notes
The time zone parameter is currently supported only by RDS for Db2 and RDS for SQL Server .
useDefaultProcessorFeaturesoptionalboolean | IResolvableuse_default_processor_featuresoptionaltyping.Union[bool, IResolvable]useDefaultProcessorFeaturesoptionalBooleanUseDefaultProcessorFeaturesoptionalboolUseDefaultProcessorFeaturesoptionalinterface{}#This setting doesn't apply to RDS Custom DB instances.
useLatestRestorableTimeoptionalboolean | IResolvableuse_latest_restorable_timeoptionaltyping.Union[bool, IResolvable]useLatestRestorableTimeoptionalBooleanUseLatestRestorableTimeoptionalboolUseLatestRestorableTimeoptionalinterface{}#notes
By default, the DB instance isn't restored from the latest backup time. This parameter applies to point-in-time recovery. For more information, see Restoring a DB instance to a specified time in the in the Amazon RDS User Guide .
Constraints:
- Can't be specified if the
RestoreTimeparameter is provided.
vpcSecurityGroupsoptionalstring | ISecurityGroupRef[]vpc_security_groupsoptionaltyping.List[typing.Union[str, ISecurityGroupRef]]vpcSecurityGroupsoptionalList<String>VpcSecurityGroupsoptionalstring[]VpcSecurityGroupsoptional*[]interface{}#notes
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:
- You can't revert to using an RDS security group after you establish a VPC security group membership.
- When you migrate your DB instance to VPC security groups, if your stack update rolls back because the DB instance update fails or because an update fails in another AWS CloudFormation resource, the rollback fails because it can't revert to an RDS security group.
- To use the properties that are available when you use a VPC security group, you must recreate the DB instance. If you don't, AWS CloudFormation submits only the property values that are listed in the
DBSecurityGroupsproperty.
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.
Properties
additionalStorageVolumesmay be undefinedIResolvable | IResolvable | CfnDBInstance.AdditionalStorageVolumeProperty[]additional_storage_volumesmay be undefinedtyping.Union[IResolvable, typing.List[typing.Union[IResolvable, AdditionalStorageVolumeProperty]]]additionalStorageVolumesmay be undefinedIResolvableAdditionalStorageVolumesmay be undefinedIResolvableAdditionalStorageVolumesmay be undefinedinterface{}#allocatedStoragemay be undefinedstringallocated_storagemay be undefinedstrallocatedStoragemay be undefinedStringAllocatedStoragemay be undefinedstringAllocatedStoragemay be undefined*string#allowMajorVersionUpgrademay be undefinedboolean | IResolvableallow_major_version_upgrademay be undefinedtyping.Union[bool, IResolvable]allowMajorVersionUpgrademay be undefinedBooleanAllowMajorVersionUpgrademay be undefinedboolAllowMajorVersionUpgrademay be undefinedinterface{}#applyImmediatelymay be undefinedboolean | IResolvableapply_immediatelymay be undefinedtyping.Union[bool, IResolvable]applyImmediatelymay be undefinedBooleanApplyImmediatelymay be undefinedboolApplyImmediatelymay be undefinedinterface{}#associatedRolesmay be undefinedIResolvable | IResolvable | CfnDBInstance.DBInstanceRoleProperty[]associated_rolesmay be undefinedtyping.Union[IResolvable, typing.List[typing.Union[IResolvable, DBInstanceRoleProperty]]]associatedRolesmay be undefinedIResolvableAssociatedRolesmay be undefinedIResolvableAssociatedRolesmay be undefinedinterface{}#attrAutomaticRestartTimestringattr_automatic_restart_timestrattrAutomaticRestartTimeStringAttrAutomaticRestartTimestringAttrAutomaticRestartTime*string#attrCertificateDetailsIResolvableattr_certificate_detailsIResolvableattrCertificateDetailsIResolvableAttrCertificateDetailsIResolvableAttrCertificateDetailsIResolvable#notes
For more information, see Using SSL/TLS to encrypt a connection to a DB instance in the Amazon RDS User Guide and Using SSL/TLS to encrypt a connection to a DB cluster in the Amazon Aurora User Guide.
attrCertificateDetailsCaIdentifierstringattr_certificate_details_ca_identifierstrattrCertificateDetailsCaIdentifierStringAttrCertificateDetailsCaIdentifierstringAttrCertificateDetailsCaIdentifier*string#attrCertificateDetailsValidTillstringattr_certificate_details_valid_tillstrattrCertificateDetailsValidTillStringAttrCertificateDetailsValidTillstringAttrCertificateDetailsValidTill*string#attrDbInstanceArnstringattr_db_instance_arnstrattrDbInstanceArnStringAttrDbInstanceArnstringAttrDbInstanceArn*string#attrDbInstanceStatusstringattr_db_instance_statusstrattrDbInstanceStatusStringAttrDbInstanceStatusstringAttrDbInstanceStatus*string#attrDbiResourceIdstringattr_dbi_resource_idstrattrDbiResourceIdStringAttrDbiResourceIdstringAttrDbiResourceId*string#This identifier is found in AWS CloudTrail log entries whenever the AWS KMS key for the DB instance is accessed.
attrDbSystemIdstringattr_db_system_idstrattrDbSystemIdStringAttrDbSystemIdstringAttrDbSystemId*string#The Oracle SID is also the name of the CDB.
This setting is valid for RDS Custom only.
attrEndpointIResolvableattr_endpointIResolvableattrEndpointIResolvableAttrEndpointIResolvableAttrEndpointIResolvable#notes
This data type is used as a response element in the following actions:
CreateDBInstanceDescribeDBInstancesDeleteDBInstance
For the data structure that represents Amazon Aurora DB cluster endpoints, see DBClusterEndpoint.
attrEndpointAddressstringattr_endpoint_addressstrattrEndpointAddressStringAttrEndpointAddressstringAttrEndpointAddress*string#For Aurora Serverless DB clusters, the connection endpoint only applies to the DB cluster.
attrEndpointHostedZoneIdstringattr_endpoint_hosted_zone_idstrattrEndpointHostedZoneIdStringAttrEndpointHostedZoneIdstringAttrEndpointHostedZoneId*string#attrEndpointPortstringattr_endpoint_portstrattrEndpointPortStringAttrEndpointPortstringAttrEndpointPort*string#For example: 3306
attrInstanceCreateTimestringattr_instance_create_timestrattrInstanceCreateTimeStringAttrInstanceCreateTimestringAttrInstanceCreateTime*string#attrIsStorageConfigUpgradeAvailableIResolvableattr_is_storage_config_upgrade_availableIResolvableattrIsStorageConfigUpgradeAvailableIResolvableAttrIsStorageConfigUpgradeAvailableIResolvableAttrIsStorageConfigUpgradeAvailableIResolvable#attrLatestRestorableTimestringattr_latest_restorable_timestrattrLatestRestorableTimeStringAttrLatestRestorableTimestringAttrLatestRestorableTime*string#attrListenerEndpointIResolvableattr_listener_endpointIResolvableattrListenerEndpointIResolvableAttrListenerEndpointIResolvableAttrListenerEndpointIResolvable#notes
This data type is used as a response element in the following actions:
CreateDBInstanceDescribeDBInstancesDeleteDBInstance
For the data structure that represents Amazon Aurora DB cluster endpoints, see DBClusterEndpoint.
attrListenerEndpointAddressstringattr_listener_endpoint_addressstrattrListenerEndpointAddressStringAttrListenerEndpointAddressstringAttrListenerEndpointAddress*string#attrListenerEndpointHostedZoneIdstringattr_listener_endpoint_hosted_zone_idstrattrListenerEndpointHostedZoneIdStringAttrListenerEndpointHostedZoneIdstringAttrListenerEndpointHostedZoneId*string#attrListenerEndpointPortstringattr_listener_endpoint_portstrattrListenerEndpointPortStringAttrListenerEndpointPortstringAttrListenerEndpointPort*string#attrMasterUserSecretSecretArnstringattr_master_user_secret_secret_arnstrattrMasterUserSecretSecretArnStringAttrMasterUserSecretSecretArnstringAttrMasterUserSecretSecretArn*string#notes
This parameter is a return value that you can retrieve using the Fn::GetAtt intrinsic function. For more information, see Return values .
attrPercentProgressstringattr_percent_progressstrattrPercentProgressStringAttrPercentProgressstringAttrPercentProgress*string#attrReadReplicaDbClusterIdentifiersstring[]attr_read_replica_db_cluster_identifierstyping.List[str]attrReadReplicaDbClusterIdentifiersList<String>AttrReadReplicaDbClusterIdentifiersstring[]AttrReadReplicaDbClusterIdentifiers*[]*string#attrReadReplicaDbInstanceIdentifiersstring[]attr_read_replica_db_instance_identifierstyping.List[str]attrReadReplicaDbInstanceIdentifiersList<String>AttrReadReplicaDbInstanceIdentifiersstring[]AttrReadReplicaDbInstanceIdentifiers*[]*string#attrResumeFullAutomationModeTimestringattr_resume_full_automation_mode_timestrattrResumeFullAutomationModeTimeStringAttrResumeFullAutomationModeTimestringAttrResumeFullAutomationModeTime*string#When the time period ends, RDS Custom resumes full automation. The minimum value is 60 (default). The maximum value is 1,440.
attrSecondaryAvailabilityZonestringattr_secondary_availability_zonestrattrSecondaryAvailabilityZoneStringAttrSecondaryAvailabilityZonestringAttrSecondaryAvailabilityZone*string#attrStatusInfosIResolvableattr_status_infosIResolvableattrStatusInfosIResolvableAttrStatusInfosIResolvableAttrStatusInfosIResolvable#If the DB instance isn't a read replica, the value is blank.
attrStorageOperationPercentProgressnumberattr_storage_operation_percent_progressint | floatattrStorageOperationPercentProgressNumberAttrStorageOperationPercentProgressdoubleAttrStorageOperationPercentProgress*float64#attrStorageOperationStatusstringattr_storage_operation_statusstrattrStorageOperationStatusStringAttrStorageOperationStatusstringAttrStorageOperationStatus*string#automaticBackupReplicationKmsKeyIdmay be undefinedstringautomatic_backup_replication_kms_key_idmay be undefinedstrautomaticBackupReplicationKmsKeyIdmay be undefinedStringAutomaticBackupReplicationKmsKeyIdmay be undefinedstringAutomaticBackupReplicationKmsKeyIdmay be undefined*string#automaticBackupReplicationRegionmay be undefinedstringautomatic_backup_replication_regionmay be undefinedstrautomaticBackupReplicationRegionmay be undefinedStringAutomaticBackupReplicationRegionmay be undefinedstringAutomaticBackupReplicationRegionmay be undefined*string#automaticBackupReplicationRetentionPeriodmay be undefinednumberautomatic_backup_replication_retention_periodmay be undefinedint | floatautomaticBackupReplicationRetentionPeriodmay be undefinedNumberAutomaticBackupReplicationRetentionPeriodmay be undefineddoubleAutomaticBackupReplicationRetentionPeriodmay be undefined*float64#autoMinorVersionUpgrademay be undefinedboolean | IResolvableauto_minor_version_upgrademay be undefinedtyping.Union[bool, IResolvable]autoMinorVersionUpgrademay be undefinedBooleanAutoMinorVersionUpgrademay be undefinedboolAutoMinorVersionUpgrademay be undefinedinterface{}#availabilityZonemay be undefinedstringavailability_zonemay be undefinedstravailabilityZonemay be undefinedStringAvailabilityZonemay be undefinedstringAvailabilityZonemay be undefined*string#backupRetentionPeriodmay be undefinednumberbackup_retention_periodmay be undefinedint | floatbackupRetentionPeriodmay be undefinedNumberBackupRetentionPeriodmay be undefineddoubleBackupRetentionPeriodmay be undefined*float64#backupTargetmay be undefinedstringbackup_targetmay be undefinedstrbackupTargetmay be undefinedStringBackupTargetmay be undefinedstringBackupTargetmay be undefined*string#caCertificateIdentifiermay be undefinedstringca_certificate_identifiermay be undefinedstrcaCertificateIdentifiermay be undefinedStringCaCertificateIdentifiermay be undefinedstringCaCertificateIdentifiermay be undefined*string#certificateRotationRestartmay be undefinedboolean | IResolvablecertificate_rotation_restartmay be undefinedtyping.Union[bool, IResolvable]certificateRotationRestartmay be undefinedBooleanCertificateRotationRestartmay be undefinedboolCertificateRotationRestartmay be undefinedinterface{}#CFN_RESOURCE_TYPE_NAMEstringcfn_resource_type_namestrCFN_RESOURCE_TYPE_NAMEStringCFN_RESOURCE_TYPE_NAMEstringCFN_RESOURCE_TYPE_NAME*stringstatic#cfnOptionsICfnResourceOptionscfn_optionsICfnResourceOptionscfnOptionsICfnResourceOptionsCfnOptionsICfnResourceOptionsCfnOptionsICfnResourceOptions#cfnResourceTypestringcfn_resource_typestrcfnResourceTypeStringCfnResourceTypestringCfnResourceType*string#characterSetNamemay be undefinedstringcharacter_set_namemay be undefinedstrcharacterSetNamemay be undefinedStringCharacterSetNamemay be undefinedstringCharacterSetNamemay be undefined*string#copyTagsToSnapshotmay be undefinedboolean | IResolvablecopy_tags_to_snapshotmay be undefinedtyping.Union[bool, IResolvable]copyTagsToSnapshotmay be undefinedBooleanCopyTagsToSnapshotmay be undefinedboolCopyTagsToSnapshotmay be undefinedinterface{}#creationStackstring[]creation_stacktyping.List[str]creationStackList<String>CreationStackstring[]CreationStack*[]*string#customIamInstanceProfilemay be undefinedstringcustom_iam_instance_profilemay be undefinedstrcustomIamInstanceProfilemay be undefinedStringCustomIamInstanceProfilemay be undefinedstringCustomIamInstanceProfilemay be undefined*string#databaseInsightsModemay be undefinedstringdatabase_insights_modemay be undefinedstrdatabaseInsightsModemay be undefinedStringDatabaseInsightsModemay be undefinedstringDatabaseInsightsModemay be undefined*string#dbClusterIdentifiermay be undefinedstringdb_cluster_identifiermay be undefinedstrdbClusterIdentifiermay be undefinedStringDbClusterIdentifiermay be undefinedstringDbClusterIdentifiermay be undefined*string#dbClusterSnapshotIdentifiermay be undefinedstringdb_cluster_snapshot_identifiermay be undefinedstrdbClusterSnapshotIdentifiermay be undefinedStringDbClusterSnapshotIdentifiermay be undefinedstringDbClusterSnapshotIdentifiermay be undefined*string#dbInstanceClassmay be undefinedstringdb_instance_classmay be undefinedstrdbInstanceClassmay be undefinedStringDbInstanceClassmay be undefinedstringDbInstanceClassmay be undefined*string#dbInstanceIdentifiermay be undefinedstringdb_instance_identifiermay be undefinedstrdbInstanceIdentifiermay be undefinedStringDbInstanceIdentifiermay be undefinedstringDbInstanceIdentifiermay be undefined*string#dbInstanceRefDBInstanceReferencedb_instance_refDBInstanceReferencedbInstanceRefDBInstanceReferenceDbInstanceRefDBInstanceReferenceDbInstanceRefDBInstanceReference#dbNamemay be undefinedstringdb_namemay be undefinedstrdbNamemay be undefinedStringDbNamemay be undefinedstringDbNamemay be undefined*string#dbParameterGroupNamemay be undefinedstringdb_parameter_group_namemay be undefinedstrdbParameterGroupNamemay be undefinedStringDbParameterGroupNamemay be undefinedstringDbParameterGroupNamemay be undefined*string#dbSecurityGroupsmay be undefinedstring[]db_security_groupsmay be undefinedtyping.List[str]dbSecurityGroupsmay be undefinedList<String>DbSecurityGroupsmay be undefinedstring[]DbSecurityGroupsmay be undefined*[]*string#dbSnapshotIdentifiermay be undefinedstringdb_snapshot_identifiermay be undefinedstrdbSnapshotIdentifiermay be undefinedStringDbSnapshotIdentifiermay be undefinedstringDbSnapshotIdentifiermay be undefined*string#dbSubnetGroupNamemay be undefinedstringdb_subnet_group_namemay be undefinedstrdbSubnetGroupNamemay be undefinedStringDbSubnetGroupNamemay be undefinedstringDbSubnetGroupNamemay be undefined*string#dbSystemIdmay be undefinedstringdb_system_idmay be undefinedstrdbSystemIdmay be undefinedStringDbSystemIdmay be undefinedstringDbSystemIdmay be undefined*string#dedicatedLogVolumemay be undefinedboolean | IResolvablededicated_log_volumemay be undefinedtyping.Union[bool, IResolvable]dedicatedLogVolumemay be undefinedBooleanDedicatedLogVolumemay be undefinedboolDedicatedLogVolumemay be undefinedinterface{}#deleteAutomatedBackupsmay be undefinedboolean | IResolvabledelete_automated_backupsmay be undefinedtyping.Union[bool, IResolvable]deleteAutomatedBackupsmay be undefinedBooleanDeleteAutomatedBackupsmay be undefinedboolDeleteAutomatedBackupsmay be undefinedinterface{}#deletionProtectionmay be undefinedboolean | IResolvabledeletion_protectionmay be undefinedtyping.Union[bool, IResolvable]deletionProtectionmay be undefinedBooleanDeletionProtectionmay be undefinedboolDeletionProtectionmay be undefinedinterface{}#domainmay be undefinedstringdomainmay be undefinedstrdomainmay be undefinedStringDomainmay be undefinedstringDomainmay be undefined*string#domainAuthSecretArnmay be undefinedstringdomain_auth_secret_arnmay be undefinedstrdomainAuthSecretArnmay be undefinedStringDomainAuthSecretArnmay be undefinedstringDomainAuthSecretArnmay be undefined*string#domainDnsIpsmay be undefinedstring[]domain_dns_ipsmay be undefinedtyping.List[str]domainDnsIpsmay be undefinedList<String>DomainDnsIpsmay be undefinedstring[]DomainDnsIpsmay be undefined*[]*string#domainFqdnmay be undefinedstringdomain_fqdnmay be undefinedstrdomainFqdnmay be undefinedStringDomainFqdnmay be undefinedstringDomainFqdnmay be undefined*string#domainIamRoleNamemay be undefinedstringdomain_iam_role_namemay be undefinedstrdomainIamRoleNamemay be undefinedStringDomainIamRoleNamemay be undefinedstringDomainIamRoleNamemay be undefined*string#domainOumay be undefinedstringdomain_oumay be undefinedstrdomainOumay be undefinedStringDomainOumay be undefinedstringDomainOumay be undefined*string#enableCloudwatchLogsExportsmay be undefinedstring[]enable_cloudwatch_logs_exportsmay be undefinedtyping.List[str]enableCloudwatchLogsExportsmay be undefinedList<String>EnableCloudwatchLogsExportsmay be undefinedstring[]EnableCloudwatchLogsExportsmay be undefined*[]*string#enableIamDatabaseAuthenticationmay be undefinedboolean | IResolvableenable_iam_database_authenticationmay be undefinedtyping.Union[bool, IResolvable]enableIamDatabaseAuthenticationmay be undefinedBooleanEnableIamDatabaseAuthenticationmay be undefinedboolEnableIamDatabaseAuthenticationmay be undefinedinterface{}#enablePerformanceInsightsmay be undefinedboolean | IResolvableenable_performance_insightsmay be undefinedtyping.Union[bool, IResolvable]enablePerformanceInsightsmay be undefinedBooleanEnablePerformanceInsightsmay be undefinedboolEnablePerformanceInsightsmay be undefinedinterface{}#enginemay be undefinedstringenginemay be undefinedstrenginemay be undefinedStringEnginemay be undefinedstringEnginemay be undefined*string#engineLifecycleSupportmay be undefinedstringengine_lifecycle_supportmay be undefinedstrengineLifecycleSupportmay be undefinedStringEngineLifecycleSupportmay be undefinedstringEngineLifecycleSupportmay be undefined*string#engineVersionmay be undefinedstringengine_versionmay be undefinedstrengineVersionmay be undefinedStringEngineVersionmay be undefinedstringEngineVersionmay be undefined*string#iopsmay be undefinednumberiopsmay be undefinedint | floatiopsmay be undefinedNumberIopsmay be undefineddoubleIopsmay be undefined*float64#kmsKeyIdmay be undefinedstringkms_key_idmay be undefinedstrkmsKeyIdmay be undefinedStringKmsKeyIdmay be undefinedstringKmsKeyIdmay be undefined*string#licenseModelmay be undefinedstringlicense_modelmay be undefinedstrlicenseModelmay be undefinedStringLicenseModelmay be undefinedstringLicenseModelmay be undefined*string#The logical ID of the element is calculated from the path of the resource node in the construct tree.
To override this value, use overrideLogicalId(newLogicalId).
manageMasterUserPasswordmay be undefinedboolean | IResolvablemanage_master_user_passwordmay be undefinedtyping.Union[bool, IResolvable]manageMasterUserPasswordmay be undefinedBooleanManageMasterUserPasswordmay be undefinedboolManageMasterUserPasswordmay be undefinedinterface{}#masterUserAuthenticationTypemay be undefinedstringmaster_user_authentication_typemay be undefinedstrmasterUserAuthenticationTypemay be undefinedStringMasterUserAuthenticationTypemay be undefinedstringMasterUserAuthenticationTypemay be undefined*string#masterUsernamemay be undefinedstringmaster_usernamemay be undefinedstrmasterUsernamemay be undefinedStringMasterUsernamemay be undefinedstringMasterUsernamemay be undefined*string#masterUserPasswordmay be undefinedstringmaster_user_passwordmay be undefinedstrmasterUserPasswordmay be undefinedStringMasterUserPasswordmay be undefinedstringMasterUserPasswordmay be undefined*string#The password can include any printable ASCII character except "/", """, or "@".
masterUserSecretmay be undefinedIResolvable | CfnDBInstance.MasterUserSecretPropertymaster_user_secretmay be undefinedtyping.Union[IResolvable, MasterUserSecretProperty]masterUserSecretmay be undefinedIResolvableMasterUserSecretmay be undefinedIResolvableMasterUserSecretmay be undefinedinterface{}#maxAllocatedStoragemay be undefinednumbermax_allocated_storagemay be undefinedint | floatmaxAllocatedStoragemay be undefinedNumberMaxAllocatedStoragemay be undefineddoubleMaxAllocatedStoragemay be undefined*float64#monitoringIntervalmay be undefinednumbermonitoring_intervalmay be undefinedint | floatmonitoringIntervalmay be undefinedNumberMonitoringIntervalmay be undefineddoubleMonitoringIntervalmay be undefined*float64#monitoringRoleArnmay be undefinedstringmonitoring_role_arnmay be undefinedstrmonitoringRoleArnmay be undefinedStringMonitoringRoleArnmay be undefinedstringMonitoringRoleArnmay be undefined*string#multiAzmay be undefinedboolean | IResolvablemulti_azmay be undefinedtyping.Union[bool, IResolvable]multiAzmay be undefinedBooleanMultiAzmay be undefinedboolMultiAzmay be undefinedinterface{}#ncharCharacterSetNamemay be undefinedstringnchar_character_set_namemay be undefinedstrncharCharacterSetNamemay be undefinedStringNcharCharacterSetNamemay be undefinedstringNcharCharacterSetNamemay be undefined*string#networkTypemay be undefinedstringnetwork_typemay be undefinedstrnetworkTypemay be undefinedStringNetworkTypemay be undefinedstringNetworkTypemay be undefined*string#optionGroupNamemay be undefinedstringoption_group_namemay be undefinedstroptionGroupNamemay be undefinedStringOptionGroupNamemay be undefinedstringOptionGroupNamemay be undefined*string#performanceInsightsKmsKeyIdmay be undefinedstringperformance_insights_kms_key_idmay be undefinedstrperformanceInsightsKmsKeyIdmay be undefinedStringPerformanceInsightsKmsKeyIdmay be undefinedstringPerformanceInsightsKmsKeyIdmay be undefined*string#performanceInsightsRetentionPeriodmay be undefinednumberperformance_insights_retention_periodmay be undefinedint | floatperformanceInsightsRetentionPeriodmay be undefinedNumberPerformanceInsightsRetentionPeriodmay be undefineddoublePerformanceInsightsRetentionPeriodmay be undefined*float64#portmay be undefinedstringportmay be undefinedstrportmay be undefinedStringPortmay be undefinedstringPortmay be undefined*string#preferredBackupWindowmay be undefinedstringpreferred_backup_windowmay be undefinedstrpreferredBackupWindowmay be undefinedStringPreferredBackupWindowmay be undefinedstringPreferredBackupWindowmay be undefined*string#preferredMaintenanceWindowmay be undefinedstringpreferred_maintenance_windowmay be undefinedstrpreferredMaintenanceWindowmay be undefinedStringPreferredMaintenanceWindowmay be undefinedstringPreferredMaintenanceWindowmay be undefined*string#processorFeaturesmay be undefinedIResolvable | IResolvable | CfnDBInstance.ProcessorFeatureProperty[]processor_featuresmay be undefinedtyping.Union[IResolvable, typing.List[typing.Union[IResolvable, ProcessorFeatureProperty]]]processorFeaturesmay be undefinedIResolvableProcessorFeaturesmay be undefinedIResolvableProcessorFeaturesmay be undefinedinterface{}#promotionTiermay be undefinednumberpromotion_tiermay be undefinedint | floatpromotionTiermay be undefinedNumberPromotionTiermay be undefineddoublePromotionTiermay be undefined*float64#publiclyAccessiblemay be undefinedboolean | IResolvablepublicly_accessiblemay be undefinedtyping.Union[bool, IResolvable]publiclyAccessiblemay be undefinedBooleanPubliclyAccessiblemay be undefinedboolPubliclyAccessiblemay be undefinedinterface{}#If, by any chance, the intrinsic reference of a resource is not a string, you could coerce it to an IResolvable through Lazy.any({ produce: resource.ref }).
replicaModemay be undefinedstringreplica_modemay be undefinedstrreplicaModemay be undefinedStringReplicaModemay be undefinedstringReplicaModemay be undefined*string#restoreTimemay be undefinedstringrestore_timemay be undefinedstrrestoreTimemay be undefinedStringRestoreTimemay be undefinedstringRestoreTimemay be undefined*string#sourceDbClusterIdentifiermay be undefinedstringsource_db_cluster_identifiermay be undefinedstrsourceDbClusterIdentifiermay be undefinedStringSourceDbClusterIdentifiermay be undefinedstringSourceDbClusterIdentifiermay be undefined*string#sourceDbInstanceAutomatedBackupsArnmay be undefinedstringsource_db_instance_automated_backups_arnmay be undefinedstrsourceDbInstanceAutomatedBackupsArnmay be undefinedStringSourceDbInstanceAutomatedBackupsArnmay be undefinedstringSourceDbInstanceAutomatedBackupsArnmay be undefined*string#sourceDbInstanceIdentifiermay be undefinedstringsource_db_instance_identifiermay be undefinedstrsourceDbInstanceIdentifiermay be undefinedStringSourceDbInstanceIdentifiermay be undefinedstringSourceDbInstanceIdentifiermay be undefined*string#sourceDbiResourceIdmay be undefinedstringsource_dbi_resource_idmay be undefinedstrsourceDbiResourceIdmay be undefinedStringSourceDbiResourceIdmay be undefinedstringSourceDbiResourceIdmay be undefined*string#sourceRegionmay be undefinedstringsource_regionmay be undefinedstrsourceRegionmay be undefinedStringSourceRegionmay be undefinedstringSourceRegionmay be undefined*string#CfnElements must be defined within a stack scope (directly or indirectly).
storageEncryptedmay be undefinedboolean | IResolvablestorage_encryptedmay be undefinedtyping.Union[bool, IResolvable]storageEncryptedmay be undefinedBooleanStorageEncryptedmay be undefinedboolStorageEncryptedmay be undefinedinterface{}#By default, it isn't encrypted.
storageThroughputmay be undefinednumberstorage_throughputmay be undefinedint | floatstorageThroughputmay be undefinedNumberStorageThroughputmay be undefineddoubleStorageThroughputmay be undefined*float64#storageTypemay be undefinedstringstorage_typemay be undefinedstrstorageTypemay be undefinedStringStorageTypemay be undefinedstringStorageTypemay be undefined*string#tagsRawmay be undefinedCfnTag[]tags_rawmay be undefinedtyping.List[CfnTag]tagsRawmay be undefinedList<CfnTag>TagsRawmay be undefinedCfnTag[]TagsRawmay be undefined*[]CfnTag#tdeCredentialArnmay be undefinedstringtde_credential_arnmay be undefinedstrtdeCredentialArnmay be undefinedStringTdeCredentialArnmay be undefinedstringTdeCredentialArnmay be undefined*stringdeprecated#tdeCredentialPasswordmay be undefinedstringtde_credential_passwordmay be undefinedstrtdeCredentialPasswordmay be undefinedStringTdeCredentialPasswordmay be undefinedstringTdeCredentialPasswordmay be undefined*stringdeprecated#timezonemay be undefinedstringtimezonemay be undefinedstrtimezonemay be undefinedStringTimezonemay be undefinedstringTimezonemay be undefined*string#useDefaultProcessorFeaturesmay be undefinedboolean | IResolvableuse_default_processor_featuresmay be undefinedtyping.Union[bool, IResolvable]useDefaultProcessorFeaturesmay be undefinedBooleanUseDefaultProcessorFeaturesmay be undefinedboolUseDefaultProcessorFeaturesmay be undefinedinterface{}#useLatestRestorableTimemay be undefinedboolean | IResolvableuse_latest_restorable_timemay be undefinedtyping.Union[bool, IResolvable]useLatestRestorableTimemay be undefinedBooleanUseLatestRestorableTimemay be undefinedboolUseLatestRestorableTimemay be undefinedinterface{}#vpcSecurityGroupsmay be undefinedstring[]vpc_security_groupsmay be undefinedtyping.List[str]vpcSecurityGroupsmay be undefinedList<String>VpcSecurityGroupsmay be undefinedstring[]VpcSecurityGroupsmay be undefined*[]*string#Methods
addDeletionOverride(path: string): voiddef add_deletion_override(self, path: str) -> Nonepublic void addDeletionOverride(String path)public void AddDeletionOverride(string path)func AddDeletionOverride(Path *string)#1 parameter
Parameters
pathpathpathpathPath— The path of the value to delete.
addDependency(target: CfnResource): voiddef add_dependency(self, target: CfnResource) -> Nonepublic void addDependency(CfnResource target)public void AddDependency(CfnResource target)func AddDependency(Target CfnResource)deprecated#This method has been renamed to addResourceDependency to more clearly set it apart from construct.node.addDependency. See the documentation of that function for more details.
addDependsOn(target: CfnResource): voiddef add_depends_on(self, target: CfnResource) -> Nonepublic void addDependsOn(CfnResource target)public void AddDependsOn(CfnResource target)func AddDependsOn(Target CfnResource)deprecated#notes
This can be used for resources across stacks (or nested stack) boundaries and the dependency will automatically be transferred to the relevant scope.
This method has been renamed to addResourceDependency, which makes it more clear that this method operates at a different level from the construct-level construct.node.addDependency() mechanism.
addMetadata(key: string, value: any): voiddef add_metadata(self, key: str, value: Any) -> Nonepublic void addMetadata(String key, Object value)public void AddMetadata(string key, object value)func AddMetadata(Key *string, Value interface{})#addOverride(path: string, value: any): voiddef add_override(self, path: str, value: Any) -> Nonepublic void addOverride(String path, Object value)public void AddOverride(string path, object value)func AddOverride(Path *string, Value interface{})#notes · 2 parameters
To add a property override, either use addPropertyOverride or prefix path with "Properties." (i.e. Properties.TopicName).
If the override is nested, separate each nested level using a dot (.) in the path parameter. If there is an array as part of the nesting, specify the index in the path.
To include a literal . in the property name, prefix with a \. In most programming languages you will need to write this as "\\." because the \ itself will need to be escaped.
For example,
cfnResource.addOverride('Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes', ['myattribute']);
cfnResource.addOverride('Properties.GlobalSecondaryIndexes.1.ProjectionType', 'INCLUDE');
would add the overrides
"Properties": {
"GlobalSecondaryIndexes": [
{
"Projection": {
"NonKeyAttributes": [ "myattribute" ]
...
}
...
},
{
"ProjectionType": "INCLUDE"
...
},
]
...
}
The value argument to addOverride will not be processed or translated in any way. Pass raw JSON values in here with the correct capitalization for CloudFormation. If you pass CDK classes or structs, they will be rendered with lowercased key names, and CloudFormation will reject the template.
Parameters
pathpathpathpathPath— - The path of the property, you can use dot notation to override values in complex types.valuevaluevaluevalueValue— - The value.
addPropertyDeletionOverride(propertyPath: string): voiddef add_property_deletion_override(self, property_path: str) -> Nonepublic void addPropertyDeletionOverride(String propertyPath)public void AddPropertyDeletionOverride(string propertyPath)func AddPropertyDeletionOverride(PropertyPath *string)#1 parameter
Parameters
propertyPathproperty_pathpropertyPathpropertyPathPropertyPath— The path to the property.
addPropertyOverride(propertyPath: string, value: any): voiddef add_property_override(self, property_path: str, value: Any) -> Nonepublic void addPropertyOverride(String propertyPath, Object value)public void AddPropertyOverride(string propertyPath, object value)func AddPropertyOverride(PropertyPath *string, Value interface{})#Syntactic sugar for addOverride("Properties.<...>", value).
2 parameters
Parameters
propertyPathproperty_pathpropertyPathpropertyPathPropertyPath— The path of the property.valuevaluevaluevalueValue— The value.
addResourceDependency(target: CfnResource, reason?: string): voiddef add_resource_dependency(self, target: CfnResource, reason: typing.Optional[str] = None) -> Nonepublic void addResourceDependency(CfnResource target, String reason)public void AddResourceDependency(CfnResource target, string? reason = null)func AddResourceDependency(Target CfnResource, Reason *string)#notes
This can be used for resources across stacks (or nested stack) boundaries and the dependency will automatically be transferred to the relevant scope.
This method only adds dependencies between L1 resources. If you are looking for a generic construct-to-construct dependency mechanism that works for all constructs including L2s, use construct.node.addDependency instead.
applyCrossStackReferenceStrength(strength: ReferenceStrength): voiddef apply_cross_stack_reference_strength(self, strength: ReferenceStrength) -> Nonepublic void applyCrossStackReferenceStrength(ReferenceStrength strength)public void ApplyCrossStackReferenceStrength(ReferenceStrength strength)func ApplyCrossStackReferenceStrength(Strength ReferenceStrength)#When set, any cross-stack reference to this resource will use the specified strength instead of the global default from the consuming stack's context.
1 parameter
Parameters
strengthstrengthstrengthstrengthStrength— - The reference strength to use for this resource.
applyRemovalPolicy(policy?: RemovalPolicy, options?: RemovalPolicyOptions): voiddef apply_removal_policy(self, policy: typing.Optional[RemovalPolicy] = None, options: typing.Optional[RemovalPolicyOptions] = None) -> Nonepublic void applyRemovalPolicy(RemovalPolicy policy, RemovalPolicyOptions options)public void ApplyRemovalPolicy(RemovalPolicy? policy = null, RemovalPolicyOptions? options = null)func ApplyRemovalPolicy(Policy RemovalPolicy, Options RemovalPolicyOptions)#notes
The Removal Policy controls what happens to this resource when it stops being managed by CloudFormation, either because you've removed it from the CDK application or because you've made a change that requires the resource to be replaced.
The resource can be deleted (RemovalPolicy.DESTROY), or left in your AWS account for data recovery and cleanup later (RemovalPolicy.RETAIN). In some cases, a snapshot can be taken of the resource prior to deletion (RemovalPolicy.SNAPSHOT). A list of resources that support this policy can be found in the following link:
arnForDBInstance(resource: IDBInstanceRef): string@staticmethod def arn_for_db_instance(resource: IDBInstanceRef) -> strpublic static String arnForDBInstance(IDBInstanceRef resource)public static string ArnForDBInstance(IDBInstanceRef resource)func ArnForDBInstance(Resource IDBInstanceRef) *stringstatic#cfnPropertyName(cdkPropertyName: string): stringdef cfn_property_name(self, cdk_property_name: str) -> strpublic String cfnPropertyName(String cdkPropertyName)public string CfnPropertyName(string cdkPropertyName)func CfnPropertyName(CdkPropertyName *string) *string#getAtt(attributeName: string, typeHint?: ResolutionTypeHint): Referencedef get_att(self, attribute_name: str, type_hint: typing.Optional[ResolutionTypeHint] = None) -> Referencepublic Reference getAtt(String attributeName, ResolutionTypeHint typeHint)public Reference GetAtt(string attributeName, ResolutionTypeHint? typeHint = null)func GetAtt(AttributeName *string, TypeHint ResolutionTypeHint) Reference#Ideally, use generated attribute accessors (e.g. resource.arn), but this can be used for future compatibility in case there is no generated attribute.
1 parameter
Parameters
attributeNameattribute_nameattributeNameattributeNameAttributeName— The name of the attribute.
getMetadata(key: string): anydef get_metadata(self, key: str) -> Anypublic Object getMetadata(String key)public object GetMetadata(string key)func GetMetadata(Key *string) interface{}#inspect(inspector: TreeInspector): voiddef inspect(self, inspector: TreeInspector) -> Nonepublic void inspect(TreeInspector inspector)public void Inspect(TreeInspector inspector)func Inspect(Inspector TreeInspector)#1 parameter
Parameters
inspectorinspectorinspectorinspectorInspector— tree inspector to collect and process attributes.
isCfnDBInstance(x: any): boolean@staticmethod def is_cfn_db_instance(x: Any) -> boolpublic static Boolean isCfnDBInstance(Object x)public static bool IsCfnDBInstance(object x)func IsCfnDBInstance(X interface{}) *boolstatic#isCfnElement(x: any): boolean@staticmethod def is_cfn_element(x: Any) -> boolpublic static Boolean isCfnElement(Object x)public static bool IsCfnElement(object x)func IsCfnElement(X interface{}) *boolstatic#Uses duck-typing instead of instanceof to allow stack elements from different versions of this library to be included in the same stack.
returns
Returns: The construct as a stack element or undefined if it is not a stack element.
isCfnResource(x: any): boolean@staticmethod def is_cfn_resource(x: Any) -> boolpublic static Boolean isCfnResource(Object x)public static bool IsCfnResource(object x)func IsCfnResource(X interface{}) *boolstatic#isConstruct(x: any): boolean@staticmethod def is_construct(x: Any) -> boolpublic static Boolean isConstruct(Object x)public static bool IsConstruct(object x)func IsConstruct(X interface{}) *boolstatic#notes · 1 parameter · returns
Use this method instead of instanceof to properly detect Construct instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs library on disk are seen as independent, completely different libraries. As a consequence, the class Construct in each copy of the constructs library is seen as a different class, and an instance of one class will not test as instanceof the other class. npm install will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the constructs library can be accidentally installed, and instanceof will behave unpredictably. It is safest to avoid using instanceof, and using this type-testing method instead.
Parameters
xxxxX— Any object.
Returns: true if x is an object created from a class which extends Construct.
obtainDependencies(): Stack | CfnResource[]def obtain_dependencies(self, ) -> typing.List[typing.Union[Stack, CfnResource]]public List<Stack> obtainDependencies()public Stack[] ObtainDependencies()func ObtainDependencies() *[]interface{}#For resources depended on directly, returns the CfnResource object. For dependencies on other stacks, returns the Stack object. The order of the array is not guaranteed.
overrideLogicalId(newLogicalId: string): voiddef override_logical_id(self, new_logical_id: str) -> Nonepublic void overrideLogicalId(String newLogicalId)public void OverrideLogicalId(string newLogicalId)func OverrideLogicalId(NewLogicalId *string)#1 parameter
Parameters
newLogicalIdnew_logical_idnewLogicalIdnewLogicalIdNewLogicalId— The new logical ID to use for this stack element.
removeDependency(target: CfnResource): voiddef remove_dependency(self, target: CfnResource) -> Nonepublic void removeDependency(CfnResource target)public void RemoveDependency(CfnResource target)func RemoveDependency(Target CfnResource)deprecated#This can be used for resources across stacks (including nested stacks) and the dependency will automatically be removed from the relevant scope.
removeResourceDependency(target: CfnResource): voiddef remove_resource_dependency(self, target: CfnResource) -> Nonepublic void removeResourceDependency(CfnResource target)public void RemoveResourceDependency(CfnResource target)func RemoveResourceDependency(Target CfnResource)#This can be used for resources across stacks (including nested stacks) and the dependency will automatically be removed from the relevant scope.
replaceDependency(target: CfnResource, newTarget: CfnResource): voiddef replace_dependency(self, target: CfnResource, new_target: CfnResource) -> Nonepublic void replaceDependency(CfnResource target, CfnResource newTarget)public void ReplaceDependency(CfnResource target, CfnResource newTarget)func ReplaceDependency(Target CfnResource, NewTarget CfnResource)#2 parameters
Parameters
targettargettargettargetTarget— The dependency to replace.newTargetnew_targetnewTargetnewTargetNewTarget— The new dependency to add.
toString(): stringdef to_string(self, ) -> strpublic String toString()public string ToString()func ToString() *string#returns
Returns: a string representation of this resource
with(...mixins: IMixin[]): IConstructdef with(self, mixins: IMixin) -> IConstructpublic IConstruct with(IMixin mixins)public IConstruct With(IMixin mixins)func With(Mixins IMixin) IConstruct#Mixins are applied in order. The list of constructs is captured at the start of the call, so constructs added by a mixin will not be visited. Use multiple with() calls if subsequent mixins should apply to added constructs.