The PutBucketRequest contains the parameters used for the PutBucket operation.
The BucketRegion parameter is used if you wish to specify the bucket locality.
Required Parameters: BucketName
Optional Parameters: BucketRegion, Default - S3Region.US
Namespace: Amazon.S3.ModelRequired Parameters: BucketName
Optional Parameters: BucketRegion, Default - S3Region.US
Assembly: AWSSDK (in AWSSDK.dll) Version: 1.4.10.0 (1.4.10.0)
Syntax
Members
| All Members | Constructors | Properties | Methods |
| Member | Description | |
|---|---|---|
| PutBucketRequest()()()() | Initializes a new instance of the PutBucketRequest class | |
| AddHeader(String, String) |
Adds the header to the collection of headers for the request.
(Inherited from S3Request.) | |
| AddHeaders(NameValueCollection) |
Adds all of the key/value pairs from collection into our request header.
(Inherited from S3Request.) | |
| BucketName |
Gets and sets the BucketName property.
| |
| BucketRegion | ||
| BucketRegionName |
Alternative to setting bucket region by using the region's name.
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-northeast-1, sa-east-1
| |
| Equals(Object) | (Inherited from Object.) | |
| GetHashCode()()()() |
Serves as a hash function for a particular type.
(Inherited from Object.) | |
| GetType()()()() |
Gets the Type of the current instance.
(Inherited from Object.) | |
| InputStream |
Gets and sets the InputStream property.
(Inherited from S3Request.) | |
| ToString()()()() | (Inherited from S3Request.) | |
| WithBucketName(String) |
Sets the BucketName property for this request.
This is the S3 Bucket that will be created by this request.
| |
| WithBucketRegion(S3Region) |
Sets the BucketRegion property for this request.
When set, this will determine where your data will
reside in S3. Refer S3Region
for a list of possible values.
| |
| WithBucketRegionName(String) |
Alternative to setting bucket region by using the region's name.
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-northeast-1, sa-east-1
| |
| WithInputStream(Stream) |
Sets the InputStream property.
(Inherited from S3Request.) |