Provides utilities used by the Amazon S3 client implementation.
These utilities might be useful to consumers of the Amazon S3
library.
Namespace: Amazon.S3.UtilAssembly: AWSSDK (in AWSSDK.dll) Version: 1.4.10.0 (1.4.10.0)
Syntax
| C# | Visual Basic | Visual C++ |
public static class AmazonS3Util
Public NotInheritable Class AmazonS3Util
public ref class AmazonS3Util abstract sealed
Members
| All Members | Properties | Methods |
| Member | Description | |
|---|---|---|
| CreateHeaderEntry(String, String) |
Builds and returns the name value collection
that can be added to the HTTP headers for the request
| |
| DoesS3BucketExist(String, AmazonS3) |
Determines whether an S3 bucket exists or not.
This is done by:
1. Creating a PreSigned Url for the bucket (with an expiry date at the end of this decade)
2. Making a HEAD request to the Url
| |
| FormattedCurrentTimestamp |
Formats the current date as a GMT timestamp
| |
| GenerateChecksumForContent(String, Boolean) |
Generates an MD5 Digest for the string-based content
| |
| GenerateChecksumForStream(Stream, Boolean) |
Generates an md5Digest for the file-stream specified
| |
| MakeStreamSeekable(Stream) |
Converts a non-seekable stream into a System.IO.MemoryStream.
A MemoryStream's position can be moved arbitrarily
| |
| MimeTypeFromExtension(String) |
Determines MIME type from a file extension
| |
| SetObjectStorageClass(S3Object, S3StorageClass, AmazonS3) |
Sets the storage class for the S3 Object to the value
specified.
| |
| SetObjectStorageClass(S3ObjectVersion, S3StorageClass, AmazonS3) |
Sets the storage class for the S3 Object Version to the value
specified.
| |
| SetObjectStorageClass(String, String, S3StorageClass, AmazonS3) |
Sets the storage class for the S3 Object to the value
specified.
| |
| SetObjectStorageClass(String, String, String, S3StorageClass, AmazonS3) |
Sets the storage class for the S3 Object's Version to the value
specified.
| |
| SetServerSideEncryption(S3Object, ServerSideEncryptionMethod, AmazonS3) |
Sets the server side encryption method for the S3 Object to the value
specified.
| |
| SetServerSideEncryption(S3ObjectVersion, ServerSideEncryptionMethod, AmazonS3) |
Sets the server side encryption method for the S3 Object Version to the value
specified.
| |
| SetServerSideEncryption(String, String, ServerSideEncryptionMethod, AmazonS3) |
Sets the server side encryption method for the S3 Object to the value
specified.
| |
| SetServerSideEncryption(String, String, String, ServerSideEncryptionMethod, AmazonS3) |
Sets the server side encryption method for the S3 Object's Version to the value
specified.
| |
| Sign(String, SecureString, KeyedHashAlgorithm) |
Computes RFC 2104-compliant HMAC signature
| |
| UrlEncode(String, Boolean) |
URL encodes a string. If the path property is specified,
the accepted path characters {/+:} are not encoded.
| |
| ValidateV2Bucket(String) |
Version2 S3 buckets adhere to RFC 1035:
|