Table of Contents

Class AmazonS3Config

Namespace
Amazon.S3
Assembly
AWSSDK.S3.dll

Configuration for accessing AmazonS3 service

public class AmazonS3Config : ClientConfig
Inheritance
AmazonS3Config
Derived

Constructors

AmazonS3Config()

Default constructor

public AmazonS3Config()

Properties

ForcePathStyle

When true, requests will always use path style addressing.

public bool ForcePathStyle { get; set; }

Property Value

bool

RegionEndpointServiceName

The constant used to lookup in the region hash the endpoint.

public override string RegionEndpointServiceName { get; }

Property Value

string

ServiceVersion

Gets the ServiceVersion property.

public override string ServiceVersion { get; }

Property Value

string

USEast1RegionalEndpointValue

USEast1RegionalEndpointValue determines wheter or not to send the us-east-1 s3 requests to the regional endpoint or to the legacy global endpoint. This flags takes precedence over the AWS_S3_US_EAST_1_REGIONAL_ENDPOINT environment variable and the credential file.

public S3UsEast1RegionalEndpointValue? USEast1RegionalEndpointValue { get; set; }

Property Value

S3UsEast1RegionalEndpointValue?

UseAccelerateEndpoint

Enables S3 accelerate by sending requests to the accelerate endpoint instead of the regular region endpoint. To use this feature, the bucket name should be DNS compliant names and should not contain periods (.). The following APIs are not supported and are sent to the regular region endpoint, even if this option is enabled:

  1. PutBucket
  2. ListBuckets
  3. DeleteBucket
public bool UseAccelerateEndpoint { get; set; }

Property Value

bool

Remarks

This option cannot be used at the same time as UseDualstackEndpoint.

UseArnRegion

If set to true and the service package supports it the region identified in the arn for a resource will be used when making the service request.

public bool UseArnRegion { get; set; }

Property Value

bool

UserAgent

Gets the value of UserAgent property.

public override string UserAgent { get; }

Property Value

string

Methods

DetermineServiceURL()

Given this client configuration, returns the service url

public override string DetermineServiceURL()

Returns

string

The service url in the form of a string

Initialize()

This method contains custom initializations for the config object.

protected override void Initialize()

Validate()

Validate that the config object is properly configured.

public override void Validate()