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.44.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | df2491598767d87c0957fce27cac6f6a5511f1aa8cd83c09e45d68c35084c569 |
|
MD5 | 8401aa306db8dda899c0207c81b2020f |
|
BLAKE2b-256 | 0921e03b1e201d1d2953417a1c61ca7a56918dd8573cc39d1411e89c4dcee7eb |
Close
Hashes for cloudcomponents.cdk_deletable_bucket-1.44.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91fd6408529cd204cffc70964978e7c27025d89733d0b652631bd0217d3c06f1 |
|
MD5 | 7a7ff01392bc83cc5586c288ac8c013d |
|
BLAKE2b-256 | 0613a3901bec0b9d3d371eb5fa7716457e6443e4e2935a5579a91db478b84338 |