Class CfnDBCluster
- All Implemented Interfaces:
IEnvironmentAware,IInspectable,ITaggable,IDBClusterRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
AWS::RDS::DBCluster resource creates an Amazon Aurora DB cluster or Multi-AZ DB cluster.
For more information about creating an Aurora DB cluster, see Creating an Amazon Aurora DB cluster in the Amazon Aurora User Guide .
For more information about creating a Multi-AZ DB cluster, see Creating a Multi-AZ DB cluster in the Amazon RDS User Guide .
You can only create this resource in AWS Regions where Amazon Aurora or Multi-AZ DB clusters are supported.
Updating DB clusters
When properties labeled " Update requires: Replacement " are updated, AWS CloudFormation first creates a replacement DB cluster, then changes references from other dependent resources to point to the replacement DB cluster, and finally deletes the old DB cluster.
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 cluster. To preserve your data, perform the following procedure:
- Deactivate any applications that are using the DB cluster so that there's no activity on the DB instance.
- Create a snapshot of the DB cluster. For more information, see Creating a DB cluster snapshot .
- If you want to restore your DB cluster using a DB cluster snapshot, modify the updated template with your DB cluster changes and add the
SnapshotIdentifierproperty with the ID of the DB cluster snapshot that you want to use.After you restore a DB cluster with a
SnapshotIdentifierproperty, you must specify the sameSnapshotIdentifierproperty for any future updates to the DB cluster. When you specify this property for an update, the DB cluster is not restored from the DB cluster snapshot again, and the data in the database is not changed. However, if you don't specify theSnapshotIdentifierproperty, an empty DB cluster is created, and the original DB cluster is deleted. If you specify a property that is different from the previous snapshot restore property, a new DB cluster is restored from the specifiedSnapshotIdentifierproperty, and the original DB cluster is deleted.
- Update the stack.
Currently, when you are updating the stack for an Aurora Serverless DB cluster, you can't include changes to any other properties when you specify one of the following properties: PreferredBackupWindow , PreferredMaintenanceWindow , and Port . This limitation doesn't apply to provisioned DB clusters.
For more information about updating other properties of this resource, see [ModifyDBCluster](https://docs.aws.amazon.com//AmazonRDS/latest/APIReference/API_ModifyDBCluster.html) . For more information about updating stacks, see AWS CloudFormation Stacks Updates .
Deleting DB clusters
The default DeletionPolicy for AWS::RDS::DBCluster resources is Snapshot . For more information about how AWS CloudFormation deletes resources, see DeletionPolicy Attribute .
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.rds.*;
CfnDBCluster cfnDBCluster = CfnDBCluster.Builder.create(this, "MyCfnDBCluster")
.allocatedStorage(123)
.associatedRoles(List.of(DBClusterRoleProperty.builder()
.roleArn("roleArn")
// the properties below are optional
.featureName("featureName")
.build()))
.autoMinorVersionUpgrade(false)
.availabilityZones(List.of("availabilityZones"))
.backtrackWindow(123)
.backupRetentionPeriod(123)
.clusterScalabilityType("clusterScalabilityType")
.copyTagsToSnapshot(false)
.databaseInsightsMode("databaseInsightsMode")
.databaseName("databaseName")
.dbClusterIdentifier("dbClusterIdentifier")
.dbClusterInstanceClass("dbClusterInstanceClass")
.dbClusterParameterGroupName("dbClusterParameterGroupName")
.dbInstanceParameterGroupName("dbInstanceParameterGroupName")
.dbSubnetGroupName("dbSubnetGroupName")
.dbSystemId("dbSystemId")
.deleteAutomatedBackups(false)
.deletionProtection(false)
.domain("domain")
.domainIamRoleName("domainIamRoleName")
.enableCloudwatchLogsExports(List.of("enableCloudwatchLogsExports"))
.enableGlobalWriteForwarding(false)
.enableHttpEndpoint(false)
.enableIamDatabaseAuthentication(false)
.enableLocalWriteForwarding(false)
.engine("engine")
.engineLifecycleSupport("engineLifecycleSupport")
.engineMode("engineMode")
.engineVersion("engineVersion")
.globalClusterIdentifier("globalClusterIdentifier")
.iops(123)
.kmsKeyId("kmsKeyId")
.manageMasterUserPassword(false)
.masterUserAuthenticationType("masterUserAuthenticationType")
.masterUsername("masterUsername")
.masterUserPassword("masterUserPassword")
.masterUserSecret(MasterUserSecretProperty.builder()
.kmsKeyId("kmsKeyId")
.secretArn("secretArn")
.build())
.monitoringInterval(123)
.monitoringRoleArn("monitoringRoleArn")
.networkType("networkType")
.performanceInsightsEnabled(false)
.performanceInsightsKmsKeyId("performanceInsightsKmsKeyId")
.performanceInsightsRetentionPeriod(123)
.port(123)
.preferredBackupWindow("preferredBackupWindow")
.preferredMaintenanceWindow("preferredMaintenanceWindow")
.publiclyAccessible(false)
.replicationSourceIdentifier("replicationSourceIdentifier")
.restoreToTime("restoreToTime")
.restoreType("restoreType")
.scalingConfiguration(ScalingConfigurationProperty.builder()
.autoPause(false)
.maxCapacity(123)
.minCapacity(123)
.secondsBeforeTimeout(123)
.secondsUntilAutoPause(123)
.timeoutAction("timeoutAction")
.build())
.serverlessV2ScalingConfiguration(ServerlessV2ScalingConfigurationProperty.builder()
.maxCapacity(123)
.minCapacity(123)
.secondsUntilAutoPause(123)
.build())
.snapshotIdentifier("snapshotIdentifier")
.sourceDbClusterIdentifier("sourceDbClusterIdentifier")
.sourceDbClusterResourceId("sourceDbClusterResourceId")
.sourceRegion("sourceRegion")
.storageEncrypted(false)
.storageType("storageType")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.useLatestRestorableTime(false)
.vpcSecurityGroupIds(List.of("vpcSecurityGroupIds"))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnDBCluster.static interfaceDescribes an AWS Identity and Access Management (IAM) role that is associated with a DB cluster.static interfaceTheEndpointreturn value specifies the connection endpoint for the primary instance of the DB cluster.static interfaceTheMasterUserSecretreturn value specifies the secret managed by RDS in AWS Secrets Manager for the master user password.static interfaceTheReadEndpointreturn value specifies the reader endpoint for the DB cluster.static interfaceTheScalingConfigurationproperty type specifies the scaling configuration of an Aurora Serverless v1 DB cluster.static interfaceTheServerlessV2ScalingConfigurationproperty type specifies the scaling configuration of an Aurora Serverless V2 DB cluster.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.services.rds.IDBClusterRef
IDBClusterRef.Jsii$Default, IDBClusterRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnDBCluster(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnDBCluster(software.amazon.jsii.JsiiObjectRef objRef) CfnDBCluster(software.constructs.Construct scope, String id) CfnDBCluster(software.constructs.Construct scope, String id, CfnDBClusterProps props) -
Method Summary
Modifier and TypeMethodDescriptionThe amount of storage in gibibytes (GiB) to allocate to each DB instance in the Multi-AZ DB cluster.Provides a list of the AWS Identity and Access Management (IAM) roles that are associated with the DB cluster.The Amazon Resource Name (ARN) for the DB cluster.The AWS Region -unique, immutable identifier for the DB cluster.TheEndpointreturn value specifies the connection endpoint for the primary instance of the DB cluster.The connection endpoint for the DB cluster.The port number that will accept connections on this DB cluster.The Amazon Resource Name (ARN) of the secret.TheReadEndpointreturn value specifies the reader endpoint for the DB cluster.The reader endpoint for the DB cluster.The storage throughput for the DB cluster.Specifies whether minor engine upgrades are applied automatically to the DB cluster during the maintenance window.A list of Availability Zones (AZs) where instances in the DB cluster can be created.The target backtrack window, in seconds.The number of days for which automated backups are retained.Specifies the scalability mode of the Aurora DB cluster.A value that indicates whether to copy all tags from the DB cluster to snapshots of the DB cluster.The mode of Database Insights to enable for the DB cluster.The name of your database.The DB cluster identifier.The compute and memory capacity of each DB instance in the Multi-AZ DB cluster, for exampledb.m6gd.xlarge.The name of the DB cluster parameter group to associate with this DB cluster.A reference to a DBCluster resource.The name of the DB parameter group to apply to all instances of the DB cluster.A DB subnet group that you want to associate with this DB cluster.Reserved for future use.Specifies whether to remove automated backups immediately after the DB cluster is deleted.A value that indicates whether the DB cluster has deletion protection enabled.Indicates the directory ID of the Active Directory to create the DB cluster.Specifies the name of the IAM role to use when making API calls to the Directory Service.The list of log types that need to be enabled for exporting to CloudWatch Logs.Specifies whether to enable this DB cluster to forward write operations to the primary cluster of a global cluster (Aurora global database).Specifies whether to enable the HTTP endpoint for the DB cluster.A value that indicates whether to enable mapping of AWS Identity and Access Management (IAM) accounts to database accounts.Specifies whether read replicas can forward write operations to the writer DB instance in the DB cluster.The name of the database engine to be used for this DB cluster.The life cycle type for this DB cluster.The DB engine mode of the DB cluster, eitherprovisionedorserverless.The version number of the database engine to use.If you are configuring an Aurora global database cluster and want your Aurora DB cluster to be a secondary member in the global database cluster, specify the global cluster ID of the global database cluster.getIops()The amount of Provisioned IOPS (input/output operations per second) to be initially allocated for each DB instance in the Multi-AZ DB cluster.The Amazon Resource Name (ARN) of the AWS KMS key that is used to encrypt the database instances in the DB cluster, such asarn:aws:kms:us-east-1:012345678910:key/abcd1234-a123-456a-a12b-a123b4cd56ef.Specifies whether to manage the master user password with AWS Secrets Manager.Specifies the authentication type for the master user.The name of the master user for the DB cluster.The master password for the DB instance.The secret managed by RDS in AWS Secrets Manager for the master user password.The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB cluster.The Amazon Resource Name (ARN) for the IAM role that permits RDS to send Enhanced Monitoring metrics to Amazon CloudWatch Logs.The network type of the DB cluster.Specifies whether to turn on Performance Insights for the DB cluster.The AWS KMS key identifier for encryption of Performance Insights data.The number of days to retain Performance Insights data.getPort()The port number on which the DB instances in the DB cluster accept connections.The daily time range during which automated backups are created.The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).Specifies whether the DB cluster is publicly accessible.The Amazon Resource Name (ARN) of the source DB instance or DB cluster if this DB cluster is created as a read replica.The date and time to restore the DB cluster to.The type of restore to be performed.The scaling configuration of an Aurora Serverless v1 DB cluster.The scaling configuration of an Aurora Serverless V2 DB cluster.The identifier for the DB snapshot or DB cluster snapshot to restore from.When restoring a DB cluster to a point in time, the identifier of the source DB cluster from which to restore.The resource ID of the source DB cluster from which to restore.The AWS Region which contains the source DB cluster when replicating a DB cluster.Indicates whether the DB cluster is encrypted.The storage type to associate with the DB cluster.getTags()Tag Manager which manages the tags for this resource.Tags to assign to the DB cluster.A value that indicates whether to restore the DB cluster to the latest restorable backup time.A list of EC2 VPC security groups to associate with this DB cluster.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetAllocatedStorage(Number value) The amount of storage in gibibytes (GiB) to allocate to each DB instance in the Multi-AZ DB cluster.voidsetAssociatedRoles(List<Object> value) Provides a list of the AWS Identity and Access Management (IAM) roles that are associated with the DB cluster.voidsetAssociatedRoles(IResolvable value) Provides a list of the AWS Identity and Access Management (IAM) roles that are associated with the DB cluster.voidSpecifies whether minor engine upgrades are applied automatically to the DB cluster during the maintenance window.voidSpecifies whether minor engine upgrades are applied automatically to the DB cluster during the maintenance window.voidsetAvailabilityZones(List<String> value) A list of Availability Zones (AZs) where instances in the DB cluster can be created.voidsetBacktrackWindow(Number value) The target backtrack window, in seconds.voidsetBackupRetentionPeriod(Number value) The number of days for which automated backups are retained.voidsetClusterScalabilityType(String value) Specifies the scalability mode of the Aurora DB cluster.voidsetCopyTagsToSnapshot(Boolean value) A value that indicates whether to copy all tags from the DB cluster to snapshots of the DB cluster.voidsetCopyTagsToSnapshot(IResolvable value) A value that indicates whether to copy all tags from the DB cluster to snapshots of the DB cluster.voidsetDatabaseInsightsMode(String value) The mode of Database Insights to enable for the DB cluster.voidsetDatabaseName(String value) The name of your database.voidsetDbClusterIdentifier(String value) The DB cluster identifier.voidsetDbClusterInstanceClass(String value) The compute and memory capacity of each DB instance in the Multi-AZ DB cluster, for exampledb.m6gd.xlarge.voidThe name of the DB cluster parameter group to associate with this DB cluster.voidThe name of the DB parameter group to apply to all instances of the DB cluster.voidsetDbSubnetGroupName(String value) A DB subnet group that you want to associate with this DB cluster.voidsetDbSystemId(String value) Reserved for future use.voidsetDeleteAutomatedBackups(Boolean value) Specifies whether to remove automated backups immediately after the DB cluster is deleted.voidSpecifies whether to remove automated backups immediately after the DB cluster is deleted.voidsetDeletionProtection(Boolean value) A value that indicates whether the DB cluster has deletion protection enabled.voidsetDeletionProtection(IResolvable value) A value that indicates whether the DB cluster has deletion protection enabled.voidIndicates the directory ID of the Active Directory to create the DB cluster.voidsetDomainIamRoleName(String value) Specifies the name of the IAM role to use when making API calls to the Directory Service.voidsetEnableCloudwatchLogsExports(List<String> value) The list of log types that need to be enabled for exporting to CloudWatch Logs.voidSpecifies whether to enable this DB cluster to forward write operations to the primary cluster of a global cluster (Aurora global database).voidSpecifies whether to enable this DB cluster to forward write operations to the primary cluster of a global cluster (Aurora global database).voidsetEnableHttpEndpoint(Boolean value) Specifies whether to enable the HTTP endpoint for the DB cluster.voidsetEnableHttpEndpoint(IResolvable value) Specifies whether to enable the HTTP endpoint for the DB cluster.voidA value that indicates whether to enable mapping of AWS Identity and Access Management (IAM) accounts to database accounts.voidA value that indicates whether to enable mapping of AWS Identity and Access Management (IAM) accounts to database accounts.voidSpecifies whether read replicas can forward write operations to the writer DB instance in the DB cluster.voidSpecifies whether read replicas can forward write operations to the writer DB instance in the DB cluster.voidThe name of the database engine to be used for this DB cluster.voidsetEngineLifecycleSupport(String value) The life cycle type for this DB cluster.voidsetEngineMode(String value) The DB engine mode of the DB cluster, eitherprovisionedorserverless.voidsetEngineVersion(String value) The version number of the database engine to use.voidsetGlobalClusterIdentifier(String value) If you are configuring an Aurora global database cluster and want your Aurora DB cluster to be a secondary member in the global database cluster, specify the global cluster ID of the global database cluster.voidThe amount of Provisioned IOPS (input/output operations per second) to be initially allocated for each DB instance in the Multi-AZ DB cluster.voidsetKmsKeyId(String value) The Amazon Resource Name (ARN) of the AWS KMS key that is used to encrypt the database instances in the DB cluster, such asarn:aws:kms:us-east-1:012345678910:key/abcd1234-a123-456a-a12b-a123b4cd56ef.voidSpecifies whether to manage the master user password with AWS Secrets Manager.voidSpecifies whether to manage the master user password with AWS Secrets Manager.voidSpecifies the authentication type for the master user.voidsetMasterUsername(String value) The name of the master user for the DB cluster.voidsetMasterUserPassword(String value) The master password for the DB instance.voidsetMasterUserSecret(IResolvable value) The secret managed by RDS in AWS Secrets Manager for the master user password.voidThe secret managed by RDS in AWS Secrets Manager for the master user password.voidsetMonitoringInterval(Number value) The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB cluster.voidsetMonitoringRoleArn(String value) The Amazon Resource Name (ARN) for the IAM role that permits RDS to send Enhanced Monitoring metrics to Amazon CloudWatch Logs.voidsetNetworkType(String value) The network type of the DB cluster.voidSpecifies whether to turn on Performance Insights for the DB cluster.voidSpecifies whether to turn on Performance Insights for the DB cluster.voidThe AWS KMS key identifier for encryption of Performance Insights data.voidThe number of days to retain Performance Insights data.voidThe port number on which the DB instances in the DB cluster accept connections.voidsetPreferredBackupWindow(String value) The daily time range during which automated backups are created.voidThe weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).voidsetPubliclyAccessible(Boolean value) Specifies whether the DB cluster is publicly accessible.voidsetPubliclyAccessible(IResolvable value) Specifies whether the DB cluster is publicly accessible.voidThe Amazon Resource Name (ARN) of the source DB instance or DB cluster if this DB cluster is created as a read replica.voidsetRestoreToTime(String value) The date and time to restore the DB cluster to.voidsetRestoreType(String value) The type of restore to be performed.voidThe scaling configuration of an Aurora Serverless v1 DB cluster.voidThe scaling configuration of an Aurora Serverless v1 DB cluster.voidThe scaling configuration of an Aurora Serverless V2 DB cluster.voidThe scaling configuration of an Aurora Serverless V2 DB cluster.voidsetSnapshotIdentifier(String value) The identifier for the DB snapshot or DB cluster snapshot to restore from.voidWhen restoring a DB cluster to a point in time, the identifier of the source DB cluster from which to restore.voidThe resource ID of the source DB cluster from which to restore.voidsetSourceRegion(String value) The AWS Region which contains the source DB cluster when replicating a DB cluster.voidsetStorageEncrypted(Boolean value) Indicates whether the DB cluster is encrypted.voidsetStorageEncrypted(IResolvable value) Indicates whether the DB cluster is encrypted.voidsetStorageType(String value) The storage type to associate with the DB cluster.voidsetTagsRaw(List<CfnTag> value) Tags to assign to the DB cluster.voidA value that indicates whether to restore the DB cluster to the latest restorable backup time.voidA value that indicates whether to restore the DB cluster to the latest restorable backup time.voidsetVpcSecurityGroupIds(List<String> value) A list of EC2 VPC security groups to associate with this DB cluster.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnDBCluster
protected CfnDBCluster(software.amazon.jsii.JsiiObjectRef objRef) -
CfnDBCluster
protected CfnDBCluster(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnDBCluster
@Stability(Stable) public CfnDBCluster(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable CfnDBClusterProps props) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties.
-
CfnDBCluster
@Stability(Stable) public CfnDBCluster(@NotNull software.constructs.Construct scope, @NotNull String id) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrDbClusterArn
The Amazon Resource Name (ARN) for the DB cluster. -
getAttrDbClusterResourceId
The AWS Region -unique, immutable identifier for the DB cluster.This identifier is found in AWS CloudTrail log entries whenever the KMS key for the DB cluster is accessed.
-
getAttrEndpoint
TheEndpointreturn value specifies the connection endpoint for the primary instance of the DB cluster. -
getAttrEndpointAddress
The connection endpoint for the DB cluster.For example:
mystack-mydbcluster-123456789012.us-east-2.rds.amazonaws.com -
getAttrEndpointPort
The port number that will accept connections on this DB cluster.For example:
3306 -
getAttrMasterUserSecretSecretArn
The Amazon Resource Name (ARN) of the secret. -
getAttrReadEndpoint
TheReadEndpointreturn value specifies the reader endpoint for the DB cluster.The reader endpoint for a DB cluster load-balances connections across the Aurora Replicas that are available in a DB cluster. As clients request new connections to the reader endpoint, Aurora distributes the connection requests among the Aurora Replicas in the DB cluster. This functionality can help balance your read workload across multiple Aurora Replicas in your DB cluster. If a failover occurs, and the Aurora Replica that you are connected to is promoted to be the primary instance, your connection is dropped. To continue sending your read workload to other Aurora Replicas in the cluster, you can then reconnect to the reader endpoint. For more information about Aurora endpoints, see Amazon Aurora connection management in the Amazon Aurora User Guide.
-
getAttrReadEndpointAddress
The reader endpoint for the DB cluster.For example:
mystack-mydbcluster-ro-123456789012.us-east-2.rds.amazonaws.com -
getAttrStorageThroughput
The storage throughput for the DB cluster.The throughput is automatically set based on the IOPS that you provision, and is not configurable.
This setting is only for non-Aurora Multi-AZ DB clusters.
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getDbClusterRef
A reference to a DBCluster resource.- Specified by:
getDbClusterRefin interfaceIDBClusterRef
-
getTags
Tag Manager which manages the tags for this resource. -
getAllocatedStorage
The amount of storage in gibibytes (GiB) to allocate to each DB instance in the Multi-AZ DB cluster. -
setAllocatedStorage
The amount of storage in gibibytes (GiB) to allocate to each DB instance in the Multi-AZ DB cluster. -
getAssociatedRoles
Provides a list of the AWS Identity and Access Management (IAM) roles that are associated with the DB cluster.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnDBCluster.DBClusterRoleProperty> -
setAssociatedRoles
Provides a list of the AWS Identity and Access Management (IAM) roles that are associated with the DB cluster. -
setAssociatedRoles
Provides a list of the AWS Identity and Access Management (IAM) roles that are associated with the DB cluster. -
getAutoMinorVersionUpgrade
Specifies whether minor engine upgrades are applied automatically to the DB cluster during the maintenance window.Returns union: either
BooleanorIResolvable -
setAutoMinorVersionUpgrade
Specifies whether minor engine upgrades are applied automatically to the DB cluster during the maintenance window. -
setAutoMinorVersionUpgrade
Specifies whether minor engine upgrades are applied automatically to the DB cluster during the maintenance window. -
getAvailabilityZones
A list of Availability Zones (AZs) where instances in the DB cluster can be created. -
setAvailabilityZones
A list of Availability Zones (AZs) where instances in the DB cluster can be created. -
getBacktrackWindow
The target backtrack window, in seconds.To disable backtracking, set this value to
0. -
setBacktrackWindow
The target backtrack window, in seconds.To disable backtracking, set this value to
0. -
getBackupRetentionPeriod
The number of days for which automated backups are retained. -
setBackupRetentionPeriod
The number of days for which automated backups are retained. -
getClusterScalabilityType
Specifies the scalability mode of the Aurora DB cluster. -
setClusterScalabilityType
Specifies the scalability mode of the Aurora DB cluster. -
getCopyTagsToSnapshot
A value that indicates whether to copy all tags from the DB cluster to snapshots of the DB cluster.Returns union: either
BooleanorIResolvable -
setCopyTagsToSnapshot
A value that indicates whether to copy all tags from the DB cluster to snapshots of the DB cluster. -
setCopyTagsToSnapshot
A value that indicates whether to copy all tags from the DB cluster to snapshots of the DB cluster. -
getDatabaseInsightsMode
The mode of Database Insights to enable for the DB cluster. -
setDatabaseInsightsMode
The mode of Database Insights to enable for the DB cluster. -
getDatabaseName
The name of your database. -
setDatabaseName
The name of your database. -
getDbClusterIdentifier
The DB cluster identifier.This parameter is stored as a lowercase string.
-
setDbClusterIdentifier
The DB cluster identifier.This parameter is stored as a lowercase string.
-
getDbClusterInstanceClass
The compute and memory capacity of each DB instance in the Multi-AZ DB cluster, for exampledb.m6gd.xlarge. Not all DB instance classes are available in all AWS Regions , or for all database engines. -
setDbClusterInstanceClass
The compute and memory capacity of each DB instance in the Multi-AZ DB cluster, for exampledb.m6gd.xlarge. Not all DB instance classes are available in all AWS Regions , or for all database engines. -
getDbClusterParameterGroupName
The name of the DB cluster parameter group to associate with this DB cluster. -
setDbClusterParameterGroupName
The name of the DB cluster parameter group to associate with this DB cluster. -
getDbInstanceParameterGroupName
The name of the DB parameter group to apply to all instances of the DB cluster. -
setDbInstanceParameterGroupName
The name of the DB parameter group to apply to all instances of the DB cluster. -
getDbSubnetGroupName
A DB subnet group that you want to associate with this DB cluster. -
setDbSubnetGroupName
A DB subnet group that you want to associate with this DB cluster. -
getDbSystemId
Reserved for future use. -
setDbSystemId
Reserved for future use. -
getDeleteAutomatedBackups
Specifies whether to remove automated backups immediately after the DB cluster is deleted.Returns union: either
BooleanorIResolvable -
setDeleteAutomatedBackups
Specifies whether to remove automated backups immediately after the DB cluster is deleted. -
setDeleteAutomatedBackups
Specifies whether to remove automated backups immediately after the DB cluster is deleted. -
getDeletionProtection
A value that indicates whether the DB cluster has deletion protection enabled.Returns union: either
BooleanorIResolvable -
setDeletionProtection
A value that indicates whether the DB cluster has deletion protection enabled. -
setDeletionProtection
A value that indicates whether the DB cluster has deletion protection enabled. -
getDomain
Indicates the directory ID of the Active Directory to create the DB cluster. -
setDomain
Indicates the directory ID of the Active Directory to create the DB cluster. -
getDomainIamRoleName
Specifies the name of the IAM role to use when making API calls to the Directory Service. -
setDomainIamRoleName
Specifies the name of the IAM role to use when making API calls to the Directory Service. -
getEnableCloudwatchLogsExports
The list of log types that need to be enabled for exporting to CloudWatch Logs. -
setEnableCloudwatchLogsExports
The list of log types that need to be enabled for exporting to CloudWatch Logs. -
getEnableGlobalWriteForwarding
Specifies whether to enable this DB cluster to forward write operations to the primary cluster of a global cluster (Aurora global database).Returns union: either
BooleanorIResolvable -
setEnableGlobalWriteForwarding
Specifies whether to enable this DB cluster to forward write operations to the primary cluster of a global cluster (Aurora global database). -
setEnableGlobalWriteForwarding
Specifies whether to enable this DB cluster to forward write operations to the primary cluster of a global cluster (Aurora global database). -
getEnableHttpEndpoint
Specifies whether to enable the HTTP endpoint for the DB cluster.By default, the HTTP endpoint isn't enabled.
Returns union: either
BooleanorIResolvable -
setEnableHttpEndpoint
Specifies whether to enable the HTTP endpoint for the DB cluster.By default, the HTTP endpoint isn't enabled.
-
setEnableHttpEndpoint
Specifies whether to enable the HTTP endpoint for the DB cluster.By default, the HTTP endpoint isn't enabled.
-
getEnableIamDatabaseAuthentication
A value that indicates whether to enable mapping of AWS Identity and Access Management (IAM) accounts to database accounts.Returns union: either
BooleanorIResolvable -
setEnableIamDatabaseAuthentication
A value that indicates whether to enable mapping of AWS Identity and Access Management (IAM) accounts to database accounts. -
setEnableIamDatabaseAuthentication
A value that indicates whether to enable mapping of AWS Identity and Access Management (IAM) accounts to database accounts. -
getEnableLocalWriteForwarding
Specifies whether read replicas can forward write operations to the writer DB instance in the DB cluster.Returns union: either
BooleanorIResolvable -
setEnableLocalWriteForwarding
Specifies whether read replicas can forward write operations to the writer DB instance in the DB cluster. -
setEnableLocalWriteForwarding
Specifies whether read replicas can forward write operations to the writer DB instance in the DB cluster. -
getEngine
The name of the database engine to be used for this DB cluster. -
setEngine
The name of the database engine to be used for this DB cluster. -
getEngineLifecycleSupport
The life cycle type for this DB cluster. -
setEngineLifecycleSupport
The life cycle type for this DB cluster. -
getEngineMode
The DB engine mode of the DB cluster, eitherprovisionedorserverless. -
setEngineMode
The DB engine mode of the DB cluster, eitherprovisionedorserverless. -
getEngineVersion
The version number of the database engine to use. -
setEngineVersion
The version number of the database engine to use. -
getGlobalClusterIdentifier
If you are configuring an Aurora global database cluster and want your Aurora DB cluster to be a secondary member in the global database cluster, specify the global cluster ID of the global database cluster. -
setGlobalClusterIdentifier
If you are configuring an Aurora global database cluster and want your Aurora DB cluster to be a secondary member in the global database cluster, specify the global cluster ID of the global database cluster. -
getIops
The amount of Provisioned IOPS (input/output operations per second) to be initially allocated for each DB instance in the Multi-AZ DB cluster. -
setIops
The amount of Provisioned IOPS (input/output operations per second) to be initially allocated for each DB instance in the Multi-AZ DB cluster. -
getKmsKeyId
The Amazon Resource Name (ARN) of the AWS KMS key that is used to encrypt the database instances in the DB cluster, such asarn:aws:kms:us-east-1:012345678910:key/abcd1234-a123-456a-a12b-a123b4cd56ef. -
setKmsKeyId
The Amazon Resource Name (ARN) of the AWS KMS key that is used to encrypt the database instances in the DB cluster, such asarn:aws:kms:us-east-1:012345678910:key/abcd1234-a123-456a-a12b-a123b4cd56ef. -
getManageMasterUserPassword
Specifies whether to manage the master user password with AWS Secrets Manager.Returns union: either
BooleanorIResolvable -
setManageMasterUserPassword
Specifies whether to manage the master user password with AWS Secrets Manager. -
setManageMasterUserPassword
Specifies whether to manage the master user password with AWS Secrets Manager. -
getMasterUserAuthenticationType
Specifies the authentication type for the master user. -
setMasterUserAuthenticationType
Specifies the authentication type for the master user. -
getMasterUsername
The name of the master user for the DB cluster. -
setMasterUsername
The name of the master user for the DB cluster. -
getMasterUserPassword
The master password for the DB instance. -
setMasterUserPassword
The master password for the DB instance. -
getMasterUserSecret
The secret managed by RDS in AWS Secrets Manager for the master user password.Returns union: either
IResolvableorCfnDBCluster.MasterUserSecretProperty -
setMasterUserSecret
The secret managed by RDS in AWS Secrets Manager for the master user password. -
setMasterUserSecret
@Stability(Stable) public void setMasterUserSecret(@Nullable CfnDBCluster.MasterUserSecretProperty value) The secret managed by RDS in AWS Secrets Manager for the master user password. -
getMonitoringInterval
The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB cluster. -
setMonitoringInterval
The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB cluster. -
getMonitoringRoleArn
The Amazon Resource Name (ARN) for the IAM role that permits RDS to send Enhanced Monitoring metrics to Amazon CloudWatch Logs. -
setMonitoringRoleArn
The Amazon Resource Name (ARN) for the IAM role that permits RDS to send Enhanced Monitoring metrics to Amazon CloudWatch Logs. -
getNetworkType
The network type of the DB cluster. -
setNetworkType
The network type of the DB cluster. -
getPerformanceInsightsEnabled
Specifies whether to turn on Performance Insights for the DB cluster.Returns union: either
BooleanorIResolvable -
setPerformanceInsightsEnabled
Specifies whether to turn on Performance Insights for the DB cluster. -
setPerformanceInsightsEnabled
Specifies whether to turn on Performance Insights for the DB cluster. -
getPerformanceInsightsKmsKeyId
The AWS KMS key identifier for encryption of Performance Insights data. -
setPerformanceInsightsKmsKeyId
The AWS KMS key identifier for encryption of Performance Insights data. -
getPerformanceInsightsRetentionPeriod
The number of days to retain Performance Insights data. -
setPerformanceInsightsRetentionPeriod
The number of days to retain Performance Insights data. -
getPort
The port number on which the DB instances in the DB cluster accept connections. -
setPort
The port number on which the DB instances in the DB cluster accept connections. -
getPreferredBackupWindow
The daily time range during which automated backups are created. -
setPreferredBackupWindow
The daily time range during which automated backups are created. -
getPreferredMaintenanceWindow
The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC). -
setPreferredMaintenanceWindow
The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC). -
getPubliclyAccessible
Specifies whether the DB cluster is publicly accessible.Returns union: either
BooleanorIResolvable -
setPubliclyAccessible
Specifies whether the DB cluster is publicly accessible. -
setPubliclyAccessible
Specifies whether the DB cluster is publicly accessible. -
getReplicationSourceIdentifier
The Amazon Resource Name (ARN) of the source DB instance or DB cluster if this DB cluster is created as a read replica. -
setReplicationSourceIdentifier
The Amazon Resource Name (ARN) of the source DB instance or DB cluster if this DB cluster is created as a read replica. -
getRestoreToTime
The date and time to restore the DB cluster to. -
setRestoreToTime
The date and time to restore the DB cluster to. -
getRestoreType
The type of restore to be performed.You can specify one of the following values:.
-
setRestoreType
The type of restore to be performed.You can specify one of the following values:.
-
getScalingConfiguration
The scaling configuration of an Aurora Serverless v1 DB cluster.Returns union: either
IResolvableorCfnDBCluster.ScalingConfigurationProperty -
setScalingConfiguration
The scaling configuration of an Aurora Serverless v1 DB cluster. -
setScalingConfiguration
@Stability(Stable) public void setScalingConfiguration(@Nullable CfnDBCluster.ScalingConfigurationProperty value) The scaling configuration of an Aurora Serverless v1 DB cluster. -
getServerlessV2ScalingConfiguration
The scaling configuration of an Aurora Serverless V2 DB cluster.Returns union: either
IResolvableorCfnDBCluster.ServerlessV2ScalingConfigurationProperty -
setServerlessV2ScalingConfiguration
The scaling configuration of an Aurora Serverless V2 DB cluster. -
setServerlessV2ScalingConfiguration
@Stability(Stable) public void setServerlessV2ScalingConfiguration(@Nullable CfnDBCluster.ServerlessV2ScalingConfigurationProperty value) The scaling configuration of an Aurora Serverless V2 DB cluster. -
getSnapshotIdentifier
The identifier for the DB snapshot or DB cluster snapshot to restore from. -
setSnapshotIdentifier
The identifier for the DB snapshot or DB cluster snapshot to restore from. -
getSourceDbClusterIdentifier
When restoring a DB cluster to a point in time, the identifier of the source DB cluster from which to restore. -
setSourceDbClusterIdentifier
When restoring a DB cluster to a point in time, the identifier of the source DB cluster from which to restore. -
getSourceDbClusterResourceId
The resource ID of the source DB cluster from which to restore. -
setSourceDbClusterResourceId
The resource ID of the source DB cluster from which to restore. -
getSourceRegion
The AWS Region which contains the source DB cluster when replicating a DB cluster.For example,
us-east-1. -
setSourceRegion
The AWS Region which contains the source DB cluster when replicating a DB cluster.For example,
us-east-1. -
getStorageEncrypted
Indicates whether the DB cluster is encrypted.Returns union: either
BooleanorIResolvable -
setStorageEncrypted
Indicates whether the DB cluster is encrypted. -
setStorageEncrypted
Indicates whether the DB cluster is encrypted. -
getStorageType
The storage type to associate with the DB cluster. -
setStorageType
The storage type to associate with the DB cluster. -
getTagsRaw
Tags to assign to the DB cluster. -
setTagsRaw
Tags to assign to the DB cluster. -
getUseLatestRestorableTime
A value that indicates whether to restore the DB cluster to the latest restorable backup time.Returns union: either
BooleanorIResolvable -
setUseLatestRestorableTime
A value that indicates whether to restore the DB cluster to the latest restorable backup time. -
setUseLatestRestorableTime
A value that indicates whether to restore the DB cluster to the latest restorable backup time. -
getVpcSecurityGroupIds
A list of EC2 VPC security groups to associate with this DB cluster. -
setVpcSecurityGroupIds
A list of EC2 VPC security groups to associate with this DB cluster.
-