AWS SDK Version 2 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

.NET Framework 4.5
 
Describes the data specification of an Amazon Redshift DataSource.

Inheritance Hierarchy

System.Object
  Amazon.MachineLearning.Model.RedshiftDataSpec

Namespace: Amazon.MachineLearning.Model
Assembly: AWSSDK.dll
Version: (assembly version)

Syntax

C#
public class RedshiftDataSpec : Object

The RedshiftDataSpec type exposes the following members

Constructors

NameDescription
Public Method RedshiftDataSpec()

Properties

NameTypeDescription
Public Property DatabaseCredentials Amazon.MachineLearning.Model.RedshiftDatabaseCredentials Gets and sets the property DatabaseCredentials.

Describes AWS Identity and Access Management (IAM) credentials that are used connect to the Amazon Redshift database.

Public Property DatabaseInformation Amazon.MachineLearning.Model.RedshiftDatabase Gets and sets the property DatabaseInformation.

Describes the DatabaseName and ClusterIdentifier for an Amazon Redshift DataSource.

Public Property DataRearrangement System.String Gets and sets the property DataRearrangement.

Describes the splitting specifications for a DataSource.

Public Property DataSchema System.String Gets and sets the property DataSchema.

A JSON string that represents the schema for an Amazon Redshift DataSource. The DataSchema defines the structure of the observation data in the data file(s) referenced in the DataSource.

A DataSchema is not required if you specify a DataSchemaUri.

Define your DataSchema as a series of key-value pairs. attributes and excludedVariableNames have an array of key-value pairs for their value. Use the following format to define your DataSchema.

{ "version": "1.0",

"recordAnnotationFieldName": "F1",

"recordWeightFieldName": "F2",

"targetFieldName": "F3",

"dataFormat": "CSV",

"dataFileContainsHeader": true,

"attributes": [

{ "fieldName": "F1", "fieldType": "TEXT" }, { "fieldName": "F2", "fieldType": "NUMERIC" }, { "fieldName": "F3", "fieldType": "CATEGORICAL" }, { "fieldName": "F4", "fieldType": "NUMERIC" }, { "fieldName": "F5", "fieldType": "CATEGORICAL" }, { "fieldName": "F6", "fieldType": "TEXT" }, { "fieldName": "F7", "fieldType": "WEIGHTED_INT_SEQUENCE" }, { "fieldName": "F8", "fieldType": "WEIGHTED_STRING_SEQUENCE" } ],

"excludedVariableNames": [ "F6" ] }

Public Property DataSchemaUri System.String Gets and sets the property DataSchemaUri.

Describes the schema location for an Amazon Redshift DataSource.

Public Property S3StagingLocation System.String Gets and sets the property S3StagingLocation.

Describes an Amazon S3 location to store the result set of the SelectSqlQuery query.

Public Property SelectSqlQuery System.String Gets and sets the property SelectSqlQuery.

Describes the SQL Query to execute on an Amazon Redshift database for an Amazon Redshift DataSource.

Version Information

.NET Framework:
Supported in: 4.5, 4.0, 3.5