| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Network.AWS.MachineLearning.GetDataSource
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.
http://http://docs.aws.amazon.com/machine-learning/latest/APIReference/API_GetDataSource.html
- data GetDataSource
- getDataSource :: Text -> GetDataSource
- gdsDataSourceId :: Lens' GetDataSource Text
- gdsVerbose :: Lens' GetDataSource (Maybe Bool)
- data GetDataSourceResponse
- getDataSourceResponse :: GetDataSourceResponse
- gdsrComputeStatistics :: Lens' GetDataSourceResponse (Maybe Bool)
- gdsrCreatedAt :: Lens' GetDataSourceResponse (Maybe UTCTime)
- gdsrCreatedByIamUser :: Lens' GetDataSourceResponse (Maybe Text)
- gdsrDataLocationS3 :: Lens' GetDataSourceResponse (Maybe Text)
- gdsrDataRearrangement :: Lens' GetDataSourceResponse (Maybe Text)
- gdsrDataSizeInBytes :: Lens' GetDataSourceResponse (Maybe Integer)
- gdsrDataSourceId :: Lens' GetDataSourceResponse (Maybe Text)
- gdsrDataSourceSchema :: Lens' GetDataSourceResponse (Maybe Text)
- gdsrLastUpdatedAt :: Lens' GetDataSourceResponse (Maybe UTCTime)
- gdsrLogUri :: Lens' GetDataSourceResponse (Maybe Text)
- gdsrMessage :: Lens' GetDataSourceResponse (Maybe Text)
- gdsrName :: Lens' GetDataSourceResponse (Maybe Text)
- gdsrNumberOfFiles :: Lens' GetDataSourceResponse (Maybe Integer)
- gdsrRDSMetadata :: Lens' GetDataSourceResponse (Maybe RDSMetadata)
- gdsrRedshiftMetadata :: Lens' GetDataSourceResponse (Maybe RedshiftMetadata)
- gdsrRoleARN :: Lens' GetDataSourceResponse (Maybe Text)
- gdsrStatus :: Lens' GetDataSourceResponse (Maybe EntityStatus)
Request
data GetDataSource Source
Request constructor
Arguments
| :: Text | |
| -> GetDataSource |
GetDataSource constructor.
The fields accessible through corresponding lenses are:
Request lenses
gdsDataSourceId :: Lens' GetDataSource Text Source
The ID assigned to the DataSource at creation.
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.
Response
Response constructor
getDataSourceResponse :: GetDataSourceResponse Source
GetDataSourceResponse constructor.
The fields accessible through corresponding lenses are:
gdsrComputeStatistics::MaybeBoolgdsrCreatedAt::MaybeUTCTimegdsrCreatedByIamUser::MaybeTextgdsrDataLocationS3::MaybeTextgdsrDataRearrangement::MaybeTextgdsrDataSizeInBytes::MaybeIntegergdsrDataSourceId::MaybeTextgdsrDataSourceSchema::MaybeTextgdsrLastUpdatedAt::MaybeUTCTimegdsrLogUri::MaybeTextgdsrMessage::MaybeTextgdsrName::MaybeTextgdsrNumberOfFiles::MaybeIntegergdsrRDSMetadata::MaybeRDSMetadatagdsrRedshiftMetadata::MaybeRedshiftMetadatagdsrRoleARN::MaybeTextgdsrStatus::MaybeEntityStatus
Response lenses
gdsrComputeStatistics :: Lens' GetDataSourceResponse (Maybe Bool) Source
The parameter is true if statistics need to be generated from the
observation data.
gdsrCreatedAt :: Lens' GetDataSourceResponse (Maybe UTCTime) Source
The time that the DataSource was created. The time is expressed in epoch time.
gdsrCreatedByIamUser :: 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.
gdsrDataLocationS3 :: Lens' GetDataSourceResponse (Maybe Text) Source
The location of the data file or directory in Amazon Simple Storage Service (Amazon S3).
gdsrDataRearrangement :: Lens' GetDataSourceResponse (Maybe Text) Source
A JSON string that captures the splitting rearrangement requirement of the DataSource.
gdsrDataSizeInBytes :: Lens' GetDataSourceResponse (Maybe Integer) Source
The total size of observations in the data files.
gdsrDataSourceId :: 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.
gdsrDataSourceSchema :: 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.
gdsrLastUpdatedAt :: Lens' GetDataSourceResponse (Maybe UTCTime) Source
The time of the most recent edit to the DataSource. The time is expressed in
epoch time.
gdsrLogUri :: Lens' GetDataSourceResponse (Maybe Text) Source
A link to the file containining logs of either create DataSource operation.
gdsrMessage :: Lens' GetDataSourceResponse (Maybe Text) Source
The description of the most recent details about creating the DataSource.
gdsrName :: Lens' GetDataSourceResponse (Maybe Text) Source
A user-supplied name or description of the DataSource.
gdsrNumberOfFiles :: Lens' GetDataSourceResponse (Maybe Integer) Source
The number of data files referenced by the DataSource.
gdsrStatus :: 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.