aws_sdk_codestar/client/list_resources.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 [`ListResources`](crate::operation::list_resources::builders::ListResourcesFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`project_id(impl Into<String>)`](crate::operation::list_resources::builders::ListResourcesFluentBuilder::project_id) / [`set_project_id(Option<String>)`](crate::operation::list_resources::builders::ListResourcesFluentBuilder::set_project_id):<br>required: **true**<br><p>The ID of the project.</p><br>
7 /// - [`next_token(impl Into<String>)`](crate::operation::list_resources::builders::ListResourcesFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_resources::builders::ListResourcesFluentBuilder::set_next_token):<br>required: **false**<br><p>The continuation token for the next set of results, if the results cannot be returned in one response.</p><br>
8 /// - [`max_results(i32)`](crate::operation::list_resources::builders::ListResourcesFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_resources::builders::ListResourcesFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum amount of data that can be contained in a single set of results.</p><br>
9 /// - On success, responds with [`ListResourcesOutput`](crate::operation::list_resources::ListResourcesOutput) with field(s):
10 /// - [`resources(Option<Vec::<Resource>>)`](crate::operation::list_resources::ListResourcesOutput::resources): <p>An array of resources associated with the project.</p>
11 /// - [`next_token(Option<String>)`](crate::operation::list_resources::ListResourcesOutput::next_token): <p>The continuation token to use when requesting the next set of results, if there are more results to be returned.</p>
12 /// - On failure, responds with [`SdkError<ListResourcesError>`](crate::operation::list_resources::ListResourcesError)
13 pub fn list_resources(&self) -> crate::operation::list_resources::builders::ListResourcesFluentBuilder {
14 crate::operation::list_resources::builders::ListResourcesFluentBuilder::new(self.handle.clone())
15 }
16}