

# CreateDBClusterGroup

Creates a DB cluster group. A DB cluster group is a set of Aurora DB clusters that Amazon RDS backs up, restores, and upgrades together. After you create a DB cluster group, use `AddDBClusterToDBClusterGroup` to add DB clusters to it.

## Request Parameters
<a name="API_CreateDBClusterGroup_RequestParameters"></a>

 For information about the parameters that are common to all actions, see [Common Parameters](CommonParameters.md).

 ** DBClusterGroupIdentifier **   
The identifier for the new DB cluster group. This parameter is stored as a lowercase string.  
Constraints:  
+ Must contain from 1 to 63 letters, numbers, or hyphens.
+ First character must be a letter.
+ Can't end with a hyphen or contain two consecutive hyphens.
+ Must be unique for all DB cluster groups owned by your AWS account in the current AWS Region.
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 63.  
Pattern: `[a-zA-Z](?:-?[a-zA-Z0-9]+)*`   
Required: Yes

 ** Engine **   
The database engine to use for the DB cluster group. All member DB clusters must use this engine.  
Valid Values:  
+  `aurora-mysql` - Aurora MySQL-Compatible Edition
+  `aurora-postgresql` - Aurora PostgreSQL-Compatible Edition
Type: String  
Required: Yes

 ** AdminUsername **   
The name of the admin user that the routing endpoint uses to connect to the member DB clusters.  
If you specify `AdminUsername`, you must also specify `AdminUserPassword`.  
Default: None. An admin user is required when you enable routing.  
Type: String  
Required: No

 ** AdminUserPassword **   
The password for the admin user that the routing endpoint uses to connect to the member DB clusters.  
If you specify `AdminUserPassword`, you must also specify `AdminUsername`.  
Default: None. An admin user is required when you enable routing.  
Type: String  
Required: No

 ** BackupRetentionPeriod **   
The number of days for which automated backups of the DB cluster group are retained.  
Default: 1  
Constraints: Must be a value from 1 to 35.  
Type: Integer  
Required: No

 ** CopyTagsToSnapshot **   
Specifies whether to copy all tags from the DB cluster group to snapshots of the DB cluster group. The default is not to copy them.  
Type: Boolean  
Required: No

 ** DeletionProtection **   
Specifies whether the DB cluster group has deletion protection enabled. You can't delete the DB cluster group when deletion protection is enabled. By default, deletion protection isn't enabled.  
Type: Boolean  
Required: No

 ** EnableRouting **   
Specifies whether to enable routing for the DB cluster group. When routing is enabled, Amazon RDS creates a routing endpoint that applications connect to instead of connecting to each member DB cluster.  
When you enable routing, you must specify `VpcSubnetIds` in `RoutingEndpointConfiguration`, and you must specify `AdminUsername` and `AdminUserPassword`.  
Default: `false`   
Type: Boolean  
Required: No

 ** PreferredBackupWindow **   
The daily time range during which automated backups are created for the DB cluster group, in Universal Coordinated Time (UTC).  
Format: `hh24:mi-hh24:mi`   
Default: A 30-minute window selected at random from an 8-hour block of time for each AWS Region, which doesn't overlap the preferred maintenance window.  
Constraints: Must be at least 30 minutes. Must not overlap the preferred maintenance window of the DB cluster group.  
Type: String  
Required: No

 ** PreferredMaintenanceWindow **   
The weekly time range during which system maintenance can occur for the DB cluster group, in Universal Coordinated Time (UTC).  
Format: `ddd:hh24:mi-ddd:hh24:mi`   
Valid Days: Mon, Tue, Wed, Thu, Fri, Sat, Sun.  
Default: A 30-minute window selected at random from an 8-hour block of time for each AWS Region, occurring on a random day of the week, which doesn't overlap the preferred backup window.  
Constraints: Must be at least 30 minutes. Must not overlap the preferred backup window.  
The maintenance window of the DB cluster group can overlap the maintenance windows of its member DB clusters.  
Type: String  
Required: No

 ** RoutingEndpointConfiguration **   
The settings of the routing endpoint. Specify this parameter only when `EnableRouting` is `true`, and include `VpcSubnetIds`.  
Type: [RoutingEndpointConfiguration](API_RoutingEndpointConfiguration.md) object  
Required: No

 **Tags.Tag.N**   
Tags to assign to the DB cluster group.  
Type: Array of [Tag](API_Tag.md) objects  
Required: No

 **TagSpecifications.item.N**   
Tags to assign to resources associated with the DB cluster group.  
Type: Array of [TagSpecification](API_TagSpecification.md) objects  
Required: No

## Response Elements
<a name="API_CreateDBClusterGroup_ResponseElements"></a>

The following element is returned by the service.

 ** DBClusterGroup **   
Describes a DB cluster group, including its settings, status, member DB clusters, and routing endpoint.  
This data type is used as a response element in the `CreateDBClusterGroup`, `DeleteDBClusterGroup`, `DescribeDBClusterGroups`, `ModifyDBClusterGroup`, `RestoreDBClusterGroupFromSnapshot`, and `RestoreDBClusterGroupToPointInTime` actions.  
Type: [DBClusterGroup](API_DBClusterGroup.md) object

## Errors
<a name="API_CreateDBClusterGroup_Errors"></a>

For information about the errors that are common to all actions, see [Common Error Types](CommonErrors.md).

 ** DBClusterGroupAlreadyExists **   
The specified DB cluster group identifier is already in use in your AWS account in the current AWS Region. Specify a different identifier.  
HTTP Status Code: 400

 ** DBClusterGroupQuotaExceeded **   
The request would result in you exceeding the allowed number of DB cluster groups. Delete DB cluster groups that you no longer need, or request a quota increase.  
HTTP Status Code: 400

 ** InsufficientAvailableIPsInSubnetFault **   
The requested operation can't be performed because there aren't enough available IP addresses in the proxy's subnets. Add more CIDR blocks to the VPC or remove IP address that aren't required from the subnets.  
HTTP Status Code: 400

 ** InvalidSubnet **   
The requested subnet is invalid, or multiple subnets were requested that are not all in a common VPC.  
HTTP Status Code: 400

## See Also
<a name="API_CreateDBClusterGroup_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS Command Line Interface V2](https://docs.aws.amazon.com/goto/cli2/rds-2014-10-31/CreateDBClusterGroup) 
+  [AWS SDK for .NET V4](https://docs.aws.amazon.com/goto/DotNetSDKV4/rds-2014-10-31/CreateDBClusterGroup) 
+  [AWS SDK for C\+\+](https://docs.aws.amazon.com/goto/SdkForCpp/rds-2014-10-31/CreateDBClusterGroup) 
+  [AWS SDK for Go v2](https://docs.aws.amazon.com/goto/SdkForGoV2/rds-2014-10-31/CreateDBClusterGroup) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/rds-2014-10-31/CreateDBClusterGroup) 
+  [AWS SDK for JavaScript V3](https://docs.aws.amazon.com/goto/SdkForJavaScriptV3/rds-2014-10-31/CreateDBClusterGroup) 
+  [AWS SDK for Kotlin](https://docs.aws.amazon.com/goto/SdkForKotlin/rds-2014-10-31/CreateDBClusterGroup) 
+  [AWS SDK for PHP V3](https://docs.aws.amazon.com/goto/SdkForPHPV3/rds-2014-10-31/CreateDBClusterGroup) 
+  [AWS SDK for Python (Boto3)](https://docs.aws.amazon.com/goto/boto3/rds-2014-10-31/CreateDBClusterGroup) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/rds-2014-10-31/CreateDBClusterGroup) 