blob_differences
Creates, updates, deletes, gets or lists a blob_differences resource.
Overview
| Name | blob_differences |
| Type | Resource |
| Id | aws.codecommit.blob_differences |
Fields
The following fields are returned by SELECT queries:
- get_blob_differences
| Name | Datatype | Description |
|---|---|---|
after_line_count | integer | The number of lines from the after blob covered by this hunk, including any context lines. |
after_start_line | integer | The 1-based line number in the after blob where this hunk begins. When the hunk consists entirely of deletions, afterLineCount is 0. |
before_line_count | integer | The number of lines from the before blob covered by this hunk, including any context lines. |
before_start_line | integer | The 1-based line number in the before blob where this hunk begins. When the hunk consists entirely of additions, beforeLineCount is 0. |
changes | array | An 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:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_blob_differences | select | region | 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. |
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.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
SELECT examples
- get_blob_differences
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
;