aws_sdk_datazone/client/
list_data_sources.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`ListDataSources`](crate::operation::list_data_sources::builders::ListDataSourcesFluentBuilder) operation.
    /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_data_sources::builders::ListDataSourcesFluentBuilder::into_paginator).
    ///
    /// - The fluent builder is configurable:
    ///   - [`domain_identifier(impl Into<String>)`](crate::operation::list_data_sources::builders::ListDataSourcesFluentBuilder::domain_identifier) / [`set_domain_identifier(Option<String>)`](crate::operation::list_data_sources::builders::ListDataSourcesFluentBuilder::set_domain_identifier):<br>required: **true**<br><p>The identifier of the Amazon DataZone domain in which to list the data sources.</p><br>
    ///   - [`project_identifier(impl Into<String>)`](crate::operation::list_data_sources::builders::ListDataSourcesFluentBuilder::project_identifier) / [`set_project_identifier(Option<String>)`](crate::operation::list_data_sources::builders::ListDataSourcesFluentBuilder::set_project_identifier):<br>required: **true**<br><p>The identifier of the project in which to list data sources.</p><br>
    ///   - [`environment_identifier(impl Into<String>)`](crate::operation::list_data_sources::builders::ListDataSourcesFluentBuilder::environment_identifier) / [`set_environment_identifier(Option<String>)`](crate::operation::list_data_sources::builders::ListDataSourcesFluentBuilder::set_environment_identifier):<br>required: **false**<br><p>The identifier of the environment in which to list the data sources.</p><br>
    ///   - [`connection_identifier(impl Into<String>)`](crate::operation::list_data_sources::builders::ListDataSourcesFluentBuilder::connection_identifier) / [`set_connection_identifier(Option<String>)`](crate::operation::list_data_sources::builders::ListDataSourcesFluentBuilder::set_connection_identifier):<br>required: **false**<br><p>The ID of the connection.</p><br>
    ///   - [`r#type(impl Into<String>)`](crate::operation::list_data_sources::builders::ListDataSourcesFluentBuilder::type) / [`set_type(Option<String>)`](crate::operation::list_data_sources::builders::ListDataSourcesFluentBuilder::set_type):<br>required: **false**<br><p>The type of the data source.</p><br>
    ///   - [`status(DataSourceStatus)`](crate::operation::list_data_sources::builders::ListDataSourcesFluentBuilder::status) / [`set_status(Option<DataSourceStatus>)`](crate::operation::list_data_sources::builders::ListDataSourcesFluentBuilder::set_status):<br>required: **false**<br><p>The status of the data source.</p><br>
    ///   - [`name(impl Into<String>)`](crate::operation::list_data_sources::builders::ListDataSourcesFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::list_data_sources::builders::ListDataSourcesFluentBuilder::set_name):<br>required: **false**<br><p>The name of the data source.</p><br>
    ///   - [`next_token(impl Into<String>)`](crate::operation::list_data_sources::builders::ListDataSourcesFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_data_sources::builders::ListDataSourcesFluentBuilder::set_next_token):<br>required: **false**<br><p>When the number of data sources is greater than the default value for the <code>MaxResults</code> parameter, or if you explicitly specify a value for <code>MaxResults</code> that is less than the number of data sources, the response includes a pagination token named <code>NextToken</code>. You can specify this <code>NextToken</code> value in a subsequent call to <code>ListDataSources</code> to list the next set of data sources.</p><br>
    ///   - [`max_results(i32)`](crate::operation::list_data_sources::builders::ListDataSourcesFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_data_sources::builders::ListDataSourcesFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of data sources to return in a single call to <code>ListDataSources</code>. When the number of data sources to be listed is greater than the value of <code>MaxResults</code>, the response contains a <code>NextToken</code> value that you can use in a subsequent call to <code>ListDataSources</code> to list the next set of data sources.</p><br>
    /// - On success, responds with [`ListDataSourcesOutput`](crate::operation::list_data_sources::ListDataSourcesOutput) with field(s):
    ///   - [`items(Vec::<DataSourceSummary>)`](crate::operation::list_data_sources::ListDataSourcesOutput::items): <p>The results of the <code>ListDataSources</code> action.</p>
    ///   - [`next_token(Option<String>)`](crate::operation::list_data_sources::ListDataSourcesOutput::next_token): <p>When the number of data sources is greater than the default value for the <code>MaxResults</code> parameter, or if you explicitly specify a value for <code>MaxResults</code> that is less than the number of data sources, the response includes a pagination token named <code>NextToken</code>. You can specify this <code>NextToken</code> value in a subsequent call to <code>ListDataSources</code> to list the next set of data sources.</p>
    /// - On failure, responds with [`SdkError<ListDataSourcesError>`](crate::operation::list_data_sources::ListDataSourcesError)
    pub fn list_data_sources(&self) -> crate::operation::list_data_sources::builders::ListDataSourcesFluentBuilder {
        crate::operation::list_data_sources::builders::ListDataSourcesFluentBuilder::new(self.handle.clone())
    }
}