JavaScript is disabled on your browser.
Skip navigation links

AWS SDK for Java 1.x API Reference - 1.12.795

We announced the upcoming end-of-support for AWS SDK for Java (v1). We recommend that you migrate to AWS SDK for Java v2. For dates, additional details, and information on how to migrate, please refer to the linked announcement.
com.amazonaws.services.machinelearning.model

Class CreateDataSourceFromRedshiftRequest

    • Constructor Detail

      • CreateDataSourceFromRedshiftRequest

        public CreateDataSourceFromRedshiftRequest()
    • Method Detail

      • setDataSourceId

        public void setDataSourceId(String dataSourceId)

        A user-supplied ID that uniquely identifies the DataSource.

        Parameters:
        dataSourceId - A user-supplied ID that uniquely identifies the DataSource.
      • getDataSourceId

        public String getDataSourceId()

        A user-supplied ID that uniquely identifies the DataSource.

        Returns:
        A user-supplied ID that uniquely identifies the DataSource.
      • withDataSourceId

        public CreateDataSourceFromRedshiftRequest withDataSourceId(String dataSourceId)

        A user-supplied ID that uniquely identifies the DataSource.

        Parameters:
        dataSourceId - A user-supplied ID that uniquely identifies the DataSource.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setDataSourceName

        public void setDataSourceName(String dataSourceName)

        A user-supplied name or description of the DataSource.

        Parameters:
        dataSourceName - A user-supplied name or description of the DataSource.
      • getDataSourceName

        public String getDataSourceName()

        A user-supplied name or description of the DataSource.

        Returns:
        A user-supplied name or description of the DataSource.
      • withDataSourceName

        public CreateDataSourceFromRedshiftRequest withDataSourceName(String dataSourceName)

        A user-supplied name or description of the DataSource.

        Parameters:
        dataSourceName - A user-supplied name or description of the DataSource.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setDataSpec

        public void setDataSpec(RedshiftDataSpec dataSpec)

        The data specification of an Amazon Redshift DataSource:

        • DatabaseInformation -

          • DatabaseName - The name of the Amazon Redshift database.

          • ClusterIdentifier - The unique ID for the Amazon Redshift cluster.

        • DatabaseCredentials - The AWS Identity and Access Management (IAM) credentials that are used to connect to the Amazon Redshift database.

        • SelectSqlQuery - The query that is used to retrieve the observation data for the Datasource.

        • S3StagingLocation - The Amazon Simple Storage Service (Amazon S3) location for staging Amazon Redshift data. The data retrieved from Amazon Redshift using the SelectSqlQuery query is stored in this location.

        • DataSchemaUri - The Amazon S3 location of the DataSchema.

        • DataSchema - A JSON string representing the schema. This is not required if DataSchemaUri is specified.

        • DataRearrangement - A JSON string that represents the splitting and rearrangement requirements for the DataSource.

          Sample - "{\"splitting\":{\"percentBegin\":10,\"percentEnd\":60}}"

        Parameters:
        dataSpec - The data specification of an Amazon Redshift DataSource:

        • DatabaseInformation -

          • DatabaseName - The name of the Amazon Redshift database.

          • ClusterIdentifier - The unique ID for the Amazon Redshift cluster.

        • DatabaseCredentials - The AWS Identity and Access Management (IAM) credentials that are used to connect to the Amazon Redshift database.

        • SelectSqlQuery - The query that is used to retrieve the observation data for the Datasource.

        • S3StagingLocation - The Amazon Simple Storage Service (Amazon S3) location for staging Amazon Redshift data. The data retrieved from Amazon Redshift using the SelectSqlQuery query is stored in this location.

        • DataSchemaUri - The Amazon S3 location of the DataSchema.

        • DataSchema - A JSON string representing the schema. This is not required if DataSchemaUri is specified.

        • DataRearrangement - A JSON string that represents the splitting and rearrangement requirements for the DataSource.

          Sample - "{\"splitting\":{\"percentBegin\":10,\"percentEnd\":60}}"

      • getDataSpec

        public RedshiftDataSpec getDataSpec()

        The data specification of an Amazon Redshift DataSource:

        • DatabaseInformation -

          • DatabaseName - The name of the Amazon Redshift database.

          • ClusterIdentifier - The unique ID for the Amazon Redshift cluster.

        • DatabaseCredentials - The AWS Identity and Access Management (IAM) credentials that are used to connect to the Amazon Redshift database.

        • SelectSqlQuery - The query that is used to retrieve the observation data for the Datasource.

        • S3StagingLocation - The Amazon Simple Storage Service (Amazon S3) location for staging Amazon Redshift data. The data retrieved from Amazon Redshift using the SelectSqlQuery query is stored in this location.

        • DataSchemaUri - The Amazon S3 location of the DataSchema.

        • DataSchema - A JSON string representing the schema. This is not required if DataSchemaUri is specified.

        • DataRearrangement - A JSON string that represents the splitting and rearrangement requirements for the DataSource.

          Sample - "{\"splitting\":{\"percentBegin\":10,\"percentEnd\":60}}"

        Returns:
        The data specification of an Amazon Redshift DataSource:

        • DatabaseInformation -

          • DatabaseName - The name of the Amazon Redshift database.

          • ClusterIdentifier - The unique ID for the Amazon Redshift cluster.

        • DatabaseCredentials - The AWS Identity and Access Management (IAM) credentials that are used to connect to the Amazon Redshift database.

        • SelectSqlQuery - The query that is used to retrieve the observation data for the Datasource.

        • S3StagingLocation - The Amazon Simple Storage Service (Amazon S3) location for staging Amazon Redshift data. The data retrieved from Amazon Redshift using the SelectSqlQuery query is stored in this location.

        • DataSchemaUri - The Amazon S3 location of the DataSchema.

        • DataSchema - A JSON string representing the schema. This is not required if DataSchemaUri is specified.

        • DataRearrangement - A JSON string that represents the splitting and rearrangement requirements for the DataSource.

          Sample - "{\"splitting\":{\"percentBegin\":10,\"percentEnd\":60}}"

      • withDataSpec

        public CreateDataSourceFromRedshiftRequest withDataSpec(RedshiftDataSpec dataSpec)

        The data specification of an Amazon Redshift DataSource:

        • DatabaseInformation -

          • DatabaseName - The name of the Amazon Redshift database.

          • ClusterIdentifier - The unique ID for the Amazon Redshift cluster.

        • DatabaseCredentials - The AWS Identity and Access Management (IAM) credentials that are used to connect to the Amazon Redshift database.

        • SelectSqlQuery - The query that is used to retrieve the observation data for the Datasource.

        • S3StagingLocation - The Amazon Simple Storage Service (Amazon S3) location for staging Amazon Redshift data. The data retrieved from Amazon Redshift using the SelectSqlQuery query is stored in this location.

        • DataSchemaUri - The Amazon S3 location of the DataSchema.

        • DataSchema - A JSON string representing the schema. This is not required if DataSchemaUri is specified.

        • DataRearrangement - A JSON string that represents the splitting and rearrangement requirements for the DataSource.

          Sample - "{\"splitting\":{\"percentBegin\":10,\"percentEnd\":60}}"

        Parameters:
        dataSpec - The data specification of an Amazon Redshift DataSource:

        • DatabaseInformation -

          • DatabaseName - The name of the Amazon Redshift database.

          • ClusterIdentifier - The unique ID for the Amazon Redshift cluster.

        • DatabaseCredentials - The AWS Identity and Access Management (IAM) credentials that are used to connect to the Amazon Redshift database.

        • SelectSqlQuery - The query that is used to retrieve the observation data for the Datasource.

        • S3StagingLocation - The Amazon Simple Storage Service (Amazon S3) location for staging Amazon Redshift data. The data retrieved from Amazon Redshift using the SelectSqlQuery query is stored in this location.

        • DataSchemaUri - The Amazon S3 location of the DataSchema.

        • DataSchema - A JSON string representing the schema. This is not required if DataSchemaUri is specified.

        • DataRearrangement - A JSON string that represents the splitting and rearrangement requirements for the DataSource.

          Sample - "{\"splitting\":{\"percentBegin\":10,\"percentEnd\":60}}"

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setRoleARN

        public void setRoleARN(String roleARN)

        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

        Parameters:
        roleARN - 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

      • getRoleARN

        public String getRoleARN()

        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

        Returns:
        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

      • withRoleARN

        public CreateDataSourceFromRedshiftRequest withRoleARN(String roleARN)

        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

        Parameters:
        roleARN - 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

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setComputeStatistics

        public void setComputeStatistics(Boolean computeStatistics)

        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.

        Parameters:
        computeStatistics - 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.
      • getComputeStatistics

        public Boolean getComputeStatistics()

        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.

        Returns:
        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.
      • withComputeStatistics

        public CreateDataSourceFromRedshiftRequest withComputeStatistics(Boolean computeStatistics)

        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.

        Parameters:
        computeStatistics - 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.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • isComputeStatistics

        public Boolean isComputeStatistics()

        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.

        Returns:
        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.
      • toString

        public String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
Skip navigation links

AltStyle によって変換されたページ (->オリジナル) /