| 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.CreateLabels
Description
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.
Constructors
| CreateLabels' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> CreateLabels |
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.
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.
Constructors
| CreateLabelsResponse' | |
Fields
| |
Instances
newCreateLabelsResponse Source #
Arguments
| :: Int | |
| -> CreateLabelsResponse |
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.