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.

RedshiftMetadata

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

type RedshiftMetadata struct { DatabaseUserName *string `min:"1" type:"string"` RedshiftDatabase *RedshiftDatabase `type:"structure"` SelectSqlQuery *string `min:"1" type:"string"` }

Describes the DataSource details specific to Amazon Redshift.

DatabaseUserName

Type: *string

A username to be used by Amazon Machine Learning (Amazon ML)to connect to a database on an Amazon Redshift cluster. The username should have sufficient permissions to execute the RedshiftSelectSqlQuery query. The username should be valid for an Amazon Redshift USER (https://docs.aws.amazon.com/redshift/latest/dg/r_CREATE_USER.html).

RedshiftDatabase

Describes the database details required to connect to an Amazon Redshift database.

SelectSqlQuery

Type: *string

The SQL query that is specified during CreateDataSourceFromRedshift. Returns only if Verbose is true in GetDataSourceInput.

Method

GoString

func (s RedshiftMetadata) GoString() string

GoString returns the string representation

SetDatabaseUserName

func (s *RedshiftMetadata) SetDatabaseUserName(v string) *RedshiftMetadata

SetDatabaseUserName sets the DatabaseUserName field's value.

SetRedshiftDatabase

func (s *RedshiftMetadata) SetRedshiftDatabase(v *RedshiftDatabase) *RedshiftMetadata

SetRedshiftDatabase sets the RedshiftDatabase field's value.

SetSelectSqlQuery

func (s *RedshiftMetadata) SetSelectSqlQuery(v string) *RedshiftMetadata

SetSelectSqlQuery sets the SelectSqlQuery field's value.

String

func (s RedshiftMetadata) String() string

String returns the string representation

On this page: