Table of Contents

Class GetBucketLocationRequest

Namespace
Amazon.S3.Model
Assembly
AWSSDK.S3.dll

Container for the parameters to the GetBucketLocation operation. Returns the Region the bucket resides in. You set the bucket's Region using the

LocationConstraint
request parameter in a
CreateBucket
request. For more information, see CreateBucket.

To use this implementation of the operation, you must be the bucket owner.

To use this API against an access point, provide the alias of the access point in place of the bucket name.

The following operations are related to

GetBucketLocation
:
public class GetBucketLocationRequest : AmazonWebServiceRequest
Inheritance
GetBucketLocationRequest

Constructors

GetBucketLocationRequest()

public GetBucketLocationRequest()

Properties

BucketName

Gets and sets the BucketName.

public string BucketName { get; set; }

Property Value

string

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

string