Represents the output of a GetBatchPrediction operation.

The content consists of the detailed metadata, the status, and the data

file information of a Batch Prediction.

BatchPrediction is referenced in 1 repository


//    err := req.Send()
//    if err == nil { // resp is now filled
//        fmt.Println(resp)
//    }
func (c *MachineLearning) GetDataSourceRequest(input *GetDataSourceInput) (req *request.Request, output *GetDataSourceOutput) {
	op := &request.Operation{
		Name:       opGetDataSource,
		HTTPMethod: "POST",
		HTTPPath:   "/",

	if input == nil {
		input = &GetDataSourceInput{}

	req = c.newRequest(op, input, output)
	output = &GetDataSourceOutput{}
	req.Data = output

// GetDataSource API operation for Amazon Machine Learning.
// Returns a DataSource that includes metadata and data file information, as
// well as the current status of the DataSource.
// GetDataSource provides results in normal or verbose format. The verbose format
// adds the schema description and the list of files pointed to by the DataSource
// to the normal format.
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
// See the AWS API reference guide for Amazon Machine Learning's
// API operation GetDataSource for usage and error information.
// Returned Error Codes:
//   * InvalidInputException
//   An error on the client occurred. Typically, the cause is an invalid input
//   value.
//   * ResourceNotFoundException
//   A specified resource cannot be located.
//   * InternalServerException
//   An error on the server occurred when trying to process a request.
func (c *MachineLearning) GetDataSource(input *GetDataSourceInput) (*GetDataSourceOutput, error) {
	req, out := c.GetDataSourceRequest(input)
	err := req.Send()
	return out, err

const opGetEvaluation = "GetEvaluation"

// GetEvaluationRequest generates a "aws/request.Request" representing the
// client's request for the GetEvaluation operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
// See GetEvaluation for usage and error information.
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If