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.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 #

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:

  • aatsAttachmentSetId - 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 - 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.

data AddAttachmentsToSet #

See: addAttachmentsToSet smart constructor.

Instances

Eq AddAttachmentsToSet # 
Data AddAttachmentsToSet # 

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

Methods

rnf :: AddAttachmentsToSet -> () #

AWSRequest AddAttachmentsToSet # 
ToQuery AddAttachmentsToSet # 
ToPath AddAttachmentsToSet # 
ToHeaders AddAttachmentsToSet # 
type Rep AddAttachmentsToSet # 
type Rep AddAttachmentsToSet = D1 (MetaData "AddAttachmentsToSet" "Network.AWS.Support.AddAttachmentsToSet" "amazonka-support-1.4.5-LmQIPNTI7OzCplN8wzzWV7" 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 # 

Request Lenses

aatsAttachmentSetId :: Lens' AddAttachmentsToSet (Maybe Text) #

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] #

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 #

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:

  • aatsrsExpiryTime - The time and date when the attachment set expires.
  • aatsrsAttachmentSetId - 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.
  • aatsrsResponseStatus - -- | The response status code.

data AddAttachmentsToSetResponse #

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

See: addAttachmentsToSetResponse smart constructor.

Instances

Eq AddAttachmentsToSetResponse # 
Data AddAttachmentsToSetResponse # 

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

Response Lenses

aatsrsExpiryTime :: Lens' AddAttachmentsToSetResponse (Maybe Text) #

The time and date when the attachment set expires.

aatsrsAttachmentSetId :: Lens' AddAttachmentsToSetResponse (Maybe Text) #

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.