Skip to content

GetBlobDifferencesInput

Source code in docs_src/capo_codecommit/types/get_blob_differences_input.py
class GetBlobDifferencesInput(TypedDict, closed=True):
    repository_name: "capo_codecommit.types.repository_name.RepositoryName"
    """<p>The name of the repository that contains the blobs to compare.</p>"""
    after_blob_id: "capo_codecommit.types.object_id.ObjectId"
    """<p>The ID of the "after" (destination) blob in the diff. Typically the value of <code>afterBlob.blobId</code> from a <code>Difference</code> object returned by <a>GetDifferences</a>.</p>"""
    before_blob_id: NotRequired["capo_codecommit.types.object_id.ObjectId"]
    """<p>The ID of the "before" (source) blob in the diff. Typically the value of <code>beforeBlob.blobId</code> from a <code>Difference</code> object returned by <a>GetDifferences</a>.</p> <p>If you do not specify a value, the operation returns a diff against an empty before-state. This is equivalent to treating the file as newly added.</p>"""
    context_lines: NotRequired["capo_codecommit.types.diff_context.DiffContext"]
    """<p>The number of unchanged lines of context to include before and after each block of changes in a hunk. Valid values are 0 through 20. Defaults to <code>3</code>.</p>"""
    ignore_whitespace: NotRequired[
        "capo_codecommit.types.ignore_white_spaces.IgnoreWhiteSpaces"
    ]
    """<p>Specifies whether to ignore whitespace-only changes when computing the diff. When <code>true</code>, the operation treats lines that differ only in whitespace as unchanged. Defaults to <code>false</code>.</p>"""
    max_results: NotRequired["capo_codecommit.types.limit.Limit"]
    """<p>The maximum number of <code>DiffHunk</code> entries to return in a single response page. Defaults to <code>100</code>.</p>"""
    next_token: NotRequired["capo_codecommit.types.next_token.NextToken"]
    """<p>An enumeration token that returns the next batch of results when present in a request.</p>"""

after_blob_id instance-attribute

after_blob_id: ObjectId

The ID of the "after" (destination) blob in the diff. Typically the value of afterBlob.blobId from a Difference object returned by GetDifferences.

before_blob_id instance-attribute

before_blob_id: NotRequired[ObjectId]

The ID of the "before" (source) blob in the diff. Typically the value of beforeBlob.blobId from a Difference object returned by GetDifferences.

If you do not specify a value, the operation returns a diff against an empty before-state. This is equivalent to treating the file as newly added.

context_lines instance-attribute

context_lines: NotRequired[DiffContext]

The number of unchanged lines of context to include before and after each block of changes in a hunk. Valid values are 0 through 20. Defaults to 3.

ignore_whitespace instance-attribute

ignore_whitespace: NotRequired[IgnoreWhiteSpaces]

Specifies whether to ignore whitespace-only changes when computing the diff. When true, the operation treats lines that differ only in whitespace as unchanged. Defaults to false.

max_results instance-attribute

max_results: NotRequired[Limit]

The maximum number of DiffHunk entries to return in a single response page. Defaults to 100.

next_token instance-attribute

next_token: NotRequired[NextToken]

An enumeration token that returns the next batch of results when present in a request.

repository_name instance-attribute

repository_name: RepositoryName

The name of the repository that contains the blobs to compare.