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.6.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb936893d5c2ceb42456b01699708de8432a90416b3f5192ef16de0d845b6fd8 |
|
MD5 | c82327e5e61db38d7b772a51c0d6da66 |
|
BLAKE2b-256 | dfae7cced837ba568cac923e65d638670acc8ca2c983a762dcf320525033b2bc |
Close
Hashes for cloudcomponents.cdk_deletable_bucket-1.6.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 531e5e032dab326ef35eb5f27d8aca6d2c77b9edab61e25fd3d8b0e94048508a |
|
MD5 | 8fd505ebc1e9b32be15e56eecf8f19fb |
|
BLAKE2b-256 | 4ad95a494448b4495d75e54b063de7e563adadd8e01d89e7eed3ef579d895ee5 |