GeneratePresignedURL

Object owners can share the objects for a specified duration by creating a presigned URL. For example, you can share the documents in your bucket by providing a presigned URL even though the bucket and the objects in it are private.

Note: The object operation (HTTP method) that is used to create the presigned URL must be used in the request when the presigned URL is used.

General

The General tab contains the following fields:
Field Module Property? Description
Name No Name of the activity
Amazon Connection Yes

Provides connection details to communicate with an Amazon S3 instance

Bucket No Select the bucket that contains the object for which you want to generate the presigned URL.
Object Operation No
Select one of the following operations to generate the pre-signed URL:
  • GET - to get an object from the bucket
  • PUT - to write an object to the bucket
  • DELETE - to delete an object from the bucket

Input

The input of the GeneratePresignedURL activity varies depending on the object operation selected on the General tab. The following fields are displayed for the Get, Put, and the Delete object operations:

Field Data Type Description
bucketName String Bucket name where the object is stored
key String A sequence of Unicode characters, which serves as the identifier for the object
expirationTime Integer The duration (in minutes) after which the presigned URL expires.
amazonS3Connection String AmazonS3Client object
Note: You can generate the AmazonS3Client object using the GetConnection activity of TIBCO ActiveMatrix BusinessWorks™ Plug-in Component for AWS Common Services.
Note: For the Delete object operation, in addition to the bucketName, key, expirationTime, and amazonS3Connection, you must also provide the version of the document that you have uploaded in the bucket and want to delete.

Output

Output for the presigned URL activity
Output Item Data Type Description
presigned URL String Execution result of the pre-signed URL operation
Note: The output section contains the generated presigned URL that you can use to perform specific operations on Amazon S3 objects.

Fault

The Fault tab lists the exceptions that are generated by the GeneratePresignedURL activity. It has the following fields:
Error Schema Element Data Type Description
Amazon S3 Plugin Exception Complex Any exception created by TIBCO BusinessWorks Plug-in for Amazon S3

msg: Error message description that is returned by the plug-in

msgCode: Error code that is returned by the plug-in

Amazon S3 Client Exception Complex Any exception or error reported by Amazon S3 Client

msg: Error message description that is returned by the plug-in

msgCode: Error code that is returned by the plug-in

Amazon S3 Service Exception Complex Any exception or error reported by Amazon S3 instance

msg: Error message description that is returned by the plug-in

msgCode: Error code that is returned by the plug-in