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.30.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d6714e4f361abd873be276564ffe3fb08d3b75690e36ce6a3c0f9da9c5c7378 |
|
MD5 | 6ec45b5d4a4d75543c1d81809f652f5e |
|
BLAKE2b-256 | 3e2cc6dc24daa873ce17c9b8d198eaef2356303ba39e2d5f42cba5f54d735b3b |
Close
Hashes for cloudcomponents.cdk_deletable_bucket-1.30.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3276892231d95582b5a44821a1858caa68c0965928ebeb16ad3994b63e6226c9 |
|
MD5 | 1b5232418b526274ba9b3956484e1b09 |
|
BLAKE2b-256 | 6a9e14125a10694aeff1033fa6d3c68ac47e5217dad578c5670298fbf4a572ad |