CloudFormation custom resource handler to empty a bucket on a create, update and/or delete of a custom resource.
npm install @cfnutil/empty-bucket-lambdaCloudFormation custom resource handler to empty a bucket on a create, update and/or delete of a custom resource.
``typescript``
interface EmptyBucketProps {
Bucket: string;
EmptyOnCreate?: boolean;
EmptyOnDelete?: boolean;
EmptyOnUpdate?: boolean;
Prefix?: string;
}