Struct aws_sdk_machinelearning::input::CreateDataSourceFromRedshiftInput [−][src]
#[non_exhaustive]pub struct CreateDataSourceFromRedshiftInput {
pub data_source_id: Option<String>,
pub data_source_name: Option<String>,
pub data_spec: Option<RedshiftDataSpec>,
pub role_arn: Option<String>,
pub compute_statistics: bool,
}
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.data_source_id: Option<String>
A user-supplied ID that uniquely identifies the DataSource
.
data_source_name: Option<String>
A user-supplied name or description of the DataSource
.
data_spec: Option<RedshiftDataSpec>
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}}"
role_arn: Option<String>
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
compute_statistics: bool
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.
Implementations
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateDataSourceFromRedshift, AwsErrorRetryPolicy>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateDataSourceFromRedshift, AwsErrorRetryPolicy>, BuildError>
Consumes the builder and constructs an Operation<CreateDataSourceFromRedshift
>
Creates a new builder-style object to manufacture CreateDataSourceFromRedshiftInput
A user-supplied ID that uniquely identifies the DataSource
.
A user-supplied name or description of the DataSource
.
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}}"
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
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.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl Send for CreateDataSourceFromRedshiftInput
impl Sync for CreateDataSourceFromRedshiftInput
impl Unpin for CreateDataSourceFromRedshiftInput
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more