AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

DataSource

import "github.com/aws/aws-sdk-go/service/machinelearning"

type DataSource struct { ComputeStatistics *bool `type:"boolean"` ComputeTime *int64 `type:"long"` CreatedAt *time.Time `type:"timestamp"` CreatedByIamUser *string `type:"string"` DataLocationS3 *string `type:"string"` DataRearrangement *string `type:"string"` DataSizeInBytes *int64 `type:"long"` DataSourceId *string `min:"1" type:"string"` FinishedAt *time.Time `type:"timestamp"` LastUpdatedAt *time.Time `type:"timestamp"` Message *string `type:"string"` Name *string `type:"string"` NumberOfFiles *int64 `type:"long"` RDSMetadata *RDSMetadata `type:"structure"` RedshiftMetadata *RedshiftMetadata `type:"structure"` RoleARN *string `min:"1" type:"string"` StartedAt *time.Time `type:"timestamp"` Status *string `type:"string" enum:"EntityStatus"` }

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.

ComputeStatistics

Type: *bool

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

ComputeTime

Type: *int64

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

CreatedAt

Type: *time.Time

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

CreatedByIamUser

Type: *string

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.

DataLocationS3

Type: *string

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

DataRearrangement

Type: *string

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

DataSizeInBytes

Type: *int64

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

DataSourceId

Type: *string

The ID that is assigned to the DataSource during creation.

FinishedAt

Type: *time.Time

A timestamp represented in epoch time.

LastUpdatedAt

Type: *time.Time

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

Message

Type: *string

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

Name

Type: *string

A user-supplied name or description of the DataSource.

NumberOfFiles

Type: *int64

The number of data files referenced by the DataSource.

RDSMetadata

The datasource details that are specific to Amazon RDS.

RedshiftMetadata

Describes the DataSource details specific to Amazon Redshift.

RoleARN

Type: *string

The Amazon Resource Name (ARN) of an AWS IAM Role (https://docs.aws.amazon.com/IAM/latest/UserGuide/roles-toplevel.html#roles-about-termsandconcepts), such as the following: arn:aws:iam::account:role/rolename.

StartedAt

Type: *time.Time

A timestamp represented in epoch time.

Status

Type: *string

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.

Method

GoString

func (s DataSource) GoString() string

GoString returns the string representation

SetComputeStatistics

func (s *DataSource) SetComputeStatistics(v bool) *DataSource

SetComputeStatistics sets the ComputeStatistics field's value.

SetComputeTime

func (s *DataSource) SetComputeTime(v int64) *DataSource

SetComputeTime sets the ComputeTime field's value.

SetCreatedAt

func (s *DataSource) SetCreatedAt(v time.Time) *DataSource

SetCreatedAt sets the CreatedAt field's value.

SetCreatedByIamUser

func (s *DataSource) SetCreatedByIamUser(v string) *DataSource

SetCreatedByIamUser sets the CreatedByIamUser field's value.

SetDataLocationS3

func (s *DataSource) SetDataLocationS3(v string) *DataSource

SetDataLocationS3 sets the DataLocationS3 field's value.

SetDataRearrangement

func (s *DataSource) SetDataRearrangement(v string) *DataSource

SetDataRearrangement sets the DataRearrangement field's value.

SetDataSizeInBytes

func (s *DataSource) SetDataSizeInBytes(v int64) *DataSource

SetDataSizeInBytes sets the DataSizeInBytes field's value.

SetDataSourceId

func (s *DataSource) SetDataSourceId(v string) *DataSource

SetDataSourceId sets the DataSourceId field's value.

SetFinishedAt

func (s *DataSource) SetFinishedAt(v time.Time) *DataSource

SetFinishedAt sets the FinishedAt field's value.

SetLastUpdatedAt

func (s *DataSource) SetLastUpdatedAt(v time.Time) *DataSource

SetLastUpdatedAt sets the LastUpdatedAt field's value.

SetMessage

func (s *DataSource) SetMessage(v string) *DataSource

SetMessage sets the Message field's value.

SetName

func (s *DataSource) SetName(v string) *DataSource

SetName sets the Name field's value.

SetNumberOfFiles

func (s *DataSource) SetNumberOfFiles(v int64) *DataSource

SetNumberOfFiles sets the NumberOfFiles field's value.

SetRDSMetadata

func (s *DataSource) SetRDSMetadata(v *RDSMetadata) *DataSource

SetRDSMetadata sets the RDSMetadata field's value.

SetRedshiftMetadata

func (s *DataSource) SetRedshiftMetadata(v *RedshiftMetadata) *DataSource

SetRedshiftMetadata sets the RedshiftMetadata field's value.

SetRoleARN

func (s *DataSource) SetRoleARN(v string) *DataSource

SetRoleARN sets the RoleARN field's value.

SetStartedAt

func (s *DataSource) SetStartedAt(v time.Time) *DataSource

SetStartedAt sets the StartedAt field's value.

SetStatus

func (s *DataSource) SetStatus(v string) *DataSource

SetStatus sets the Status field's value.

String

func (s DataSource) String() string

String returns the string representation

On this page: