Table of Contents

Class S3Uri

Namespace
Amazon.Runtime.Internal.Util
Assembly
AWSSDK.Core.dll

Uri wrapper that can parse out information (bucket, key, region, style) from an S3 URI.

public class S3Uri
Inheritance
S3Uri
Inherited Members

Constructors

S3Uri(string)

Constructs a parser for the S3 URI specified as a string.

public S3Uri(string uri)

Parameters

uri string

The S3 URI to be parsed.

S3Uri(Uri)

Constructs a parser for the S3 URI specified as a Uri instance.

public S3Uri(Uri uri)

Parameters

uri Uri

The S3 URI to be parsed.

Properties

Bucket

The bucket name parsed from the URI (or null if no bucket specified).

public string Bucket { get; }

Property Value

string

IsPathStyle

True if the URI contains the bucket in the path, false if it contains the bucket in the authority.

public bool IsPathStyle { get; }

Property Value

bool

Key

The key parsed from the URI (or null if no key specified).

public string Key { get; }

Property Value

string

Region

The region parsed from the URI (or null if no region specified).

public RegionEndpoint Region { get; set; }

Property Value

RegionEndpoint

Methods

IsS3Uri(Uri)

public static bool IsS3Uri(Uri uri)

Parameters

uri Uri

Returns

bool