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.24.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | be08a420748250cd2ce3cecf99c0dbef18985b51329d9ac27936c651438cde5e |
|
MD5 | 45d72d64fbced037344e8f17eb342bbf |
|
BLAKE2b-256 | 63c34d9ed0df52f25ef6af16bf9b05093df3dcbf73cbcc2a938d8a767dbff83c |
Close
Hashes for cloudcomponents.cdk_deletable_bucket-1.24.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 302ab3839353826b9469183ba43086dfe68854bf02359d71b05f8c38604fea03 |
|
MD5 | 31d9278895f23f3f383a4124bfb27760 |
|
BLAKE2b-256 | df7d34f200c467365e53a2b7bfb7ab2f8b7b2c1af075f5e44c2a01d8b721fb07 |