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.19.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d41a099d8105ff9b681ffb2a5dba03614991eb50ade125c2fe2567c3f3dcfba |
|
MD5 | 5a8c629b220169b9fc2a60adc781ba9a |
|
BLAKE2b-256 | 2f5986a39db4d5cf0556d2e8a3d716dbe64dfaefe73d32c2aa9d73847724d4eb |
Close
Hashes for cloudcomponents.cdk_deletable_bucket-1.19.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 384966d17b51cc6c23f4e40ee5b0f892b0deab86d51840298a4353fec103cb90 |
|
MD5 | d626774d1ef13a2745710c7ebc0e60b7 |
|
BLAKE2b-256 | 688a45efb88b134e3805d426fee7e1309ecfcecaa91cdf8d0628e03808cdda36 |