BucketAttributes
A reference to a bucket outside this stack.
Initializer
using AlibabaCloud.SDK.ROS.CDK.Oss;
new BucketAttributes {
string BucketDomainName = null,
string BucketEndpoint = null,
string BucketName = null,
string BucketWebsiteUrl = null,
bool IsWebsite = null,
string Region = null
};
Properties
| Name | Type | Description |
|---|---|---|
BucketDomainName |
string |
The domain name of the bucket. |
BucketEndpoint |
string |
The endpoint of the bucket. |
BucketName |
string |
The name of the bucket. |
BucketWebsiteUrl |
string |
The website URL of the bucket (if static web hosting is enabled). |
IsWebsite |
bool |
If this bucket has been configured for static website hosting. |
Region |
string |
The region this existing bucket is in. |
BucketDomainNameOptional
public string BucketDomainName { get; set; }
- Type: string
- Default: Inferred from bucket name and region
The domain name of the bucket.
BucketEndpointOptional
public string BucketEndpoint { get; set; }
- Type: string
- Default: Inferred from region
The endpoint of the bucket.
BucketNameOptional
public string BucketName { get; set; }
- Type: string
The name of the bucket.
BucketWebsiteUrlOptional
public string BucketWebsiteUrl { get; set; }
- Type: string
- Default: Inferred from bucket name and region
The website URL of the bucket (if static web hosting is enabled).
IsWebsiteOptional
public bool IsWebsite { get; set; }
- Type: bool
- Default: false
If this bucket has been configured for static website hosting.
RegionOptional
public string Region { get; set; }
- Type: string
- Default: it's assumed the bucket is in the same region as the scope it's being imported into
The region this existing bucket is in.
Features that require the region (e.g. bucketWebsiteUrl) won't fully work
if the region cannot be correctly inferred.