aws_sdk_codegurureviewer/client/list_repository_associations.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 [`ListRepositoryAssociations`](crate::operation::list_repository_associations::builders::ListRepositoryAssociationsFluentBuilder) operation.
4 /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_repository_associations::builders::ListRepositoryAssociationsFluentBuilder::into_paginator).
5 ///
6 /// - The fluent builder is configurable:
7 /// - [`provider_types(ProviderType)`](crate::operation::list_repository_associations::builders::ListRepositoryAssociationsFluentBuilder::provider_types) / [`set_provider_types(Option<Vec::<ProviderType>>)`](crate::operation::list_repository_associations::builders::ListRepositoryAssociationsFluentBuilder::set_provider_types):<br>required: **false**<br><p>List of provider types to use as a filter.</p><br>
8 /// - [`states(RepositoryAssociationState)`](crate::operation::list_repository_associations::builders::ListRepositoryAssociationsFluentBuilder::states) / [`set_states(Option<Vec::<RepositoryAssociationState>>)`](crate::operation::list_repository_associations::builders::ListRepositoryAssociationsFluentBuilder::set_states):<br>required: **false**<br><p>List of repository association states to use as a filter.</p> <p>The valid repository association states are:</p> <ul> <li> <p><b>Associated</b>: The repository association is complete.</p></li> <li> <p><b>Associating</b>: CodeGuru Reviewer is:</p> <ul> <li> <p>Setting up pull request notifications. This is required for pull requests to trigger a CodeGuru Reviewer review.</p><note> <p>If your repository <code>ProviderType</code> is <code>GitHub</code>, <code>GitHub Enterprise Server</code>, or <code>Bitbucket</code>, CodeGuru Reviewer creates webhooks in your repository to trigger CodeGuru Reviewer reviews. If you delete these webhooks, reviews of code in your repository cannot be triggered.</p> </note></li> <li> <p>Setting up source code access. This is required for CodeGuru Reviewer to securely clone code in your repository.</p></li> </ul></li> <li> <p><b>Failed</b>: The repository failed to associate or disassociate.</p></li> <li> <p><b>Disassociating</b>: CodeGuru Reviewer is removing the repository's pull request notifications and source code access.</p></li> <li> <p><b>Disassociated</b>: CodeGuru Reviewer successfully disassociated the repository. You can create a new association with this repository if you want to review source code in it later. You can control access to code reviews created in anassociated repository with tags after it has been disassociated. For more information, see <a href="https://docs.aws.amazon.com/codeguru/latest/reviewer-ug/auth-and-access-control-using-tags.html">Using tags to control access to associated repositories</a> in the <i>Amazon CodeGuru Reviewer User Guide</i>.</p></li> </ul><br>
9 /// - [`names(impl Into<String>)`](crate::operation::list_repository_associations::builders::ListRepositoryAssociationsFluentBuilder::names) / [`set_names(Option<Vec::<String>>)`](crate::operation::list_repository_associations::builders::ListRepositoryAssociationsFluentBuilder::set_names):<br>required: **false**<br><p>List of repository names to use as a filter.</p><br>
10 /// - [`owners(impl Into<String>)`](crate::operation::list_repository_associations::builders::ListRepositoryAssociationsFluentBuilder::owners) / [`set_owners(Option<Vec::<String>>)`](crate::operation::list_repository_associations::builders::ListRepositoryAssociationsFluentBuilder::set_owners):<br>required: **false**<br><p>List of owners to use as a filter. For Amazon Web Services CodeCommit, it is the name of the CodeCommit account that was used to associate the repository. For other repository source providers, such as Bitbucket and GitHub Enterprise Server, this is name of the account that was used to associate the repository.</p><br>
11 /// - [`max_results(i32)`](crate::operation::list_repository_associations::builders::ListRepositoryAssociationsFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_repository_associations::builders::ListRepositoryAssociationsFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of repository association results returned by <code>ListRepositoryAssociations</code> in paginated output. When this parameter is used, <code>ListRepositoryAssociations</code> only returns <code>maxResults</code> results in a single page with a <code>nextToken</code> response element. The remaining results of the initial request can be seen by sending another <code>ListRepositoryAssociations</code> request with the returned <code>nextToken</code> value. This value can be between 1 and 100. If this parameter is not used, <code>ListRepositoryAssociations</code> returns up to 100 results and a <code>nextToken</code> value if applicable.</p><br>
12 /// - [`next_token(impl Into<String>)`](crate::operation::list_repository_associations::builders::ListRepositoryAssociationsFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_repository_associations::builders::ListRepositoryAssociationsFluentBuilder::set_next_token):<br>required: **false**<br><p>The <code>nextToken</code> value returned from a previous paginated <code>ListRepositoryAssociations</code> request where <code>maxResults</code> was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the <code>nextToken</code> value.</p><note> <p>Treat this token as an opaque identifier that is only used to retrieve the next items in a list and not for other programmatic purposes.</p> </note><br>
13 /// - On success, responds with [`ListRepositoryAssociationsOutput`](crate::operation::list_repository_associations::ListRepositoryAssociationsOutput) with field(s):
14 /// - [`repository_association_summaries(Option<Vec::<RepositoryAssociationSummary>>)`](crate::operation::list_repository_associations::ListRepositoryAssociationsOutput::repository_association_summaries): <p>A list of repository associations that meet the criteria of the request.</p>
15 /// - [`next_token(Option<String>)`](crate::operation::list_repository_associations::ListRepositoryAssociationsOutput::next_token): <p>The <code>nextToken</code> value to include in a future <code>ListRecommendations</code> request. When the results of a <code>ListRecommendations</code> request exceed <code>maxResults</code>, this value can be used to retrieve the next page of results. This value is <code>null</code> when there are no more results to return.</p>
16 /// - On failure, responds with [`SdkError<ListRepositoryAssociationsError>`](crate::operation::list_repository_associations::ListRepositoryAssociationsError)
17 pub fn list_repository_associations(&self) -> crate::operation::list_repository_associations::builders::ListRepositoryAssociationsFluentBuilder {
18 crate::operation::list_repository_associations::builders::ListRepositoryAssociationsFluentBuilder::new(self.handle.clone())
19 }
20}