CreateDataGroup
Creates a data group in an Aurora DB cluster. A data group is a container for one or more databases in an Aurora DB cluster that you manage as a single unit.
Creating a data group is asynchronous. The data group has the status creating until it becomes active.
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
- DataGroupName
-
The name of the data group. The name must be unique within the DB cluster.
Constraints:
-
For Aurora PostgreSQL, must contain from 1 to 36 letters or numbers.
-
First character must be a letter.
-
The name isn't case-sensitive. Amazon RDS stores it in lowercase.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 63.
Pattern:
[a-zA-Z][a-zA-Z0-9]*([-][a-zA-Z0-9]+)*Required: Yes
-
- DBClusterIdentifier
-
The identifier of the DB cluster to create the data group in.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 255.
Pattern:
[A-Za-z][0-9A-Za-z-:._]*Required: Yes
- AdditionalEncryptionContext
- AdditionalEncryptionContext.entry.N.key (key)
- AdditionalEncryptionContext.entry.N.value (value)
-
An optional set of non-secret key-value pairs that contains additional contextual information about the data. For more information, see Encryption context in the AWS Key Management Service Developer Guide.
You can only include this parameter if you specify the
KmsKeyIdparameter.Type: String to string map
Required: No
- DataGroupEndpointName
-
The name of the data group endpoint. The name must be unique in your AWS account in the current AWS Region.
Specify this parameter only when
EnableEndpointistrue.Type: String
Length Constraints: Minimum length of 1. Maximum length of 63.
Pattern:
[a-zA-Z][a-zA-Z0-9]*([-][a-zA-Z0-9]+)*Required: No
- EnableEndpoint
-
Specifies whether to create an endpoint for the data group. The data group endpoint stays the same when the data group moves to another DB cluster.
If you enable the endpoint, you must also specify
DataGroupEndpointName.Type: Boolean
Required: No
- KmsKeyId
-
The AWS KMS key identifier for the key to use to encrypt the data group. The AWS KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key.
If you don't specify a KMS key, the data group uses the same encryption as the DB cluster.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 2048.
Pattern:
[a-zA-Z0-9_:\-\/]+Required: No
- Tags.Tag.N
-
Tags to assign to the data group.
Type: Array of Tag objects
Required: No
Response Elements
The following element is returned by the service.
- DataGroup
-
Describes a data group. A data group is a container for one or more databases in an Aurora DB cluster that you manage as a single unit.
This data type is used as a response element in the
CreateDataGroup,DeleteDataGroup,DescribeDataGroups,ModifyDataGroup, andMoveDataGroupactions.Type: DataGroup object
Errors
For information about the errors that are common to all actions, see Common Error Types.
- DataGroupEndpointAlreadyExistsFault
-
The specified data group endpoint name is already in use in your AWS account in the current AWS Region. Specify a different name.
HTTP Status Code: 400
- DataGroupEndpointNameRequiredFault
-
You must specify
DataGroupEndpointNamewhen you enable the data group endpoint.HTTP Status Code: 400
- DataGroupEndpointQuotaExceededFault
-
The request would result in you exceeding the allowed number of data group endpoints.
HTTP Status Code: 400
- DataGroupNameInUseFault
-
The specified data group name is already in use on the DB cluster. For a move, the name is in use on the target DB cluster.
HTTP Status Code: 400
- DataGroupQuotaExceededFault
-
The DB cluster already has the maximum number of data groups. For a move, the target DB cluster already has the maximum number of data groups.
HTTP Status Code: 400
- DBClusterNotFoundFault
-
DBClusterIdentifierdoesn't refer to an existing DB cluster.HTTP Status Code: 404
- InvalidDBClusterStateFault
-
The requested operation can't be performed while the cluster is in this state.
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: