AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Asynchronously create a signed URL allowing access to a resource that would usually require authentication.

Note:

This is an asynchronous operation using the standard naming convention for .NET 4.5 or higher. For .NET 3.5 the operation is implemented as a pair of methods using the standard naming convention of BeginGetPreSignedURL and EndGetPreSignedURL.

Namespace: Amazon.S3
Assembly: AWSSDK.S3.dll
Version: 3.x.y.z

Syntax

C#
public virtual Task<String> GetPreSignedURLAsync(
         GetPreSignedUrlRequest request
)

Parameters

request
Type: Amazon.S3.Model.GetPreSignedUrlRequest

The GetPreSignedUrlRequest that defines the parameters of the operation.

Return Value


Type: Task<String>
A string that is the signed http request.

Exceptions

Remarks

When using query string authentication you create a query, specify an expiration time for the query, sign it with your signature, place the data in an HTTP request, and distribute the request to a user or embed the request in a web page.

A PreSigned URL can be generated for GET, PUT, DELETE and HEAD operations on your bucketName, keys, and versions.

Version Information

.NET:
Supported in: 8.0 and newer, Core 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5 and newer