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.49.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d6fbbe15e82e0b3c0f48b4eb3b3c6d958a43ee4605211ffbf1f3be813b4d599 |
|
MD5 | 7678d643615a735525ecda72daaa9c46 |
|
BLAKE2b-256 | 27381350b0b02bdb997fcdd1d4e46c490b613c1cb967a2a817399c292eb3174c |
Close
Hashes for cloudcomponents.cdk_deletable_bucket-1.49.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0734d169bb61eca123713767524d5d2fe588821cb927067bf1e8246ea0cfe802 |
|
MD5 | f75a619f850fc20f975709e40c8a5d64 |
|
BLAKE2b-256 | 4f348cbbd5e6a2f2977c22e51b50b2faad804fb131e0347211a40fcba6cf8e2f |