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 the specified list of labels to the given resource (a document or folder)
Synopsis
- data CreateLabels = CreateLabels' {
- authenticationToken :: Maybe (Sensitive Text)
- resourceId :: Text
- labels :: [Text]
- newCreateLabels :: Text -> CreateLabels
- createLabels_authenticationToken :: Lens' CreateLabels (Maybe Text)
- createLabels_resourceId :: Lens' CreateLabels Text
- createLabels_labels :: Lens' CreateLabels [Text]
- data CreateLabelsResponse = CreateLabelsResponse' {
- httpStatus :: Int
- newCreateLabelsResponse :: Int -> CreateLabelsResponse
- createLabelsResponse_httpStatus :: Lens' CreateLabelsResponse Int
Creating a Request
data CreateLabels Source #
See: newCreateLabels
smart constructor.
CreateLabels' | |
|
Instances
Create a value of CreateLabels
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:CreateLabels'
, createLabels_authenticationToken
- Amazon WorkDocs authentication token. Not required when using AWS
administrator credentials to access the API.
$sel:resourceId:CreateLabels'
, createLabels_resourceId
- The ID of the resource.
$sel:labels:CreateLabels'
, createLabels_labels
- List of labels to add to the resource.
Request Lenses
createLabels_authenticationToken :: Lens' CreateLabels (Maybe Text) Source #
Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
createLabels_resourceId :: Lens' CreateLabels Text Source #
The ID of the resource.
createLabels_labels :: Lens' CreateLabels [Text] Source #
List of labels to add to the resource.
Destructuring the Response
data CreateLabelsResponse Source #
See: newCreateLabelsResponse
smart constructor.
CreateLabelsResponse' | |
|
Instances
newCreateLabelsResponse Source #
Create a value of CreateLabelsResponse
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:httpStatus:CreateLabelsResponse'
, createLabelsResponse_httpStatus
- The response's http status code.
Response Lenses
createLabelsResponse_httpStatus :: Lens' CreateLabelsResponse Int Source #
The response's http status code.