CARVIEW |
Select Language
HTTP/1.1 200 OK
Content-Type: text/html
Content-Length: 2489
Connection: keep-alive
Date: Wed, 23 Jul 2025 13:50:19 GMT
Server: Server
Cache-Control: no-store, no-cache, must-revalidate
Expires: Thu, 01 Jan 1970 00:00:00 GMT
X-Frame-Options: SAMEORIGIN
Strict-Transport-Security: max-age=47304000; includeSubDomains
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Content-Security-Policy: upgrade-insecure-requests; script-src 'self' 'unsafe-inline' *.awsstatic.com *.cdn.uis.awsstatic.com *.cdn.console.awsstatic.com d2c.aws.amazon.com a0.awsstatic.com *.feedback.console.aws.dev insights.docs.aws.com wss://insights.docs.aws.com/prod; object-src 'none';
Last-Modified: Tue, 22 Jul 2025 19:46:31 GMT
ETag: "0z7zUSdrzMgRJakwrowxk2FFQt0=-gzip"
Accept-Ranges: bytes
Content-Encoding: gzip
X-Content-Type-Options: nosniff
Vary: Accept-Encoding
X-Cache: Miss from cloudfront
Via: 1.1 6f6cb5b84bda77c596c1c72fe048d038.cloudfront.net (CloudFront)
X-Amz-Cf-Pop: BOM78-P5
X-Amz-Cf-Id: iG_rpBcBA1ipYTxbZhxs4YPdLt89yMiex15fwKKn8xtrHHGKqKdwhw==
AmazonS3Util.DoesS3BucketExistV2 Method (IAmazonS3, string) | AWS SDK for .NET Version 4
This method calls GetACL for the bucket.
AWS SDK Version 4 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.
AmazonS3Util.DoesS3BucketExistV2 (IAmazonS3, string)
Method
Determines whether an S3 bucket exists or not.
Namespace: Amazon.S3.Util
Assembly: AWSSDK.S3.dll
Version: 3.x.y.z
Syntax
public Boolean DoesS3BucketExistV2(
IAmazonS3 s3Client,
String bucketName
)
Parameters
- s3Client
-
Type: Amazon.S3.IAmazonS3
The Amazon S3 Client to use for S3 specific operations.
- bucketName
-
Type: System.String
The name of the bucket to check.
Return Value
Type: Boolean
False is returned in case S3 responds with a NoSuchBucket error.
True is returned in case of success, AccessDenied error or PermanentRedirect error.
An exception is thrown in case of any other error.
Remarks
Version Information
.NET Framework:
Supported in: 4.7.2 and newer