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.

CreateDataSourceFromRedshiftInput

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

type CreateDataSourceFromRedshiftInput struct { ComputeStatistics *bool `type:"boolean"` DataSourceId *string `min:"1" type:"string" required:"true"` DataSourceName *string `type:"string"` DataSpec *RedshiftDataSpec `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.

DataSourceId is a required field

DataSourceName

Type: *string

A user-supplied name or description of the DataSource.

DataSpec

Describes the data specification of an Amazon Redshift DataSource.

RoleARN

Type: *string

A fully specified role Amazon Resource Name (ARN). Amazon ML assumes the role on behalf of the user to create the following:

A security group to allow Amazon ML to execute the SelectSqlQuery query on an Amazon Redshift cluster

An Amazon S3 bucket policy to grant Amazon ML read/write permissions on the S3StagingLocation

RoleARN is a required field

Method

GoString

func (s CreateDataSourceFromRedshiftInput) GoString() string

GoString returns the string representation

SetComputeStatistics

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

SetComputeStatistics sets the ComputeStatistics field's value.

SetDataSourceId

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

SetDataSourceId sets the DataSourceId field's value.

SetDataSourceName

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

SetDataSourceName sets the DataSourceName field's value.

SetDataSpec

func (s *CreateDataSourceFromRedshiftInput) SetDataSpec(v *RedshiftDataSpec) *CreateDataSourceFromRedshiftInput

SetDataSpec sets the DataSpec field's value.

SetRoleARN

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

SetRoleARN sets the RoleARN field's value.

String

func (s CreateDataSourceFromRedshiftInput) String() string

String returns the string representation

Validate

func (s *CreateDataSourceFromRedshiftInput) Validate() error

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

On this page: