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.41.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 82dc48f25cdc293e5c03033067bc8dc0e996830a311893ba07bc7bf95cf9250c |
|
MD5 | 79052d61dc72914a3016f2009d5c42fc |
|
BLAKE2b-256 | f791746d5c33d3d7b2e0f3b487c3d8f1344c3aae2c4cce5ecef850e817079de2 |
Close
Hashes for cloudcomponents.cdk_deletable_bucket-1.41.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1bc219d02cf1134be8b2e015922ae3e8819929ec68cb9be6c600d035241d456e |
|
MD5 | dcab2c16af1b39a0ec250ffd633d342e |
|
BLAKE2b-256 | 524c6de1cbb7ad9feae63a3b45ead3214fb35c345e37a1c26d782f74df20d91c |