amazonka-workdocs-2.0: Amazon WorkDocs SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

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
ToJSON CreateComment Source # 
Instance details

Defined in Amazonka.WorkDocs.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

AWSRequest CreateComment Source # 
Instance details

Defined in Amazonka.WorkDocs.CreateComment

Associated Types

type AWSResponse CreateComment #

Generic CreateComment Source # 
Instance details

Defined in Amazonka.WorkDocs.CreateComment

Associated Types

type Rep CreateComment :: Type -> Type #

Show CreateComment Source # 
Instance details

Defined in Amazonka.WorkDocs.CreateComment

NFData CreateComment Source # 
Instance details

Defined in Amazonka.WorkDocs.CreateComment

Methods

rnf :: CreateComment -> () #

Eq CreateComment Source # 
Instance details

Defined in Amazonka.WorkDocs.CreateComment

Hashable CreateComment Source # 
Instance details

Defined in Amazonka.WorkDocs.CreateComment

type AWSResponse CreateComment Source # 
Instance details

Defined in Amazonka.WorkDocs.CreateComment

type Rep 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:authenticationToken:CreateComment', createComment_authenticationToken - Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.

$sel:notifyCollaborators:CreateComment', createComment_notifyCollaborators - Set this parameter to TRUE to send an email out to the document collaborators after the comment is created.

CreateComment, createComment_parentId - The ID of the parent comment.

CreateComment, createComment_threadId - The ID of the root comment in the thread.

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:documentId:CreateComment', createComment_documentId - The ID of the document.

CreateComment, createComment_versionId - The ID of the document version.

CreateComment, createComment_text - The text of the comment.

Request Lenses

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

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

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_parentId :: Lens' CreateComment (Maybe Text) Source #

The ID of the parent comment.

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

The ID of the root comment in the thread.

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_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