@Stability(value=Stable) public static final class BucketAttributes.Builder extends Object implements software.amazon.jsii.Builder<BucketAttributes>
BucketAttributes| Constructor and Description |
|---|
Builder() |
@Stability(value=Stable) public BucketAttributes.Builder account(String account)
BucketAttributes.getAccount()account - The account this existing bucket belongs to.this@Stability(value=Stable) public BucketAttributes.Builder bucketArn(String bucketArn)
BucketAttributes.getBucketArn()bucketArn - The ARN of the bucket.
At least one of bucketArn or bucketName must be
defined in order to initialize a bucket ref.this@Stability(value=Stable) public BucketAttributes.Builder bucketDomainName(String bucketDomainName)
BucketAttributes.getBucketDomainName()bucketDomainName - The domain name of the bucket.this@Stability(value=Stable) public BucketAttributes.Builder bucketDualStackDomainName(String bucketDualStackDomainName)
BucketAttributes.getBucketDualStackDomainName()bucketDualStackDomainName - The IPv6 DNS name of the specified bucket.this@Stability(value=Stable) public BucketAttributes.Builder bucketName(String bucketName)
BucketAttributes.getBucketName()bucketName - The name of the bucket.
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.this@Stability(value=Stable) public BucketAttributes.Builder bucketRegionalDomainName(String bucketRegionalDomainName)
BucketAttributes.getBucketRegionalDomainName()bucketRegionalDomainName - The regional domain name of the specified bucket.this@Stability(value=Stable) public BucketAttributes.Builder bucketWebsiteNewUrlFormat(Boolean bucketWebsiteNewUrlFormat)
BucketAttributes.getBucketWebsiteNewUrlFormat()bucketWebsiteNewUrlFormat - The format of the website URL of the bucket.
This should be true for
regions launched since 2014.this@Stability(value=Stable) public BucketAttributes.Builder bucketWebsiteUrl(String bucketWebsiteUrl)
BucketAttributes.getBucketWebsiteUrl()bucketWebsiteUrl - The website URL of the bucket (if static web hosting is enabled).this@Stability(value=Stable) public BucketAttributes.Builder encryptionKey(IKey encryptionKey)
BucketAttributes.getEncryptionKey()encryptionKey - the value to be set.this@Stability(value=Stable) public BucketAttributes.Builder isWebsite(Boolean isWebsite)
BucketAttributes.getIsWebsite()isWebsite - If this bucket has been configured for static website hosting.this@Stability(value=Stable) public BucketAttributes.Builder notificationsHandlerRole(IRole notificationsHandlerRole)
BucketAttributes.getNotificationsHandlerRole()notificationsHandlerRole - The role to be used by the notifications handler.this@Stability(value=Stable) public BucketAttributes.Builder region(String region)
BucketAttributes.getRegion()region - The region this existing bucket is in.this@Stability(value=Stable) public BucketAttributes build()
build in interface software.amazon.jsii.Builder<BucketAttributes>BucketAttributesNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.