| 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.DeleteLabels
Description
Deletes the specified list of labels from a resource.
Synopsis
- data DeleteLabels = DeleteLabels' {}
- newDeleteLabels :: Text -> DeleteLabels
- deleteLabels_authenticationToken :: Lens' DeleteLabels (Maybe Text)
- deleteLabels_deleteAll :: Lens' DeleteLabels (Maybe Bool)
- deleteLabels_labels :: Lens' DeleteLabels (Maybe [Text])
- deleteLabels_resourceId :: Lens' DeleteLabels Text
- data DeleteLabelsResponse = DeleteLabelsResponse' {
- httpStatus :: Int
- newDeleteLabelsResponse :: Int -> DeleteLabelsResponse
- deleteLabelsResponse_httpStatus :: Lens' DeleteLabelsResponse Int
Creating a Request
data DeleteLabels Source #
See: newDeleteLabels smart constructor.
Constructors
| DeleteLabels' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> DeleteLabels |
Create a value of DeleteLabels 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:DeleteLabels', deleteLabels_authenticationToken - Amazon WorkDocs authentication token. Not required when using AWS
administrator credentials to access the API.
$sel:deleteAll:DeleteLabels', deleteLabels_deleteAll - Flag to request removal of all labels from the specified resource.
DeleteLabels, deleteLabels_labels - List of labels to delete from the resource.
$sel:resourceId:DeleteLabels', deleteLabels_resourceId - The ID of the resource.
Request Lenses
deleteLabels_authenticationToken :: Lens' DeleteLabels (Maybe Text) Source #
Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
deleteLabels_deleteAll :: Lens' DeleteLabels (Maybe Bool) Source #
Flag to request removal of all labels from the specified resource.
deleteLabels_labels :: Lens' DeleteLabels (Maybe [Text]) Source #
List of labels to delete from the resource.
deleteLabels_resourceId :: Lens' DeleteLabels Text Source #
The ID of the resource.
Destructuring the Response
data DeleteLabelsResponse Source #
See: newDeleteLabelsResponse smart constructor.
Constructors
| DeleteLabelsResponse' | |
Fields
| |
Instances
newDeleteLabelsResponse Source #
Arguments
| :: Int | |
| -> DeleteLabelsResponse |
Create a value of DeleteLabelsResponse 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:DeleteLabelsResponse', deleteLabelsResponse_httpStatus - The response's http status code.
Response Lenses
deleteLabelsResponse_httpStatus :: Lens' DeleteLabelsResponse Int Source #
The response's http status code.