Smaws_Client_MachineLearning.CreateDataSourceFromRDSCreates a DataSource object from an Amazon Relational Database Service (Amazon RDS). A DataSource references data that can be used to perform CreateMLModel, CreateEvaluation, or CreateBatchPrediction operations.
CreateDataSourceFromRDS is an asynchronous operation. In response to CreateDataSourceFromRDS, Amazon Machine Learning (Amazon ML) immediately returns and sets the DataSource status to PENDING. After the DataSource is created and ready for use, Amazon ML sets the Status parameter to COMPLETED. DataSource in the COMPLETED or PENDING state can be used only to perform >CreateMLModel>, CreateEvaluation, or CreateBatchPrediction operations.
If Amazon ML cannot accept the input source, it sets the Status parameter to FAILED and includes an error message in the Message attribute of the GetDataSource operation response.
val error_to_string :
[ Smaws_Lib.Protocols.AwsJson.error
| `IdempotentParameterMismatchException of
Types.idempotent_parameter_mismatch_exception
| `InternalServerException of Types.internal_server_exception
| `InvalidInputException of Types.invalid_input_exception ] ->
stringval request :
'http_type Smaws_Lib.Context.t ->
Types.create_data_source_from_rds_input ->
(Types.create_data_source_from_rds_output,
[> Smaws_Lib.Protocols.AwsJson.error
| `IdempotentParameterMismatchException of
Types.idempotent_parameter_mismatch_exception
| `InternalServerException of Types.internal_server_exception
| `InvalidInputException of Types.invalid_input_exception ])
Stdlib.resultval request_with_metadata :
'http_type Smaws_Lib.Context.t ->
Types.create_data_source_from_rds_input ->
(Types.create_data_source_from_rds_output Smaws_Lib.Response.t,
[> Smaws_Lib.Protocols.AwsJson.error
| `IdempotentParameterMismatchException of
Types.idempotent_parameter_mismatch_exception
| `InternalServerException of Types.internal_server_exception
| `InvalidInputException of Types.invalid_input_exception ]
* Smaws_Lib.Response.metadata)
Stdlib.result