Module Smaws_Client_DatabaseMigrationService.CreateReplicationSubnetGroup

Creates a replication subnet group given a list of the subnet IDs in a VPC.

The VPC needs to have at least one subnet in at least two availability zones in the Amazon Web Services Region, otherwise the service will throw a ReplicationSubnetGroupDoesNotCoverEnoughAZs exception.

If a replication subnet group exists in your Amazon Web Services account, the CreateReplicationSubnetGroup action returns the following error message: The Replication Subnet Group already exists. In this case, delete the existing replication subnet group. To do so, use the DeleteReplicationSubnetGroup action. Optionally, choose Subnet groups in the DMS console, then choose your subnet group. Next, choose Delete from Actions.

val error_to_string : [ Smaws_Lib.Protocols.AwsJson.error | `AccessDeniedFault of Types.access_denied_fault | `InvalidSubnet of Types.invalid_subnet | `ReplicationSubnetGroupDoesNotCoverEnoughAZs of Types.replication_subnet_group_does_not_cover_enough_a_zs | `ResourceAlreadyExistsFault of Types.resource_already_exists_fault | `ResourceNotFoundFault of Types.resource_not_found_fault | `ResourceQuotaExceededFault of Types.resource_quota_exceeded_fault ] -> string
val request : 'http_type Smaws_Lib.Context.t -> Types.create_replication_subnet_group_message -> (Types.create_replication_subnet_group_response, [> Smaws_Lib.Protocols.AwsJson.error | `AccessDeniedFault of Types.access_denied_fault | `InvalidSubnet of Types.invalid_subnet | `ReplicationSubnetGroupDoesNotCoverEnoughAZs of Types.replication_subnet_group_does_not_cover_enough_a_zs | `ResourceAlreadyExistsFault of Types.resource_already_exists_fault | `ResourceNotFoundFault of Types.resource_not_found_fault | `ResourceQuotaExceededFault of Types.resource_quota_exceeded_fault ]) Stdlib.result
val request_with_metadata : 'http_type Smaws_Lib.Context.t -> Types.create_replication_subnet_group_message -> (Types.create_replication_subnet_group_response Smaws_Lib.Response.t, [> Smaws_Lib.Protocols.AwsJson.error | `AccessDeniedFault of Types.access_denied_fault | `InvalidSubnet of Types.invalid_subnet | `ReplicationSubnetGroupDoesNotCoverEnoughAZs of Types.replication_subnet_group_does_not_cover_enough_a_zs | `ResourceAlreadyExistsFault of Types.resource_already_exists_fault | `ResourceNotFoundFault of Types.resource_not_found_fault | `ResourceQuotaExceededFault of Types.resource_quota_exceeded_fault ] * Smaws_Lib.Response.metadata) Stdlib.result