@cfnutil/empty-bucket-lambda

CloudFormation custom resource handler to empty a bucket on a create, update and/or delete of a custom resource.

Usage no npm install needed!

<script type="module">
  import cfnutilEmptyBucketLambda from 'https://cdn.skypack.dev/@cfnutil/empty-bucket-lambda';
</script>

README

@cfn-util/empty-bucket-lambda

CloudFormation custom resource handler to empty a bucket on a create, update and/or delete of a custom resource.

Resource Properties

interface EmptyBucketProps {
  Bucket: string;
  EmptyOnCreate?: boolean;
  EmptyOnDelete?: boolean;
  EmptyOnUpdate?: boolean;
  Prefix?: string;
}