Smaws_Client_DatabaseMigrationService.CreateEndpointCreates an endpoint using the provided settings.
For a MySQL source or target endpoint, don't explicitly specify the database using the DatabaseName request parameter on the CreateEndpoint API call. Specifying DatabaseName when you create a MySQL endpoint replicates all the task tables to this single database. For MySQL endpoints, you specify the database only when you specify the schema in the table-mapping rules of the DMS task.
val error_to_string :
[ Smaws_Lib.Protocols.AwsJson.error
| `AccessDeniedFault of Types.access_denied_fault
| `InvalidResourceStateFault of Types.invalid_resource_state_fault
| `KMSKeyNotAccessibleFault of Types.kms_key_not_accessible_fault
| `ResourceAlreadyExistsFault of Types.resource_already_exists_fault
| `ResourceNotFoundFault of Types.resource_not_found_fault
| `ResourceQuotaExceededFault of Types.resource_quota_exceeded_fault
| `S3AccessDeniedFault of Types.s3_access_denied_fault ] ->
stringval request :
'http_type Smaws_Lib.Context.t ->
Types.create_endpoint_message ->
(Types.create_endpoint_response,
[> Smaws_Lib.Protocols.AwsJson.error
| `AccessDeniedFault of Types.access_denied_fault
| `InvalidResourceStateFault of Types.invalid_resource_state_fault
| `KMSKeyNotAccessibleFault of Types.kms_key_not_accessible_fault
| `ResourceAlreadyExistsFault of Types.resource_already_exists_fault
| `ResourceNotFoundFault of Types.resource_not_found_fault
| `ResourceQuotaExceededFault of Types.resource_quota_exceeded_fault
| `S3AccessDeniedFault of Types.s3_access_denied_fault ])
Stdlib.resultval request_with_metadata :
'http_type Smaws_Lib.Context.t ->
Types.create_endpoint_message ->
(Types.create_endpoint_response Smaws_Lib.Response.t,
[> Smaws_Lib.Protocols.AwsJson.error
| `AccessDeniedFault of Types.access_denied_fault
| `InvalidResourceStateFault of Types.invalid_resource_state_fault
| `KMSKeyNotAccessibleFault of Types.kms_key_not_accessible_fault
| `ResourceAlreadyExistsFault of Types.resource_already_exists_fault
| `ResourceNotFoundFault of Types.resource_not_found_fault
| `ResourceQuotaExceededFault of Types.resource_quota_exceeded_fault
| `S3AccessDeniedFault of Types.s3_access_denied_fault ]
* Smaws_Lib.Response.metadata)
Stdlib.result