Uses of Class
software.amazon.awscdk.services.s3.Bucket.Builder
-
Uses of Bucket.Builder in software.amazon.awscdk.services.s3
Modifier and TypeMethodDescriptionBucket.Builder.accessControl
(BucketAccessControl accessControl) Specifies a canned ACL that grants predefined permissions to the bucket.Bucket.Builder.autoDeleteObjects
(Boolean autoDeleteObjects) Whether all objects should be automatically deleted when the bucket is removed from the stack or when the stack is deleted.Bucket.Builder.blockPublicAccess
(BlockPublicAccess blockPublicAccess) The block public access configuration of this bucket.Bucket.Builder.bucketKeyEnabled
(Boolean bucketKeyEnabled) Specifies whether Amazon S3 should use an S3 Bucket Key with server-side encryption using KMS (SSE-KMS) for new objects in the bucket.Bucket.Builder.bucketName
(String bucketName) Physical name of this bucket.The CORS configuration of this bucket.static Bucket.Builder
Bucket.Builder.encryption
(BucketEncryption encryption) The kind of server-side encryption to apply to this bucket.Bucket.Builder.encryptionKey
(IKey encryptionKey) External KMS key to use for bucket encryption.Bucket.Builder.enforceSsl
(Boolean enforceSsl) Enforces SSL for requests.Bucket.Builder.eventBridgeEnabled
(Boolean eventBridgeEnabled) Whether this bucket should send notifications to Amazon EventBridge or not.Bucket.Builder.intelligentTieringConfigurations
(List<? extends IntelligentTieringConfiguration> intelligentTieringConfigurations) Inteligent Tiering Configurations.Bucket.Builder.inventories
(List<? extends Inventory> inventories) The inventory configuration of the bucket.Bucket.Builder.lifecycleRules
(List<? extends LifecycleRule> lifecycleRules) Rules that define how Amazon S3 manages objects during their lifetime.Bucket.Builder.metrics
(List<? extends BucketMetrics> metrics) The metrics configuration of this bucket.Bucket.Builder.notificationsHandlerRole
(IRole notificationsHandlerRole) The role to be used by the notifications handler.Bucket.Builder.objectOwnership
(ObjectOwnership objectOwnership) The objectOwnership of the bucket.Bucket.Builder.publicReadAccess
(Boolean publicReadAccess) Grants public read access to all objects in the bucket.Bucket.Builder.removalPolicy
(RemovalPolicy removalPolicy) Policy to apply when the bucket is removed from this stack.Bucket.Builder.serverAccessLogsBucket
(IBucket serverAccessLogsBucket) Destination bucket for the server access logs.Bucket.Builder.serverAccessLogsPrefix
(String serverAccessLogsPrefix) Optional log file prefix to use for the bucket's access logs.Bucket.Builder.transferAcceleration
(Boolean transferAcceleration) Whether this bucket should have transfer acceleration turned on or not.Whether this bucket should have versioning turned on or not.Bucket.Builder.websiteErrorDocument
(String websiteErrorDocument) The name of the error document (e.g.Bucket.Builder.websiteIndexDocument
(String websiteIndexDocument) The name of the index document (e.g.Bucket.Builder.websiteRedirect
(RedirectTarget websiteRedirect) Specifies the redirect behavior of all requests to a website endpoint of a bucket.Bucket.Builder.websiteRoutingRules
(List<? extends RoutingRule> websiteRoutingRules) Rules that define when a redirect is applied and the redirect behavior.