@Stability(value=Stable) @Internal public static final class BucketProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements BucketProps
BucketPropssoftware.amazon.jsii.JsiiObject.InitializationModeBucketProps.Builder, BucketProps.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
Jsii$Proxy(BucketProps.Builder builder)
Constructor that initializes the object based on literal property values passed by the
BucketProps.Builder. |
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(Object o) |
BucketAccessControl |
getAccessControl()
Specifies a canned ACL that grants predefined permissions to the bucket.
|
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.
|
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.
|
String |
getBucketName()
Physical name of this bucket.
|
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.
|
Boolean |
getEnforceSSL()
Enforces SSL for requests.
|
Boolean |
getEventBridgeEnabled()
Whether this bucket should send notifications to Amazon EventBridge or not.
|
List<IntelligentTieringConfiguration> |
getIntelligentTieringConfigurations()
Inteligent Tiering Configurations.
|
List<Inventory> |
getInventories()
The inventory configuration of the bucket.
|
List<LifecycleRule> |
getLifecycleRules()
Rules that define how Amazon S3 manages objects during their lifetime.
|
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.
|
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.
|
String |
getServerAccessLogsPrefix()
Optional log file prefix to use for the bucket's access logs.
|
Boolean |
getTransferAcceleration()
Whether this bucket should have transfer acceleration turned on or not.
|
Boolean |
getVersioned()
Whether this bucket should have versioning turned on or not.
|
String |
getWebsiteErrorDocument()
The name of the error document (e.g.
|
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.
|
List<RoutingRule> |
getWebsiteRoutingRules()
Rules that define when a redirect is applied and the redirect behavior.
|
int |
hashCode() |
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitbuilderprotected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef - Reference to the JSII managed object.protected Jsii$Proxy(BucketProps.Builder builder)
BucketProps.Builder.public final BucketAccessControl getAccessControl()
BucketPropsDefault: BucketAccessControl.PRIVATE
getAccessControl in interface BucketPropspublic final 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 BucketPropspublic final BlockPublicAccess getBlockPublicAccess()
BucketPropsDefault: - 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 BucketPropspublic final Boolean getBucketKeyEnabled()
BucketPropsOnly relevant, when Encryption is set to {@link BucketEncryption.KMS}
Default: - false
getBucketKeyEnabled in interface BucketPropspublic final String getBucketName()
BucketPropsDefault: - Assigned by CloudFormation (recommended).
getBucketName in interface BucketPropspublic final List<CorsRule> getCors()
BucketPropsDefault: - No CORS configuration.
getCors in interface BucketPropspublic 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 BucketPropspublic final IKey getEncryptionKey()
BucketPropsThe '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 BucketPropspublic final Boolean getEnforceSSL()
BucketPropsS3.5 of the AWS Foundational Security Best Practices Regarding S3.
Default: false
getEnforceSSL in interface BucketPropspublic final Boolean getEventBridgeEnabled()
BucketPropsDefault: false
getEventBridgeEnabled in interface BucketPropspublic final List<IntelligentTieringConfiguration> getIntelligentTieringConfigurations()
BucketPropsDefault: No Intelligent Tiiering Configurations.
getIntelligentTieringConfigurations in interface BucketPropspublic final List<Inventory> getInventories()
BucketPropsDefault: - No inventory configuration
getInventories in interface BucketPropspublic final List<LifecycleRule> getLifecycleRules()
BucketPropsDefault: - No lifecycle rules.
getLifecycleRules in interface BucketPropspublic final List<BucketMetrics> getMetrics()
BucketPropsDefault: - No metrics configuration.
getMetrics in interface BucketPropspublic final IRole getNotificationsHandlerRole()
BucketPropsDefault: - a new role will be created.
getNotificationsHandlerRole in interface BucketPropspublic final ObjectOwnership getObjectOwnership()
BucketPropsDefault: - No ObjectOwnership configuration, uploading account will own the object.
getObjectOwnership in interface BucketPropspublic final Boolean getPublicReadAccess()
BucketProps
Similar to calling bucket.grantPublicAccess()
Default: false
getPublicReadAccess in interface BucketPropspublic final RemovalPolicy getRemovalPolicy()
BucketPropsDefault: - The bucket will be orphaned.
getRemovalPolicy in interface BucketPropspublic final IBucket getServerAccessLogsBucket()
BucketPropsDefault: - If "serverAccessLogsPrefix" undefined - access logs disabled, otherwise - log to current bucket.
getServerAccessLogsBucket in interface BucketPropspublic final String getServerAccessLogsPrefix()
BucketPropsIf defined without "serverAccessLogsBucket", enables access logs to current bucket with this prefix.
Default: - No log file prefix
getServerAccessLogsPrefix in interface BucketPropspublic final Boolean getTransferAcceleration()
BucketPropsDefault: false
getTransferAcceleration in interface BucketPropspublic final Boolean getVersioned()
BucketPropsDefault: false
getVersioned in interface BucketPropspublic final String getWebsiteErrorDocument()
BucketPropsDefault: - No error document.
getWebsiteErrorDocument in interface BucketPropspublic final String getWebsiteIndexDocument()
BucketPropsDefault: - No index document.
getWebsiteIndexDocument in interface BucketPropspublic final RedirectTarget getWebsiteRedirect()
BucketPropsIf you specify this property, you can't specify "websiteIndexDocument", "websiteErrorDocument" nor , "websiteRoutingRules".
Default: - No redirection.
getWebsiteRedirect in interface BucketPropspublic final List<RoutingRule> getWebsiteRoutingRules()
BucketPropsDefault: - No redirection rules.
getWebsiteRoutingRules in interface BucketProps@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson in interface software.amazon.jsii.JsiiSerializableCopyright © 2022. All rights reserved.