Optional ReadonlyaccessOptional ReadonlycacheSystem-defined cache-control metadata to be set on all objects in the deployment.
Optional ReadonlycontentSystem-defined cache-disposition metadata to be set on all objects in the deployment.
Optional ReadonlycontentSystem-defined content-encoding metadata to be set on all objects in the deployment.
Optional ReadonlycontentSystem-defined content-language metadata to be set on all objects in the deployment.
Optional ReadonlycontentSystem-defined content-type metadata to be set on all objects in the deployment.
ReadonlydestinationThe S3 bucket to sync the contents of the zip file to.
Optional ReadonlydestinationKey prefix in the destination bucket. Must be <=104 characters
If it's set with prune: true, it will only prune files with the prefix.
We recommend to always configure the destinationKeyPrefix property. This will prevent the deployment
from accidentally deleting data that wasn't uploaded by it.
Optional ReadonlydistributionThe CloudFront distribution using the destination bucket as an origin. Files in the distribution's edge caches will be invalidated after files are uploaded to the destination bucket.
Optional ReadonlydistributionThe file paths to invalidate in the CloudFront distribution.
Optional ReadonlyephemeralThe size of the AWS Lambda function’s /tmp directory in MiB.
Optional ReadonlyexcludeIf this is set, matching files or objects will be excluded from the deployment's sync command. This can be used to exclude a file from being pruned in the destination bucket.
If you want to just exclude files from the deployment package (which excludes these files
evaluated when invalidating the asset), you should leverage the exclude property of
AssetOptions when defining your source.
OptionalexpirationOptional ReadonlyexpiresSystem-defined expires metadata to be set on all objects in the deployment.
Optional ReadonlyextractIf this is set, the zip file will be synced to the destination S3 bucket and extracted. If false, the file will remain zipped in the destination bucket.
Optional ReadonlyincludeIf this is set, matching files or objects will be included with the deployment's sync
command. Since all files from the deployment package are included by default, this property
is usually leveraged alongside an exclude filter.
Optional ReadonlylogThe Log Group used for logging of events emitted by the custom resource's lambda function.
Providing a user-controlled log group was rolled out to commercial regions on 2023-11-16. If you are deploying to another type of region, please check regional availability first.
Optional ReadonlylogThe number of days that the lambda function's log events are kept in CloudWatch Logs.
This is a legacy API and we strongly recommend you migrate to logGroup if you can.
logGroup allows you to create a fully customizable log group and instruct the Lambda function to send logs to it.
Optional ReadonlymemoryThe amount of memory (in MiB) to allocate to the AWS Lambda function which replicates the files from the CDK bucket to the destination bucket.
If you are deploying large files, you will need to increase this number accordingly.
Optional ReadonlymetadataUser-defined object metadata to be set on all objects in the deployment
OptionalnoncurrentOptional ReadonlyoutputIf set to false, the custom resource will not send back the SourceObjectKeys.
This is useful when you are facing the error Response object is too long
Optional ReadonlypruneBy default, files in the destination bucket that don't exist in the source will be deleted when the BucketDeployment resource is created or updated.
If this is set to false, files in the destination bucket that do not exist in the asset, will NOT be deleted during deployment (create/update).
Optional ReadonlyretainIf this is set to "false", the destination files will be deleted when the resource is deleted or the destination is updated.
NOTICE: Configuring this to "false" might have operational implications. Please visit to the package documentation referred below to make sure you fully understand those implications.
Optional ReadonlyroleExecution role associated with this function
Optional ReadonlysecurityThe list of security groups to associate with the lambda handlers network interfaces.
Only used if 'vpc' is supplied.
Optional ReadonlyserverSystem-defined x-amz-server-side-encryption metadata to be set on all objects in the deployment.
Optional ReadonlyserverSystem-defined x-amz-server-side-encryption-aws-kms-key-id metadata to be set on all objects in the deployment.
Optional ReadonlyserverSystem-defined x-amz-server-side-encryption-customer-algorithm metadata to be set on all objects in the deployment. Warning: This is not a useful parameter until this bug is fixed: https://github.com/aws/aws-cdk/issues/6080
Optional ReadonlysignIf set to true, uploads will precompute the value of x-amz-content-sha256
and include it in the signed S3 request headers.
ReadonlysourcesThe sources from which to deploy the contents of this bucket.
Optional ReadonlystorageSystem-defined x-amz-storage-class metadata to be set on all objects in the deployment.
Optional ReadonlyuseMount an EFS file system. Enable this if your assets are large and you encounter disk space errors. Enabling this option will require a VPC to be specified.
Optional ReadonlyvpcThe VPC network to place the deployment lambda handler in.
This is required if useEfs is set.
Optional ReadonlyvpcWhere in the VPC to place the deployment lambda handler. Only used if 'vpc' is supplied.
Optional ReadonlywaitIn case of using a cloudfront distribution, if this property is set to false then the custom resource will not wait and verify for Cloudfront invalidation to complete. This may speed up deployment and avoid intermittent Cloudfront issues. However, this is risky and not recommended as cache invalidation can silently fail.
Optional ReadonlywebsiteSystem-defined x-amz-website-redirect-location metadata to be set on all objects in the deployment.
System-defined x-amz-acl metadata to be set on all objects in the deployment.