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
For information about the parameters that are common to all actions, see Common Parameters.
- 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 specifyAdminUserPassword.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 specifyAdminUsername.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
VpcSubnetIdsinRoutingEndpointConfiguration, and you must specifyAdminUsernameandAdminUserPassword.Default:
falseType: 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:miDefault: 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:miValid 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
EnableRoutingistrue, and includeVpcSubnetIds.Type: RoutingEndpointConfiguration object
Required: No
- Tags.Tag.N
-
Tags to assign to the DB cluster group.
Type: Array of Tag objects
Required: No
- TagSpecifications.item.N
-
Tags to assign to resources associated with the DB cluster group.
Type: Array of TagSpecification objects
Required: No
Response Elements
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, andRestoreDBClusterGroupToPointInTimeactions.Type: DBClusterGroup object
Errors
For information about the errors that are common to all actions, see Common Error Types.
- 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
For more information about using this API in one of the language-specific AWS SDKs, see the following: