@Generated(value="jsii-pacmak/1.29.0 (build 41df200)", date="2021-06-02T09:55:36.275Z") @Stability(value=Experimental) public interface BucketAttributes extends software.amazon.jsii.JsiiSerializable
The easiest way to instantiate is to call
bucket.export(). Then, the consumer can use Bucket.import(this, ref) and
get a Bucket.
| Modifier and Type | Interface and Description |
|---|---|
static class |
BucketAttributes.Builder
A builder for
BucketAttributes |
static class |
BucketAttributes.Jsii$Proxy
An implementation for
BucketAttributes |
| Modifier and Type | Method and Description |
|---|---|
static BucketAttributes.Builder |
builder() |
default String |
getAccount()
(experimental) The account this existing bucket belongs to.
|
default String |
getBucketArn()
(experimental) The ARN of the bucket.
|
default String |
getBucketDomainName()
(experimental) The domain name of the bucket.
|
default String |
getBucketDualStackDomainName()
(experimental) The IPv6 DNS name of the specified bucket.
|
default String |
getBucketName()
(experimental) The name of the bucket.
|
default String |
getBucketRegionalDomainName()
(experimental) The regional domain name of the specified bucket.
|
default Boolean |
getBucketWebsiteNewUrlFormat()
(experimental) The format of the website URL of the bucket.
|
default String |
getBucketWebsiteUrl()
(experimental) The website URL of the bucket (if static web hosting is enabled).
|
default IKey |
getEncryptionKey() |
default Boolean |
getIsWebsite()
(experimental) If this bucket has been configured for static website hosting.
|
default String |
getRegion()
(experimental) The region this existing bucket is in.
|
@Stability(value=Experimental) @Nullable default String getAccount()
Default: - it's assumed the bucket belongs to the same account as the scope it's being imported into
@Stability(value=Experimental) @Nullable default String getBucketArn()
At least one of bucketArn or bucketName must be defined in order to initialize a bucket ref.
@Stability(value=Experimental) @Nullable default String getBucketDomainName()
Default: Inferred from bucket name
@Stability(value=Experimental) @Nullable default String getBucketDualStackDomainName()
@Stability(value=Experimental) @Nullable default String getBucketName()
If the underlying value of ARN is a string, the name will be parsed from the ARN. Otherwise, the name is optional, but some features that require the bucket name such as auto-creating a bucket policy, won't work.
@Stability(value=Experimental) @Nullable default String getBucketRegionalDomainName()
@Stability(value=Experimental) @Nullable default Boolean getBucketWebsiteNewUrlFormat()
This should be true for regions launched since 2014.
Default: false
@Stability(value=Experimental) @Nullable default String getBucketWebsiteUrl()
Default: Inferred from bucket name
@Stability(value=Experimental) @Nullable default IKey getEncryptionKey()
@Stability(value=Experimental) @Nullable default Boolean getIsWebsite()
Default: false
@Stability(value=Experimental) @Nullable default String getRegion()
Default: - it's assumed the bucket is in the same region as the scope it's being imported into
@Stability(value=Experimental) static BucketAttributes.Builder builder()
BucketAttributes.Builder of BucketAttributesCopyright © 2021. All rights reserved.