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.26.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c69c54e12dce05ba46467865790d46a1f3aca66ecfc85cfd0ca201ebc01d4a9c |
|
MD5 | cc7ef5cacef376b2f98f1760f42545da |
|
BLAKE2b-256 | 2a2d06de975cd04c0761172c5913033bf704a0ba6882e1d6d1fce067191ac10c |
Close
Hashes for cloudcomponents.cdk_deletable_bucket-1.0.26-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b698f65dba3c570b9a560b62aa0e58d346b4b32af7c85ef7b1df9bc3f6e9b89 |
|
MD5 | 302c974bfed6e7b87733b4e25a17c774 |
|
BLAKE2b-256 | 735e1c639d193cd8b1a962a648fa66e98b83b7c497c650a5d207fc2355bd35a2 |