| 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.NetworkManager.DeleteAttachment
Description
Deletes an attachment. Supports all attachment types.
Synopsis
- data DeleteAttachment = DeleteAttachment' {
- attachmentId :: Text
- newDeleteAttachment :: Text -> DeleteAttachment
- deleteAttachment_attachmentId :: Lens' DeleteAttachment Text
- data DeleteAttachmentResponse = DeleteAttachmentResponse' {}
- newDeleteAttachmentResponse :: Int -> DeleteAttachmentResponse
- deleteAttachmentResponse_attachment :: Lens' DeleteAttachmentResponse (Maybe Attachment)
- deleteAttachmentResponse_httpStatus :: Lens' DeleteAttachmentResponse Int
Creating a Request
data DeleteAttachment Source #
See: newDeleteAttachment smart constructor.
Constructors
| DeleteAttachment' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> DeleteAttachment |
Create a value of DeleteAttachment 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:
DeleteAttachment, deleteAttachment_attachmentId - The ID of the attachment to delete.
Request Lenses
deleteAttachment_attachmentId :: Lens' DeleteAttachment Text Source #
The ID of the attachment to delete.
Destructuring the Response
data DeleteAttachmentResponse Source #
See: newDeleteAttachmentResponse smart constructor.
Constructors
| DeleteAttachmentResponse' | |
Fields
| |
Instances
newDeleteAttachmentResponse Source #
Create a value of DeleteAttachmentResponse 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:
DeleteAttachmentResponse, deleteAttachmentResponse_attachment - Information about the deleted attachment.
$sel:httpStatus:DeleteAttachmentResponse', deleteAttachmentResponse_httpStatus - The response's http status code.
Response Lenses
deleteAttachmentResponse_attachment :: Lens' DeleteAttachmentResponse (Maybe Attachment) Source #
Information about the deleted attachment.
deleteAttachmentResponse_httpStatus :: Lens' DeleteAttachmentResponse Int Source #
The response's http status code.