aws_sdk_machinelearning/client/get_data_source.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`GetDataSource`](crate::operation::get_data_source::builders::GetDataSourceFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`data_source_id(impl Into<String>)`](crate::operation::get_data_source::builders::GetDataSourceFluentBuilder::data_source_id) / [`set_data_source_id(Option<String>)`](crate::operation::get_data_source::builders::GetDataSourceFluentBuilder::set_data_source_id):<br>required: **true**<br><p>The ID assigned to the <code>DataSource</code> at creation.</p><br>
7 /// - [`verbose(bool)`](crate::operation::get_data_source::builders::GetDataSourceFluentBuilder::verbose) / [`set_verbose(Option<bool>)`](crate::operation::get_data_source::builders::GetDataSourceFluentBuilder::set_verbose):<br>required: **false**<br><p>Specifies whether the <code>GetDataSource</code> operation should return <code>DataSourceSchema</code>.</p> <p>If true, <code>DataSourceSchema</code> is returned.</p> <p>If false, <code>DataSourceSchema</code> is not returned.</p><br>
8 /// - On success, responds with [`GetDataSourceOutput`](crate::operation::get_data_source::GetDataSourceOutput) with field(s):
9 /// - [`data_source_id(Option<String>)`](crate::operation::get_data_source::GetDataSourceOutput::data_source_id): <p>The ID assigned to the <code>DataSource</code> at creation. This value should be identical to the value of the <code>DataSourceId</code> in the request.</p>
10 /// - [`data_location_s3(Option<String>)`](crate::operation::get_data_source::GetDataSourceOutput::data_location_s3): <p>The location of the data file or directory in Amazon Simple Storage Service (Amazon S3).</p>
11 /// - [`data_rearrangement(Option<String>)`](crate::operation::get_data_source::GetDataSourceOutput::data_rearrangement): <p>A JSON string that represents the splitting and rearrangement requirement used when this <code>DataSource</code> was created.</p>
12 /// - [`created_by_iam_user(Option<String>)`](crate::operation::get_data_source::GetDataSourceOutput::created_by_iam_user): <p>The AWS user account from which the <code>DataSource</code> was created. The account type can be either an AWS root account or an AWS Identity and Access Management (IAM) user account.</p>
13 /// - [`created_at(Option<DateTime>)`](crate::operation::get_data_source::GetDataSourceOutput::created_at): <p>The time that the <code>DataSource</code> was created. The time is expressed in epoch time.</p>
14 /// - [`last_updated_at(Option<DateTime>)`](crate::operation::get_data_source::GetDataSourceOutput::last_updated_at): <p>The time of the most recent edit to the <code>DataSource</code>. The time is expressed in epoch time.</p>
15 /// - [`data_size_in_bytes(Option<i64>)`](crate::operation::get_data_source::GetDataSourceOutput::data_size_in_bytes): <p>The total size of observations in the data files.</p>
16 /// - [`number_of_files(Option<i64>)`](crate::operation::get_data_source::GetDataSourceOutput::number_of_files): <p>The number of data files referenced by the <code>DataSource</code>.</p>
17 /// - [`name(Option<String>)`](crate::operation::get_data_source::GetDataSourceOutput::name): <p>A user-supplied name or description of the <code>DataSource</code>.</p>
18 /// - [`status(Option<EntityStatus>)`](crate::operation::get_data_source::GetDataSourceOutput::status): <p>The current status of the <code>DataSource</code>. This element can have one of the following values:</p> <ul> <li> <p><code>PENDING</code> - Amazon ML submitted a request to create a <code>DataSource</code>.</p></li> <li> <p><code>INPROGRESS</code> - The creation process is underway.</p></li> <li> <p><code>FAILED</code> - The request to create a <code>DataSource</code> did not run to completion. It is not usable.</p></li> <li> <p><code>COMPLETED</code> - The creation process completed successfully.</p></li> <li> <p><code>DELETED</code> - The <code>DataSource</code> is marked as deleted. It is not usable.</p></li> </ul>
19 /// - [`log_uri(Option<String>)`](crate::operation::get_data_source::GetDataSourceOutput::log_uri): <p>A link to the file containing logs of <code>CreateDataSourceFrom*</code> operations.</p>
20 /// - [`message(Option<String>)`](crate::operation::get_data_source::GetDataSourceOutput::message): <p>The user-supplied description of the most recent details about creating the <code>DataSource</code>.</p>
21 /// - [`redshift_metadata(Option<RedshiftMetadata>)`](crate::operation::get_data_source::GetDataSourceOutput::redshift_metadata): <p>Describes the <code>DataSource</code> details specific to Amazon Redshift.</p>
22 /// - [`rds_metadata(Option<RdsMetadata>)`](crate::operation::get_data_source::GetDataSourceOutput::rds_metadata): <p>The datasource details that are specific to Amazon RDS.</p>
23 /// - [`role_arn(Option<String>)`](crate::operation::get_data_source::GetDataSourceOutput::role_arn): <p>The Amazon Resource Name (ARN) of an <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/roles-toplevel.html#roles-about-termsandconcepts">AWS IAM Role</a>, such as the following: arn:aws:iam::account:role/rolename.</p>
24 /// - [`compute_statistics(bool)`](crate::operation::get_data_source::GetDataSourceOutput::compute_statistics): <p>The parameter is <code>true</code> if statistics need to be generated from the observation data.</p>
25 /// - [`compute_time(Option<i64>)`](crate::operation::get_data_source::GetDataSourceOutput::compute_time): <p>The approximate CPU time in milliseconds that Amazon Machine Learning spent processing the <code>DataSource</code>, normalized and scaled on computation resources. <code>ComputeTime</code> is only available if the <code>DataSource</code> is in the <code>COMPLETED</code> state and the <code>ComputeStatistics</code> is set to true.</p>
26 /// - [`finished_at(Option<DateTime>)`](crate::operation::get_data_source::GetDataSourceOutput::finished_at): <p>The epoch time when Amazon Machine Learning marked the <code>DataSource</code> as <code>COMPLETED</code> or <code>FAILED</code>. <code>FinishedAt</code> is only available when the <code>DataSource</code> is in the <code>COMPLETED</code> or <code>FAILED</code> state.</p>
27 /// - [`started_at(Option<DateTime>)`](crate::operation::get_data_source::GetDataSourceOutput::started_at): <p>The epoch time when Amazon Machine Learning marked the <code>DataSource</code> as <code>INPROGRESS</code>. <code>StartedAt</code> isn't available if the <code>DataSource</code> is in the <code>PENDING</code> state.</p>
28 /// - [`data_source_schema(Option<String>)`](crate::operation::get_data_source::GetDataSourceOutput::data_source_schema): <p>The schema used by all of the data files of this <code>DataSource</code>.</p> <p><b>Note:</b> This parameter is provided as part of the verbose format.</p>
29 /// - On failure, responds with [`SdkError<GetDataSourceError>`](crate::operation::get_data_source::GetDataSourceError)
30 pub fn get_data_source(&self) -> crate::operation::get_data_source::builders::GetDataSourceFluentBuilder {
31 crate::operation::get_data_source::builders::GetDataSourceFluentBuilder::new(self.handle.clone())
32 }
33}