amazonka-codecommit-1.5.0: Amazon CodeCommit SDK.

Copyright(c) 2013-2017 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.

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 # 
Data GetDifferences Source # 

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 # 
Show GetDifferences Source # 
Generic GetDifferences Source # 

Associated Types

type Rep GetDifferences :: * -> * #

Hashable GetDifferences Source # 
ToJSON GetDifferences Source # 
NFData GetDifferences Source # 

Methods

rnf :: GetDifferences -> () #

AWSRequest GetDifferences Source # 
ToQuery GetDifferences Source # 
ToPath GetDifferences Source # 
ToHeaders GetDifferences Source # 
type Rep GetDifferences Source # 
type Rep GetDifferences = D1 (MetaData "GetDifferences" "Network.AWS.CodeCommit.GetDifferences" "amazonka-codecommit-1.5.0-KpuBz1wlDu33SLAQFXGcI6" False) (C1 (MetaCons "GetDifferences'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_gdAfterPath") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_gdNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_gdBeforeCommitSpecifier") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_gdBeforePath") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_gdMaxResults") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Int)))) ((:*:) (S1 (MetaSel (Just Symbol "_gdRepositoryName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_gdAfterCommitSpecifier") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))))
type Rs GetDifferences Source # 

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 # 
Data GetDifferencesResponse Source # 

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 # 
Show GetDifferencesResponse Source # 
Generic GetDifferencesResponse Source # 
NFData GetDifferencesResponse Source # 

Methods

rnf :: GetDifferencesResponse -> () #

type Rep GetDifferencesResponse Source # 
type Rep GetDifferencesResponse = D1 (MetaData "GetDifferencesResponse" "Network.AWS.CodeCommit.GetDifferences" "amazonka-codecommit-1.5.0-KpuBz1wlDu33SLAQFXGcI6" False) (C1 (MetaCons "GetDifferencesResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_gdrsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_gdrsDifferences") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Difference]))) (S1 (MetaSel (Just Symbol "_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.