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.31.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 99bba5a9b0a12d7fa0ef56ad8030148ef664b14820ea95ad3a7e952f962cf8a8 |
|
MD5 | 0fe0f304a39539ddcfd0e20b6d11802d |
|
BLAKE2b-256 | c718a517cc1cc11cea03cb746efbc8f422fd0a764199695416a1493990256713 |
Close
Hashes for cloudcomponents.cdk_deletable_bucket-1.31.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 412eae7f9381b17ea728b7e1773a5c01db1f9325e2cc8adcc0f026c1f3a614cf |
|
MD5 | affa4d68df856294e5a89c43321a85c2 |
|
BLAKE2b-256 | 0808323918b96059dc29ef0554caad7334e92b06cc4dbf92f72d4850925b3e03 |