amazonka-codecommit-2.0: Amazon CodeCommit SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.CodeCommit.GetDifferences

Description

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.

This operation returns paginated results.

Synopsis

Creating a Request

data GetDifferences Source #

See: newGetDifferences smart constructor.

Constructors

GetDifferences' 

Fields

  • maxResults :: Maybe Int

    A non-zero, non-negative integer used to limit the number of returned results.

  • nextToken :: Maybe Text

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

  • afterPath :: Maybe Text

    The file path in which to check differences. Limits the results to this path. Can also be used to specify the changed name of a directory or folder, if it has changed. If not specified, differences are shown for all paths.

  • beforeCommitSpecifier :: Maybe Text

    The branch, tag, HEAD, or other fully qualified reference used to identify a commit (for example, the full commit ID). Optional. If not specified, all changes before the afterCommitSpecifier value are shown. If you do not use beforeCommitSpecifier in your request, consider limiting the results with maxResults.

  • beforePath :: Maybe Text

    The file path in which to check for differences. Limits the results to this path. Can also be used to specify the previous name of a directory or folder. If beforePath and afterPath are not specified, differences are shown for all paths.

  • repositoryName :: Text

    The name of the repository where you want to get differences.

  • afterCommitSpecifier :: Text

    The branch, tag, HEAD, or other fully qualified reference used to identify a commit.

Instances

Instances details
ToJSON GetDifferences Source # 
Instance details

Defined in Amazonka.CodeCommit.GetDifferences

ToHeaders GetDifferences Source # 
Instance details

Defined in Amazonka.CodeCommit.GetDifferences

ToPath GetDifferences Source # 
Instance details

Defined in Amazonka.CodeCommit.GetDifferences

ToQuery GetDifferences Source # 
Instance details

Defined in Amazonka.CodeCommit.GetDifferences

AWSPager GetDifferences Source # 
Instance details

Defined in Amazonka.CodeCommit.GetDifferences

AWSRequest GetDifferences Source # 
Instance details

Defined in Amazonka.CodeCommit.GetDifferences

Associated Types

type AWSResponse GetDifferences #

Generic GetDifferences Source # 
Instance details

Defined in Amazonka.CodeCommit.GetDifferences

Associated Types

type Rep GetDifferences :: Type -> Type #

Read GetDifferences Source # 
Instance details

Defined in Amazonka.CodeCommit.GetDifferences

Show GetDifferences Source # 
Instance details

Defined in Amazonka.CodeCommit.GetDifferences

NFData GetDifferences Source # 
Instance details

Defined in Amazonka.CodeCommit.GetDifferences

Methods

rnf :: GetDifferences -> () #

Eq GetDifferences Source # 
Instance details

Defined in Amazonka.CodeCommit.GetDifferences

Hashable GetDifferences Source # 
Instance details

Defined in Amazonka.CodeCommit.GetDifferences

type AWSResponse GetDifferences Source # 
Instance details

Defined in Amazonka.CodeCommit.GetDifferences

type Rep GetDifferences Source # 
Instance details

Defined in Amazonka.CodeCommit.GetDifferences

type Rep GetDifferences = D1 ('MetaData "GetDifferences" "Amazonka.CodeCommit.GetDifferences" "amazonka-codecommit-2.0-974g5LOhuTPG9HgUSx02zG" 'False) (C1 ('MetaCons "GetDifferences'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "afterPath") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "beforeCommitSpecifier") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "beforePath") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "repositoryName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "afterCommitSpecifier") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))

newGetDifferences Source #

Create a value of GetDifferences with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:maxResults:GetDifferences', getDifferences_maxResults - A non-zero, non-negative integer used to limit the number of returned results.

GetDifferences, getDifferences_nextToken - An enumeration token that, when provided in a request, returns the next batch of the results.

$sel:afterPath:GetDifferences', getDifferences_afterPath - The file path in which to check differences. Limits the results to this path. Can also be used to specify the changed name of a directory or folder, if it has changed. If not specified, differences are shown for all paths.

$sel:beforeCommitSpecifier:GetDifferences', getDifferences_beforeCommitSpecifier - The branch, tag, HEAD, or other fully qualified reference used to identify a commit (for example, the full commit ID). Optional. If not specified, all changes before the afterCommitSpecifier value are shown. If you do not use beforeCommitSpecifier in your request, consider limiting the results with maxResults.

$sel:beforePath:GetDifferences', getDifferences_beforePath - The file path in which to check for differences. Limits the results to this path. Can also be used to specify the previous name of a directory or folder. If beforePath and afterPath are not specified, differences are shown for all paths.

GetDifferences, getDifferences_repositoryName - The name of the repository where you want to get differences.

$sel:afterCommitSpecifier:GetDifferences', getDifferences_afterCommitSpecifier - The branch, tag, HEAD, or other fully qualified reference used to identify a commit.

Request Lenses

getDifferences_maxResults :: Lens' GetDifferences (Maybe Int) Source #

A non-zero, non-negative integer used to limit the number of returned results.

getDifferences_nextToken :: Lens' GetDifferences (Maybe Text) Source #

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

getDifferences_afterPath :: Lens' GetDifferences (Maybe Text) Source #

The file path in which to check differences. Limits the results to this path. Can also be used to specify the changed name of a directory or folder, if it has changed. If not specified, differences are shown for all paths.

getDifferences_beforeCommitSpecifier :: Lens' GetDifferences (Maybe Text) Source #

The branch, tag, HEAD, or other fully qualified reference used to identify a commit (for example, the full commit ID). Optional. If not specified, all changes before the afterCommitSpecifier value are shown. If you do not use beforeCommitSpecifier in your request, consider limiting the results with maxResults.

getDifferences_beforePath :: Lens' GetDifferences (Maybe Text) Source #

The file path in which to check for differences. Limits the results to this path. Can also be used to specify the previous name of a directory or folder. If beforePath and afterPath are not specified, differences are shown for all paths.

getDifferences_repositoryName :: Lens' GetDifferences Text Source #

The name of the repository where you want to get differences.

getDifferences_afterCommitSpecifier :: Lens' GetDifferences Text Source #

The branch, tag, HEAD, or other fully qualified reference used to identify a commit.

Destructuring the Response

data GetDifferencesResponse Source #

See: newGetDifferencesResponse smart constructor.

Constructors

GetDifferencesResponse' 

Fields

  • nextToken :: Maybe Text

    An enumeration token that can be used in a request to return the next batch of the results.

  • differences :: Maybe [Difference]

    A data type object that contains information about the differences, including whether the difference is added, modified, or deleted (A, D, M).

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic GetDifferencesResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.GetDifferences

Associated Types

type Rep GetDifferencesResponse :: Type -> Type #

Read GetDifferencesResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.GetDifferences

Show GetDifferencesResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.GetDifferences

NFData GetDifferencesResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.GetDifferences

Methods

rnf :: GetDifferencesResponse -> () #

Eq GetDifferencesResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.GetDifferences

type Rep GetDifferencesResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.GetDifferences

type Rep GetDifferencesResponse = D1 ('MetaData "GetDifferencesResponse" "Amazonka.CodeCommit.GetDifferences" "amazonka-codecommit-2.0-974g5LOhuTPG9HgUSx02zG" 'False) (C1 ('MetaCons "GetDifferencesResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "differences") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Difference])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newGetDifferencesResponse Source #

Create a value of GetDifferencesResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

GetDifferences, getDifferencesResponse_nextToken - An enumeration token that can be used in a request to return the next batch of the results.

$sel:differences:GetDifferencesResponse', getDifferencesResponse_differences - A data type object that contains information about the differences, including whether the difference is added, modified, or deleted (A, D, M).

$sel:httpStatus:GetDifferencesResponse', getDifferencesResponse_httpStatus - The response's http status code.

Response Lenses

getDifferencesResponse_nextToken :: Lens' GetDifferencesResponse (Maybe Text) Source #

An enumeration token that can be used in a request to return the next batch of the results.

getDifferencesResponse_differences :: Lens' GetDifferencesResponse (Maybe [Difference]) Source #

A data type object that contains information about the differences, including whether the difference is added, modified, or deleted (A, D, M).