| Copyright | (c) 2013-2015 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.AWS.Support.DescribeAttachment
Description
Returns the attachment that has the specified ID. Attachment IDs are generated by the case management system when you add an attachment to a case or case communication. Attachment IDs are returned in the AttachmentDetails objects that are returned by the DescribeCommunications operation.
See: AWS API Reference for DescribeAttachment.
- describeAttachment :: Text -> DescribeAttachment
- data DescribeAttachment
- daAttachmentId :: Lens' DescribeAttachment Text
- describeAttachmentResponse :: Int -> DescribeAttachmentResponse
- data DescribeAttachmentResponse
- darsAttachment :: Lens' DescribeAttachmentResponse (Maybe Attachment)
- darsStatus :: Lens' DescribeAttachmentResponse Int
Creating a Request
Arguments
| :: Text | |
| -> DescribeAttachment |
Creates a value of DescribeAttachment with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data DescribeAttachment Source
See: describeAttachment smart constructor.
Instances
Request Lenses
daAttachmentId :: Lens' DescribeAttachment Text Source
The ID of the attachment to return. Attachment IDs are returned by the DescribeCommunications operation.
Destructuring the Response
describeAttachmentResponse Source
Arguments
| :: Int | |
| -> DescribeAttachmentResponse |
Creates a value of DescribeAttachmentResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data DescribeAttachmentResponse Source
The content and file name of the attachment returned by the DescribeAttachment operation.
See: describeAttachmentResponse smart constructor.
Response Lenses
darsAttachment :: Lens' DescribeAttachmentResponse (Maybe Attachment) Source
The attachment content and file name.
darsStatus :: Lens' DescribeAttachmentResponse Int Source
The response status code.