amazonka-ml-1.4.1: Amazon Machine Learning SDK.

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

Network.AWS.MachineLearning.GetDataSource

Contents

Description

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.

Synopsis

Creating a Request

getDataSource Source #

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

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

data GetDataSource Source #

See: getDataSource smart constructor.

Instances

Eq GetDataSource Source # 
Data GetDataSource Source # 

Methods

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

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

toConstr :: GetDataSource -> Constr #

dataTypeOf :: GetDataSource -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetDataSource Source # 
Show GetDataSource Source # 
Generic GetDataSource Source # 

Associated Types

type Rep GetDataSource :: * -> * #

Hashable GetDataSource Source # 
ToJSON GetDataSource Source # 
NFData GetDataSource Source # 

Methods

rnf :: GetDataSource -> () #

AWSRequest GetDataSource Source # 
ToQuery GetDataSource Source # 
ToPath GetDataSource Source # 
ToHeaders GetDataSource Source # 
type Rep GetDataSource Source # 
type Rep GetDataSource = D1 (MetaData "GetDataSource" "Network.AWS.MachineLearning.GetDataSource" "amazonka-ml-1.4.1-5jDp9fGygLI17rP35njtq9" False) (C1 (MetaCons "GetDataSource'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_gdsVerbose") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) (S1 (MetaSel (Just Symbol "_gdsDataSourceId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs GetDataSource Source # 

Request Lenses

gdsVerbose :: Lens' GetDataSource (Maybe Bool) Source #

Specifies whether the GetDataSource operation should return DataSourceSchema.

If true, DataSourceSchema is returned.

If false, DataSourceSchema is not returned.

gdsDataSourceId :: Lens' GetDataSource Text Source #

The ID assigned to the DataSource at creation.

Destructuring the Response

data GetDataSourceResponse Source #

Represents the output of a GetDataSource operation and describes a DataSource.

See: getDataSourceResponse smart constructor.

Instances

Eq GetDataSourceResponse Source # 
Data GetDataSourceResponse Source # 

Methods

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

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

toConstr :: GetDataSourceResponse -> Constr #

dataTypeOf :: GetDataSourceResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetDataSourceResponse Source # 
Show GetDataSourceResponse Source # 
Generic GetDataSourceResponse Source # 
NFData GetDataSourceResponse Source # 

Methods

rnf :: GetDataSourceResponse -> () #

type Rep GetDataSourceResponse Source # 
type Rep GetDataSourceResponse = D1 (MetaData "GetDataSourceResponse" "Network.AWS.MachineLearning.GetDataSource" "amazonka-ml-1.4.1-5jDp9fGygLI17rP35njtq9" False) (C1 (MetaCons "GetDataSourceResponse'" PrefixI True) ((:*:) ((:*:) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_gdsrsStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe EntityStatus))) (S1 (MetaSel (Just Symbol "_gdsrsNumberOfFiles") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Integer)))) ((:*:) (S1 (MetaSel (Just Symbol "_gdsrsLastUpdatedAt") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe POSIX))) (S1 (MetaSel (Just Symbol "_gdsrsCreatedAt") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe POSIX))))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_gdsrsDataSourceId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_gdsrsRDSMetadata") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe RDSMetadata)))) ((:*:) (S1 (MetaSel (Just Symbol "_gdsrsDataSizeInBytes") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Integer))) ((:*:) (S1 (MetaSel (Just Symbol "_gdsrsDataSourceSchema") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_gdsrsCreatedByIAMUser") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))) ((:*:) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_gdsrsName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_gdsrsLogURI") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_gdsrsDataLocationS3") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_gdsrsComputeStatistics") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_gdsrsMessage") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_gdsrsRedshiftMetadata") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe RedshiftMetadata)))) ((:*:) (S1 (MetaSel (Just Symbol "_gdsrsDataRearrangement") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_gdsrsRoleARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_gdsrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))))))

Response Lenses

gdsrsStatus :: Lens' GetDataSourceResponse (Maybe EntityStatus) Source #

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

  • PENDING - Amazon Machine Language (Amazon ML) submitted a request to create a DataSource.
  • INPROGRESS - The creation process is underway.
  • FAILED - The request to create a DataSource did not run to completion. It is not usable.
  • COMPLETED - The creation process completed successfully.
  • DELETED - The DataSource is marked as deleted. It is not usable.

gdsrsNumberOfFiles :: Lens' GetDataSourceResponse (Maybe Integer) Source #

The number of data files referenced by the DataSource.

gdsrsLastUpdatedAt :: Lens' GetDataSourceResponse (Maybe UTCTime) Source #

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

gdsrsCreatedAt :: Lens' GetDataSourceResponse (Maybe UTCTime) Source #

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

gdsrsDataSourceId :: Lens' GetDataSourceResponse (Maybe Text) Source #

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

gdsrsDataSizeInBytes :: Lens' GetDataSourceResponse (Maybe Integer) Source #

The total size of observations in the data files.

gdsrsDataSourceSchema :: Lens' GetDataSourceResponse (Maybe Text) Source #

The schema used by all of the data files of this DataSource.

Note

This parameter is provided as part of the verbose format.

gdsrsCreatedByIAMUser :: Lens' GetDataSourceResponse (Maybe Text) Source #

The AWS user account from which the DataSource was created. The account type can be either an AWS root account or an AWS Identity and Access Management (IAM) user account.

gdsrsName :: Lens' GetDataSourceResponse (Maybe Text) Source #

A user-supplied name or description of the DataSource.

gdsrsLogURI :: Lens' GetDataSourceResponse (Maybe Text) Source #

A link to the file containining logs of either create DataSource operation.

gdsrsDataLocationS3 :: Lens' GetDataSourceResponse (Maybe Text) Source #

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

gdsrsComputeStatistics :: Lens' GetDataSourceResponse (Maybe Bool) Source #

The parameter is true if statistics need to be generated from the observation data.

gdsrsMessage :: Lens' GetDataSourceResponse (Maybe Text) Source #

The description of the most recent details about creating the DataSource.

gdsrsDataRearrangement :: Lens' GetDataSourceResponse (Maybe Text) Source #

A JSON string that captures the splitting rearrangement requirement of the DataSource.