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.15.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d45172171aef211522c0b789b93f95f659c94472a3e9d8f8248499302271c8f5 |
|
MD5 | 48bcbd1bafe505f0e2e45d788e7443c3 |
|
BLAKE2b-256 | 3b6dc2fcaa7b05a5ac265b833a0c8da80fbe943d682ebf423f12855c9fcdb198 |
Close
Hashes for cloudcomponents.cdk_deletable_bucket-1.15.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 83c7231c9dcda91eb3b91da50b9a5e5d968a41fc468a376fd262706d031ba478 |
|
MD5 | 7771e36453fe2c5fa0f8eb53eb7e6553 |
|
BLAKE2b-256 | c1f5614cff3b9a94ff474d094fb6e0108ab6717148cf10fcc5c0dff4aa75ca97 |