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.35.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | dcf2aa67aa172b6b81f240aadb688ef5bded27ad0f778ec64caddcac52c112b0 |
|
MD5 | 5aaa410a0053d9781f7169cb2267d197 |
|
BLAKE2b-256 | 28ffb2d91e79ba193845b255161d1aa2530f5262ff83ae54f16b43c4447739b4 |
Close
Hashes for cloudcomponents.cdk_deletable_bucket-1.35.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9395e99ac5b1ec4c3a8f413bea16f58304731198645653be297746df6d30f10e |
|
MD5 | 1f6e2e096a239832406427a2740f465f |
|
BLAKE2b-256 | cba262b244fe1ecbcbf17562e8c35a1a4cf0d948495f946f456ded595ca590ca |