Class DeleteBucketRequest
Container for the parameters to the DeleteBucket operation.
Deletes the bucket. All objects (including all object versions and Delete Markers) in the bucket must be deleted before the bucket itself can be deleted.
public class DeleteBucketRequest : AmazonWebServiceRequest
- Inheritance
-
DeleteBucketRequest
Constructors
DeleteBucketRequest()
public DeleteBucketRequest()
Properties
BucketName
The name of the bucket to be created.
public string BucketName { get; set; }
Property Value
BucketRegion
The region locality for the bucket.
public S3Region BucketRegion { get; set; }
Property Value
Remarks
When set, this will determine the region the bucket exists in. Refer S3Region for a list of possible values.
ExpectedBucketOwner
The account id of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.
public string ExpectedBucketOwner { get; set; }
Property Value
UseClientRegion
If set to true the bucket will be deleted in the same region as the configuration of the AmazonS3 client. DeleteBucketRequest.BucketRegion takes precedence over this property if both are set. Default: true.
public bool UseClientRegion { get; set; }