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):
super().__init__(scope, id, description=description, env=env, stackName=stackName, tags=tags, synthesizer=synthesizer, terminationProtection=terminationProtection)
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.0.21.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3b945b126a3ded1cd6386e308a149b2ffd44f780d84ec8e994aafbeca271c45c |
|
MD5 | e0670a61bddcb592aac80279d804cdf1 |
|
BLAKE2b-256 | 30fadbbce1e5db05e8fafd88e25f0daac57083df4d297bd2dea182920c6c0dae |
Close
Hashes for cloudcomponents.cdk_deletable_bucket-1.0.21-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54d7e4fb4f2e2bfdc50705ca5c831a064d144e242981e63c0b12e78f68a1a4df |
|
MD5 | cb1f9fc5c7818a76473e10c08a4923ee |
|
BLAKE2b-256 | 969d930f2f9fba2c16d8cb961afbdcde7b339a7d85544fe6dc443f02e08e40db |