AWS SDK Version 3 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.

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.S3.dll
Version: 3.x.y.z


public Boolean ValidateV2Bucket(
         String bucketName
Type: System.String

The BucketName to validate if V2 addressing should be used

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

Version Information

.NET Standard:
Supported in: 1.3

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

Portable Class Library:
Supported in: Windows Store Apps
Supported in: Windows Phone 8.1
Supported in: Xamarin Android
Supported in: Xamarin iOS (Unified)
Supported in: Xamarin.Forms

Supported Versions: 4.6 and above
Supported Platforms: Android, iOS, Standalone

See Also