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.38.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c8f0d61ae556ba7bfea6db397386b1d479fd12c6d1d250fc76046f2159903e9 |
|
MD5 | ebdecd1702bee6741dd11863f9760809 |
|
BLAKE2b-256 | 1d1e5b860ae7c626dedfdec5eb9598291efabea92b1e7b9055238c31f32240b4 |
Close
Hashes for cloudcomponents.cdk_deletable_bucket-1.38.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d29fc3ccceb8cb340ce4bfb1d97ba4f502a9902af67d71df28b421b96055e2a |
|
MD5 | caf3d7c209c41ab1a50b36acc58ff067 |
|
BLAKE2b-256 | 2b438d533838b5da682c1d8698287f0010f969e863452e6a9d25ed328c15488d |