Skip to main content

S3Utility

A static class in Alta.IO, Alta.Utilities.

Static holder for the AWS S3 clients used for remote saves. Keys come from the /s3_credentials command line argument; the region is fixed to US West 1.

Fields​

5 private and internal fields
MemberWhat it is
private static string accessKeyAWS access key.
private static TransferUtility clientBacking field for Client.
private static readonly RegionEndpoint RegionFixed AWS region, USWest1.
private static AmazonS3Client s3ClientBacking field for S3Client.
private static string secretKeyAWS secret key.

Properties​

MemberWhat it is
static TransferUtility Client { get; }S3 TransferUtility, created on first use.
static AmazonS3Client S3Client { get; }AmazonS3Client, created on first use.

Methods​

MemberWhat it is
static void SetupKeys(string accessKey, string secretKey)Stores the access and secret keys. Call before the clients are first used.
1 private and internal method
MemberWhat it is
private static void Setup()Creates both clients from the stored keys. The transfer utility allows 1000 concurrent requests.