Skip to main content

blob_differences

Creates, updates, deletes, gets or lists a blob_differences resource.

Overview

Nameblob_differences
TypeResource
Idaws.codecommit.blob_differences

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
after_line_countintegerThe number of lines from the after blob covered by this hunk, including any context lines.
after_start_lineintegerThe 1-based line number in the after blob where this hunk begins. When the hunk consists entirely of deletions, afterLineCount is 0.
before_line_countintegerThe number of lines from the before blob covered by this hunk, including any context lines.
before_start_lineintegerThe 1-based line number in the before blob where this hunk begins. When the hunk consists entirely of additions, beforeLineCount is 0.
changesarrayAn ordered list of line-level changes that make up this hunk. Each entry indicates whether the line is unchanged context, an addition, or a deletion.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_blob_differencesselectregionReturns a structured, line-level diff between two blob versions in a repository. The diff is returned as an ordered list of hunks, where each hunk represents a contiguous run of changed lines together with any surrounding unchanged context lines. Results are paginated. Use MaxResults and NextToken to retrieve additional pages. For the typical usage workflow, see GetDifferences.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Returns a structured, line-level diff between two blob versions in a repository. The diff is returned as an ordered list of hunks, where each hunk represents a contiguous run of changed lines together with any surrounding unchanged context lines. Results are paginated. Use MaxResults and NextToken to retrieve additional pages. For the typical usage workflow, see GetDifferences.

SELECT
after_line_count,
after_start_line,
before_line_count,
before_start_line,
changes
FROM aws.codecommit.blob_differences
WHERE region = '{{ region }}' -- required
;