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 { DeletableBucket } from '@cloudcomponents/cdk-deletable-bucket';
import { Stack, StackProps } from 'aws-cdk-lib';
import { Construct } from 'constructs';
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-2.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 41dbe9ad31d4eb5c2e4f78ccb56a36c2b99a86b3e8dcf2844cae75433f41e6ee |
|
MD5 | 6dd88bea2f4fd7db796e0bd89ce01de8 |
|
BLAKE2b-256 | a413960f60d8ce57b77b6eb0a6f38b8e36570aba50765cc03df564c35e10e1ac |
Close
Hashes for cloudcomponents.cdk_deletable_bucket-2.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6603ed411c2a93171913f7e8a6431923d457acc75e51903651a59e348ab56f05 |
|
MD5 | 6cc65e4b2be70d77d7b44e52e363a336 |
|
BLAKE2b-256 | 27fcdbffd45655247ac86147ae0ec40071fa73975bbcbb2d8963126315982115 |