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.5.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 43bc7a6ff206a245fd18bfab1fb041b0674edd84f8813bd59e777ea930775265 |
|
MD5 | b941684fcbe43ec56eda9a33a64a644d |
|
BLAKE2b-256 | 2226feadb1725255d93c112523a4a445225d7e0d229603e11f6dc3724cf519df |
Close
Hashes for cloudcomponents.cdk_deletable_bucket-1.5.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 94b17bab305595245ec749941ef33783d86b7db5dae7052da433bfffc125c2f1 |
|
MD5 | bd9c2119da1d9f8d2660f124edde0f8e |
|
BLAKE2b-256 | 9621b4c214588a38354427b855833ea8316ef5936861de83296756fa4118ff85 |