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

Client for AWS CodeCommit

Client for invoking operations on AWS CodeCommit. Each operation on AWS CodeCommit 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_codecommit::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::RetryConfig;
let shared_config = aws_config::load_from_env().await;
let config = aws_sdk_codecommit::config::Builder::from(&shared_config)
  .retry_config(RetryConfig::disabled())
  .build();
let client = aws_sdk_codecommit::Client::from_conf(config);

Implementations

Creates a client with the given service configuration.

Returns the client’s configuration.

Constructs a fluent builder for the AssociateApprovalRuleTemplateWithRepository operation.

Constructs a fluent builder for the BatchAssociateApprovalRuleTemplateWithRepositories operation.

Constructs a fluent builder for the BatchDescribeMergeConflicts operation.

Constructs a fluent builder for the BatchDisassociateApprovalRuleTemplateFromRepositories operation.

Constructs a fluent builder for the BatchGetCommits operation.

Constructs a fluent builder for the BatchGetRepositories operation.

Constructs a fluent builder for the CreateApprovalRuleTemplate operation.

  • The fluent builder is configurable:
    • approval_rule_template_name(impl Into<String>) / set_approval_rule_template_name(Option<String>):

      The name of the approval rule template. Provide descriptive names, because this name is applied to the approval rules created automatically in associated repositories.

    • approval_rule_template_content(impl Into<String>) / set_approval_rule_template_content(Option<String>):

      The content of the approval rule that is created on pull requests in associated repositories. If you specify one or more destination references (branches), approval rules are created in an associated repository only if their destination references (branches) match those specified in the template.

      When you create the content of the approval rule template, you can specify approvers in an approval pool in one of two ways:

      • CodeCommitApprovers: This option only requires an AWS account and a resource. It can be used for both IAM users and federated access users whose name matches the provided resource name. This is a very powerful option that offers a great deal of flexibility. For example, if you specify the AWS account 123456789012 and Mary_Major, all of the following are counted as approvals coming from that user:

        • An IAM user in the account (arn:aws:iam::123456789012:user/Mary_Major)

        • A federated user identified in IAM as Mary_Major (arn:aws:sts::123456789012:federated-user/Mary_Major)

        This option does not recognize an active session of someone assuming the role of CodeCommitReview with a role session name of Mary_Major (arn:aws:sts::123456789012:assumed-role/CodeCommitReview/Mary_Major) unless you include a wildcard (*Mary_Major).

      • Fully qualified ARN: This option allows you to specify the fully qualified Amazon Resource Name (ARN) of the IAM user or role.

      For more information about IAM ARNs, wildcards, and formats, see IAM Identifiers in the IAM User Guide.

    • approval_rule_template_description(impl Into<String>) / set_approval_rule_template_description(Option<String>):

      The description of the approval rule template. Consider providing a description that explains what this template does and when it might be appropriate to associate it with repositories.

  • On success, responds with CreateApprovalRuleTemplateOutput with field(s):
  • On failure, responds with SdkError<CreateApprovalRuleTemplateError>

Constructs a fluent builder for the CreateBranch operation.

Constructs a fluent builder for the CreateCommit operation.

Constructs a fluent builder for the CreatePullRequest operation.

Constructs a fluent builder for the CreatePullRequestApprovalRule operation.

  • The fluent builder is configurable:
    • pull_request_id(impl Into<String>) / set_pull_request_id(Option<String>):

      The system-generated ID of the pull request for which you want to create the approval rule.

    • approval_rule_name(impl Into<String>) / set_approval_rule_name(Option<String>):

      The name for the approval rule.

    • approval_rule_content(impl Into<String>) / set_approval_rule_content(Option<String>):

      The content of the approval rule, including the number of approvals needed and the structure of an approval pool defined for approvals, if any. For more information about approval pools, see the AWS CodeCommit User Guide.

      When you create the content of the approval rule, you can specify approvers in an approval pool in one of two ways:

      • CodeCommitApprovers: This option only requires an AWS account and a resource. It can be used for both IAM users and federated access users whose name matches the provided resource name. This is a very powerful option that offers a great deal of flexibility. For example, if you specify the AWS account 123456789012 and Mary_Major, all of the following would be counted as approvals coming from that user:

        • An IAM user in the account (arn:aws:iam::123456789012:user/Mary_Major)

        • A federated user identified in IAM as Mary_Major (arn:aws:sts::123456789012:federated-user/Mary_Major)

        This option does not recognize an active session of someone assuming the role of CodeCommitReview with a role session name of Mary_Major (arn:aws:sts::123456789012:assumed-role/CodeCommitReview/Mary_Major) unless you include a wildcard (*Mary_Major).

      • Fully qualified ARN: This option allows you to specify the fully qualified Amazon Resource Name (ARN) of the IAM user or role.

      For more information about IAM ARNs, wildcards, and formats, see IAM Identifiers in the IAM User Guide.

  • On success, responds with CreatePullRequestApprovalRuleOutput with field(s):
  • On failure, responds with SdkError<CreatePullRequestApprovalRuleError>

Constructs a fluent builder for the CreateRepository operation.

Constructs a fluent builder for the CreateUnreferencedMergeCommit operation.

Constructs a fluent builder for the DeleteApprovalRuleTemplate operation.

Constructs a fluent builder for the DeleteBranch operation.

Constructs a fluent builder for the DeleteCommentContent operation.

Constructs a fluent builder for the DeleteFile operation.

Constructs a fluent builder for the DeletePullRequestApprovalRule operation.

Constructs a fluent builder for the DeleteRepository operation.

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

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

Constructs a fluent builder for the DisassociateApprovalRuleTemplateFromRepository operation.

Constructs a fluent builder for the EvaluatePullRequestApprovalRules operation.

Constructs a fluent builder for the GetApprovalRuleTemplate operation.

Constructs a fluent builder for the GetBlob operation.

Constructs a fluent builder for the GetBranch operation.

Constructs a fluent builder for the GetComment operation.

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

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

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

Constructs a fluent builder for the GetCommit operation.

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

Constructs a fluent builder for the GetFile operation.

Constructs a fluent builder for the GetFolder operation.

Constructs a fluent builder for the GetMergeCommit operation.

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

Constructs a fluent builder for the GetMergeOptions operation.

Constructs a fluent builder for the GetPullRequest operation.

Constructs a fluent builder for the GetPullRequestApprovalStates operation.

Constructs a fluent builder for the GetPullRequestOverrideState operation.

Constructs a fluent builder for the GetRepository operation.

Constructs a fluent builder for the GetRepositoryTriggers operation.

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

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

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

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

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

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

Constructs a fluent builder for the ListTagsForResource operation.

Constructs a fluent builder for the MergeBranchesByFastForward operation.

Constructs a fluent builder for the MergeBranchesBySquash operation.

Constructs a fluent builder for the MergeBranchesByThreeWay operation.

Constructs a fluent builder for the MergePullRequestByFastForward operation.

Constructs a fluent builder for the MergePullRequestBySquash operation.

Constructs a fluent builder for the MergePullRequestByThreeWay operation.

Constructs a fluent builder for the OverridePullRequestApprovalRules operation.

Constructs a fluent builder for the PostCommentForComparedCommit operation.

Constructs a fluent builder for the PostCommentForPullRequest operation.

Constructs a fluent builder for the PostCommentReply operation.

Constructs a fluent builder for the PutCommentReaction operation.

Constructs a fluent builder for the PutFile operation.

Constructs a fluent builder for the PutRepositoryTriggers operation.

Constructs a fluent builder for the TagResource operation.

Constructs a fluent builder for the TestRepositoryTriggers operation.

Constructs a fluent builder for the UntagResource operation.

Constructs a fluent builder for the UpdateApprovalRuleTemplateContent operation.

Constructs a fluent builder for the UpdateApprovalRuleTemplateDescription operation.

Constructs a fluent builder for the UpdateApprovalRuleTemplateName operation.

Constructs a fluent builder for the UpdateComment operation.

Constructs a fluent builder for the UpdateDefaultBranch operation.

Constructs a fluent builder for the UpdatePullRequestApprovalRuleContent operation.

Constructs a fluent builder for the UpdatePullRequestApprovalState operation.

Constructs a fluent builder for the UpdatePullRequestDescription operation.

Constructs a fluent builder for the UpdatePullRequestStatus operation.

Constructs a fluent builder for the UpdatePullRequestTitle operation.

Constructs a fluent builder for the UpdateRepositoryDescription operation.

Constructs a fluent builder for the UpdateRepositoryName operation.

Creates a client with the given service config and connector override.

Creates a new client from a shared config.

Creates a new client from the service Config.

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.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

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