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 #

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 #

See: describeAttachment smart constructor.

Instances

Eq DescribeAttachment # 
Data DescribeAttachment # 

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 # 
Show DescribeAttachment # 
Generic DescribeAttachment # 
Hashable DescribeAttachment # 
ToJSON DescribeAttachment # 
NFData DescribeAttachment # 

Methods

rnf :: DescribeAttachment -> () #

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

Request Lenses

daAttachmentId :: Lens' DescribeAttachment Text #

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

Destructuring the Response

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 #

The content and file name of the attachment returned by the DescribeAttachment operation.

See: describeAttachmentResponse smart constructor.

Instances

Eq DescribeAttachmentResponse # 
Data DescribeAttachmentResponse # 

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 # 
Show DescribeAttachmentResponse # 
Generic DescribeAttachmentResponse # 
NFData DescribeAttachmentResponse # 
type Rep DescribeAttachmentResponse # 
type Rep DescribeAttachmentResponse = D1 (MetaData "DescribeAttachmentResponse" "Network.AWS.Support.DescribeAttachment" "amazonka-support-1.4.5-LmQIPNTI7OzCplN8wzzWV7" 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) #

The attachment content and file name.

darsResponseStatus :: Lens' DescribeAttachmentResponse Int #

  • - | The response status code.