Skip to main content
[ This file is autogenerated from apexdoc ]

AqS3

For working with Amazon S3 file storage.

Group apex/aws

Fields​

public SERVICE_S3 → String​

public SIG_ALGORITHM → String​

public SSE_ALGORITHM → String​


Methods​

public static AqS3Bucket__c getSettings(String s3BucketSettingsName)​

Get settings instance, throw if not found

public static String getSignedDownloadUrl(String s3BucketSettingsName, String bucketName, String key, Integer expireInMinutes)​

Get a URL allowing anybody to download the specified blob for the specified number of minutes. See http://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-query-string-auth.html


Classes​

PostPolicy​

Specifies limitations on POST for file upload

Constructors​

public PostPolicy()​
public PostPolicy(Datetime expiration)​

Properties​

public expiration → Datetime​
public conditions → List<List<object>>​

Methods​

public void addEqualsCondition(String name, String value)​

Add exact equals condition

public void addStartsWithCondition(String name, String value)​

Add condition upon value starting with

public void addRangeCondition(String name, Integer lower, Integer upper)​

Add condition with upper and lower range

public String getValue()​

Get value to use in headers and for signing

public String signV4(AqS3Bucket__c bucketSettings, DateTime theDatetime)​

Sign using V4 algorithm


DocumentUploadInfo​

Form field values for uploading a document See http://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-UsingHTTPPOST.html

Constructors​

public DocumentUploadInfo()​

Empty constructor

public DocumentUploadInfo(String s3BucketSettingsName, String key, String acl, String contentType, Integer contentLength, Integer expireInMinutes, List<String> ignoreFormFields)​

Construct for a specific upload


Properties​

public HostUrl → String​

URL to post to

public FormData → Map<String,String>​

The multi-part form name/value pairs