| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.WorkDocs.CreateComment
Description
Adds a new comment to the specified document version.
Synopsis
- data CreateComment = CreateComment' {}
- newCreateComment :: Text -> Text -> Text -> CreateComment
- createComment_authenticationToken :: Lens' CreateComment (Maybe Text)
- createComment_notifyCollaborators :: Lens' CreateComment (Maybe Bool)
- createComment_parentId :: Lens' CreateComment (Maybe Text)
- createComment_threadId :: Lens' CreateComment (Maybe Text)
- createComment_visibility :: Lens' CreateComment (Maybe CommentVisibilityType)
- createComment_documentId :: Lens' CreateComment Text
- createComment_versionId :: Lens' CreateComment Text
- createComment_text :: Lens' CreateComment Text
- data CreateCommentResponse = CreateCommentResponse' {
- comment :: Maybe Comment
- httpStatus :: Int
- newCreateCommentResponse :: Int -> CreateCommentResponse
- createCommentResponse_comment :: Lens' CreateCommentResponse (Maybe Comment)
- createCommentResponse_httpStatus :: Lens' CreateCommentResponse Int
Creating a Request
data CreateComment Source #
See: newCreateComment smart constructor.
Constructors
| CreateComment' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> Text | |
| -> CreateComment |
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_documentId :: Lens' CreateComment Text Source #
The ID of the document.
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
| |
Instances
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
createCommentResponse_comment :: Lens' CreateCommentResponse (Maybe Comment) Source #
The comment that has been created.
createCommentResponse_httpStatus :: Lens' CreateCommentResponse Int Source #
The response's http status code.