Menu
Amazon Machine Learning
API Reference (API Version 2014-12-12)

DataSource

Represents the output of the GetDataSource operation.

The content consists of the detailed metadata and data file information and the current status of the DataSource.

Contents

ComputeStatistics

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

Type: Boolean

Required: No

ComputeTime

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

Type: Long

Required: No

CreatedAt

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

Type: Timestamp

Required: No

CreatedByIamUser

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.

Type: String

Pattern: arn:aws:iam::[0-9]+:((user/.+)|(root))

Required: No

DataLocationS3

The location and name of the data in Amazon Simple Storage Service (Amazon S3) that is used by a DataSource.

Type: String

Length Constraints: Maximum length of 2048.

Pattern: s3://([^/]+)(/.*)?

Required: No

DataRearrangement

A JSON string that represents the splitting and rearrangement requirement used when this DataSource was created.

Type: String

Required: No

DataSizeInBytes

The total number of observations contained in the data files that the DataSource references.

Type: Long

Required: No

DataSourceId

The ID that is assigned to the DataSource during creation.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 64.

Pattern: [a-zA-Z0-9_.-]+

Required: No

FinishedAt

A timestamp represented in epoch time.

Type: Timestamp

Required: No

LastUpdatedAt

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

Type: Timestamp

Required: No

Message

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

Type: String

Length Constraints: Maximum length of 10240.

Required: No

Name

A user-supplied name or description of the DataSource.

Type: String

Length Constraints: Maximum length of 1024.

Pattern: .*\S.*|^$

Required: No

NumberOfFiles

The number of data files referenced by the DataSource.

Type: Long

Required: No

RDSMetadata

The datasource details that are specific to Amazon RDS.

Type: RDSMetadata object

Required: No

RedshiftMetadata

Describes the DataSource details specific to Amazon Redshift.

Type: RedshiftMetadata object

Required: No

RoleARN

The Amazon Resource Name (ARN) of an AWS IAM Role, such as the following: arn:aws:iam::account:role/rolename.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 110.

Required: No

StartedAt

A timestamp represented in epoch time.

Type: Timestamp

Required: No

Status

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

  • PENDING - Amazon Machine Learning (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.

Type: String

Valid Values: PENDING | INPROGRESS | FAILED | COMPLETED | DELETED

Required: No

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

On this page: