Class BucketProps.Jsii$Proxy
- All Implemented Interfaces:
BucketProps
,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
BucketProps
BucketProps
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.s3.BucketProps
BucketProps.Builder, BucketProps.Jsii$Proxy
-
Constructor Summary
ModifierConstructorDescriptionprotected
Jsii$Proxy
(BucketProps.Builder builder) Constructor that initializes the object based on literal property values passed by theBucketProps.Builder
.protected
Jsii$Proxy
(software.amazon.jsii.JsiiObjectRef objRef) Constructor that initializes the object based on values retrieved from the JsiiObject. -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.JsonNode
final boolean
final BucketAccessControl
Specifies a canned ACL that grants predefined permissions to the bucket.final Boolean
Whether all objects should be automatically deleted when the bucket is removed from the stack or when the stack is deleted.final BlockPublicAccess
The block public access configuration of this bucket.final Boolean
Whether Amazon S3 should use its own intermediary key to generate data keys.final String
Physical name of this bucket.getCors()
The CORS configuration of this bucket.final BucketEncryption
The kind of server-side encryption to apply to this bucket.final IKey
External KMS key to use for bucket encryption.final Boolean
Enforces SSL for requests.final Boolean
Whether this bucket should send notifications to Amazon EventBridge or not.Inteligent Tiering Configurations.The inventory configuration of the bucket.final List<LifecycleRule>
Rules that define how Amazon S3 manages objects during their lifetime.final List<BucketMetrics>
The metrics configuration of this bucket.final Number
Enforces minimum TLS version for requests.final IRole
The role to be used by the notifications handler.final Boolean
Skips notification validation of Amazon SQS, Amazon SNS, and Lambda destinations.final ObjectLockRetention
The default retention mode and rules for S3 Object Lock.final Boolean
Enable object lock on the bucket.final ObjectOwnership
The objectOwnership of the bucket.final Boolean
Grants public read access to all objects in the bucket.final RemovalPolicy
Policy to apply when the bucket is removed from this stack.final IBucket
Destination bucket for the server access logs.final String
Optional log file prefix to use for the bucket's access logs.final TargetObjectKeyFormat
Optional key format for log objects.final Boolean
Whether this bucket should have transfer acceleration turned on or not.Indicates which default minimum object size behavior is applied to the lifecycle configuration.final Boolean
Whether this bucket should have versioning turned on or not.final String
The name of the error document (e.g.final String
The name of the index document (e.g.final RedirectTarget
Specifies the redirect behavior of all requests to a website endpoint of a bucket.final List<RoutingRule>
Rules that define when a redirect is applied and the redirect behavior.final int
hashCode()
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
-
Constructor Details
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef) Constructor that initializes the object based on values retrieved from the JsiiObject.- Parameters:
objRef
- Reference to the JSII managed object.
-
Jsii$Proxy
Constructor that initializes the object based on literal property values passed by theBucketProps.Builder
.
-
-
Method Details
-
getAccessControl
Description copied from interface:BucketProps
Specifies a canned ACL that grants predefined permissions to the bucket.Default: BucketAccessControl.PRIVATE
- Specified by:
getAccessControl
in interfaceBucketProps
-
getAutoDeleteObjects
Description copied from interface:BucketProps
Whether all objects should be automatically deleted when the bucket is removed from the stack or when the stack is deleted.Requires the
removalPolicy
to be set toRemovalPolicy.DESTROY
.Warning if you have deployed a bucket with
autoDeleteObjects: true
, switching this tofalse
in a CDK version before1.126.0
will lead to all objects in the bucket being deleted. Be sure to update your bucket resources by deploying with CDK version1.126.0
or later before switching this value tofalse
.Setting
autoDeleteObjects
to true on a bucket will adds3:PutBucketPolicy
to the bucket policy. This is because during bucket deletion, the custom resource provider needs to update the bucket policy by adding a deny policy fors3:PutObject
to prevent race conditions with external bucket writers.Default: false
- Specified by:
getAutoDeleteObjects
in interfaceBucketProps
-
getBlockPublicAccess
Description copied from interface:BucketProps
The block public access configuration of this bucket.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
- Specified by:
getBlockPublicAccess
in interfaceBucketProps
- See Also:
-
getBucketKeyEnabled
Description copied from interface:BucketProps
Whether Amazon S3 should use its own intermediary key to generate data keys.Only relevant when using KMS for encryption.
- If not enabled, every object GET and PUT will cause an API call to KMS (with the attendant cost implications of that).
- If enabled, S3 will use its own time-limited key instead.
Only relevant, when Encryption is not set to
BucketEncryption.UNENCRYPTED
.Default: - false
- Specified by:
getBucketKeyEnabled
in interfaceBucketProps
-
getBucketName
Description copied from interface:BucketProps
Physical name of this bucket.Default: - Assigned by CloudFormation (recommended).
- Specified by:
getBucketName
in interfaceBucketProps
-
getCors
Description copied from interface:BucketProps
The CORS configuration of this bucket.Default: - No CORS configuration.
- Specified by:
getCors
in interfaceBucketProps
- See Also:
-
getEncryption
Description copied from interface:BucketProps
The kind of server-side encryption to apply to this bucket.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. But if `UNENCRYPTED` is specified, the bucket will be encrypted as `S3_MANAGED` automatically.
- Specified by:
getEncryption
in interfaceBucketProps
-
getEncryptionKey
Description copied from interface:BucketProps
External KMS key to use for bucket encryption.The
encryption
property must be either not specified or set toKMS
orDSSE
. An error will be emitted ifencryption
is set toUNENCRYPTED
orS3_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.
- Specified by:
getEncryptionKey
in interfaceBucketProps
-
getEnforceSSL
Description copied from interface:BucketProps
Enforces SSL for requests.S3.5 of the AWS Foundational Security Best Practices Regarding S3.
Default: false
- Specified by:
getEnforceSSL
in interfaceBucketProps
- See Also:
-
getEventBridgeEnabled
Description copied from interface:BucketProps
Whether this bucket should send notifications to Amazon EventBridge or not.Default: false
- Specified by:
getEventBridgeEnabled
in interfaceBucketProps
-
getIntelligentTieringConfigurations
Description copied from interface:BucketProps
Inteligent Tiering Configurations.Default: No Intelligent Tiiering Configurations.
- Specified by:
getIntelligentTieringConfigurations
in interfaceBucketProps
- See Also:
-
getInventories
Description copied from interface:BucketProps
The inventory configuration of the bucket.Default: - No inventory configuration
- Specified by:
getInventories
in interfaceBucketProps
- See Also:
-
getLifecycleRules
Description copied from interface:BucketProps
Rules that define how Amazon S3 manages objects during their lifetime.Default: - No lifecycle rules.
- Specified by:
getLifecycleRules
in interfaceBucketProps
-
getMetrics
Description copied from interface:BucketProps
The metrics configuration of this bucket.Default: - No metrics configuration.
- Specified by:
getMetrics
in interfaceBucketProps
- See Also:
-
getMinimumTLSVersion
Description copied from interface:BucketProps
Enforces minimum TLS version for requests.Requires
enforceSSL
to be enabled.Default: No minimum TLS version is enforced.
- Specified by:
getMinimumTLSVersion
in interfaceBucketProps
- See Also:
-
getNotificationsHandlerRole
Description copied from interface:BucketProps
The role to be used by the notifications handler.Default: - a new role will be created.
- Specified by:
getNotificationsHandlerRole
in interfaceBucketProps
-
getNotificationsSkipDestinationValidation
Description copied from interface:BucketProps
Skips notification validation of Amazon SQS, Amazon SNS, and Lambda destinations.Default: false
- Specified by:
getNotificationsSkipDestinationValidation
in interfaceBucketProps
-
getObjectLockDefaultRetention
Description copied from interface:BucketProps
The default retention mode and rules for S3 Object Lock.Default retention can be configured after a bucket is created if the bucket already has object lock enabled. Enabling object lock for existing buckets is not supported.
Default: no default retention period
- Specified by:
getObjectLockDefaultRetention
in interfaceBucketProps
- See Also:
-
getObjectLockEnabled
Description copied from interface:BucketProps
Enable object lock on the bucket.Enabling object lock for existing buckets is not supported. Object lock must be enabled when the bucket is created.
Default: false, unless objectLockDefaultRetention is set (then, true)
- Specified by:
getObjectLockEnabled
in interfaceBucketProps
- See Also:
-
getObjectOwnership
Description copied from interface:BucketProps
The objectOwnership of the bucket.Default: - No ObjectOwnership configuration. By default, Amazon S3 sets Object Ownership to `Bucket owner enforced`. This means ACLs are disabled and the bucket owner will own every object.
- Specified by:
getObjectOwnership
in interfaceBucketProps
- See Also:
-
getPublicReadAccess
Description copied from interface:BucketProps
Grants public read access to all objects in the bucket.Similar to calling
bucket.grantPublicAccess()
Default: false
- Specified by:
getPublicReadAccess
in interfaceBucketProps
-
getRemovalPolicy
Description copied from interface:BucketProps
Policy to apply when the bucket is removed from this stack.Default: - The bucket will be orphaned.
- Specified by:
getRemovalPolicy
in interfaceBucketProps
-
getServerAccessLogsBucket
Description copied from interface:BucketProps
Destination bucket for the server access logs.Default: - If "serverAccessLogsPrefix" undefined - access logs disabled, otherwise - log to current bucket.
- Specified by:
getServerAccessLogsBucket
in interfaceBucketProps
-
getServerAccessLogsPrefix
Description copied from interface:BucketProps
Optional log file prefix to use for the bucket's access logs.If defined without "serverAccessLogsBucket", enables access logs to current bucket with this prefix.
Default: - No log file prefix
- Specified by:
getServerAccessLogsPrefix
in interfaceBucketProps
-
getTargetObjectKeyFormat
Description copied from interface:BucketProps
Optional key format for log objects.Default: - the default key format is: [DestinationPrefix][YYYY]-[MM]-[DD]-[hh]-[mm]-[ss]-[UniqueString]
- Specified by:
getTargetObjectKeyFormat
in interfaceBucketProps
-
getTransferAcceleration
Description copied from interface:BucketProps
Whether this bucket should have transfer acceleration turned on or not.Default: false
- Specified by:
getTransferAcceleration
in interfaceBucketProps
-
getTransitionDefaultMinimumObjectSize
Description copied from interface:BucketProps
Indicates which default minimum object size behavior is applied to the lifecycle configuration.To customize the minimum object size for any transition you can add a filter that specifies a custom
objectSizeGreaterThan
orobjectSizeLessThan
forlifecycleRules
property. Custom filters always take precedence over the default transition behavior.Default: - TransitionDefaultMinimumObjectSize.VARIES_BY_STORAGE_CLASS before September 2024, otherwise TransitionDefaultMinimumObjectSize.ALL_STORAGE_CLASSES_128_K.
- Specified by:
getTransitionDefaultMinimumObjectSize
in interfaceBucketProps
-
getVersioned
Description copied from interface:BucketProps
Whether this bucket should have versioning turned on or not.Default: false (unless object lock is enabled, then true)
- Specified by:
getVersioned
in interfaceBucketProps
-
getWebsiteErrorDocument
Description copied from interface:BucketProps
The name of the error document (e.g. "404.html") for the website.websiteIndexDocument
must also be set if this is set.Default: - No error document.
- Specified by:
getWebsiteErrorDocument
in interfaceBucketProps
-
getWebsiteIndexDocument
Description copied from interface:BucketProps
The name of the index document (e.g. "index.html") for the website. Enables static website hosting for this bucket.Default: - No index document.
- Specified by:
getWebsiteIndexDocument
in interfaceBucketProps
-
getWebsiteRedirect
Description copied from interface:BucketProps
Specifies the redirect behavior of all requests to a website endpoint of a bucket.If you specify this property, you can't specify "websiteIndexDocument", "websiteErrorDocument" nor , "websiteRoutingRules".
Default: - No redirection.
- Specified by:
getWebsiteRedirect
in interfaceBucketProps
-
getWebsiteRoutingRules
Description copied from interface:BucketProps
Rules that define when a redirect is applied and the redirect behavior.Default: - No redirection rules.
- Specified by:
getWebsiteRoutingRules
in interfaceBucketProps
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()- Specified by:
$jsii$toJson
in interfacesoftware.amazon.jsii.JsiiSerializable
-
equals
-
hashCode
public final int hashCode()
-