/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the machinelearning-2014-12-12.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.MachineLearning.Model { /// /// Describes the data specification of an Amazon Redshift DataSource. /// public partial class RedshiftDataSpec { private RedshiftDatabaseCredentials _databaseCredentials; private RedshiftDatabase _databaseInformation; private string _dataRearrangement; private string _dataSchema; private string _dataSchemaUri; private string _s3StagingLocation; private string _selectSqlQuery; /// /// Gets and sets the property DatabaseCredentials. /// /// Describes AWS Identity and Access Management (IAM) credentials that are used connect /// to the Amazon Redshift database. /// /// [AWSProperty(Required=true)] public RedshiftDatabaseCredentials DatabaseCredentials { get { return this._databaseCredentials; } set { this._databaseCredentials = value; } } // Check to see if DatabaseCredentials property is set internal bool IsSetDatabaseCredentials() { return this._databaseCredentials != null; } /// /// Gets and sets the property DatabaseInformation. /// /// Describes the DatabaseName and ClusterIdentifier for an /// Amazon Redshift DataSource. /// /// [AWSProperty(Required=true)] public RedshiftDatabase DatabaseInformation { get { return this._databaseInformation; } set { this._databaseInformation = value; } } // Check to see if DatabaseInformation property is set internal bool IsSetDatabaseInformation() { return this._databaseInformation != null; } /// /// Gets and sets the property DataRearrangement. /// /// A JSON string that represents the splitting and rearrangement processing to be applied /// to a DataSource. If the DataRearrangement parameter is not /// provided, all of the input data is used to create the Datasource. /// /// /// /// There are multiple parameters that control what data is used to create a datasource: /// /// /// public string DataRearrangement { get { return this._dataRearrangement; } set { this._dataRearrangement = value; } } // Check to see if DataRearrangement property is set internal bool IsSetDataRearrangement() { return this._dataRearrangement != null; } /// /// 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" ] } /// /// [AWSProperty(Max=131071)] public string DataSchema { get { return this._dataSchema; } set { this._dataSchema = value; } } // Check to see if DataSchema property is set internal bool IsSetDataSchema() { return this._dataSchema != null; } /// /// Gets and sets the property DataSchemaUri. /// /// Describes the schema location for an Amazon Redshift DataSource. /// /// [AWSProperty(Max=2048)] public string DataSchemaUri { get { return this._dataSchemaUri; } set { this._dataSchemaUri = value; } } // Check to see if DataSchemaUri property is set internal bool IsSetDataSchemaUri() { return this._dataSchemaUri != null; } /// /// Gets and sets the property S3StagingLocation. /// /// Describes an Amazon S3 location to store the result set of the SelectSqlQuery /// query. /// /// [AWSProperty(Required=true, Max=2048)] public string S3StagingLocation { get { return this._s3StagingLocation; } set { this._s3StagingLocation = value; } } // Check to see if S3StagingLocation property is set internal bool IsSetS3StagingLocation() { return this._s3StagingLocation != null; } /// /// Gets and sets the property SelectSqlQuery. /// /// Describes the SQL Query to execute on an Amazon Redshift database for an Amazon Redshift /// DataSource. /// /// [AWSProperty(Required=true, Min=1, Max=16777216)] public string SelectSqlQuery { get { return this._selectSqlQuery; } set { this._selectSqlQuery = value; } } // Check to see if SelectSqlQuery property is set internal bool IsSetSelectSqlQuery() { return this._selectSqlQuery != null; } } }