Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Adds a new comment to the specified document version.
Synopsis
- data CreateComment = CreateComment' {}
- newCreateComment :: Text -> Text -> Text -> CreateComment
- createComment_notifyCollaborators :: Lens' CreateComment (Maybe Bool)
- createComment_authenticationToken :: Lens' CreateComment (Maybe Text)
- createComment_visibility :: Lens' CreateComment (Maybe CommentVisibilityType)
- createComment_threadId :: Lens' CreateComment (Maybe Text)
- createComment_parentId :: Lens' CreateComment (Maybe Text)
- 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.
CreateComment' | |
|
Instances
:: 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: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_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.
CreateCommentResponse' | |
|
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.