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
Version2 S3 buckets adhere to RFC 1035: Less than 255 characters, with each label less than 63 characters.Label must start with a letterLabel must end with a letter or digitLabel can have a string of letter, digits and hyphens in the middle.Although names can be case-sensitive, no significance is attached to the case.RFC 1123: Allow label to start with letter or digit (e.g. works)RFC 2181: No restrictions apart from the length restrictions. S3 V2 will start with RFCs 1035 and 1123 and impose the following additional restrictions: Length between 3 and 63 characters (to allow headroom for upper-level domains, as well as to avoid separate length restrictions for bucket-name and its labelsOnly lower-case to avoid user confusion.No dotted-decimal IPv4-like strings

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


public Boolean ValidateV2Bucket(
         String bucketName


Type: System.String

The BucketName to validate if V2 addressing should be used

Return Value
Type: System.Boolean
True if the BucketName should use V2 bucket addressing, false otherwise

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