Paws::CodeCommit::CreatePullRequest - Arguments for method CreatePullRequest on Paws::CodeCommit


This class represents the parameters used for calling the method CreatePullRequest on the AWS CodeCommit service. Use the attributes of this class as arguments to method CreatePullRequest.

You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreatePullRequest.


    my $codecommit = Paws->service('CodeCommit');
    my $CreatePullRequestOutput = $codecommit->CreatePullRequest(
      Targets => [
          RepositoryName       => 'MyRepositoryName',    # min: 1, max: 100
          SourceReference      => 'MyReferenceName',
          DestinationReference => 'MyReferenceName',
      Title              => 'MyTitle',
      ClientRequestToken => 'MyClientRequestToken',      # OPTIONAL
      Description        => 'MyDescription',             # OPTIONAL

    # Results:
    my $PullRequest = $CreatePullRequestOutput->PullRequest;

    # Returns a L<Paws::CodeCommit::CreatePullRequestOutput> object.

Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object. For the AWS API documentation, see


ClientRequestToken => Str

A unique, client-generated idempotency token that, when provided in a request, ensures the request cannot be repeated with a changed parameter. If a request is received with the same parameters and a token is included, the request returns information about the initial request that used that token.

The AWS SDKs prepopulate client request tokens. If you are using an AWS SDK, an idempotency token is created for you.

Description => Str

A description of the pull request.

REQUIRED Targets => ArrayRef[Paws::CodeCommit::Target]

The targets for the pull request, including the source of the code to be reviewed (the source branch) and the destination where the creator of the pull request intends the code to be merged after the pull request is closed (the destination branch).

REQUIRED Title => Str

The title of the pull request. This title is used to identify the pull request to other users in the repository.


This class forms part of Paws, documenting arguments for method CreatePullRequest in Paws::CodeCommit


The source code is located here:

Please report bugs to: