amazonka-workdocs-1.6.1: Amazon WorkDocs 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.WorkDocs.CreateComment

Contents

Description

Adds a new comment to the specified document version.

Synopsis

Creating a Request

createComment Source #

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

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

  • ccNotifyCollaborators - Set this parameter to TRUE to send an email out to the document collaborators after the comment is created.
  • ccAuthenticationToken - Amazon WorkDocs authentication token. Do not set this field when using administrative API actions, as in accessing the API using AWS credentials.
  • ccVisibility - The visibility of the comment. Options are either PRIVATE, where the comment is visible only to the comment author and document owner and co-owners, or PUBLIC, where the comment is visible to document owners, co-owners, and contributors.
  • ccThreadId - The ID of the root comment in the thread.
  • ccParentId - The ID of the parent comment.
  • ccDocumentId - The ID of the document.
  • ccVersionId - The ID of the document version.
  • ccText - The text of the comment.

data CreateComment Source #

See: createComment smart constructor.

Instances
Eq CreateComment Source # 
Instance details

Defined in Network.AWS.WorkDocs.CreateComment

Data CreateComment Source # 
Instance details

Defined in Network.AWS.WorkDocs.CreateComment

Methods

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

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

toConstr :: CreateComment -> Constr #

dataTypeOf :: CreateComment -> DataType #

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

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

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

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

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

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

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

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

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

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

Show CreateComment Source # 
Instance details

Defined in Network.AWS.WorkDocs.CreateComment

Generic CreateComment Source # 
Instance details

Defined in Network.AWS.WorkDocs.CreateComment

Associated Types

type Rep CreateComment :: Type -> Type #

Hashable CreateComment Source # 
Instance details

Defined in Network.AWS.WorkDocs.CreateComment

ToJSON CreateComment Source # 
Instance details

Defined in Network.AWS.WorkDocs.CreateComment

AWSRequest CreateComment Source # 
Instance details

Defined in Network.AWS.WorkDocs.CreateComment

Associated Types

type Rs CreateComment :: Type #

ToHeaders CreateComment Source # 
Instance details

Defined in Network.AWS.WorkDocs.CreateComment

ToPath CreateComment Source # 
Instance details

Defined in Network.AWS.WorkDocs.CreateComment

ToQuery CreateComment Source # 
Instance details

Defined in Network.AWS.WorkDocs.CreateComment

NFData CreateComment Source # 
Instance details

Defined in Network.AWS.WorkDocs.CreateComment

Methods

rnf :: CreateComment -> () #

type Rep CreateComment Source # 
Instance details

Defined in Network.AWS.WorkDocs.CreateComment

type Rs CreateComment Source # 
Instance details

Defined in Network.AWS.WorkDocs.CreateComment

Request Lenses

ccNotifyCollaborators :: Lens' CreateComment (Maybe Bool) Source #

Set this parameter to TRUE to send an email out to the document collaborators after the comment is created.

ccAuthenticationToken :: Lens' CreateComment (Maybe Text) Source #

Amazon WorkDocs authentication token. Do not set this field when using administrative API actions, as in accessing the API using AWS credentials.

ccVisibility :: Lens' CreateComment (Maybe CommentVisibilityType) Source #

The visibility of the comment. Options are either PRIVATE, where the comment is visible only to the comment author and document owner and co-owners, or PUBLIC, where the comment is visible to document owners, co-owners, and contributors.

ccThreadId :: Lens' CreateComment (Maybe Text) Source #

The ID of the root comment in the thread.

ccParentId :: Lens' CreateComment (Maybe Text) Source #

The ID of the parent comment.

ccDocumentId :: Lens' CreateComment Text Source #

The ID of the document.

ccVersionId :: Lens' CreateComment Text Source #

The ID of the document version.

ccText :: Lens' CreateComment Text Source #

The text of the comment.

Destructuring the Response

createCommentResponse Source #

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

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

data CreateCommentResponse Source #

See: createCommentResponse smart constructor.

Instances
Eq CreateCommentResponse Source # 
Instance details

Defined in Network.AWS.WorkDocs.CreateComment

Data CreateCommentResponse Source # 
Instance details

Defined in Network.AWS.WorkDocs.CreateComment

Methods

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

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

toConstr :: CreateCommentResponse -> Constr #

dataTypeOf :: CreateCommentResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Show CreateCommentResponse Source # 
Instance details

Defined in Network.AWS.WorkDocs.CreateComment

Generic CreateCommentResponse Source # 
Instance details

Defined in Network.AWS.WorkDocs.CreateComment

Associated Types

type Rep CreateCommentResponse :: Type -> Type #

NFData CreateCommentResponse Source # 
Instance details

Defined in Network.AWS.WorkDocs.CreateComment

Methods

rnf :: CreateCommentResponse -> () #

type Rep CreateCommentResponse Source # 
Instance details

Defined in Network.AWS.WorkDocs.CreateComment

type Rep CreateCommentResponse = D1 (MetaData "CreateCommentResponse" "Network.AWS.WorkDocs.CreateComment" "amazonka-workdocs-1.6.1-7lORy3cdAvvAKwhZON5nxY" False) (C1 (MetaCons "CreateCommentResponse'" PrefixI True) (S1 (MetaSel (Just "_ccrsComment") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Comment)) :*: S1 (MetaSel (Just "_ccrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))

Response Lenses

ccrsComment :: Lens' CreateCommentResponse (Maybe Comment) Source #

The comment that has been created.

ccrsResponseStatus :: Lens' CreateCommentResponse Int Source #

  • - | The response status code.