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.7.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef9e25496533d0ec2436628ec54d6275e6fbe9ed2061de0609fd04bd89296304 |
|
MD5 | a5935d5c2bbbde3754120b0e469f0cb8 |
|
BLAKE2b-256 | 54bb55073c30a4995b1b139bea24f66767cdf17945e69cd85527460c3163df79 |
Close
Hashes for cloudcomponents.cdk_deletable_bucket-1.7.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 897f82e185168833ea5e3c89dcc8026815d5938922018bf9d43b1e141ab4761b |
|
MD5 | 34ba74bc6ff6c107982804f79b6e8ee9 |
|
BLAKE2b-256 | 46d15c87fe25d899eadcb34e2685ba3ae83edc03d198be89c8e1bfd5297e95cf |