Skip to main content

S3StorageObject

A class in Alta.IO, Alta.Utilities.

Base for an S3 file or folder: a bucket name and object key, with delete calls through S3Utility.S3Client.

Constructors​

MemberWhat it is
S3StorageObject(string bucketName, string fullName)Creates a S3StorageObject from bucketName and fullName.

Fields​

MemberWhat it is
protected const string ObjectContentTypeConstant null content type.

Properties​

MemberWhat it is
string BucketName { get; }The S3 bucket.
string FullName { get; }The object key, with any trailing slash removed.
string Name { get; }The last part of the key.

Methods​

MemberWhat it is
virtual void Delete()Deletes the object with this key from the bucket.
virtual Task DeleteAsync()Async version of Delete.