AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

BatchPrediction

import "github.com/aws/aws-sdk-go/service/machinelearning"

type BatchPrediction struct { BatchPredictionDataSourceId *string `min:"1" type:"string"` BatchPredictionId *string `min:"1" type:"string"` ComputeTime *int64 `type:"long"` CreatedAt *time.Time `type:"timestamp"` CreatedByIamUser *string `type:"string"` FinishedAt *time.Time `type:"timestamp"` InputDataLocationS3 *string `type:"string"` InvalidRecordCount *int64 `type:"long"` LastUpdatedAt *time.Time `type:"timestamp"` MLModelId *string `min:"1" type:"string"` Message *string `type:"string"` Name *string `type:"string"` OutputUri *string `type:"string"` StartedAt *time.Time `type:"timestamp"` Status *string `type:"string" enum:"EntityStatus"` TotalRecordCount *int64 `type:"long"` }

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.

BatchPredictionDataSourceId

Type: *string

The ID of the DataSource that points to the group of observations to predict.

BatchPredictionId

Type: *string

The ID assigned to the BatchPrediction at creation. This value should be identical to the value of the BatchPredictionID in the request.

ComputeTime

Type: *int64

Long integer type that is a 64-bit signed number.

CreatedAt

Type: *time.Time

The time that the BatchPrediction was created. The time is expressed in epoch time.

CreatedByIamUser

Type: *string

The AWS user account that invoked the BatchPrediction. The account type can be either an AWS root account or an AWS Identity and Access Management (IAM) user account.

FinishedAt

Type: *time.Time

A timestamp represented in epoch time.

InputDataLocationS3

Type: *string

The location of the data file or directory in Amazon Simple Storage Service (Amazon S3).

InvalidRecordCount

Type: *int64

Long integer type that is a 64-bit signed number.

LastUpdatedAt

Type: *time.Time

The time of the most recent edit to the BatchPrediction. The time is expressed in epoch time.

MLModelId

Type: *string

The ID of the MLModel that generated predictions for the BatchPrediction request.

Message

Type: *string

A description of the most recent details about processing the batch prediction request.

Name

Type: *string

A user-supplied name or description of the BatchPrediction.

OutputUri

Type: *string

The location of an Amazon S3 bucket or directory to receive the operation results. The following substrings are not allowed in the s3 key portion of the outputURI field: ':', '//', '/./', '/../'.

StartedAt

Type: *time.Time

A timestamp represented in epoch time.

Status

Type: *string

The status of the BatchPrediction. This element can have one of the following values:

  • PENDING - Amazon Machine Learning (Amazon ML) submitted a request to generate predictions for a batch of observations.

  • INPROGRESS - The process is underway.

  • FAILED - The request to perform a batch prediction did not run to completion. It is not usable.

  • COMPLETED - The batch prediction process completed successfully.

  • DELETED - The BatchPrediction is marked as deleted. It is not usable.

TotalRecordCount

Type: *int64

Long integer type that is a 64-bit signed number.

Method

GoString

func (s BatchPrediction) GoString() string

GoString returns the string representation

SetBatchPredictionDataSourceId

func (s *BatchPrediction) SetBatchPredictionDataSourceId(v string) *BatchPrediction

SetBatchPredictionDataSourceId sets the BatchPredictionDataSourceId field's value.

SetBatchPredictionId

func (s *BatchPrediction) SetBatchPredictionId(v string) *BatchPrediction

SetBatchPredictionId sets the BatchPredictionId field's value.

SetComputeTime

func (s *BatchPrediction) SetComputeTime(v int64) *BatchPrediction

SetComputeTime sets the ComputeTime field's value.

SetCreatedAt

func (s *BatchPrediction) SetCreatedAt(v time.Time) *BatchPrediction

SetCreatedAt sets the CreatedAt field's value.

SetCreatedByIamUser

func (s *BatchPrediction) SetCreatedByIamUser(v string) *BatchPrediction

SetCreatedByIamUser sets the CreatedByIamUser field's value.

SetFinishedAt

func (s *BatchPrediction) SetFinishedAt(v time.Time) *BatchPrediction

SetFinishedAt sets the FinishedAt field's value.

SetInputDataLocationS3

func (s *BatchPrediction) SetInputDataLocationS3(v string) *BatchPrediction

SetInputDataLocationS3 sets the InputDataLocationS3 field's value.

SetInvalidRecordCount

func (s *BatchPrediction) SetInvalidRecordCount(v int64) *BatchPrediction

SetInvalidRecordCount sets the InvalidRecordCount field's value.

SetLastUpdatedAt

func (s *BatchPrediction) SetLastUpdatedAt(v time.Time) *BatchPrediction

SetLastUpdatedAt sets the LastUpdatedAt field's value.

SetMLModelId

func (s *BatchPrediction) SetMLModelId(v string) *BatchPrediction

SetMLModelId sets the MLModelId field's value.

SetMessage

func (s *BatchPrediction) SetMessage(v string) *BatchPrediction

SetMessage sets the Message field's value.

SetName

func (s *BatchPrediction) SetName(v string) *BatchPrediction

SetName sets the Name field's value.

SetOutputUri

func (s *BatchPrediction) SetOutputUri(v string) *BatchPrediction

SetOutputUri sets the OutputUri field's value.

SetStartedAt

func (s *BatchPrediction) SetStartedAt(v time.Time) *BatchPrediction

SetStartedAt sets the StartedAt field's value.

SetStatus

func (s *BatchPrediction) SetStatus(v string) *BatchPrediction

SetStatus sets the Status field's value.

SetTotalRecordCount

func (s *BatchPrediction) SetTotalRecordCount(v int64) *BatchPrediction

SetTotalRecordCount sets the TotalRecordCount field's value.

String

func (s BatchPrediction) String() string

String returns the string representation

On this page: