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.23.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b92e49ab0521620dd51540bf5a193f1e4ec5246c4f8bae52f323ef9c8808ad46 |
|
MD5 | fbb0f9c27460057bb15cfbda53d3e915 |
|
BLAKE2b-256 | 4b75056ffed1616d1d254830a8d304308eab28c2ff304692cc509c3e3f8c5384 |
Close
Hashes for cloudcomponents.cdk_deletable_bucket-1.0.23-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b9d40d9b3f6112d6e2fa03261ee9f095060af17bf15a0fdb3fcedfb3d843d0ca |
|
MD5 | f98c63cf90ffc93c6e7db92cd3c8979c |
|
BLAKE2b-256 | 1f05ac66e85bf11e5488c1ec81e07aff648389a24e574661463ab717b90324f1 |