create_db_shard_group
¶
create_db_shard_group(
*,
config_overrides: Optional[RDSClientConfig] = None,
db_shard_group_identifier: Optional[String] = None,
db_cluster_identifier: Optional[String] = None,
compute_redundancy: Optional[IntegerOptional] = None,
max_acu: Optional[DoubleOptional] = None,
min_acu: Optional[DoubleOptional] = None,
publicly_accessible: Optional[BooleanOptional] = None,
tags: Optional[TagList] = None,
) -> DBShardGroup
Creates a new DB shard group for Aurora Limitless Database. You must enable Aurora Limitless Database to create a DB shard group.
Valid for: Aurora DB clusters only
Parameters:
-
db_shard_group_identifier(Optional[String], default:None) –The name of the DB shard group.
-
db_cluster_identifier(Optional[String], default:None) –The name of the primary DB cluster for the DB shard group.
-
compute_redundancy(Optional[IntegerOptional], default:None) –Specifies whether to create standby standby DB data access shard for the DB shard group. Valid values are the following:
-
0 - Creates a DB shard group without a standby DB data access shard. This is the default value.
-
1 - Creates a DB shard group with a standby DB data access shard in a different Availability Zone (AZ).
-
2 - Creates a DB shard group with two standby DB data access shard in two different AZs.
-
-
max_acu(Optional[DoubleOptional], default:None) –The maximum capacity of the DB shard group in Aurora capacity units (ACUs).
-
min_acu(Optional[DoubleOptional], default:None) –The minimum capacity of the DB shard group in Aurora capacity units (ACUs).
-
publicly_accessible(Optional[BooleanOptional], default:None) –Specifies whether the DB shard group is publicly accessible.
When the DB shard group is publicly accessible, its Domain Name System (DNS) endpoint resolves to the private IP address from within the DB shard group's virtual private cloud (VPC). It resolves to the public IP address from outside of the DB shard group's VPC. Access to the DB shard group is ultimately controlled by the security group it uses. That public access is not permitted if the security group assigned to the DB shard group doesn't permit it.
When the DB shard group isn't publicly accessible, it is an internal DB shard group with a DNS name that resolves to a private IP address.
Default: The default behavior varies depending on whether
DBSubnetGroupNameis specified.If
DBSubnetGroupNameisn't specified, andPubliclyAccessibleisn't specified, the following applies:-
If the default VPC in the target Region doesn’t have an internet gateway attached to it, the DB shard group is private.
-
If the default VPC in the target Region has an internet gateway attached to it, the DB shard group is public.
If
DBSubnetGroupNameis specified, andPubliclyAccessibleisn't specified, the following applies:-
If the subnets are part of a VPC that doesn’t have an internet gateway attached to it, the DB shard group is private.
-
If the subnets are part of a VPC that has an internet gateway attached to it, the DB shard group is public.
-
Raises:
-
DBClusterNotFoundFault–DBClusterIdentifierdoesn't refer to an existing DB cluster. -
DBShardGroupAlreadyExistsFault–The specified DB shard group name must be unique in your Amazon Web Services account in the specified Amazon Web Services Region.
-
InvalidDBClusterStateFault–The requested operation can't be performed while the cluster is in this state.
-
InvalidVPCNetworkStateFault–The DB subnet group doesn't cover all Availability Zones after it's created because of users' change.
-
MaxDBShardGroupLimitReached–The maximum number of DB shard groups for your Amazon Web Services account in the specified Amazon Web Services Region has been reached.
-
NetworkTypeNotSupported–The network type is invalid for the DB instance. Valid nework type values are
IPV4andDUAL. -
UnsupportedDBEngineVersionFault–The specified DB engine version isn't supported for Aurora Limitless Database.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_rds/_services/rds.py
3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 | |