Interface DeleteDbClusterRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<DeleteDbClusterRequest.Builder,,DeleteDbClusterRequest> RdsRequest.Builder,SdkBuilder<DeleteDbClusterRequest.Builder,,DeleteDbClusterRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
DeleteDbClusterRequest
-
Method Summary
Modifier and TypeMethodDescriptiondbClusterIdentifier(String dbClusterIdentifier) The DB cluster identifier for the DB cluster to be deleted.deleteAutomatedBackups(Boolean deleteAutomatedBackups) Specifies whether to remove automated backups immediately after the DB cluster is deleted.deleteDBInstances(Boolean deleteDBInstances) Specifies whether to delete all DB instances in the DB cluster together with the DB cluster.finalDBSnapshotIdentifier(String finalDBSnapshotIdentifier) The DB cluster snapshot identifier of the new DB cluster snapshot created whenSkipFinalSnapshotis disabled.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.skipFinalSnapshot(Boolean skipFinalSnapshot) Specifies whether to skip the creation of a final DB cluster snapshot before RDS deletes the DB cluster.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.rds.model.RdsRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
dbClusterIdentifier
The DB cluster identifier for the DB cluster to be deleted. This parameter isn't case-sensitive.
Constraints:
-
Must match an existing DBClusterIdentifier.
- Parameters:
dbClusterIdentifier- The DB cluster identifier for the DB cluster to be deleted. This parameter isn't case-sensitive.Constraints:
-
Must match an existing DBClusterIdentifier.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
skipFinalSnapshot
Specifies whether to skip the creation of a final DB cluster snapshot before RDS deletes the DB cluster. If you set this value to
true, RDS doesn't create a final DB cluster snapshot. If you set this value tofalseor don't specify it, RDS creates a DB cluster snapshot before it deletes the DB cluster. By default, this parameter is disabled, so RDS creates a final DB cluster snapshot.If
SkipFinalSnapshotis disabled, you must specify a value for theFinalDBSnapshotIdentifierparameter.- Parameters:
skipFinalSnapshot- Specifies whether to skip the creation of a final DB cluster snapshot before RDS deletes the DB cluster. If you set this value totrue, RDS doesn't create a final DB cluster snapshot. If you set this value tofalseor don't specify it, RDS creates a DB cluster snapshot before it deletes the DB cluster. By default, this parameter is disabled, so RDS creates a final DB cluster snapshot.If
SkipFinalSnapshotis disabled, you must specify a value for theFinalDBSnapshotIdentifierparameter.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
finalDBSnapshotIdentifier
The DB cluster snapshot identifier of the new DB cluster snapshot created when
SkipFinalSnapshotis disabled.If you specify this parameter and also skip the creation of a final DB cluster snapshot with the
SkipFinalShapshotparameter, the request results in an error.Constraints:
-
Must be 1 to 255 letters, numbers, or hyphens.
-
First character must be a letter
-
Can't end with a hyphen or contain two consecutive hyphens
- Parameters:
finalDBSnapshotIdentifier- The DB cluster snapshot identifier of the new DB cluster snapshot created whenSkipFinalSnapshotis disabled.If you specify this parameter and also skip the creation of a final DB cluster snapshot with the
SkipFinalShapshotparameter, the request results in an error.Constraints:
-
Must be 1 to 255 letters, numbers, or hyphens.
-
First character must be a letter
-
Can't end with a hyphen or contain two consecutive hyphens
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
deleteAutomatedBackups
Specifies whether to remove automated backups immediately after the DB cluster is deleted. This parameter isn't case-sensitive. The default is to remove automated backups immediately after the DB cluster is deleted, unless the Amazon Web Services Backup policy specifies a point-in-time restore rule.
- Parameters:
deleteAutomatedBackups- Specifies whether to remove automated backups immediately after the DB cluster is deleted. This parameter isn't case-sensitive. The default is to remove automated backups immediately after the DB cluster is deleted, unless the Amazon Web Services Backup policy specifies a point-in-time restore rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
deleteDBInstances
Specifies whether to delete all DB instances in the DB cluster together with the DB cluster. If you set this value to
true, RDS deletes every DB instance in the DB cluster and then deletes the DB cluster. You don't need to callDeleteDBInstancefor each DB instance first. If you set this value tofalseor don't specify it, RDS deletes the DB cluster only after you delete each of its DB instances.You must have permission to call
DeleteDBInstanceon every DB instance in the DB cluster. If RDS can't delete a DB instance in the DB cluster, the request fails and RDS doesn't delete the DB cluster or any of its DB instances.Constraints:
-
You can't specify this parameter for a DB cluster that is a member of an Aurora global database. Remove the DB cluster from the global database first.
-
You can't specify this parameter for an Aurora Limitless Database DB cluster.
-
Deletion protection must be turned off for the DB cluster.
-
No DB instance in the DB cluster can be in the
deletingstate or be switching over, be the blue DB instance of an active blue/green deployment, or have an active zero-ETL integration. -
No DB instance in the DB cluster can be the source of an Aurora read replica DB cluster, or have a read replica that is being created or a cross-Region read replica that is being restored.
-
The DB cluster can't be in the
stoppingstate.
If the DB cluster doesn't contain any DB instances, RDS deletes the DB cluster the same way as when you don't specify this parameter.
Default:
falseValid for Cluster Type: Aurora MySQL and Aurora PostgreSQL DB clusters only
- Parameters:
deleteDBInstances- Specifies whether to delete all DB instances in the DB cluster together with the DB cluster. If you set this value totrue, RDS deletes every DB instance in the DB cluster and then deletes the DB cluster. You don't need to callDeleteDBInstancefor each DB instance first. If you set this value tofalseor don't specify it, RDS deletes the DB cluster only after you delete each of its DB instances.You must have permission to call
DeleteDBInstanceon every DB instance in the DB cluster. If RDS can't delete a DB instance in the DB cluster, the request fails and RDS doesn't delete the DB cluster or any of its DB instances.Constraints:
-
You can't specify this parameter for a DB cluster that is a member of an Aurora global database. Remove the DB cluster from the global database first.
-
You can't specify this parameter for an Aurora Limitless Database DB cluster.
-
Deletion protection must be turned off for the DB cluster.
-
No DB instance in the DB cluster can be in the
deletingstate or be switching over, be the blue DB instance of an active blue/green deployment, or have an active zero-ETL integration. -
No DB instance in the DB cluster can be the source of an Aurora read replica DB cluster, or have a read replica that is being created or a cross-Region read replica that is being restored.
-
The DB cluster can't be in the
stoppingstate.
If the DB cluster doesn't contain any DB instances, RDS deletes the DB cluster the same way as when you don't specify this parameter.
Default:
falseValid for Cluster Type: Aurora MySQL and Aurora PostgreSQL DB clusters only
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
overrideConfiguration
DeleteDbClusterRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
DeleteDbClusterRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-