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.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 71c42e9b8ee7e4ec1ec66a809f11d76d3d2df87e9590488325de090f790d5eb7 |
|
MD5 | a7d8a0664132848da55b8d4190ad3620 |
|
BLAKE2b-256 | 960e2dff1686cbfe364c899ec65f6163f7a7d32df3a3a26f6e6d59ca971d8f04 |
Close
Hashes for cloudcomponents.cdk_deletable_bucket-2.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dbaddbad85e9829d31a380d92258a84d551f252496f21c71a0b3a242b9213699 |
|
MD5 | 7ae8bd5ae26d076f944b07c18f35c17e |
|
BLAKE2b-256 | 3aa2376778e3e626d8935cf28571465320dc2251a4dab283bf02353bf5329911 |