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.25.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5663fb8f8f557b6650595735e269b0f2ccde1e278b9232f52005f038005725cc |
|
MD5 | 385413da04e6d86634526e53d309ff39 |
|
BLAKE2b-256 | bb131ee6f4aa45db71bf755d868e7395936282ec2e9737995273a5ff88c88790 |
Close
Hashes for cloudcomponents.cdk_deletable_bucket-1.0.25-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 05acad137dcd257396bea976e7f2d940564d04973a807a41bb7a6a53d5582f5c |
|
MD5 | 6f464652b3b8d1546906bcba1ade82f3 |
|
BLAKE2b-256 | 0e8c0402f325c4359003f0268a9f0121da378fe2638ada7a8a43dbc18ec483fc |