Module Smaws_Client_MemoryDB.CreateSubnetGroup

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.

val error_to_string : [ Smaws_Lib.Protocols.AwsJson.error | `InvalidSubnet of Types.invalid_subnet | `ServiceLinkedRoleNotFoundFault of Types.service_linked_role_not_found_fault | `SubnetGroupAlreadyExistsFault of Types.subnet_group_already_exists_fault | `SubnetGroupQuotaExceededFault of Types.subnet_group_quota_exceeded_fault | `SubnetNotAllowedFault of Types.subnet_not_allowed_fault | `SubnetQuotaExceededFault of Types.subnet_quota_exceeded_fault | `TagQuotaPerResourceExceeded of Types.tag_quota_per_resource_exceeded ] -> string
val request : 'http_type Smaws_Lib.Context.t -> Types.create_subnet_group_request -> (Types.create_subnet_group_response, [> Smaws_Lib.Protocols.AwsJson.error | `InvalidSubnet of Types.invalid_subnet | `ServiceLinkedRoleNotFoundFault of Types.service_linked_role_not_found_fault | `SubnetGroupAlreadyExistsFault of Types.subnet_group_already_exists_fault | `SubnetGroupQuotaExceededFault of Types.subnet_group_quota_exceeded_fault | `SubnetNotAllowedFault of Types.subnet_not_allowed_fault | `SubnetQuotaExceededFault of Types.subnet_quota_exceeded_fault | `TagQuotaPerResourceExceeded of Types.tag_quota_per_resource_exceeded ]) Stdlib.result
val request_with_metadata : 'http_type Smaws_Lib.Context.t -> Types.create_subnet_group_request -> (Types.create_subnet_group_response Smaws_Lib.Response.t, [> Smaws_Lib.Protocols.AwsJson.error | `InvalidSubnet of Types.invalid_subnet | `ServiceLinkedRoleNotFoundFault of Types.service_linked_role_not_found_fault | `SubnetGroupAlreadyExistsFault of Types.subnet_group_already_exists_fault | `SubnetGroupQuotaExceededFault of Types.subnet_group_quota_exceeded_fault | `SubnetNotAllowedFault of Types.subnet_not_allowed_fault | `SubnetQuotaExceededFault of Types.subnet_quota_exceeded_fault | `TagQuotaPerResourceExceeded of Types.tag_quota_per_resource_exceeded ] * Smaws_Lib.Response.metadata) Stdlib.result