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.22.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 295cc4c1a243e3a7793586e509b09bfc79095436d36caea7c8882cbac104b0c5 |
|
MD5 | d6518ac83e15217e15f64b87997d08f7 |
|
BLAKE2b-256 | 7a25a78338de83b75992dfa751bdf4282746b1bcf74d579e77081ee81bdf459d |
Close
Hashes for cloudcomponents.cdk_deletable_bucket-1.0.22-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 61e80d3143250a976a4a4c302c88b2b903c574fbc497dcc29e012206fecc3b5d |
|
MD5 | 62d4d904e7ecdfb7fd4cb2d143d06836 |
|
BLAKE2b-256 | 295a18bb090fe157d867b80ec295a9f7fb536057bce729698b33a0e390348ac8 |