AWS SDK Version 2 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

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

Inheritance Hierarchy

System.Object
  Amazon.S3.Util.AmazonS3Uri

Namespace: Amazon.S3.Util
Assembly: AWSSDK.dll
Version: (assembly version)

Syntax

C#
public class AmazonS3Uri : Object

The AmazonS3Uri type exposes the following members

Constructors

NameDescription
Public Method AmazonS3Uri(string) Constructs a parser for the S3 URI specified as a string.
Public Method AmazonS3Uri(Uri) Constructs a parser for the S3 URI specified as a Uri instance.

Properties

NameTypeDescription
Public Property Bucket System.String The bucket name parsed from the URI (or null if no bucket specified).
Public Property IsPathStyle System.Boolean True if the URI contains the bucket in the path, false if it contains the bucket in the authority.
Public Property Key System.String The key parsed from the URI (or null if no key specified).
Public Property Region Amazon.RegionEndpoint The region parsed from the URI (or null if no region specified).

Methods

NameDescription
Public Method Static Method IsAmazonS3Endpoint(string) Checks whether the given URI is a Amazon S3 URI.
Public Method Static Method IsAmazonS3Endpoint(Uri) Checks whether the given URI is a Amazon S3 URI.

Version Information

.NET Framework:
Supported in: 4.5, 4.0, 3.5

.NET for Windows Store apps:
Supported in: Windows 8.1, Windows 8

.NET for Windows Phone:
Supported in: Windows Phone 8.1, Windows Phone 8