amazonka-support-1.4.1: 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.AddAttachmentsToSet

Contents

Description

Adds one or more attachments to an attachment set. If an AttachmentSetId is not specified, a new attachment set is created, and the ID of the set is returned in the response. If an AttachmentSetId is specified, the attachments are added to the specified set, if it exists.

An attachment set is a temporary container for attachments that are to be added to a case or case communication. The set is available for one hour after it is created; the ExpiryTime returned in the response indicates when the set expires. The maximum number of attachments in a set is 3, and the maximum size of any attachment in the set is 5 MB.

Synopsis

Creating a Request

addAttachmentsToSet :: AddAttachmentsToSet Source #

Creates a value of AddAttachmentsToSet with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data AddAttachmentsToSet Source #

See: addAttachmentsToSet smart constructor.

Instances

Eq AddAttachmentsToSet Source # 
Data AddAttachmentsToSet Source # 

Methods

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

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

toConstr :: AddAttachmentsToSet -> Constr #

dataTypeOf :: AddAttachmentsToSet -> DataType #

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

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

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

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

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

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

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

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

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

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

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

Methods

rnf :: AddAttachmentsToSet -> () #

AWSRequest AddAttachmentsToSet Source # 
ToQuery AddAttachmentsToSet Source # 
ToPath AddAttachmentsToSet Source # 
ToHeaders AddAttachmentsToSet Source # 
type Rep AddAttachmentsToSet Source # 
type Rep AddAttachmentsToSet = D1 (MetaData "AddAttachmentsToSet" "Network.AWS.Support.AddAttachmentsToSet" "amazonka-support-1.4.1-LTIX5uJntX0LNU8CzhRGbQ" False) (C1 (MetaCons "AddAttachmentsToSet'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_aatsAttachmentSetId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_aatsAttachments") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [Attachment]))))
type Rs AddAttachmentsToSet Source # 

Request Lenses

aatsAttachmentSetId :: Lens' AddAttachmentsToSet (Maybe Text) Source #

The ID of the attachment set. If an AttachmentSetId is not specified, a new attachment set is created, and the ID of the set is returned in the response. If an AttachmentSetId is specified, the attachments are added to the specified set, if it exists.

aatsAttachments :: Lens' AddAttachmentsToSet [Attachment] Source #

One or more attachments to add to the set. The limit is 3 attachments per set, and the size limit is 5 MB per attachment.

Destructuring the Response

addAttachmentsToSetResponse Source #

Creates a value of AddAttachmentsToSetResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data AddAttachmentsToSetResponse Source #

The ID and expiry time of the attachment set returned by the AddAttachmentsToSet operation.

See: addAttachmentsToSetResponse smart constructor.

Instances

Eq AddAttachmentsToSetResponse Source # 
Data AddAttachmentsToSetResponse Source # 

Methods

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

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

toConstr :: AddAttachmentsToSetResponse -> Constr #

dataTypeOf :: AddAttachmentsToSetResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read AddAttachmentsToSetResponse Source # 
Show AddAttachmentsToSetResponse Source # 
Generic AddAttachmentsToSetResponse Source # 
NFData AddAttachmentsToSetResponse Source # 
type Rep AddAttachmentsToSetResponse Source # 
type Rep AddAttachmentsToSetResponse = D1 (MetaData "AddAttachmentsToSetResponse" "Network.AWS.Support.AddAttachmentsToSet" "amazonka-support-1.4.1-LTIX5uJntX0LNU8CzhRGbQ" False) (C1 (MetaCons "AddAttachmentsToSetResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_aatsrsExpiryTime") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_aatsrsAttachmentSetId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_aatsrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))))

Response Lenses

aatsrsExpiryTime :: Lens' AddAttachmentsToSetResponse (Maybe Text) Source #

The time and date when the attachment set expires.

aatsrsAttachmentSetId :: Lens' AddAttachmentsToSetResponse (Maybe Text) Source #

The ID of the attachment set. If an AttachmentSetId was not specified, a new attachment set is created, and the ID of the set is returned in the response. If an AttachmentSetId was specified, the attachments are added to the specified set, if it exists.