Class S3Uri
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
uristringThe S3 URI to be parsed.
S3Uri(Uri)
Constructs a parser for the S3 URI specified as a Uri instance.
public S3Uri(Uri uri)
Parameters
uriUriThe 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
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
Key
The key parsed from the URI (or null if no key specified).
public string Key { get; }
Property Value
Region
The region parsed from the URI (or null if no region specified).
public RegionEndpoint Region { get; set; }
Property Value
Methods
IsS3Uri(Uri)
public static bool IsS3Uri(Uri uri)
Parameters
uriUri