pub struct Client { /* private fields */ }
Expand description

Client for Amazon CodeGuru Reviewer

Client for invoking operations on Amazon CodeGuru Reviewer. Each operation on Amazon CodeGuru Reviewer is a method on this this struct. .send() MUST be invoked on the generated operations to dispatch the request to the service.

Examples

Constructing a client and invoking an operation

    // create a shared configuration. This can be used & shared between multiple service clients.
    let shared_config = aws_config::load_from_env().await;
    let client = aws_sdk_codegurureviewer::Client::new(&shared_config);
    // invoke an operation
    /* let rsp = client
        .<operation_name>().
        .<param>("some value")
        .send().await; */

Constructing a client with custom configuration

use aws_config::retry::RetryConfig;
let shared_config = aws_config::load_from_env().await;
let config = aws_sdk_codegurureviewer::config::Builder::from(&shared_config)
  .retry_config(RetryConfig::disabled())
  .build();
let client = aws_sdk_codegurureviewer::Client::from_conf(config);

Implementations§

Creates a client with the given service configuration.

Returns the client’s configuration.

Constructs a fluent builder for the AssociateRepository operation.

Constructs a fluent builder for the CreateCodeReview operation.

Constructs a fluent builder for the DescribeCodeReview operation.

Constructs a fluent builder for the DescribeRecommendationFeedback operation.

Constructs a fluent builder for the DescribeRepositoryAssociation operation.

Constructs a fluent builder for the DisassociateRepository operation.

Constructs a fluent builder for the ListCodeReviews operation. This operation supports pagination; See into_paginator().

Constructs a fluent builder for the ListRecommendationFeedback operation. This operation supports pagination; See into_paginator().

Constructs a fluent builder for the ListRecommendations operation. This operation supports pagination; See into_paginator().

Constructs a fluent builder for the ListRepositoryAssociations operation. This operation supports pagination; See into_paginator().

  • The fluent builder is configurable:
    • provider_types(Vec<ProviderType>) / set_provider_types(Option<Vec<ProviderType>>):

      List of provider types to use as a filter.

    • states(Vec<RepositoryAssociationState>) / set_states(Option<Vec<RepositoryAssociationState>>):

      List of repository association states to use as a filter.

      The valid repository association states are:

      • Associated: The repository association is complete.

      • Associating: CodeGuru Reviewer is:

        • Setting up pull request notifications. This is required for pull requests to trigger a CodeGuru Reviewer review.

          If your repository ProviderType is GitHub, GitHub Enterprise Server, or Bitbucket, 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.

        • Setting up source code access. This is required for CodeGuru Reviewer to securely clone code in your repository.

      • Failed: The repository failed to associate or disassociate.

      • Disassociating: CodeGuru Reviewer is removing the repository’s pull request notifications and source code access.

      • Disassociated: 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 Using tags to control access to associated repositories in the Amazon CodeGuru Reviewer User Guide.

    • names(Vec<String>) / set_names(Option<Vec<String>>):

      List of repository names to use as a filter.

    • owners(Vec<String>) / set_owners(Option<Vec<String>>):

      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.

    • max_results(i32) / set_max_results(Option<i32>):

      The maximum number of repository association results returned by ListRepositoryAssociations in paginated output. When this parameter is used, ListRepositoryAssociations only returns maxResults results in a single page with a nextToken response element. The remaining results of the initial request can be seen by sending another ListRepositoryAssociations request with the returned nextToken value. This value can be between 1 and 100. If this parameter is not used, ListRepositoryAssociations returns up to 100 results and a nextToken value if applicable.

    • next_token(impl Into<String>) / set_next_token(Option<String>):

      The nextToken value returned from a previous paginated ListRepositoryAssociations request where maxResults was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the nextToken value.

      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.

  • On success, responds with ListRepositoryAssociationsOutput with field(s):
  • On failure, responds with SdkError<ListRepositoryAssociationsError>

Constructs a fluent builder for the ListTagsForResource operation.

Constructs a fluent builder for the PutRecommendationFeedback operation.

Constructs a fluent builder for the TagResource operation.

Constructs a fluent builder for the UntagResource operation.

Creates a new client from an SDK Config.

Panics
  • This method will panic if the sdk_config is missing an async sleep implementation. If you experience this panic, set the sleep_impl on the Config passed into this function to fix it.
  • This method will panic if the sdk_config is missing an HTTP connector. If you experience this panic, set the http_connector on the Config passed into this function to fix it.

Creates a new client from the service Config.

Panics
  • This method will panic if the conf is missing an async sleep implementation. If you experience this panic, set the sleep_impl on the Config passed into this function to fix it.
  • This method will panic if the conf is missing an HTTP connector. If you experience this panic, set the http_connector on the Config passed into this function to fix it.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
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