View a markdown version of this page

RestoreDBClusterGroupFromSnapshot - Amazon Relational Database Service

RestoreDBClusterGroupFromSnapshot

Creates a new DB cluster group from a DB cluster group snapshot. Amazon RDS creates a DB cluster for each member DB cluster in the snapshot. The restored DB clusters have no DB instances. Add DB instances to them with CreateDBInstance.

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

DBClusterGroupSnapshotIdentifier

The identifier of the DB cluster group snapshot to restore from.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 255.

Pattern: [a-zA-Z0-9:][a-zA-Z0-9:\-]*

Required: Yes

AdminUsername

The name of the admin user that the routing endpoint uses to connect to the member DB clusters.

You can specify this parameter only when the source has no admin user. Otherwise, the restored DB cluster group uses the admin user of the source.

Type: String

Required: No

AdminUserPassword

The password for the admin user. If you specify this parameter without AdminUsername, it changes the password of the admin user that the restored DB cluster group inherits from the source.

Type: String

Required: No

BackupRetentionPeriod

The number of days for which automated backups of the restored DB cluster group are retained.

Default: The backup retention period stored in the DB cluster group snapshot.

Constraints: Must be a value from 1 to 35. Can't be greater than the backup retention period of any member DB cluster.

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, even when routing is enabled on the source DB cluster group.

Type: Boolean

Required: No

MemberClusterOverrides.MemberClusterOverride.N

A list of per-DB cluster settings that override MemberClusterProvisioningConfiguration for specific source DB clusters.

Type: Array of MemberClusterOverride objects

Required: No

MemberClusterProvisioningConfiguration

The settings to use for every DB cluster that Amazon RDS creates in the restored DB cluster group. To use different settings for specific DB clusters, use MemberClusterOverrides.

Type: MemberClusterProvisioningConfiguration object

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: The preferred backup window stored in the DB cluster group snapshot.

Constraints: Must be at least 30 minutes. Must not overlap the preferred maintenance window of the DB cluster group.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 32.

Pattern: [0-9:\-]+

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

Length Constraints: Minimum length of 1. Maximum length of 32.

Pattern: [a-zA-Z0-9:\-]+

Required: No

RoutingEndpointConfiguration

The settings of the routing endpoint. Specify this parameter only when EnableRouting is true, and include VpcSubnetIds.

Type: RoutingEndpointConfiguration object

Required: No

Tags.Tag.N

Tags to assign to the restored 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, and RestoreDBClusterGroupToPointInTime actions.

Type: DBClusterGroup object

Errors

For information about the errors that are common to all actions, see Common Error Types.

DBClusterAlreadyExistsFault

The user already has a DB cluster with the given identifier.

HTTP Status Code: 400

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

DBClusterGroupSnapshotNotFound

The specified DB cluster group snapshot wasn't found. Verify that the DB cluster group snapshot identifier is correct.

HTTP Status Code: 404

DBClusterQuotaExceededFault

The user attempted to create a new DB cluster and the user has already reached the maximum allowed DB cluster quota.

HTTP Status Code: 403

DBSubnetGroupNotFoundFault

DBSubnetGroupName doesn't refer to an existing DB subnet group.

HTTP Status Code: 404

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

InvalidDBClusterGroupSnapshotState

The DB cluster group snapshot isn't in a valid state.

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

InvalidVPCNetworkStateFault

The DB subnet group doesn't cover all Availability Zones after it's created because of users' change.

HTTP Status Code: 400

KMSKeyNotAccessibleFault

An error occurred accessing an AWS KMS key.

HTTP Status Code: 400

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: