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.

CreateDataSourceFromRDSInput

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

type CreateDataSourceFromRDSInput struct { ComputeStatistics *bool `type:"boolean"` DataSourceId *string `min:"1" type:"string" required:"true"` DataSourceName *string `type:"string"` RDSData *RDSDataSpec `type:"structure" required:"true"` RoleARN *string `min:"1" type:"string" required:"true"` }

ComputeStatistics

Type: *bool

The compute statistics for a DataSource. The statistics are generated from the observation data referenced by a DataSource. Amazon ML uses the statistics internally during MLModel training. This parameter must be set to true if the DataSource needs to be used for MLModel training.

DataSourceId

Type: *string

A user-supplied ID that uniquely identifies the DataSource. Typically, an Amazon Resource Number (ARN) becomes the ID for a DataSource.

DataSourceId is a required field

DataSourceName

Type: *string

A user-supplied name or description of the DataSource.

RDSData

The data specification of an Amazon Relational Database Service (Amazon RDS) DataSource.

RoleARN

Type: *string

The role that Amazon ML assumes on behalf of the user to create and activate a data pipeline in the user's account and copy data using the SelectSqlQuery query from Amazon RDS to Amazon S3.

RoleARN is a required field

Method

GoString

func (s CreateDataSourceFromRDSInput) GoString() string

GoString returns the string representation

SetComputeStatistics

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

SetComputeStatistics sets the ComputeStatistics field's value.

SetDataSourceId

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

SetDataSourceId sets the DataSourceId field's value.

SetDataSourceName

func (s *CreateDataSourceFromRDSInput) SetDataSourceName(v string) *CreateDataSourceFromRDSInput

SetDataSourceName sets the DataSourceName field's value.

SetRDSData

func (s *CreateDataSourceFromRDSInput) SetRDSData(v *RDSDataSpec) *CreateDataSourceFromRDSInput

SetRDSData sets the RDSData field's value.

SetRoleARN

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

SetRoleARN sets the RoleARN field's value.

String

func (s CreateDataSourceFromRDSInput) String() string

String returns the string representation

Validate

func (s *CreateDataSourceFromRDSInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

On this page: