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.10.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | da31011caa9efbc93584216734926ee1f0b6b7108c5067ae076ede9c082c22f0 |
|
MD5 | b097f14d510b57dc279b38a132babf65 |
|
BLAKE2b-256 | 9712692e86f112558699eb7722e2283de804cbbb0133ca31e90ea4ba6224c34b |
Close
Hashes for cloudcomponents.cdk_deletable_bucket-1.10.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c084c9eea4e1feed12b4dba942ce45ef501d790ae8298d0311fe05a1f2b9f26 |
|
MD5 | 6d846dfa54ae912bce2f74840fbbc545 |
|
BLAKE2b-256 | ffa57e96a44da110de049c15d8644ed70b9acab167fe0fdb25cbc66a49bfa6ed |