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.

GetDataSourceOutput

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

type GetDataSourceOutput 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"` DataSourceSchema *string `type:"string"` FinishedAt *time.Time `type:"timestamp"` LastUpdatedAt *time.Time `type:"timestamp"` LogUri *string `type:"string"` 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 a GetDataSource operation and describes a DataSource.

ComputeStatistics

Type: *bool

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

ComputeTime

Type: *int64

The approximate CPU time in milliseconds that Amazon Machine Learning spent processing the DataSource, normalized and scaled on computation resources. ComputeTime is only available if the DataSource is in the COMPLETED state and the ComputeStatistics is set to true.

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 of the data file or directory in Amazon Simple Storage Service (Amazon S3).

DataRearrangement

Type: *string

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

DataSizeInBytes

Type: *int64

The total size of observations in the data files.

DataSourceId

Type: *string

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

DataSourceSchema

Type: *string

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

NoteThis parameter is provided as part of the verbose format.

FinishedAt

Type: *time.Time

The epoch time when Amazon Machine Learning marked the DataSource as COMPLETED or FAILED. FinishedAt is only available when the DataSource is in the COMPLETED or FAILED state.

LastUpdatedAt

Type: *time.Time

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

LogUri

Type: *string

A link to the file containing logs of CreateDataSourceFrom* operations.

Message

Type: *string

The user-supplied 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

The epoch time when Amazon Machine Learning marked the DataSource as INPROGRESS. StartedAt isn't available if the DataSource is in the PENDING state.

Status

Type: *string

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

  • PENDING - 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 GetDataSourceOutput) GoString() string

GoString returns the string representation

SetComputeStatistics

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

SetComputeStatistics sets the ComputeStatistics field's value.

SetComputeTime

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

SetComputeTime sets the ComputeTime field's value.

SetCreatedAt

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

SetCreatedAt sets the CreatedAt field's value.

SetCreatedByIamUser

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

SetCreatedByIamUser sets the CreatedByIamUser field's value.

SetDataLocationS3

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

SetDataLocationS3 sets the DataLocationS3 field's value.

SetDataRearrangement

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

SetDataRearrangement sets the DataRearrangement field's value.

SetDataSizeInBytes

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

SetDataSizeInBytes sets the DataSizeInBytes field's value.

SetDataSourceId

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

SetDataSourceId sets the DataSourceId field's value.

SetDataSourceSchema

func (s *GetDataSourceOutput) SetDataSourceSchema(v string) *GetDataSourceOutput

SetDataSourceSchema sets the DataSourceSchema field's value.

SetFinishedAt

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

SetFinishedAt sets the FinishedAt field's value.

SetLastUpdatedAt

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

SetLastUpdatedAt sets the LastUpdatedAt field's value.

SetLogUri

func (s *GetDataSourceOutput) SetLogUri(v string) *GetDataSourceOutput

SetLogUri sets the LogUri field's value.

SetMessage

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

SetMessage sets the Message field's value.

SetName

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

SetName sets the Name field's value.

SetNumberOfFiles

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

SetNumberOfFiles sets the NumberOfFiles field's value.

SetRDSMetadata

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

SetRDSMetadata sets the RDSMetadata field's value.

SetRedshiftMetadata

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

SetRedshiftMetadata sets the RedshiftMetadata field's value.

SetRoleARN

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

SetRoleARN sets the RoleARN field's value.

SetStartedAt

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

SetStartedAt sets the StartedAt field's value.

SetStatus

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

SetStatus sets the Status field's value.

String

func (s GetDataSourceOutput) String() string

String returns the string representation

On this page: