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):
super().__init__(scope, id, description=description, env=env, stackName=stackName, tags=tags, synthesizer=synthesizer, terminationProtection=terminationProtection)
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.0.17.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a95347143e7db99566b6770c187949c56b4eb17e685e4f0c3ae86c53092c864d |
|
MD5 | dc0c7ede15042fc519fc6012e29a0b32 |
|
BLAKE2b-256 | 051380c5358aff941d519ab583635a57866a761a0f3e0d89436bf0e91eb8be1d |
Close
Hashes for cloudcomponents.cdk_deletable_bucket-1.0.17-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d30b69d33b02ece1ea4b1ab22e00e19a73b1da9e5729c74d821f454a2602435e |
|
MD5 | a6e23a0cc42344257090b0068684af4f |
|
BLAKE2b-256 | c76e6b74bc71f6a840a5504c961846ce8fbd400988c490d320654e854306fadd |