You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::CodeCommit::Types::Location

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing Location as input to an Aws::Client method, you can use a vanilla Hash:

{
  file_path: "Path",
  file_position: 1,
  relative_file_version: "BEFORE", # accepts BEFORE, AFTER
}

Returns information about the location of a change or comment in the comparison between two commits or a pull request.

Returned by:

Instance Attribute Summary collapse

Instance Attribute Details

#file_pathString

The name of the file being compared, including its extension and subdirectory, if any.

Returns:

  • (String)

    The name of the file being compared, including its extension and subdirectory, if any.

#file_positionInteger

The position of a change in a compared file, in line number format.

Returns:

  • (Integer)

    The position of a change in a compared file, in line number format.

#relative_file_versionString

In a comparison of commits or a pull request, whether the change is in the before or after of that comparison.

Possible values:

  • BEFORE
  • AFTER

Returns:

  • (String)

    In a comparison of commits or a pull request, whether the change is in the before or after of that comparison.