amazonka-codecommit-1.6.1: Amazon CodeCommit SDK.

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.CodeCommit.GetDifferences

Contents

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

getDifferences Source #

Creates a value of GetDifferences with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • gdAfterPath - 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 will be shown for all paths.
  • gdNextToken - An enumeration token that when provided in a request, returns the next batch of the results.
  • gdBeforeCommitSpecifier - 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 prior to the afterCommitSpecifier value will be shown. If you do not use beforeCommitSpecifier in your request, consider limiting the results with maxResults .
  • gdBeforePath - 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 will be shown for all paths.
  • gdMaxResults - A non-negative integer used to limit the number of returned results.
  • gdRepositoryName - The name of the repository where you want to get differences.
  • gdAfterCommitSpecifier - The branch, tag, HEAD, or other fully qualified reference used to identify a commit.

data GetDifferences Source #

See: getDifferences smart constructor.

Instances
Eq GetDifferences Source # 
Instance details

Defined in Network.AWS.CodeCommit.GetDifferences

Data GetDifferences Source # 
Instance details

Defined in Network.AWS.CodeCommit.GetDifferences

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> GetDifferences -> c GetDifferences #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c GetDifferences #

toConstr :: GetDifferences -> Constr #

dataTypeOf :: GetDifferences -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c GetDifferences) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c GetDifferences) #

gmapT :: (forall b. Data b => b -> b) -> GetDifferences -> GetDifferences #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> GetDifferences -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> GetDifferences -> r #

gmapQ :: (forall d. Data d => d -> u) -> GetDifferences -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> GetDifferences -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> GetDifferences -> m GetDifferences #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> GetDifferences -> m GetDifferences #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> GetDifferences -> m GetDifferences #

Read GetDifferences Source # 
Instance details

Defined in Network.AWS.CodeCommit.GetDifferences

Show GetDifferences Source # 
Instance details

Defined in Network.AWS.CodeCommit.GetDifferences

Generic GetDifferences Source # 
Instance details

Defined in Network.AWS.CodeCommit.GetDifferences

Associated Types

type Rep GetDifferences :: Type -> Type #

Hashable GetDifferences Source # 
Instance details

Defined in Network.AWS.CodeCommit.GetDifferences

ToJSON GetDifferences Source # 
Instance details

Defined in Network.AWS.CodeCommit.GetDifferences

AWSPager GetDifferences Source # 
Instance details

Defined in Network.AWS.CodeCommit.GetDifferences

AWSRequest GetDifferences Source # 
Instance details

Defined in Network.AWS.CodeCommit.GetDifferences

Associated Types

type Rs GetDifferences :: Type #

ToHeaders GetDifferences Source # 
Instance details

Defined in Network.AWS.CodeCommit.GetDifferences

ToPath GetDifferences Source # 
Instance details

Defined in Network.AWS.CodeCommit.GetDifferences

ToQuery GetDifferences Source # 
Instance details

Defined in Network.AWS.CodeCommit.GetDifferences

NFData GetDifferences Source # 
Instance details

Defined in Network.AWS.CodeCommit.GetDifferences

Methods

rnf :: GetDifferences -> () #

type Rep GetDifferences Source # 
Instance details

Defined in Network.AWS.CodeCommit.GetDifferences

type Rep GetDifferences = D1 (MetaData "GetDifferences" "Network.AWS.CodeCommit.GetDifferences" "amazonka-codecommit-1.6.1-5oFbBVW9gHvCvarYcjcXps" False) (C1 (MetaCons "GetDifferences'" PrefixI True) ((S1 (MetaSel (Just "_gdAfterPath") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_gdNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_gdBeforeCommitSpecifier") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_gdBeforePath") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_gdMaxResults") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Int))) :*: (S1 (MetaSel (Just "_gdRepositoryName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_gdAfterCommitSpecifier") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs GetDifferences Source # 
Instance details

Defined in Network.AWS.CodeCommit.GetDifferences

Request Lenses

gdAfterPath :: 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 will be shown for all paths.

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

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

gdBeforeCommitSpecifier :: 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 prior to the afterCommitSpecifier value will be shown. If you do not use beforeCommitSpecifier in your request, consider limiting the results with maxResults .

gdBeforePath :: 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 will be shown for all paths.

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

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

gdRepositoryName :: Lens' GetDifferences Text Source #

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

gdAfterCommitSpecifier :: Lens' GetDifferences Text Source #

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

Destructuring the Response

getDifferencesResponse Source #

Creates a value of GetDifferencesResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • gdrsNextToken - An enumeration token that can be used in a request to return the next batch of the results.
  • gdrsDifferences - A differences data type object that contains information about the differences, including whether the difference is added, modified, or deleted (A, D, M).
  • gdrsResponseStatus - -- | The response status code.

data GetDifferencesResponse Source #

See: getDifferencesResponse smart constructor.

Instances
Eq GetDifferencesResponse Source # 
Instance details

Defined in Network.AWS.CodeCommit.GetDifferences

Data GetDifferencesResponse Source # 
Instance details

Defined in Network.AWS.CodeCommit.GetDifferences

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> GetDifferencesResponse -> c GetDifferencesResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c GetDifferencesResponse #

toConstr :: GetDifferencesResponse -> Constr #

dataTypeOf :: GetDifferencesResponse -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c GetDifferencesResponse) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c GetDifferencesResponse) #

gmapT :: (forall b. Data b => b -> b) -> GetDifferencesResponse -> GetDifferencesResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> GetDifferencesResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> GetDifferencesResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> GetDifferencesResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> GetDifferencesResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> GetDifferencesResponse -> m GetDifferencesResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> GetDifferencesResponse -> m GetDifferencesResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> GetDifferencesResponse -> m GetDifferencesResponse #

Read GetDifferencesResponse Source # 
Instance details

Defined in Network.AWS.CodeCommit.GetDifferences

Show GetDifferencesResponse Source # 
Instance details

Defined in Network.AWS.CodeCommit.GetDifferences

Generic GetDifferencesResponse Source # 
Instance details

Defined in Network.AWS.CodeCommit.GetDifferences

Associated Types

type Rep GetDifferencesResponse :: Type -> Type #

NFData GetDifferencesResponse Source # 
Instance details

Defined in Network.AWS.CodeCommit.GetDifferences

Methods

rnf :: GetDifferencesResponse -> () #

type Rep GetDifferencesResponse Source # 
Instance details

Defined in Network.AWS.CodeCommit.GetDifferences

type Rep GetDifferencesResponse = D1 (MetaData "GetDifferencesResponse" "Network.AWS.CodeCommit.GetDifferences" "amazonka-codecommit-1.6.1-5oFbBVW9gHvCvarYcjcXps" False) (C1 (MetaCons "GetDifferencesResponse'" PrefixI True) (S1 (MetaSel (Just "_gdrsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_gdrsDifferences") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Difference])) :*: S1 (MetaSel (Just "_gdrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses

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

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

gdrsDifferences :: Lens' GetDifferencesResponse [Difference] Source #

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

gdrsResponseStatus :: Lens' GetDifferencesResponse Int Source #

  • - | The response status code.