amazonka-support-1.4.5: Amazon Support SDK.

Copyright(c) 2013-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.Support.DescribeAttachment

Contents

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.

Synopsis

Creating a Request

describeAttachment Source #

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:

  • daAttachmentId - The ID of the attachment to return. Attachment IDs are returned by the DescribeCommunications operation.

data DescribeAttachment Source #

See: describeAttachment smart constructor.

Instances

Eq DescribeAttachment Source # 
Data DescribeAttachment Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DescribeAttachment -> c DescribeAttachment #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DescribeAttachment #

toConstr :: DescribeAttachment -> Constr #

dataTypeOf :: DescribeAttachment -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c DescribeAttachment) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DescribeAttachment) #

gmapT :: (forall b. Data b => b -> b) -> DescribeAttachment -> DescribeAttachment #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DescribeAttachment -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DescribeAttachment -> r #

gmapQ :: (forall d. Data d => d -> u) -> DescribeAttachment -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> DescribeAttachment -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> DescribeAttachment -> m DescribeAttachment #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DescribeAttachment -> m DescribeAttachment #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DescribeAttachment -> m DescribeAttachment #

Read DescribeAttachment Source # 
Show DescribeAttachment Source # 
Generic DescribeAttachment Source # 
Hashable DescribeAttachment Source # 
ToJSON DescribeAttachment Source # 
NFData DescribeAttachment Source # 

Methods

rnf :: DescribeAttachment -> () #

AWSRequest DescribeAttachment Source # 
ToPath DescribeAttachment Source # 
ToHeaders DescribeAttachment Source # 
ToQuery DescribeAttachment Source # 
type Rep DescribeAttachment Source # 
type Rep DescribeAttachment = D1 (MetaData "DescribeAttachment" "Network.AWS.Support.DescribeAttachment" "amazonka-support-1.4.5-1rRJJQvCx2KFEHmU5CZ1We" True) (C1 (MetaCons "DescribeAttachment'" PrefixI True) (S1 (MetaSel (Just Symbol "_daAttachmentId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))
type Rs DescribeAttachment Source # 

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 #

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.

Instances

Eq DescribeAttachmentResponse Source # 
Data DescribeAttachmentResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DescribeAttachmentResponse -> c DescribeAttachmentResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DescribeAttachmentResponse #

toConstr :: DescribeAttachmentResponse -> Constr #

dataTypeOf :: DescribeAttachmentResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c DescribeAttachmentResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DescribeAttachmentResponse) #

gmapT :: (forall b. Data b => b -> b) -> DescribeAttachmentResponse -> DescribeAttachmentResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DescribeAttachmentResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DescribeAttachmentResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> DescribeAttachmentResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> DescribeAttachmentResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> DescribeAttachmentResponse -> m DescribeAttachmentResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DescribeAttachmentResponse -> m DescribeAttachmentResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DescribeAttachmentResponse -> m DescribeAttachmentResponse #

Read DescribeAttachmentResponse Source # 
Show DescribeAttachmentResponse Source # 
Generic DescribeAttachmentResponse Source # 
NFData DescribeAttachmentResponse Source # 
type Rep DescribeAttachmentResponse Source # 
type Rep DescribeAttachmentResponse = D1 (MetaData "DescribeAttachmentResponse" "Network.AWS.Support.DescribeAttachment" "amazonka-support-1.4.5-1rRJJQvCx2KFEHmU5CZ1We" False) (C1 (MetaCons "DescribeAttachmentResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_darsAttachment") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Attachment))) (S1 (MetaSel (Just Symbol "_darsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int))))

Response Lenses

darsAttachment :: Lens' DescribeAttachmentResponse (Maybe Attachment) Source #

The attachment content and file name.