Table of Contents

Class PutBucketRequest

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

Container for the parameters to the PutBucket operation.

Creates a new bucket.

public class PutBucketRequest : PutWithACLRequest
Inheritance
PutBucketRequest
Inherited Members

Constructors

PutBucketRequest()

public PutBucketRequest()

Properties

BucketName

The name of the bucket to be created.

public string BucketName { get; set; }

Property Value

string

BucketRegion

The region locality for the bucket.

public S3Region BucketRegion { get; set; }

Property Value

S3Region

Remarks

When set, this will determine where your data will reside in S3. Refer S3Region for a list of possible values.

BucketRegionName

The bucket region locality expressed using the name of the region. When set, this will determine where your data will reside in S3. Valid values: us-east-1, us-west-1, us-west-2, eu-west-1, ap-southeast-1, ap-southeast-2, ap-northeast-1, sa-east-1

public string BucketRegionName { get; set; }

Property Value

string

CannedACL

The canned ACL to apply to the bucket.

public S3CannedACL CannedACL { get; set; }

Property Value

S3CannedACL

ObjectLockEnabledForBucket

Gets and sets the property ObjectLockEnabledForBucket.

Specifies whether you want S3 Object Lock to be enabled for the new bucket.

public bool ObjectLockEnabledForBucket { get; set; }

Property Value

bool

UseClientRegion

If set to true the bucket will be created in the same region as the configuration of the AmazonS3 client. If PutBucketRequest.BucketRegion or PutBucketRequest.BucketRegionName are set they take precedence over this property. Default: true.

public bool UseClientRegion { get; set; }

Property Value

bool