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
# Example automatically generated from non-compiling source. May contain errors.
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.48.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d8e50ddf0e1740868741f53c324c94a1818b8196179ba87dc4a79a1e2c017d5 |
|
MD5 | a74997bb388967154778ea8397a22b2a |
|
BLAKE2b-256 | 6e8173f43a348b7aabc942dfdc5d23a928c5f5f32b2bdc32788dcb165ee1d0f5 |
Close
Hashes for cloudcomponents.cdk_deletable_bucket-1.48.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a0798fa516dc62b2a187922e8fe20d99255b3afd9cd967aa1d484eaa565f1bb7 |
|
MD5 | db7e4438b67baae95aa3ca20d79acaa6 |
|
BLAKE2b-256 | ea68f599c2094c8b195c2358807c13100751545709daba44da8fe24cdf9c4a6e |