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.37.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a646b01675f558bd7c04edc8543989f13ea404cdbf76e8930edd43fab66a9578 |
|
MD5 | d25b34bda591df3112aa690ef97bf7e6 |
|
BLAKE2b-256 | 6153c292e1f634b2c8403d513f409e19aaf115e5b848e47d4601dc6878e2dabd |
Close
Hashes for cloudcomponents.cdk_deletable_bucket-1.37.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7064fea3643e345bfaf16bbf0007192a25709b6f22c73e34d250591801e4b117 |
|
MD5 | de6b1e742d2ae7402da9c0bae77ad938 |
|
BLAKE2b-256 | 06885f30f5fe48585cb926107e7172e49d0dc156abfa10e61720231110b8a860 |