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.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.s3.BucketProps
BucketProps.Builder, BucketProps.Jsii$Proxy -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedJsii$Proxy(BucketProps.Builder builder) Constructor that initializes the object based on literal property values passed by theBucketProps.Builder.protectedJsii$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.JsonNodefinal booleanfinal BucketAccessControlSpecifies a canned ACL that grants predefined permissions to the bucket.final BooleanWhether all objects should be automatically deleted when the bucket is removed from the stack or when the stack is deleted.final BlockPublicAccessThe block public access configuration of this bucket.final BooleanWhether Amazon S3 should use its own intermediary key to generate data keys.final StringPhysical name of this bucket.getCors()The CORS configuration of this bucket.final BucketEncryptionThe kind of server-side encryption to apply to this bucket.final IKeyExternal KMS key to use for bucket encryption.final BooleanEnforces SSL for requests.final BooleanWhether this bucket should send notifications to Amazon EventBridge or not.Intelligent 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 NumberEnforces minimum TLS version for requests.final IRoleThe role to be used by the notifications handler.final BooleanSkips notification validation of Amazon SQS, Amazon SNS, and Lambda destinations.final ObjectLockRetentionThe default retention mode and rules for S3 Object Lock.final BooleanEnable object lock on the bucket.final ObjectOwnershipThe objectOwnership of the bucket.final BooleanGrants public read access to all objects in the bucket.final RemovalPolicyPolicy to apply when the bucket is removed from this stack.final IRoleThe role to be used by the replication.final List<ReplicationRule> A container for one or more replication rules.final IBucketDestination bucket for the server access logs.final StringOptional log file prefix to use for the bucket's access logs.final TargetObjectKeyFormatOptional key format for log objects.final BooleanWhether this bucket should have transfer acceleration turned on or not.Indicates which default minimum object size behavior is applied to the lifecycle configuration.final BooleanWhether this bucket should have versioning turned on or not.final StringThe name of the error document (e.g.final StringThe name of the index document (e.g.final RedirectTargetSpecifies 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 inthashCode()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:BucketPropsSpecifies a canned ACL that grants predefined permissions to the bucket.Default: BucketAccessControl.PRIVATE
- Specified by:
getAccessControlin interfaceBucketProps
-
getAutoDeleteObjects
Description copied from interface:BucketPropsWhether all objects should be automatically deleted when the bucket is removed from the stack or when the stack is deleted.Requires the
removalPolicyto be set toRemovalPolicy.DESTROY.Warning if you have deployed a bucket with
autoDeleteObjects: true, switching this tofalsein a CDK version before1.126.0will lead to all objects in the bucket being deleted. Be sure to update your bucket resources by deploying with CDK version1.126.0or later before switching this value tofalse.Setting
autoDeleteObjectsto true on a bucket will adds3:PutBucketPolicyto 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:PutObjectto prevent race conditions with external bucket writers.Default: false
- Specified by:
getAutoDeleteObjectsin interfaceBucketProps
-
getBlockPublicAccess
Description copied from interface:BucketPropsThe 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:
getBlockPublicAccessin interfaceBucketProps- See Also:
-
getBucketKeyEnabled
Description copied from interface:BucketPropsWhether 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:
getBucketKeyEnabledin interfaceBucketProps
-
getBucketName
Description copied from interface:BucketPropsPhysical name of this bucket.Default: - Assigned by CloudFormation (recommended).
- Specified by:
getBucketNamein interfaceBucketProps
-
getCors
Description copied from interface:BucketPropsThe CORS configuration of this bucket.Default: - No CORS configuration.
- Specified by:
getCorsin interfaceBucketProps- See Also:
-
getEncryption
Description copied from interface:BucketPropsThe 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 `S3_MANAGED` otherwise.
- Specified by:
getEncryptionin interfaceBucketProps
-
getEncryptionKey
Description copied from interface:BucketPropsExternal KMS key to use for bucket encryption.The
encryptionproperty must be either not specified or set toKMSorDSSE. An error will be emitted ifencryptionis set toUNENCRYPTEDorS3_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:
getEncryptionKeyin interfaceBucketProps
-
getEnforceSSL
Description copied from interface:BucketPropsEnforces SSL for requests.S3.5 of the AWS Foundational Security Best Practices Regarding S3.
Default: false
- Specified by:
getEnforceSSLin interfaceBucketProps- See Also:
-
getEventBridgeEnabled
Description copied from interface:BucketPropsWhether this bucket should send notifications to Amazon EventBridge or not.Default: false
- Specified by:
getEventBridgeEnabledin interfaceBucketProps
-
getIntelligentTieringConfigurations
Description copied from interface:BucketPropsIntelligent Tiering Configurations.Default: No Intelligent Tiiering Configurations.
- Specified by:
getIntelligentTieringConfigurationsin interfaceBucketProps- See Also:
-
getInventories
Description copied from interface:BucketPropsThe inventory configuration of the bucket.Default: - No inventory configuration
- Specified by:
getInventoriesin interfaceBucketProps- See Also:
-
getLifecycleRules
Description copied from interface:BucketPropsRules that define how Amazon S3 manages objects during their lifetime.Default: - No lifecycle rules.
- Specified by:
getLifecycleRulesin interfaceBucketProps
-
getMetrics
Description copied from interface:BucketPropsThe metrics configuration of this bucket.Default: - No metrics configuration.
- Specified by:
getMetricsin interfaceBucketProps- See Also:
-
getMinimumTLSVersion
Description copied from interface:BucketPropsEnforces minimum TLS version for requests.Requires
enforceSSLto be enabled.Default: No minimum TLS version is enforced.
- Specified by:
getMinimumTLSVersionin interfaceBucketProps- See Also:
-
getNotificationsHandlerRole
Description copied from interface:BucketPropsThe role to be used by the notifications handler.Default: - a new role will be created.
- Specified by:
getNotificationsHandlerRolein interfaceBucketProps
-
getNotificationsSkipDestinationValidation
Description copied from interface:BucketPropsSkips notification validation of Amazon SQS, Amazon SNS, and Lambda destinations.Default: false
- Specified by:
getNotificationsSkipDestinationValidationin interfaceBucketProps
-
getObjectLockDefaultRetention
Description copied from interface:BucketPropsThe 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:
getObjectLockDefaultRetentionin interfaceBucketProps- See Also:
-
getObjectLockEnabled
Description copied from interface:BucketPropsEnable 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:
getObjectLockEnabledin interfaceBucketProps- See Also:
-
getObjectOwnership
Description copied from interface:BucketPropsThe 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:
getObjectOwnershipin interfaceBucketProps- See Also:
-
getPublicReadAccess
Description copied from interface:BucketPropsGrants public read access to all objects in the bucket.Similar to calling
bucket.grantPublicAccess()Default: false
- Specified by:
getPublicReadAccessin interfaceBucketProps
-
getRemovalPolicy
Description copied from interface:BucketPropsPolicy to apply when the bucket is removed from this stack.Default: - The bucket will be orphaned.
- Specified by:
getRemovalPolicyin interfaceBucketProps
-
getReplicationRole
Description copied from interface:BucketPropsThe role to be used by the replication.When setting this property, you must also set
replicationRules.Default: - a new role will be created.
- Specified by:
getReplicationRolein interfaceBucketProps
-
getReplicationRules
Description copied from interface:BucketPropsA container for one or more replication rules.Default: - No replication
- Specified by:
getReplicationRulesin interfaceBucketProps
-
getServerAccessLogsBucket
Description copied from interface:BucketPropsDestination bucket for the server access logs.Default: - If "serverAccessLogsPrefix" undefined - access logs disabled, otherwise - log to current bucket.
- Specified by:
getServerAccessLogsBucketin interfaceBucketProps
-
getServerAccessLogsPrefix
Description copied from interface:BucketPropsOptional 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:
getServerAccessLogsPrefixin interfaceBucketProps
-
getTargetObjectKeyFormat
Description copied from interface:BucketPropsOptional key format for log objects.Default: - the default key format is: [DestinationPrefix][YYYY]-[MM]-[DD]-[hh]-[mm]-[ss]-[UniqueString]
- Specified by:
getTargetObjectKeyFormatin interfaceBucketProps
-
getTransferAcceleration
Description copied from interface:BucketPropsWhether this bucket should have transfer acceleration turned on or not.Default: false
- Specified by:
getTransferAccelerationin interfaceBucketProps
-
getTransitionDefaultMinimumObjectSize
Description copied from interface:BucketPropsIndicates 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
objectSizeGreaterThanorobjectSizeLessThanforlifecycleRulesproperty. 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:
getTransitionDefaultMinimumObjectSizein interfaceBucketProps
-
getVersioned
Description copied from interface:BucketPropsWhether this bucket should have versioning turned on or not.Default: false (unless object lock is enabled, then true)
- Specified by:
getVersionedin interfaceBucketProps
-
getWebsiteErrorDocument
Description copied from interface:BucketPropsThe name of the error document (e.g. "404.html") for the website.websiteIndexDocumentmust also be set if this is set.Default: - No error document.
- Specified by:
getWebsiteErrorDocumentin interfaceBucketProps
-
getWebsiteIndexDocument
Description copied from interface:BucketPropsThe 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:
getWebsiteIndexDocumentin interfaceBucketProps
-
getWebsiteRedirect
Description copied from interface:BucketPropsSpecifies 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:
getWebsiteRedirectin interfaceBucketProps
-
getWebsiteRoutingRules
Description copied from interface:BucketPropsRules that define when a redirect is applied and the redirect behavior.Default: - No redirection rules.
- Specified by:
getWebsiteRoutingRulesin interfaceBucketProps
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()- Specified by:
$jsii$toJsonin interfacesoftware.amazon.jsii.JsiiSerializable
-
equals
-
hashCode
public final int hashCode()
-