public static final class BucketProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements BucketProps
BucketProps
BucketProps.Builder, BucketProps.Jsii$Proxy
Modifier | Constructor and Description |
---|---|
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
|
Modifier and Type | Method and Description |
---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(java.lang.Object o) |
BucketAccessControl |
getAccessControl()
Specifies a canned ACL that grants predefined permissions to the bucket.
|
java.lang.Boolean |
getAutoDeleteObjects()
Whether all objects should be automatically deleted when the bucket is removed from the stack or when the stack is deleted.
|
BlockPublicAccess |
getBlockPublicAccess()
The block public access configuration of this bucket.
|
java.lang.Boolean |
getBucketKeyEnabled()
Specifies whether Amazon S3 should use an S3 Bucket Key with server-side encryption using KMS (SSE-KMS) for new objects in the bucket.
|
java.lang.String |
getBucketName()
Physical name of this bucket.
|
java.util.List<CorsRule> |
getCors()
The CORS configuration of this bucket.
|
BucketEncryption |
getEncryption()
The kind of server-side encryption to apply to this bucket.
|
IKey |
getEncryptionKey()
External KMS key to use for bucket encryption.
|
java.lang.Boolean |
getEnforceSSL()
Enforces SSL for requests.
|
java.lang.Boolean |
getEventBridgeEnabled()
Whether this bucket should send notifications to Amazon EventBridge or not.
|
java.util.List<IntelligentTieringConfiguration> |
getIntelligentTieringConfigurations()
Inteligent Tiering Configurations.
|
java.util.List<Inventory> |
getInventories()
The inventory configuration of the bucket.
|
java.util.List<LifecycleRule> |
getLifecycleRules()
Rules that define how Amazon S3 manages objects during their lifetime.
|
java.util.List<BucketMetrics> |
getMetrics()
The metrics configuration of this bucket.
|
IRole |
getNotificationsHandlerRole()
The role to be used by the notifications handler.
|
ObjectOwnership |
getObjectOwnership()
The objectOwnership of the bucket.
|
java.lang.Boolean |
getPublicReadAccess()
Grants public read access to all objects in the bucket.
|
RemovalPolicy |
getRemovalPolicy()
Policy to apply when the bucket is removed from this stack.
|
IBucket |
getServerAccessLogsBucket()
Destination bucket for the server access logs.
|
java.lang.String |
getServerAccessLogsPrefix()
Optional log file prefix to use for the bucket's access logs.
|
java.lang.Boolean |
getTransferAcceleration()
Whether this bucket should have transfer acceleration turned on or not.
|
java.lang.Boolean |
getVersioned()
Whether this bucket should have versioning turned on or not.
|
java.lang.String |
getWebsiteErrorDocument()
The name of the error document (e.g.
|
java.lang.String |
getWebsiteIndexDocument()
The name of the index document (e.g.
|
RedirectTarget |
getWebsiteRedirect()
Specifies the redirect behavior of all requests to a website endpoint of a bucket.
|
java.util.List<RoutingRule> |
getWebsiteRoutingRules()
Rules that define when a redirect is applied and the redirect behavior.
|
int |
hashCode() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
builder
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef
- Reference to the JSII managed object.public final BucketAccessControl getAccessControl()
BucketProps
Default: BucketAccessControl.PRIVATE
getAccessControl
in interface BucketProps
public final java.lang.Boolean getAutoDeleteObjects()
BucketProps
Requires the removalPolicy
to be set to RemovalPolicy.DESTROY
.
Warning if you have deployed a bucket with autoDeleteObjects: true
,
switching this to false
in a CDK version before 1.126.0
will lead to
all objects in the bucket being deleted. Be sure to update your bucket resources
by deploying with CDK version 1.126.0
or later before switching this value to false
.
Default: false
getAutoDeleteObjects
in interface BucketProps
public final BlockPublicAccess getBlockPublicAccess()
BucketProps
Default: - CloudFormation defaults will apply. New buckets and objects don't allow public access, but users can modify bucket policies or object permissions to allow public access
getBlockPublicAccess
in interface BucketProps
public final java.lang.Boolean getBucketKeyEnabled()
BucketProps
Only relevant, when Encryption is set to {@link BucketEncryption.KMS}
Default: - false
getBucketKeyEnabled
in interface BucketProps
public final java.lang.String getBucketName()
BucketProps
Default: - Assigned by CloudFormation (recommended).
getBucketName
in interface BucketProps
public final java.util.List<CorsRule> getCors()
BucketProps
Default: - No CORS configuration.
getCors
in interface BucketProps
public final BucketEncryption getEncryption()
BucketProps
If you choose KMS, you can specify a KMS key via encryptionKey
. If
encryption key is not specified, a key will automatically be created.
Default: - `Kms` if `encryptionKey` is specified, or `Unencrypted` otherwise.
getEncryption
in interface BucketProps
public final IKey getEncryptionKey()
BucketProps
The 'encryption' property must be either not specified or set to "Kms". An error will be emitted if encryption is set to "Unencrypted" or "Managed".
Default: - If encryption is set to "Kms" and this property is undefined, a new KMS key will be created and associated with this bucket.
getEncryptionKey
in interface BucketProps
public final java.lang.Boolean getEnforceSSL()
BucketProps
S3.5 of the AWS Foundational Security Best Practices Regarding S3.
Default: false
getEnforceSSL
in interface BucketProps
public final java.lang.Boolean getEventBridgeEnabled()
BucketProps
Default: false
getEventBridgeEnabled
in interface BucketProps
public final java.util.List<IntelligentTieringConfiguration> getIntelligentTieringConfigurations()
BucketProps
Default: No Intelligent Tiiering Configurations.
getIntelligentTieringConfigurations
in interface BucketProps
public final java.util.List<Inventory> getInventories()
BucketProps
Default: - No inventory configuration
getInventories
in interface BucketProps
public final java.util.List<LifecycleRule> getLifecycleRules()
BucketProps
Default: - No lifecycle rules.
getLifecycleRules
in interface BucketProps
public final java.util.List<BucketMetrics> getMetrics()
BucketProps
Default: - No metrics configuration.
getMetrics
in interface BucketProps
public final IRole getNotificationsHandlerRole()
BucketProps
Default: - a new role will be created.
getNotificationsHandlerRole
in interface BucketProps
public final ObjectOwnership getObjectOwnership()
BucketProps
Default: - No ObjectOwnership configuration, uploading account will own the object.
getObjectOwnership
in interface BucketProps
public final java.lang.Boolean getPublicReadAccess()
BucketProps
Similar to calling bucket.grantPublicAccess()
Default: false
getPublicReadAccess
in interface BucketProps
public final RemovalPolicy getRemovalPolicy()
BucketProps
Default: - The bucket will be orphaned.
getRemovalPolicy
in interface BucketProps
public final IBucket getServerAccessLogsBucket()
BucketProps
Default: - If "serverAccessLogsPrefix" undefined - access logs disabled, otherwise - log to current bucket.
getServerAccessLogsBucket
in interface BucketProps
public final java.lang.String getServerAccessLogsPrefix()
BucketProps
If defined without "serverAccessLogsBucket", enables access logs to current bucket with this prefix.
Default: - No log file prefix
getServerAccessLogsPrefix
in interface BucketProps
public final java.lang.Boolean getTransferAcceleration()
BucketProps
Default: false
getTransferAcceleration
in interface BucketProps
public final java.lang.Boolean getVersioned()
BucketProps
Default: false
getVersioned
in interface BucketProps
public final java.lang.String getWebsiteErrorDocument()
BucketProps
Default: - No error document.
getWebsiteErrorDocument
in interface BucketProps
public final java.lang.String getWebsiteIndexDocument()
BucketProps
Default: - No index document.
getWebsiteIndexDocument
in interface BucketProps
public final RedirectTarget getWebsiteRedirect()
BucketProps
If you specify this property, you can't specify "websiteIndexDocument", "websiteErrorDocument" nor , "websiteRoutingRules".
Default: - No redirection.
getWebsiteRedirect
in interface BucketProps
public final java.util.List<RoutingRule> getWebsiteRoutingRules()
BucketProps
Default: - No redirection rules.
getWebsiteRoutingRules
in interface BucketProps
public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
public final boolean equals(java.lang.Object o)
public final int hashCode()