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

Amazonka.WorkDocs.CreateComment

Description

Adds a new comment to the specified document version.

Synopsis

Creating a Request

data CreateComment Source #

See: newCreateComment smart constructor.

Constructors

CreateComment' 

Fields

Instances

Instances details
Eq CreateComment Source # 
Instance details

Defined in Amazonka.WorkDocs.CreateComment

Show CreateComment Source # 
Instance details

Defined in Amazonka.WorkDocs.CreateComment

Generic CreateComment Source # 
Instance details

Defined in Amazonka.WorkDocs.CreateComment

Associated Types

type Rep CreateComment :: Type -> Type #

NFData CreateComment Source # 
Instance details

Defined in Amazonka.WorkDocs.CreateComment

Methods

rnf :: CreateComment -> () #

Hashable CreateComment Source # 
Instance details

Defined in Amazonka.WorkDocs.CreateComment

ToJSON CreateComment Source # 
Instance details

Defined in Amazonka.WorkDocs.CreateComment

AWSRequest CreateComment Source # 
Instance details

Defined in Amazonka.WorkDocs.CreateComment

Associated Types

type AWSResponse CreateComment #

ToHeaders CreateComment Source # 
Instance details

Defined in Amazonka.WorkDocs.CreateComment

ToPath CreateComment Source # 
Instance details

Defined in Amazonka.WorkDocs.CreateComment

ToQuery CreateComment Source # 
Instance details

Defined in Amazonka.WorkDocs.CreateComment

type Rep CreateComment Source # 
Instance details

Defined in Amazonka.WorkDocs.CreateComment

type AWSResponse CreateComment Source # 
Instance details

Defined in Amazonka.WorkDocs.CreateComment

newCreateComment Source #

Create a value of CreateComment 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:notifyCollaborators:CreateComment', createComment_notifyCollaborators - Set this parameter to TRUE to send an email out to the document collaborators after the comment is created.

$sel:authenticationToken:CreateComment', createComment_authenticationToken - Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.

$sel:visibility:CreateComment', createComment_visibility - 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.

$sel:threadId:CreateComment', createComment_threadId - The ID of the root comment in the thread.

$sel:parentId:CreateComment', createComment_parentId - The ID of the parent comment.

$sel:documentId:CreateComment', createComment_documentId - The ID of the document.

$sel:versionId:CreateComment', createComment_versionId - The ID of the document version.

$sel:text:CreateComment', createComment_text - The text of the comment.

Request Lenses

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

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

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

Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.

createComment_visibility :: 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.

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

The ID of the root comment in the thread.

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

The ID of the parent comment.

createComment_versionId :: Lens' CreateComment Text Source #

The ID of the document version.

createComment_text :: Lens' CreateComment Text Source #

The text of the comment.

Destructuring the Response

data CreateCommentResponse Source #

See: newCreateCommentResponse smart constructor.

Constructors

CreateCommentResponse' 

Fields

newCreateCommentResponse Source #

Create a value of CreateCommentResponse 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:comment:CreateCommentResponse', createCommentResponse_comment - The comment that has been created.

$sel:httpStatus:CreateCommentResponse', createCommentResponse_httpStatus - The response's http status code.

Response Lenses