/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace MachineLearning { namespace Model { /** */ class CreateDataSourceFromRDSRequest : public MachineLearningRequest { public: AWS_MACHINELEARNING_API CreateDataSourceFromRDSRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateDataSourceFromRDS"; } AWS_MACHINELEARNING_API Aws::String SerializePayload() const override; AWS_MACHINELEARNING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

A user-supplied ID that uniquely identifies the DataSource. * Typically, an Amazon Resource Number (ARN) becomes the ID for a * DataSource.

*/ inline const Aws::String& GetDataSourceId() const{ return m_dataSourceId; } /** *

A user-supplied ID that uniquely identifies the DataSource. * Typically, an Amazon Resource Number (ARN) becomes the ID for a * DataSource.

*/ inline bool DataSourceIdHasBeenSet() const { return m_dataSourceIdHasBeenSet; } /** *

A user-supplied ID that uniquely identifies the DataSource. * Typically, an Amazon Resource Number (ARN) becomes the ID for a * DataSource.

*/ inline void SetDataSourceId(const Aws::String& value) { m_dataSourceIdHasBeenSet = true; m_dataSourceId = value; } /** *

A user-supplied ID that uniquely identifies the DataSource. * Typically, an Amazon Resource Number (ARN) becomes the ID for a * DataSource.

*/ inline void SetDataSourceId(Aws::String&& value) { m_dataSourceIdHasBeenSet = true; m_dataSourceId = std::move(value); } /** *

A user-supplied ID that uniquely identifies the DataSource. * Typically, an Amazon Resource Number (ARN) becomes the ID for a * DataSource.

*/ inline void SetDataSourceId(const char* value) { m_dataSourceIdHasBeenSet = true; m_dataSourceId.assign(value); } /** *

A user-supplied ID that uniquely identifies the DataSource. * Typically, an Amazon Resource Number (ARN) becomes the ID for a * DataSource.

*/ inline CreateDataSourceFromRDSRequest& WithDataSourceId(const Aws::String& value) { SetDataSourceId(value); return *this;} /** *

A user-supplied ID that uniquely identifies the DataSource. * Typically, an Amazon Resource Number (ARN) becomes the ID for a * DataSource.

*/ inline CreateDataSourceFromRDSRequest& WithDataSourceId(Aws::String&& value) { SetDataSourceId(std::move(value)); return *this;} /** *

A user-supplied ID that uniquely identifies the DataSource. * Typically, an Amazon Resource Number (ARN) becomes the ID for a * DataSource.

*/ inline CreateDataSourceFromRDSRequest& WithDataSourceId(const char* value) { SetDataSourceId(value); return *this;} /** *

A user-supplied name or description of the DataSource.

*/ inline const Aws::String& GetDataSourceName() const{ return m_dataSourceName; } /** *

A user-supplied name or description of the DataSource.

*/ inline bool DataSourceNameHasBeenSet() const { return m_dataSourceNameHasBeenSet; } /** *

A user-supplied name or description of the DataSource.

*/ inline void SetDataSourceName(const Aws::String& value) { m_dataSourceNameHasBeenSet = true; m_dataSourceName = value; } /** *

A user-supplied name or description of the DataSource.

*/ inline void SetDataSourceName(Aws::String&& value) { m_dataSourceNameHasBeenSet = true; m_dataSourceName = std::move(value); } /** *

A user-supplied name or description of the DataSource.

*/ inline void SetDataSourceName(const char* value) { m_dataSourceNameHasBeenSet = true; m_dataSourceName.assign(value); } /** *

A user-supplied name or description of the DataSource.

*/ inline CreateDataSourceFromRDSRequest& WithDataSourceName(const Aws::String& value) { SetDataSourceName(value); return *this;} /** *

A user-supplied name or description of the DataSource.

*/ inline CreateDataSourceFromRDSRequest& WithDataSourceName(Aws::String&& value) { SetDataSourceName(std::move(value)); return *this;} /** *

A user-supplied name or description of the DataSource.

*/ inline CreateDataSourceFromRDSRequest& WithDataSourceName(const char* value) { SetDataSourceName(value); return *this;} /** *

The data specification of an Amazon RDS DataSource:

    *
  • DatabaseInformation -

    • DatabaseName - The * name of the Amazon RDS database.

    • InstanceIdentifier * - A unique identifier for the Amazon RDS database instance.

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

  • *
  • ResourceRole - A role (DataPipelineDefaultResourceRole) assumed by an * EC2 instance to carry out the copy task from Amazon RDS to Amazon Simple Storage * Service (Amazon S3). For more information, see Role * templates for data pipelines.

  • ServiceRole - A role * (DataPipelineDefaultRole) assumed by the AWS Data Pipeline service to monitor * the progress of the copy task from Amazon RDS to Amazon S3. For more * information, see Role * templates for data pipelines.

  • SecurityInfo - The security * information to use to access an RDS DB instance. You need to set up appropriate * ingress rules for the security entity IDs provided to allow access to the Amazon * RDS instance. Specify a [SubnetId, SecurityGroupIds] * pair for a VPC-based RDS DB instance.

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

  • S3StagingLocation - The Amazon S3 * location for staging Amazon RDS data. The data retrieved from Amazon RDS using * SelectSqlQuery 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}}"

    *
*/ inline const RDSDataSpec& GetRDSData() const{ return m_rDSData; } /** *

The data specification of an Amazon RDS DataSource:

    *
  • DatabaseInformation -

    • DatabaseName - The * name of the Amazon RDS database.

    • InstanceIdentifier * - A unique identifier for the Amazon RDS database instance.

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

  • *
  • ResourceRole - A role (DataPipelineDefaultResourceRole) assumed by an * EC2 instance to carry out the copy task from Amazon RDS to Amazon Simple Storage * Service (Amazon S3). For more information, see Role * templates for data pipelines.

  • ServiceRole - A role * (DataPipelineDefaultRole) assumed by the AWS Data Pipeline service to monitor * the progress of the copy task from Amazon RDS to Amazon S3. For more * information, see Role * templates for data pipelines.

  • SecurityInfo - The security * information to use to access an RDS DB instance. You need to set up appropriate * ingress rules for the security entity IDs provided to allow access to the Amazon * RDS instance. Specify a [SubnetId, SecurityGroupIds] * pair for a VPC-based RDS DB instance.

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

  • S3StagingLocation - The Amazon S3 * location for staging Amazon RDS data. The data retrieved from Amazon RDS using * SelectSqlQuery 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}}"

    *
*/ inline bool RDSDataHasBeenSet() const { return m_rDSDataHasBeenSet; } /** *

The data specification of an Amazon RDS DataSource:

    *
  • DatabaseInformation -

    • DatabaseName - The * name of the Amazon RDS database.

    • InstanceIdentifier * - A unique identifier for the Amazon RDS database instance.

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

  • *
  • ResourceRole - A role (DataPipelineDefaultResourceRole) assumed by an * EC2 instance to carry out the copy task from Amazon RDS to Amazon Simple Storage * Service (Amazon S3). For more information, see Role * templates for data pipelines.

  • ServiceRole - A role * (DataPipelineDefaultRole) assumed by the AWS Data Pipeline service to monitor * the progress of the copy task from Amazon RDS to Amazon S3. For more * information, see Role * templates for data pipelines.

  • SecurityInfo - The security * information to use to access an RDS DB instance. You need to set up appropriate * ingress rules for the security entity IDs provided to allow access to the Amazon * RDS instance. Specify a [SubnetId, SecurityGroupIds] * pair for a VPC-based RDS DB instance.

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

  • S3StagingLocation - The Amazon S3 * location for staging Amazon RDS data. The data retrieved from Amazon RDS using * SelectSqlQuery 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}}"

    *
*/ inline void SetRDSData(const RDSDataSpec& value) { m_rDSDataHasBeenSet = true; m_rDSData = value; } /** *

The data specification of an Amazon RDS DataSource:

    *
  • DatabaseInformation -

    • DatabaseName - The * name of the Amazon RDS database.

    • InstanceIdentifier * - A unique identifier for the Amazon RDS database instance.

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

  • *
  • ResourceRole - A role (DataPipelineDefaultResourceRole) assumed by an * EC2 instance to carry out the copy task from Amazon RDS to Amazon Simple Storage * Service (Amazon S3). For more information, see Role * templates for data pipelines.

  • ServiceRole - A role * (DataPipelineDefaultRole) assumed by the AWS Data Pipeline service to monitor * the progress of the copy task from Amazon RDS to Amazon S3. For more * information, see Role * templates for data pipelines.

  • SecurityInfo - The security * information to use to access an RDS DB instance. You need to set up appropriate * ingress rules for the security entity IDs provided to allow access to the Amazon * RDS instance. Specify a [SubnetId, SecurityGroupIds] * pair for a VPC-based RDS DB instance.

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

  • S3StagingLocation - The Amazon S3 * location for staging Amazon RDS data. The data retrieved from Amazon RDS using * SelectSqlQuery 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}}"

    *
*/ inline void SetRDSData(RDSDataSpec&& value) { m_rDSDataHasBeenSet = true; m_rDSData = std::move(value); } /** *

The data specification of an Amazon RDS DataSource:

    *
  • DatabaseInformation -

    • DatabaseName - The * name of the Amazon RDS database.

    • InstanceIdentifier * - A unique identifier for the Amazon RDS database instance.

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

  • *
  • ResourceRole - A role (DataPipelineDefaultResourceRole) assumed by an * EC2 instance to carry out the copy task from Amazon RDS to Amazon Simple Storage * Service (Amazon S3). For more information, see Role * templates for data pipelines.

  • ServiceRole - A role * (DataPipelineDefaultRole) assumed by the AWS Data Pipeline service to monitor * the progress of the copy task from Amazon RDS to Amazon S3. For more * information, see Role * templates for data pipelines.

  • SecurityInfo - The security * information to use to access an RDS DB instance. You need to set up appropriate * ingress rules for the security entity IDs provided to allow access to the Amazon * RDS instance. Specify a [SubnetId, SecurityGroupIds] * pair for a VPC-based RDS DB instance.

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

  • S3StagingLocation - The Amazon S3 * location for staging Amazon RDS data. The data retrieved from Amazon RDS using * SelectSqlQuery 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}}"

    *
*/ inline CreateDataSourceFromRDSRequest& WithRDSData(const RDSDataSpec& value) { SetRDSData(value); return *this;} /** *

The data specification of an Amazon RDS DataSource:

    *
  • DatabaseInformation -

    • DatabaseName - The * name of the Amazon RDS database.

    • InstanceIdentifier * - A unique identifier for the Amazon RDS database instance.

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

  • *
  • ResourceRole - A role (DataPipelineDefaultResourceRole) assumed by an * EC2 instance to carry out the copy task from Amazon RDS to Amazon Simple Storage * Service (Amazon S3). For more information, see Role * templates for data pipelines.

  • ServiceRole - A role * (DataPipelineDefaultRole) assumed by the AWS Data Pipeline service to monitor * the progress of the copy task from Amazon RDS to Amazon S3. For more * information, see Role * templates for data pipelines.

  • SecurityInfo - The security * information to use to access an RDS DB instance. You need to set up appropriate * ingress rules for the security entity IDs provided to allow access to the Amazon * RDS instance. Specify a [SubnetId, SecurityGroupIds] * pair for a VPC-based RDS DB instance.

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

  • S3StagingLocation - The Amazon S3 * location for staging Amazon RDS data. The data retrieved from Amazon RDS using * SelectSqlQuery 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}}"

    *
*/ inline CreateDataSourceFromRDSRequest& WithRDSData(RDSDataSpec&& value) { SetRDSData(std::move(value)); return *this;} /** *

The role that Amazon ML assumes on behalf of the user to create and activate * a data pipeline in the user's account and copy data using the * SelectSqlQuery query from Amazon RDS to Amazon S3.

*/ inline const Aws::String& GetRoleARN() const{ return m_roleARN; } /** *

The role that Amazon ML assumes on behalf of the user to create and activate * a data pipeline in the user's account and copy data using the * SelectSqlQuery query from Amazon RDS to Amazon S3.

*/ inline bool RoleARNHasBeenSet() const { return m_roleARNHasBeenSet; } /** *

The role that Amazon ML assumes on behalf of the user to create and activate * a data pipeline in the user's account and copy data using the * SelectSqlQuery query from Amazon RDS to Amazon S3.

*/ inline void SetRoleARN(const Aws::String& value) { m_roleARNHasBeenSet = true; m_roleARN = value; } /** *

The role that Amazon ML assumes on behalf of the user to create and activate * a data pipeline in the user's account and copy data using the * SelectSqlQuery query from Amazon RDS to Amazon S3.

*/ inline void SetRoleARN(Aws::String&& value) { m_roleARNHasBeenSet = true; m_roleARN = std::move(value); } /** *

The role that Amazon ML assumes on behalf of the user to create and activate * a data pipeline in the user's account and copy data using the * SelectSqlQuery query from Amazon RDS to Amazon S3.

*/ inline void SetRoleARN(const char* value) { m_roleARNHasBeenSet = true; m_roleARN.assign(value); } /** *

The role that Amazon ML assumes on behalf of the user to create and activate * a data pipeline in the user's account and copy data using the * SelectSqlQuery query from Amazon RDS to Amazon S3.

*/ inline CreateDataSourceFromRDSRequest& WithRoleARN(const Aws::String& value) { SetRoleARN(value); return *this;} /** *

The role that Amazon ML assumes on behalf of the user to create and activate * a data pipeline in the user's account and copy data using the * SelectSqlQuery query from Amazon RDS to Amazon S3.

*/ inline CreateDataSourceFromRDSRequest& WithRoleARN(Aws::String&& value) { SetRoleARN(std::move(value)); return *this;} /** *

The role that Amazon ML assumes on behalf of the user to create and activate * a data pipeline in the user's account and copy data using the * SelectSqlQuery query from Amazon RDS to Amazon S3.

*/ inline CreateDataSourceFromRDSRequest& WithRoleARN(const char* value) { SetRoleARN(value); return *this;} /** *

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.

*/ inline bool GetComputeStatistics() const{ return m_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.

*/ inline bool ComputeStatisticsHasBeenSet() const { return m_computeStatisticsHasBeenSet; } /** *

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.

*/ inline void SetComputeStatistics(bool value) { m_computeStatisticsHasBeenSet = true; m_computeStatistics = value; } /** *

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.

*/ inline CreateDataSourceFromRDSRequest& WithComputeStatistics(bool value) { SetComputeStatistics(value); return *this;} private: Aws::String m_dataSourceId; bool m_dataSourceIdHasBeenSet = false; Aws::String m_dataSourceName; bool m_dataSourceNameHasBeenSet = false; RDSDataSpec m_rDSData; bool m_rDSDataHasBeenSet = false; Aws::String m_roleARN; bool m_roleARNHasBeenSet = false; bool m_computeStatistics; bool m_computeStatisticsHasBeenSet = false; }; } // namespace Model } // namespace MachineLearning } // namespace Aws