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.UpdateComment

Contents

Description

Replaces the contents of a comment.

Synopsis

Creating a Request

updateComment Source #

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

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

  • ucCommentId - The system-generated ID of the comment you want to update. To get this ID, use GetCommentsForComparedCommit or GetCommentsForPullRequest .
  • ucContent - The updated content with which you want to replace the existing content of the comment.

data UpdateComment Source #

See: updateComment smart constructor.

Instances
Eq UpdateComment Source # 
Instance details

Defined in Network.AWS.CodeCommit.UpdateComment

Data UpdateComment Source # 
Instance details

Defined in Network.AWS.CodeCommit.UpdateComment

Methods

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

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

toConstr :: UpdateComment -> Constr #

dataTypeOf :: UpdateComment -> DataType #

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

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

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

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

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

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

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

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

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

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

Read UpdateComment Source # 
Instance details

Defined in Network.AWS.CodeCommit.UpdateComment

Show UpdateComment Source # 
Instance details

Defined in Network.AWS.CodeCommit.UpdateComment

Generic UpdateComment Source # 
Instance details

Defined in Network.AWS.CodeCommit.UpdateComment

Associated Types

type Rep UpdateComment :: Type -> Type #

Hashable UpdateComment Source # 
Instance details

Defined in Network.AWS.CodeCommit.UpdateComment

ToJSON UpdateComment Source # 
Instance details

Defined in Network.AWS.CodeCommit.UpdateComment

AWSRequest UpdateComment Source # 
Instance details

Defined in Network.AWS.CodeCommit.UpdateComment

Associated Types

type Rs UpdateComment :: Type #

ToHeaders UpdateComment Source # 
Instance details

Defined in Network.AWS.CodeCommit.UpdateComment

ToPath UpdateComment Source # 
Instance details

Defined in Network.AWS.CodeCommit.UpdateComment

ToQuery UpdateComment Source # 
Instance details

Defined in Network.AWS.CodeCommit.UpdateComment

NFData UpdateComment Source # 
Instance details

Defined in Network.AWS.CodeCommit.UpdateComment

Methods

rnf :: UpdateComment -> () #

type Rep UpdateComment Source # 
Instance details

Defined in Network.AWS.CodeCommit.UpdateComment

type Rep UpdateComment = D1 (MetaData "UpdateComment" "Network.AWS.CodeCommit.UpdateComment" "amazonka-codecommit-1.6.1-5oFbBVW9gHvCvarYcjcXps" False) (C1 (MetaCons "UpdateComment'" PrefixI True) (S1 (MetaSel (Just "_ucCommentId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_ucContent") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))
type Rs UpdateComment Source # 
Instance details

Defined in Network.AWS.CodeCommit.UpdateComment

Request Lenses

ucCommentId :: Lens' UpdateComment Text Source #

The system-generated ID of the comment you want to update. To get this ID, use GetCommentsForComparedCommit or GetCommentsForPullRequest .

ucContent :: Lens' UpdateComment Text Source #

The updated content with which you want to replace the existing content of the comment.

Destructuring the Response

updateCommentResponse Source #

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

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

data UpdateCommentResponse Source #

See: updateCommentResponse smart constructor.

Instances
Eq UpdateCommentResponse Source # 
Instance details

Defined in Network.AWS.CodeCommit.UpdateComment

Data UpdateCommentResponse Source # 
Instance details

Defined in Network.AWS.CodeCommit.UpdateComment

Methods

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

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

toConstr :: UpdateCommentResponse -> Constr #

dataTypeOf :: UpdateCommentResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read UpdateCommentResponse Source # 
Instance details

Defined in Network.AWS.CodeCommit.UpdateComment

Show UpdateCommentResponse Source # 
Instance details

Defined in Network.AWS.CodeCommit.UpdateComment

Generic UpdateCommentResponse Source # 
Instance details

Defined in Network.AWS.CodeCommit.UpdateComment

Associated Types

type Rep UpdateCommentResponse :: Type -> Type #

NFData UpdateCommentResponse Source # 
Instance details

Defined in Network.AWS.CodeCommit.UpdateComment

Methods

rnf :: UpdateCommentResponse -> () #

type Rep UpdateCommentResponse Source # 
Instance details

Defined in Network.AWS.CodeCommit.UpdateComment

type Rep UpdateCommentResponse = D1 (MetaData "UpdateCommentResponse" "Network.AWS.CodeCommit.UpdateComment" "amazonka-codecommit-1.6.1-5oFbBVW9gHvCvarYcjcXps" False) (C1 (MetaCons "UpdateCommentResponse'" PrefixI True) (S1 (MetaSel (Just "_ucrsComment") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Comment)) :*: S1 (MetaSel (Just "_ucrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))

Response Lenses

ucrsComment :: Lens' UpdateCommentResponse (Maybe Comment) Source #

Information about the updated comment.

ucrsResponseStatus :: Lens' UpdateCommentResponse Int Source #

  • - | The response status code.