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.25.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e4064f6e4e4fe462b7d5487495c848ecbaefc08196d8bc6d42e80301d046699 |
|
MD5 | e5118b0dc1ac30c8587e1482f8b30947 |
|
BLAKE2b-256 | 1971ebfb0787ae4ba75674435cf3b03ec05f2e433f5143ad2fc224665278e4c3 |
Close
Hashes for cloudcomponents.cdk_deletable_bucket-1.25.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 858f62e149b12b547c389e54dcb5eef2469ba8f941f4658e29c5bcf246298df6 |
|
MD5 | e12bd603f9cc7d97132dde9cde1c5bf6 |
|
BLAKE2b-256 | ecc5139d72b23fa8c2a4e36686fd5bac86212c35d3d55566c37e3544453921fd |