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.14.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e3103bc350bb621ba1933ea0bd50d1e08f9efa280084b80cb2e8c9c4898bce5 |
|
MD5 | 2bfd7fe55a7fc2b6afce421a2b21f751 |
|
BLAKE2b-256 | 9eec8b5c8c51e71509a593d1d2f79adc4ab3537ee5cf6c6f28fe125a8c4e503b |
Close
Hashes for cloudcomponents.cdk_deletable_bucket-1.14.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e16aa5e8bcc0d4944e0bb9e91d14046042a02ca65c97492441a12150111fe74f |
|
MD5 | c94b32bc2def5944428c14a26121870f |
|
BLAKE2b-256 | 5b9eca9d2060d8b0a6d57bb0e68b948b1abd2102084a59c4599a03aa28075c1c |