create_subnet_group
async
¶
create_subnet_group(
subnet_group_name: String,
subnet_ids: SubnetIdentifierList,
*,
config_overrides: Optional[AsyncMemoryDBClientConfig] = None,
description: Optional[String] = None,
tags: Optional[TagList] = None,
) -> CreateSubnetGroupResponse
Creates a subnet group. A subnet group is a collection of subnets (typically private) that you can designate for your clusters running in an Amazon Virtual Private Cloud (VPC) environment. When you create a cluster in an Amazon VPC, you must specify a subnet group. MemoryDB uses that subnet group to choose a subnet and IP addresses within that subnet to associate with your nodes. For more information, see Subnets and subnet groups.
Parameters:
-
subnet_group_name(String) –The name of the subnet group.
-
description(Optional[String], default:None) –A description for the subnet group.
-
subnet_ids(SubnetIdentifierList) –A list of VPC subnet IDs for the subnet group.
-
tags(Optional[TagList], default:None) –A list of tags to be added to this resource. A tag is a key-value pair. A tag key must be accompanied by a tag value, although null is accepted.
Raises:
-
InvalidSubnet–The specified subnet is not valid.
-
ServiceLinkedRoleNotFoundFault–The required service-linked role was not found.
-
SubnetGroupAlreadyExistsFault–A subnet group with the specified name already exists.
-
SubnetGroupQuotaExceededFault–The request cannot be processed because it would exceed the maximum number of subnet groups allowed.
-
SubnetNotAllowedFault–The specified subnet is not allowed for this operation.
-
SubnetQuotaExceededFault–The request cannot be processed because it would exceed the maximum number of subnets allowed.
-
TagQuotaPerResourceExceeded–The request cannot be processed because it would exceed the maximum number of tags allowed per resource.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_memorydb/_services/async_memory_db.py
958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 | |