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.

Utility class for managing and exchanging HTTP POST uploads of objects to Amazon S3.

Inheritance Hierarchy


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


public class S3PostUploadSignedPolicy

The S3PostUploadSignedPolicy type exposes the following members


Public Method S3PostUploadSignedPolicy()


Public Property AccessKeyId System.String

The AWS Access Key Id for the credential pair that produced the signature.

Public Property Algorithm System.String

The signing algorithm used. Required as a field in the post Amazon S3 can re-calculate the signature.

Public Property Credential System.String

In addition to the access key ID, this provides scope information used in calculating the signing key for signature calculation.

Public Property Date System.String

The date value in ISO8601 format. It is the same date used in creating the signing key.

Public Property Policy System.String

The policy document which governs what uploads can be done.

Public Property SecurityToken System.String

The security token from session or instance credentials.

Public Property Signature System.String

The signature for the policy.

Public Property SignatureVersion System.String

The signature version usedd. Either "2" or "4".



Asynchronous operations (methods ending with Async) in the table below are for .NET 4.5 or higher. For .NET 3.5 the SDK follows the standard naming convention of BeginMethodName and EndMethodName to indicate asynchronous operations - these method pairs are not shown in the table below.

Public Method GetReadablePolicy()

Get the policy document as a human readable string.

Public Method Static Method GetSignedPolicy(string, AWSCredentials)

Given a policy and AWS credentials, produce a S3PostUploadSignedPolicy.

Public Method Static Method GetSignedPolicyFromJson(string)

Create an instance of this class from a JSON string.

Public Method Static Method GetSignedPolicyFromXml(string)

Create an instance of this class from an XML string.

Public Method Static Method GetSignedPolicyV4(string, AWSCredentials, RegionEndpoint)

Given a policy and AWS credentials, produce a S3PostUploadSignedPolicy.

Public Method ToJson()

JSON representation of this object

Public Method ToXml()

XML Representation of this object


This object supports creating, marshalling, and unmarshalling of the information needed to build an authenticated HTTP POST request to S3 for uploading objects according to a policy.

For more information,

Version Information

.NET Framework:
Supported in: 4.5, 4.0, 3.5

Supported Versions: 4.6 and above
Supported Platforms: Android, iOS, Standalone