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.23.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c5bbaca6fbaa7e7588950748da5becdde963e8735819d7c4628e69a8aa5fa987 |
|
MD5 | 8a0d90a018b966a067f32fb599198a1b |
|
BLAKE2b-256 | 6b1314a2fc0b177232a30ea676f640ff93cf576e233f59b8fc3e1f00f26d2646 |
Close
Hashes for cloudcomponents.cdk_deletable_bucket-1.23.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bfaaf34247c90c956048fb5cbe10e8a0a1793c8a8a84f575ea9fa87f3d119dcc |
|
MD5 | 5113fcc140e27085bc497738070c6154 |
|
BLAKE2b-256 | 279b0be2ec3905a73b91dde8f07fd3b335eb31a80543d247688684b55f4727e8 |