Bucket with content cleanup to allow bucket deletion when the stack will be destroyed
Project description
@cloudcomponents/cdk-deletable-bucket
Bucket with content cleanup to allow bucket deletion when the stack will be destroyed
Install
TypeScript/JavaScript:
npm i @cloudcomponents/cdk-deletable-bucket
Python:
pip install cloudcomponents.cdk-deletable-bucket
How to use
import { Construct, Stack, StackProps } from '@aws-cdk/core';
import { DeletableBucket } from '@cloudcomponents/cdk-deletable-bucket';
export class DeletableBucketStack extends Stack {
constructor(scope: Construct, id: string, props?: StackProps) {
super(scope, id, props);
new DeletableBucket(this, 'DeletableBucket', {
bucketName: 'bucket2delete',
forceDelete: true,
});
}
}
API Reference
See API.md.
Example
See more complete examples.
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for cloudcomponents.cdk-deletable-bucket-1.50.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f28f1d4e4550d85f0859b1e8117b128e549bcdf3e21cc0781060ab96ca64491c |
|
MD5 | da41ca88a151c44d97c30dd4bdf1f89d |
|
BLAKE2b-256 | 9cde3fc79b214658d0b2e1492eeae903c31243a5f87f47021a033945bced1717 |
Close
Hashes for cloudcomponents.cdk_deletable_bucket-1.50.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bfc1dc1c00587bb213087963c69083c902c370f895050c4e76cc4249a2a1cebf |
|
MD5 | 19c52d9071fe9d87832b94047b0ad7cc |
|
BLAKE2b-256 | 24013099430f57e7783935c269d1cb22be9f1ac637da7abef7a3767b81807243 |