amazonka-support-1.6.1: Amazon Support SDK.

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@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:

  • 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 Source #

See: addAttachmentsToSet smart constructor.

Instances
Eq AddAttachmentsToSet Source # 
Instance details

Defined in Network.AWS.Support.AddAttachmentsToSet

Data AddAttachmentsToSet Source # 
Instance details

Defined in Network.AWS.Support.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 Source # 
Instance details

Defined in Network.AWS.Support.AddAttachmentsToSet

Show AddAttachmentsToSet Source # 
Instance details

Defined in Network.AWS.Support.AddAttachmentsToSet

Generic AddAttachmentsToSet Source # 
Instance details

Defined in Network.AWS.Support.AddAttachmentsToSet

Associated Types

type Rep AddAttachmentsToSet :: Type -> Type #

Hashable AddAttachmentsToSet Source # 
Instance details

Defined in Network.AWS.Support.AddAttachmentsToSet

ToJSON AddAttachmentsToSet Source # 
Instance details

Defined in Network.AWS.Support.AddAttachmentsToSet

AWSRequest AddAttachmentsToSet Source # 
Instance details

Defined in Network.AWS.Support.AddAttachmentsToSet

Associated Types

type Rs AddAttachmentsToSet :: Type #

ToHeaders AddAttachmentsToSet Source # 
Instance details

Defined in Network.AWS.Support.AddAttachmentsToSet

ToPath AddAttachmentsToSet Source # 
Instance details

Defined in Network.AWS.Support.AddAttachmentsToSet

ToQuery AddAttachmentsToSet Source # 
Instance details

Defined in Network.AWS.Support.AddAttachmentsToSet

NFData AddAttachmentsToSet Source # 
Instance details

Defined in Network.AWS.Support.AddAttachmentsToSet

Methods

rnf :: AddAttachmentsToSet -> () #

type Rep AddAttachmentsToSet Source # 
Instance details

Defined in Network.AWS.Support.AddAttachmentsToSet

type Rep AddAttachmentsToSet = D1 (MetaData "AddAttachmentsToSet" "Network.AWS.Support.AddAttachmentsToSet" "amazonka-support-1.6.1-4xuMxu0WF4O4DAikataxy0" False) (C1 (MetaCons "AddAttachmentsToSet'" PrefixI True) (S1 (MetaSel (Just "_aatsAttachmentSetId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_aatsAttachments") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [Attachment])))
type Rs AddAttachmentsToSet Source # 
Instance details

Defined in Network.AWS.Support.AddAttachmentsToSet

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:

  • 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 Source #

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

See: addAttachmentsToSetResponse smart constructor.

Instances
Eq AddAttachmentsToSetResponse Source # 
Instance details

Defined in Network.AWS.Support.AddAttachmentsToSet

Data AddAttachmentsToSetResponse Source # 
Instance details

Defined in Network.AWS.Support.AddAttachmentsToSet

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 # 
Instance details

Defined in Network.AWS.Support.AddAttachmentsToSet

Show AddAttachmentsToSetResponse Source # 
Instance details

Defined in Network.AWS.Support.AddAttachmentsToSet

Generic AddAttachmentsToSetResponse Source # 
Instance details

Defined in Network.AWS.Support.AddAttachmentsToSet

Associated Types

type Rep AddAttachmentsToSetResponse :: Type -> Type #

NFData AddAttachmentsToSetResponse Source # 
Instance details

Defined in Network.AWS.Support.AddAttachmentsToSet

type Rep AddAttachmentsToSetResponse Source # 
Instance details

Defined in Network.AWS.Support.AddAttachmentsToSet

type Rep AddAttachmentsToSetResponse = D1 (MetaData "AddAttachmentsToSetResponse" "Network.AWS.Support.AddAttachmentsToSet" "amazonka-support-1.6.1-4xuMxu0WF4O4DAikataxy0" False) (C1 (MetaCons "AddAttachmentsToSetResponse'" PrefixI True) (S1 (MetaSel (Just "_aatsrsExpiryTime") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_aatsrsAttachmentSetId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_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.