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.18.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 37e0878701b88f3a10da7824ef84c20eaf0dffa69f176b66995f72bbd4591539 |
|
MD5 | 3b89809d49fa53ff615a1a1f0edbcc92 |
|
BLAKE2b-256 | 6a981404678f9131dc02123ff8e3be023248b5b6724f96d6fe4cbb216eb7350f |
Close
Hashes for cloudcomponents.cdk_deletable_bucket-1.18.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6436a220ee057790dbe244d4686fc7a353ddc5ce40176edb472b0e074aa40448 |
|
MD5 | 51859f8c0348cd9e347ac83f07d0da4d |
|
BLAKE2b-256 | 8a01478dd49c44b7ecdf970db4b5e5b79d6d3e2695c25a47287e3b5ad385bfa2 |