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.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 010b157501d4d4d14cb8c881423fd5232c31d7cd9106b9bce55ba6877cecd052 |
|
MD5 | b3e33fb011a9d88d4968883e5869543c |
|
BLAKE2b-256 | 736c46fb0bd71623d53d2a383ef147526fd7d11694e9d98ce7ffbc209b9695e1 |
Close
Hashes for cloudcomponents.cdk_deletable_bucket-2.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7677df78be60391249b8abb79ad412f403d1a01a54493e12340efd51fcd060a9 |
|
MD5 | 1a918ebb4ba4ac498075364f965bf268 |
|
BLAKE2b-256 | 2bdaa2b2eba870d23cb90237a6912b41c615fa61df187f1aca3725d21b7e8c96 |