amazonka-ml-1.6.1: Amazon Machine Learning SDK.

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.MachineLearning.GetBatchPrediction

Contents

Description

Returns a BatchPrediction that includes detailed metadata, status, and data file information for a Batch Prediction request.

Synopsis

Creating a Request

getBatchPrediction Source #

Creates a value of GetBatchPrediction with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data GetBatchPrediction Source #

See: getBatchPrediction smart constructor.

Instances
Eq GetBatchPrediction Source # 
Instance details

Defined in Network.AWS.MachineLearning.GetBatchPrediction

Data GetBatchPrediction Source # 
Instance details

Defined in Network.AWS.MachineLearning.GetBatchPrediction

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> GetBatchPrediction -> c GetBatchPrediction #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c GetBatchPrediction #

toConstr :: GetBatchPrediction -> Constr #

dataTypeOf :: GetBatchPrediction -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c GetBatchPrediction) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c GetBatchPrediction) #

gmapT :: (forall b. Data b => b -> b) -> GetBatchPrediction -> GetBatchPrediction #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> GetBatchPrediction -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> GetBatchPrediction -> r #

gmapQ :: (forall d. Data d => d -> u) -> GetBatchPrediction -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> GetBatchPrediction -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> GetBatchPrediction -> m GetBatchPrediction #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> GetBatchPrediction -> m GetBatchPrediction #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> GetBatchPrediction -> m GetBatchPrediction #

Read GetBatchPrediction Source # 
Instance details

Defined in Network.AWS.MachineLearning.GetBatchPrediction

Show GetBatchPrediction Source # 
Instance details

Defined in Network.AWS.MachineLearning.GetBatchPrediction

Generic GetBatchPrediction Source # 
Instance details

Defined in Network.AWS.MachineLearning.GetBatchPrediction

Associated Types

type Rep GetBatchPrediction :: Type -> Type #

Hashable GetBatchPrediction Source # 
Instance details

Defined in Network.AWS.MachineLearning.GetBatchPrediction

ToJSON GetBatchPrediction Source # 
Instance details

Defined in Network.AWS.MachineLearning.GetBatchPrediction

AWSRequest GetBatchPrediction Source # 
Instance details

Defined in Network.AWS.MachineLearning.GetBatchPrediction

Associated Types

type Rs GetBatchPrediction :: Type #

ToHeaders GetBatchPrediction Source # 
Instance details

Defined in Network.AWS.MachineLearning.GetBatchPrediction

ToPath GetBatchPrediction Source # 
Instance details

Defined in Network.AWS.MachineLearning.GetBatchPrediction

ToQuery GetBatchPrediction Source # 
Instance details

Defined in Network.AWS.MachineLearning.GetBatchPrediction

NFData GetBatchPrediction Source # 
Instance details

Defined in Network.AWS.MachineLearning.GetBatchPrediction

Methods

rnf :: GetBatchPrediction -> () #

type Rep GetBatchPrediction Source # 
Instance details

Defined in Network.AWS.MachineLearning.GetBatchPrediction

type Rep GetBatchPrediction = D1 (MetaData "GetBatchPrediction" "Network.AWS.MachineLearning.GetBatchPrediction" "amazonka-ml-1.6.1-CNBnEKh3aOlK9oNc02t7Bw" True) (C1 (MetaCons "GetBatchPrediction'" PrefixI True) (S1 (MetaSel (Just "_gbpBatchPredictionId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))
type Rs GetBatchPrediction Source # 
Instance details

Defined in Network.AWS.MachineLearning.GetBatchPrediction

Request Lenses

gbpBatchPredictionId :: Lens' GetBatchPrediction Text Source #

An ID assigned to the BatchPrediction at creation.

Destructuring the Response

getBatchPredictionResponse Source #

Creates a value of GetBatchPredictionResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • gbprsStatus - 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 - The BatchPrediction is marked as deleted. It is not usable.
  • gbprsLastUpdatedAt - The time of the most recent edit to BatchPrediction . The time is expressed in epoch time.
  • gbprsCreatedAt - The time when the BatchPrediction was created. The time is expressed in epoch time.
  • gbprsComputeTime - 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.
  • gbprsInputDataLocationS3 - The location of the data file or directory in Amazon Simple Storage Service (Amazon S3).
  • gbprsMLModelId - The ID of the MLModel that generated predictions for the BatchPrediction request.
  • gbprsBatchPredictionDataSourceId - The ID of the DataSource that was used to create the BatchPrediction .
  • gbprsTotalRecordCount - The number of total records that Amazon Machine Learning saw while processing the BatchPrediction .
  • gbprsStartedAt - The epoch time when Amazon Machine Learning marked the BatchPrediction as INPROGRESS . StartedAt isn't available if the BatchPrediction is in the PENDING state.
  • gbprsBatchPredictionId - An ID assigned to the BatchPrediction at creation. This value should be identical to the value of the BatchPredictionID in the request.
  • gbprsFinishedAt - 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.
  • gbprsInvalidRecordCount - The number of invalid records that Amazon Machine Learning saw while processing the BatchPrediction .
  • gbprsCreatedByIAMUser - 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.
  • gbprsName - A user-supplied name or description of the BatchPrediction .
  • gbprsLogURI - A link to the file that contains logs of the CreateBatchPrediction operation.
  • gbprsMessage - A description of the most recent details about processing the batch prediction request.
  • gbprsOutputURI - The location of an Amazon S3 bucket or directory to receive the operation results.
  • gbprsResponseStatus - -- | The response status code.

data GetBatchPredictionResponse Source #

Represents the output of a GetBatchPrediction operation and describes a BatchPrediction .

See: getBatchPredictionResponse smart constructor.

Instances
Eq GetBatchPredictionResponse Source # 
Instance details

Defined in Network.AWS.MachineLearning.GetBatchPrediction

Data GetBatchPredictionResponse Source # 
Instance details

Defined in Network.AWS.MachineLearning.GetBatchPrediction

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> GetBatchPredictionResponse -> c GetBatchPredictionResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c GetBatchPredictionResponse #

toConstr :: GetBatchPredictionResponse -> Constr #

dataTypeOf :: GetBatchPredictionResponse -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c GetBatchPredictionResponse) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c GetBatchPredictionResponse) #

gmapT :: (forall b. Data b => b -> b) -> GetBatchPredictionResponse -> GetBatchPredictionResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> GetBatchPredictionResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> GetBatchPredictionResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> GetBatchPredictionResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> GetBatchPredictionResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> GetBatchPredictionResponse -> m GetBatchPredictionResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> GetBatchPredictionResponse -> m GetBatchPredictionResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> GetBatchPredictionResponse -> m GetBatchPredictionResponse #

Read GetBatchPredictionResponse Source # 
Instance details

Defined in Network.AWS.MachineLearning.GetBatchPrediction

Show GetBatchPredictionResponse Source # 
Instance details

Defined in Network.AWS.MachineLearning.GetBatchPrediction

Generic GetBatchPredictionResponse Source # 
Instance details

Defined in Network.AWS.MachineLearning.GetBatchPrediction

Associated Types

type Rep GetBatchPredictionResponse :: Type -> Type #

NFData GetBatchPredictionResponse Source # 
Instance details

Defined in Network.AWS.MachineLearning.GetBatchPrediction

type Rep GetBatchPredictionResponse Source # 
Instance details

Defined in Network.AWS.MachineLearning.GetBatchPrediction

type Rep GetBatchPredictionResponse = D1 (MetaData "GetBatchPredictionResponse" "Network.AWS.MachineLearning.GetBatchPrediction" "amazonka-ml-1.6.1-CNBnEKh3aOlK9oNc02t7Bw" False) (C1 (MetaCons "GetBatchPredictionResponse'" PrefixI True) ((((S1 (MetaSel (Just "_gbprsStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe EntityStatus)) :*: S1 (MetaSel (Just "_gbprsLastUpdatedAt") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe POSIX))) :*: (S1 (MetaSel (Just "_gbprsCreatedAt") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe POSIX)) :*: S1 (MetaSel (Just "_gbprsComputeTime") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Integer)))) :*: ((S1 (MetaSel (Just "_gbprsInputDataLocationS3") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_gbprsMLModelId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_gbprsBatchPredictionDataSourceId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_gbprsTotalRecordCount") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Integer)) :*: S1 (MetaSel (Just "_gbprsStartedAt") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe POSIX)))))) :*: (((S1 (MetaSel (Just "_gbprsBatchPredictionId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_gbprsFinishedAt") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe POSIX))) :*: (S1 (MetaSel (Just "_gbprsInvalidRecordCount") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Integer)) :*: S1 (MetaSel (Just "_gbprsCreatedByIAMUser") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_gbprsName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_gbprsLogURI") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_gbprsMessage") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_gbprsOutputURI") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_gbprsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))))))

Response Lenses

gbprsStatus :: 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 - The BatchPrediction is marked as deleted. It is not usable.

gbprsLastUpdatedAt :: Lens' GetBatchPredictionResponse (Maybe UTCTime) Source #

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

gbprsCreatedAt :: Lens' GetBatchPredictionResponse (Maybe UTCTime) Source #

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

gbprsComputeTime :: 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.

gbprsInputDataLocationS3 :: Lens' GetBatchPredictionResponse (Maybe Text) Source #

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

gbprsMLModelId :: Lens' GetBatchPredictionResponse (Maybe Text) Source #

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

gbprsBatchPredictionDataSourceId :: Lens' GetBatchPredictionResponse (Maybe Text) Source #

The ID of the DataSource that was used to create the BatchPrediction .

gbprsTotalRecordCount :: Lens' GetBatchPredictionResponse (Maybe Integer) Source #

The number of total records that Amazon Machine Learning saw while processing the BatchPrediction .

gbprsStartedAt :: 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.

gbprsBatchPredictionId :: 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.

gbprsFinishedAt :: 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.

gbprsInvalidRecordCount :: Lens' GetBatchPredictionResponse (Maybe Integer) Source #

The number of invalid records that Amazon Machine Learning saw while processing the BatchPrediction .

gbprsCreatedByIAMUser :: 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.

gbprsName :: Lens' GetBatchPredictionResponse (Maybe Text) Source #

A user-supplied name or description of the BatchPrediction .

gbprsLogURI :: Lens' GetBatchPredictionResponse (Maybe Text) Source #

A link to the file that contains logs of the CreateBatchPrediction operation.

gbprsMessage :: Lens' GetBatchPredictionResponse (Maybe Text) Source #

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

gbprsOutputURI :: Lens' GetBatchPredictionResponse (Maybe Text) Source #

The location of an Amazon S3 bucket or directory to receive the operation results.