Skip to main content

differences

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

Overview

Namedifferences
TypeResource
Idaws.codecommit.differences

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
after_blobobjectInformation about an afterBlob data type object, including the ID, the file mode permission code, and the path.
before_blobobjectInformation about a beforeBlob data type object, including the ID, the file mode permission code, and the path.
change_typestringWhether 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:

NameAccessible byRequired ParamsOptional ParamsDescription
get_differencesselectregionReturns 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.

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

SELECT examples

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
;