Class CfnDBCluster
- All Implemented Interfaces:
IInspectable
,ITaggable
,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
SnapshotIdentifier
property with the ID of the DB cluster snapshot that you want to use.After you restore a DB cluster with a
SnapshotIdentifier
property, you must specify the sameSnapshotIdentifier
property 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 theSnapshotIdentifier
property, 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 specifiedSnapshotIdentifier
property, 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) .databaseName("databaseName") .dbClusterIdentifier("dbClusterIdentifier") .dbClusterInstanceClass("dbClusterInstanceClass") .dbClusterParameterGroupName("dbClusterParameterGroupName") .dbInstanceParameterGroupName("dbInstanceParameterGroupName") .dbSubnetGroupName("dbSubnetGroupName") .dbSystemId("dbSystemId") .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) .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) .build()) .snapshotIdentifier("snapshotIdentifier") .sourceDbClusterIdentifier("sourceDbClusterIdentifier") .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
Modifier and TypeClassDescriptionstatic final class
A fluent builder forCfnDBCluster
.static interface
Describes an AWS Identity and Access Management (IAM) role that is associated with a DB cluster.static interface
TheEndpoint
return value specifies the connection endpoint for the primary instance of the DB cluster.static interface
TheMasterUserSecret
return value specifies the secret managed by RDS in AWS Secrets Manager for the master user password.static interface
TheReadEndpoint
return value specifies the reader endpoint for the DB cluster.static interface
TheScalingConfiguration
property type specifies the scaling configuration of an Aurora Serverless v1 DB cluster.static interface
TheServerlessV2ScalingConfiguration
property 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.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionprotected
CfnDBCluster
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnDBCluster
(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.TheEndpoint
return 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.TheReadEndpoint
return 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 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.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.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, eitherprovisioned
orserverless
.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.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 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.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setAllocatedStorage
(Number value) The amount of storage in gibibytes (GiB) to allocate to each DB instance in the Multi-AZ DB cluster.void
setAssociatedRoles
(List<Object> value) Provides a list of the AWS Identity and Access Management (IAM) roles that are associated with the DB cluster.void
setAssociatedRoles
(IResolvable value) Provides a list of the AWS Identity and Access Management (IAM) roles that are associated with the DB cluster.void
Specifies whether minor engine upgrades are applied automatically to the DB cluster during the maintenance window.void
Specifies whether minor engine upgrades are applied automatically to the DB cluster during the maintenance window.void
setAvailabilityZones
(List<String> value) A list of Availability Zones (AZs) where instances in the DB cluster can be created.void
setBacktrackWindow
(Number value) The target backtrack window, in seconds.void
setBackupRetentionPeriod
(Number value) The number of days for which automated backups are retained.void
setClusterScalabilityType
(String value) Specifies the scalability mode of the Aurora DB cluster.void
setCopyTagsToSnapshot
(Boolean value) A value that indicates whether to copy all tags from the DB cluster to snapshots of the DB cluster.void
setCopyTagsToSnapshot
(IResolvable value) A value that indicates whether to copy all tags from the DB cluster to snapshots of the DB cluster.void
setDatabaseName
(String value) The name of your database.void
setDbClusterIdentifier
(String value) The DB cluster identifier.void
setDbClusterInstanceClass
(String value) The compute and memory capacity of each DB instance in the Multi-AZ DB cluster, for exampledb.m6gd.xlarge
.void
The name of the DB cluster parameter group to associate with this DB cluster.void
The name of the DB parameter group to apply to all instances of the DB cluster.void
setDbSubnetGroupName
(String value) A DB subnet group that you want to associate with this DB cluster.void
setDbSystemId
(String value) Reserved for future use.void
setDeletionProtection
(Boolean value) A value that indicates whether the DB cluster has deletion protection enabled.void
setDeletionProtection
(IResolvable value) A value that indicates whether the DB cluster has deletion protection enabled.void
Indicates the directory ID of the Active Directory to create the DB cluster.void
setDomainIamRoleName
(String value) Specifies the name of the IAM role to use when making API calls to the Directory Service.void
setEnableCloudwatchLogsExports
(List<String> value) The list of log types that need to be enabled for exporting to CloudWatch Logs.void
Specifies whether to enable this DB cluster to forward write operations to the primary cluster of a global cluster (Aurora global database).void
Specifies whether to enable this DB cluster to forward write operations to the primary cluster of a global cluster (Aurora global database).void
setEnableHttpEndpoint
(Boolean value) Specifies whether to enable the HTTP endpoint for the DB cluster.void
setEnableHttpEndpoint
(IResolvable value) Specifies whether to enable the HTTP endpoint for the DB cluster.void
A value that indicates whether to enable mapping of AWS Identity and Access Management (IAM) accounts to database accounts.void
A value that indicates whether to enable mapping of AWS Identity and Access Management (IAM) accounts to database accounts.void
Specifies whether read replicas can forward write operations to the writer DB instance in the DB cluster.void
Specifies whether read replicas can forward write operations to the writer DB instance in the DB cluster.void
The name of the database engine to be used for this DB cluster.void
setEngineLifecycleSupport
(String value) The life cycle type for this DB cluster.void
setEngineMode
(String value) The DB engine mode of the DB cluster, eitherprovisioned
orserverless
.void
setEngineVersion
(String value) The version number of the database engine to use.void
setGlobalClusterIdentifier
(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.void
The amount of Provisioned IOPS (input/output operations per second) to be initially allocated for each DB instance in the Multi-AZ DB cluster.void
setKmsKeyId
(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
.void
Specifies whether to manage the master user password with AWS Secrets Manager.void
Specifies whether to manage the master user password with AWS Secrets Manager.void
setMasterUsername
(String value) The name of the master user for the DB cluster.void
setMasterUserPassword
(String value) The master password for the DB instance.void
setMasterUserSecret
(IResolvable value) The secret managed by RDS in AWS Secrets Manager for the master user password.void
The secret managed by RDS in AWS Secrets Manager for the master user password.void
setMonitoringInterval
(Number value) The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB cluster.void
setMonitoringRoleArn
(String value) The Amazon Resource Name (ARN) for the IAM role that permits RDS to send Enhanced Monitoring metrics to Amazon CloudWatch Logs.void
setNetworkType
(String value) The network type of the DB cluster.void
Specifies whether to turn on Performance Insights for the DB cluster.void
Specifies whether to turn on Performance Insights for the DB cluster.void
The AWS KMS key identifier for encryption of Performance Insights data.void
The number of days to retain Performance Insights data.void
The port number on which the DB instances in the DB cluster accept connections.void
setPreferredBackupWindow
(String value) The daily time range during which automated backups are created.void
The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).void
setPubliclyAccessible
(Boolean value) Specifies whether the DB cluster is publicly accessible.void
setPubliclyAccessible
(IResolvable value) Specifies whether the DB cluster is publicly accessible.void
The Amazon Resource Name (ARN) of the source DB instance or DB cluster if this DB cluster is created as a read replica.void
setRestoreToTime
(String value) The date and time to restore the DB cluster to.void
setRestoreType
(String value) The type of restore to be performed.void
The scaling configuration of an Aurora Serverless v1 DB cluster.void
The scaling configuration of an Aurora Serverless v1 DB cluster.void
The scaling configuration of an Aurora Serverless V2 DB cluster.void
The scaling configuration of an Aurora Serverless V2 DB cluster.void
setSnapshotIdentifier
(String value) The identifier for the DB snapshot or DB cluster snapshot to restore from.void
When restoring a DB cluster to a point in time, the identifier of the source DB cluster from which to restore.void
setSourceRegion
(String value) The AWS Region which contains the source DB cluster when replicating a DB cluster.void
setStorageEncrypted
(Boolean value) Indicates whether the DB cluster is encrypted.void
setStorageEncrypted
(IResolvable value) Indicates whether the DB cluster is encrypted.void
setStorageType
(String value) The storage type to associate with the DB cluster.void
setTagsRaw
(List<CfnTag> value) Tags to assign to the DB cluster.void
A value that indicates whether to restore the DB cluster to the latest restorable backup time.void
A value that indicates whether to restore the DB cluster to the latest restorable backup time.void
setVpcSecurityGroupIds
(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, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.constructs.Construct
getNode, isConstruct
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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:
inspect
in 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:
renderProperties
in 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
TheEndpoint
return 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
TheReadEndpoint
return 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:
getCfnProperties
in classCfnResource
-
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. -
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. -
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. -
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. -
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. -
getDeletionProtection
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. -
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). -
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.
-
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. -
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. -
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, eitherprovisioned
orserverless
. -
setEngineMode
The DB engine mode of the DB cluster, eitherprovisioned
orserverless
. -
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. -
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. -
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. -
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. -
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. -
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. -
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. -
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. -
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. -
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. -
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.
-