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.30.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f4d2ed9eb43f8b2a2b8257f67508c14365b88e10cccb8db8f2e722680b8b0853 |
|
MD5 | 7a1c0d4833151f860307e5a15af647d0 |
|
BLAKE2b-256 | 81366ab5c419abe7f7d9d16cae2b9c9becec80e16eff572ee999ff43f20fba7f |
Close
Hashes for cloudcomponents.cdk_deletable_bucket-1.0.30-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 893f699005975570b5e28a2e98b8509a52c9ecc64a7f5de3b3967e76de2c4962 |
|
MD5 | 41792911cd50ebd4726f902725489ba4 |
|
BLAKE2b-256 | 21da7c5a0b2a07eff9c462fbd4b7d414e3b5e2022927d7974cf063e6c1bb59ad |