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 without compilation. See https://github.com/aws/jsii/issues/826
from aws_cdk.core import Construct, Stack, StackProps
from cloudcomponents.cdk_deletable_bucket import DeletableBucket
class DeletableBucketStack(Stack):
def __init__(self, scope, id, *, description=None, env=None, stackName=None, tags=None, synthesizer=None, terminationProtection=None, analyticsReporting=None):
super().__init__(scope, id, description=description, env=env, stackName=stackName, tags=tags, synthesizer=synthesizer, terminationProtection=terminationProtection, analyticsReporting=analyticsReporting)
DeletableBucket(self, "DeletableBucket",
bucket_name="bucket2delete",
force_delete=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.9.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 965392091eea7a568638fc99c6e83f67c37f57933ac479e00379bdd50a76958a |
|
MD5 | 16dcac5e050983a07be1c69d13729b90 |
|
BLAKE2b-256 | acb185b4a782c43796080b827c95368a7e4c64ab32c1bed4752478272a41978a |
Close
Hashes for cloudcomponents.cdk_deletable_bucket-1.9.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5fc5d9ee59183de3b2685801f47bce2d0c8ad97ed176cbd7932738eee677df14 |
|
MD5 | e6bc39fee2c6289f1773571c81261f0e |
|
BLAKE2b-256 | 8e0d8b67ab42b4dc523fa801a9fb821f845ea9f8f049c7f51dd08a2fa37cd8e6 |