Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Returns a BatchPrediction
that includes detailed metadata, status, and
data file information for a Batch Prediction
request.
Synopsis
- data GetBatchPrediction = GetBatchPrediction' {}
- newGetBatchPrediction :: Text -> GetBatchPrediction
- getBatchPrediction_batchPredictionId :: Lens' GetBatchPrediction Text
- data GetBatchPredictionResponse = GetBatchPredictionResponse' {
- status :: Maybe EntityStatus
- lastUpdatedAt :: Maybe POSIX
- createdAt :: Maybe POSIX
- computeTime :: Maybe Integer
- inputDataLocationS3 :: Maybe Text
- mLModelId :: Maybe Text
- batchPredictionDataSourceId :: Maybe Text
- totalRecordCount :: Maybe Integer
- startedAt :: Maybe POSIX
- batchPredictionId :: Maybe Text
- finishedAt :: Maybe POSIX
- invalidRecordCount :: Maybe Integer
- createdByIamUser :: Maybe Text
- name :: Maybe Text
- logUri :: Maybe Text
- message :: Maybe Text
- outputUri :: Maybe Text
- httpStatus :: Int
- newGetBatchPredictionResponse :: Int -> GetBatchPredictionResponse
- getBatchPredictionResponse_status :: Lens' GetBatchPredictionResponse (Maybe EntityStatus)
- getBatchPredictionResponse_lastUpdatedAt :: Lens' GetBatchPredictionResponse (Maybe UTCTime)
- getBatchPredictionResponse_createdAt :: Lens' GetBatchPredictionResponse (Maybe UTCTime)
- getBatchPredictionResponse_computeTime :: Lens' GetBatchPredictionResponse (Maybe Integer)
- getBatchPredictionResponse_inputDataLocationS3 :: Lens' GetBatchPredictionResponse (Maybe Text)
- getBatchPredictionResponse_mLModelId :: Lens' GetBatchPredictionResponse (Maybe Text)
- getBatchPredictionResponse_batchPredictionDataSourceId :: Lens' GetBatchPredictionResponse (Maybe Text)
- getBatchPredictionResponse_totalRecordCount :: Lens' GetBatchPredictionResponse (Maybe Integer)
- getBatchPredictionResponse_startedAt :: Lens' GetBatchPredictionResponse (Maybe UTCTime)
- getBatchPredictionResponse_batchPredictionId :: Lens' GetBatchPredictionResponse (Maybe Text)
- getBatchPredictionResponse_finishedAt :: Lens' GetBatchPredictionResponse (Maybe UTCTime)
- getBatchPredictionResponse_invalidRecordCount :: Lens' GetBatchPredictionResponse (Maybe Integer)
- getBatchPredictionResponse_createdByIamUser :: Lens' GetBatchPredictionResponse (Maybe Text)
- getBatchPredictionResponse_name :: Lens' GetBatchPredictionResponse (Maybe Text)
- getBatchPredictionResponse_logUri :: Lens' GetBatchPredictionResponse (Maybe Text)
- getBatchPredictionResponse_message :: Lens' GetBatchPredictionResponse (Maybe Text)
- getBatchPredictionResponse_outputUri :: Lens' GetBatchPredictionResponse (Maybe Text)
- getBatchPredictionResponse_httpStatus :: Lens' GetBatchPredictionResponse Int
Creating a Request
data GetBatchPrediction Source #
See: newGetBatchPrediction
smart constructor.
GetBatchPrediction' | |
|
Instances
newGetBatchPrediction Source #
Create a value of GetBatchPrediction
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:batchPredictionId:GetBatchPrediction'
, getBatchPrediction_batchPredictionId
- An ID assigned to the BatchPrediction
at creation.
Request Lenses
getBatchPrediction_batchPredictionId :: Lens' GetBatchPrediction Text Source #
An ID assigned to the BatchPrediction
at creation.
Destructuring the Response
data GetBatchPredictionResponse Source #
Represents the output of a GetBatchPrediction
operation and describes
a BatchPrediction
.
See: newGetBatchPredictionResponse
smart constructor.
GetBatchPredictionResponse' | |
|
Instances
newGetBatchPredictionResponse Source #
Create a value of GetBatchPredictionResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:status:GetBatchPredictionResponse'
, getBatchPredictionResponse_status
- The status of the BatchPrediction
, which can be one of the following
values:
PENDING
- Amazon Machine Learning (Amazon ML) submitted a request to generate batch predictions.INPROGRESS
- The batch predictions are in progress.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
- TheBatchPrediction
is marked as deleted. It is not usable.
$sel:lastUpdatedAt:GetBatchPredictionResponse'
, getBatchPredictionResponse_lastUpdatedAt
- The time of the most recent edit to BatchPrediction
. The time is
expressed in epoch time.
$sel:createdAt:GetBatchPredictionResponse'
, getBatchPredictionResponse_createdAt
- The time when the BatchPrediction
was created. The time is expressed
in epoch time.
$sel:computeTime:GetBatchPredictionResponse'
, getBatchPredictionResponse_computeTime
- The approximate CPU time in milliseconds that Amazon Machine Learning
spent processing the BatchPrediction
, normalized and scaled on
computation resources. ComputeTime
is only available if the
BatchPrediction
is in the COMPLETED
state.
$sel:inputDataLocationS3:GetBatchPredictionResponse'
, getBatchPredictionResponse_inputDataLocationS3
- The location of the data file or directory in Amazon Simple Storage
Service (Amazon S3).
$sel:mLModelId:GetBatchPredictionResponse'
, getBatchPredictionResponse_mLModelId
- The ID of the MLModel
that generated predictions for the
BatchPrediction
request.
$sel:batchPredictionDataSourceId:GetBatchPredictionResponse'
, getBatchPredictionResponse_batchPredictionDataSourceId
- The ID of the DataSource
that was used to create the
BatchPrediction
.
$sel:totalRecordCount:GetBatchPredictionResponse'
, getBatchPredictionResponse_totalRecordCount
- The number of total records that Amazon Machine Learning saw while
processing the BatchPrediction
.
$sel:startedAt:GetBatchPredictionResponse'
, getBatchPredictionResponse_startedAt
- The epoch time when Amazon Machine Learning marked the BatchPrediction
as INPROGRESS
. StartedAt
isn't available if the BatchPrediction
is in the PENDING
state.
$sel:batchPredictionId:GetBatchPrediction'
, getBatchPredictionResponse_batchPredictionId
- An ID assigned to the BatchPrediction
at creation. This value should
be identical to the value of the BatchPredictionID
in the request.
$sel:finishedAt:GetBatchPredictionResponse'
, getBatchPredictionResponse_finishedAt
- The epoch time when Amazon Machine Learning marked the BatchPrediction
as COMPLETED
or FAILED
. FinishedAt
is only available when the
BatchPrediction
is in the COMPLETED
or FAILED
state.
$sel:invalidRecordCount:GetBatchPredictionResponse'
, getBatchPredictionResponse_invalidRecordCount
- The number of invalid records that Amazon Machine Learning saw while
processing the BatchPrediction
.
$sel:createdByIamUser:GetBatchPredictionResponse'
, getBatchPredictionResponse_createdByIamUser
- 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.
$sel:name:GetBatchPredictionResponse'
, getBatchPredictionResponse_name
- A user-supplied name or description of the BatchPrediction
.
$sel:logUri:GetBatchPredictionResponse'
, getBatchPredictionResponse_logUri
- A link to the file that contains logs of the CreateBatchPrediction
operation.
$sel:message:GetBatchPredictionResponse'
, getBatchPredictionResponse_message
- A description of the most recent details about processing the batch
prediction request.
$sel:outputUri:GetBatchPredictionResponse'
, getBatchPredictionResponse_outputUri
- The location of an Amazon S3 bucket or directory to receive the
operation results.
$sel:httpStatus:GetBatchPredictionResponse'
, getBatchPredictionResponse_httpStatus
- The response's http status code.
Response Lenses
getBatchPredictionResponse_status :: Lens' GetBatchPredictionResponse (Maybe EntityStatus) Source #
The status of the BatchPrediction
, which can be one of the following
values:
PENDING
- Amazon Machine Learning (Amazon ML) submitted a request to generate batch predictions.INPROGRESS
- The batch predictions are in progress.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
- TheBatchPrediction
is marked as deleted. It is not usable.
getBatchPredictionResponse_lastUpdatedAt :: Lens' GetBatchPredictionResponse (Maybe UTCTime) Source #
The time of the most recent edit to BatchPrediction
. The time is
expressed in epoch time.
getBatchPredictionResponse_createdAt :: Lens' GetBatchPredictionResponse (Maybe UTCTime) Source #
The time when the BatchPrediction
was created. The time is expressed
in epoch time.
getBatchPredictionResponse_computeTime :: Lens' GetBatchPredictionResponse (Maybe Integer) Source #
The approximate CPU time in milliseconds that Amazon Machine Learning
spent processing the BatchPrediction
, normalized and scaled on
computation resources. ComputeTime
is only available if the
BatchPrediction
is in the COMPLETED
state.
getBatchPredictionResponse_inputDataLocationS3 :: Lens' GetBatchPredictionResponse (Maybe Text) Source #
The location of the data file or directory in Amazon Simple Storage Service (Amazon S3).
getBatchPredictionResponse_mLModelId :: Lens' GetBatchPredictionResponse (Maybe Text) Source #
The ID of the MLModel
that generated predictions for the
BatchPrediction
request.
getBatchPredictionResponse_batchPredictionDataSourceId :: Lens' GetBatchPredictionResponse (Maybe Text) Source #
The ID of the DataSource
that was used to create the
BatchPrediction
.
getBatchPredictionResponse_totalRecordCount :: Lens' GetBatchPredictionResponse (Maybe Integer) Source #
The number of total records that Amazon Machine Learning saw while
processing the BatchPrediction
.
getBatchPredictionResponse_startedAt :: Lens' GetBatchPredictionResponse (Maybe UTCTime) Source #
The epoch time when Amazon Machine Learning marked the BatchPrediction
as INPROGRESS
. StartedAt
isn't available if the BatchPrediction
is in the PENDING
state.
getBatchPredictionResponse_batchPredictionId :: Lens' GetBatchPredictionResponse (Maybe Text) Source #
An ID assigned to the BatchPrediction
at creation. This value should
be identical to the value of the BatchPredictionID
in the request.
getBatchPredictionResponse_finishedAt :: Lens' GetBatchPredictionResponse (Maybe UTCTime) Source #
The epoch time when Amazon Machine Learning marked the BatchPrediction
as COMPLETED
or FAILED
. FinishedAt
is only available when the
BatchPrediction
is in the COMPLETED
or FAILED
state.
getBatchPredictionResponse_invalidRecordCount :: Lens' GetBatchPredictionResponse (Maybe Integer) Source #
The number of invalid records that Amazon Machine Learning saw while
processing the BatchPrediction
.
getBatchPredictionResponse_createdByIamUser :: Lens' GetBatchPredictionResponse (Maybe Text) Source #
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.
getBatchPredictionResponse_name :: Lens' GetBatchPredictionResponse (Maybe Text) Source #
A user-supplied name or description of the BatchPrediction
.
getBatchPredictionResponse_logUri :: Lens' GetBatchPredictionResponse (Maybe Text) Source #
A link to the file that contains logs of the CreateBatchPrediction
operation.
getBatchPredictionResponse_message :: Lens' GetBatchPredictionResponse (Maybe Text) Source #
A description of the most recent details about processing the batch prediction request.
getBatchPredictionResponse_outputUri :: Lens' GetBatchPredictionResponse (Maybe Text) Source #
The location of an Amazon S3 bucket or directory to receive the operation results.
getBatchPredictionResponse_httpStatus :: Lens' GetBatchPredictionResponse Int Source #
The response's http status code.