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.22.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | bdb3f88a81155026082dba70b7d95cdd30eb213fecba592d81f06522270df7d3 |
|
MD5 | 764f913bcaab43d310e4619cd4ef9ea9 |
|
BLAKE2b-256 | 3f2334871b56c211d1256638d37d416a723e4bc44d8b0b4632b7f775387a4598 |
Close
Hashes for cloudcomponents.cdk_deletable_bucket-1.22.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ea776941635ce1c6e92ac2769c5d205ff504462ed0f5e0bdc93c33dec572b64 |
|
MD5 | 6703fc8ed43302c65a853d7b10255ae0 |
|
BLAKE2b-256 | 6eac3c60b82c3c86880b3821dfcb58f4f66a1d387369a4f803dceabae09d2795 |