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):
super().__init__(scope, id, description=description, env=env, stackName=stackName, tags=tags, synthesizer=synthesizer, terminationProtection=terminationProtection)
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.0.19.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3122c9a11dafdde3ecfd2d4c8422947454f177dfcfccb5397d87317725da698b |
|
MD5 | a4bae1c3cb3338d973965d8ea565d3ae |
|
BLAKE2b-256 | 4f1be6573565c98f4ed3fc4d82c58137b77d73b430b95edbd616f9e439271a89 |
Close
Hashes for cloudcomponents.cdk_deletable_bucket-1.0.19-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e6d9921e1e5734184c4f47c4c2356db3902841d55ddcfe6c6c3f9ae992cd61f2 |
|
MD5 | 33e4eb42dff4dbd4d83f8781b1b3cdf7 |
|
BLAKE2b-256 | 414fde45d4437320092f24394e8ddb66502ab5efebdc6217a5b5762438f973d0 |