create_subnet_group
¶
create_subnet_group(
subnet_group_name: String,
subnet_ids: SubnetIdentifierList,
*,
config_overrides: Optional[DAXClientConfig] = None,
description: Optional[String] = None,
) -> CreateSubnetGroupResponse
Creates a new subnet group.
Parameters:
-
subnet_group_name(String) –A name for the subnet group. This value is stored as a lowercase string.
-
description(Optional[String], default:None) –A description for the subnet group
-
subnet_ids(SubnetIdentifierList) –A list of VPC subnet IDs for the subnet group.
Raises:
-
InvalidSubnet–An invalid subnet identifier was specified.
-
ServiceLinkedRoleNotFoundFault–The specified service linked role (SLR) was not found.
-
SubnetGroupAlreadyExistsFault–The specified subnet group already exists.
-
SubnetGroupQuotaExceededFault–The request cannot be processed because it would exceed the allowed number of subnets in a subnet group.
-
SubnetNotAllowedFault–The specified subnet can't be used for the requested network type. This error occurs when either there aren't enough subnets of the required network type to create the cluster, or when you try to use a subnet that doesn't support the requested network type (for example, trying to create a dual-stack cluster with a subnet that doesn't have IPv6 CIDR).
-
SubnetQuotaExceededFault–The request cannot be processed because it would exceed the allowed number of subnets in a subnet group.
-
UnknownServiceError–The service returned an error code this client does not model.