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.2.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4da1c6094e518f3d8ea595eed90bbf0ecb6ab9241ee4c77bf92226cb3b5b6ea5 |
|
MD5 | 01820b8421328fe28f8208f0a5905c0e |
|
BLAKE2b-256 | ca495f21012152f43bb2098e5b51b0ba65b6ebe111daeee9aaba4fcf6567929f |
Close
Hashes for cloudcomponents.cdk_deletable_bucket-1.2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d9d5c2a70cff33a4e61ac557ed6d69a71df82754a3e555d38160ab22574e884 |
|
MD5 | 501e5ee89318ebebda874f89567cce51 |
|
BLAKE2b-256 | a445aed526a06e47169aa46776cb39cff493e7e3a248c6a420f1d4a4e51f2115 |