differences
Creates, updates, deletes, gets or lists a differences resource.
Overview
| Name | differences |
| Type | Resource |
| Id | aws.codecommit.differences |
Fields
The following fields are returned by SELECT queries:
- get_differences
| Name | Datatype | Description |
|---|---|---|
after_blob | object | Information about an afterBlob data type object, including the ID, the file mode permission code, and the path. |
before_blob | object | Information about a beforeBlob data type object, including the ID, the file mode permission code, and the path. |
change_type | string | Whether the change type of the difference is an addition (A), deletion (D), or modification (M). (A, M, D) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_differences | select | region | Returns information about the differences in a valid commit specifier (such as a branch, tag, HEAD, commit ID, or other fully qualified reference). Results can be limited to a specified path. For line-level diff details, pass the beforeBlob.blobId and afterBlob.blobId values from a Difference object to GetBlobDifferences. |
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_differences
Returns information about the differences in a valid commit specifier (such as a branch, tag, HEAD, commit ID, or other fully qualified reference). Results can be limited to a specified path. For line-level diff details, pass the beforeBlob.blobId and afterBlob.blobId values from a Difference object to GetBlobDifferences.
SELECT
after_blob,
before_blob,
change_type
FROM aws.codecommit.differences
WHERE region = '{{ region }}' -- required
;