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 BooleanSpecifies whether Amazon S3 should use an S3 Bucket Key with server-side encryption using KMS (SSE-KMS) for new objects in the bucket.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.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 IRoleThe role to be used by the notifications handler.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 IBucketDestination bucket for the server access logs.final StringOptional log file prefix to use for the bucket's access logs.final BooleanWhether this bucket should have transfer acceleration turned on or not.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.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:BucketPropsSpecifies whether Amazon S3 should use an S3 Bucket Key with server-side encryption using KMS (SSE-KMS) for new objects in the bucket.Only relevant, when Encryption is set to
BucketEncryption.KMSDefault: - 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 `Unencrypted` otherwise.
- Specified by:
getEncryptionin interfaceBucketProps
-
getEncryptionKey
Description copied from interface:BucketPropsExternal KMS key to use for bucket encryption.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.
- 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:BucketPropsInteligent 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:
-
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
-
getObjectOwnership
Description copied from interface:BucketPropsThe objectOwnership of the bucket.Default: - No ObjectOwnership configuration, uploading account will own the 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
-
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
-
getTransferAcceleration
Description copied from interface:BucketPropsWhether this bucket should have transfer acceleration turned on or not.Default: false
- Specified by:
getTransferAccelerationin interfaceBucketProps
-
getVersioned
Description copied from interface:BucketPropsWhether this bucket should have versioning turned on or not.Default: false
- 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()
-