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.29.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c5022a88b06cbd1eab1e0a77b631b7c440a758bd2131bb946c583e06b052227 |
|
MD5 | 61c9665a3da2e8f03caaaa93ce398990 |
|
BLAKE2b-256 | 4f9eacb899cc51d170310c3571275e9dd74bdee16a99aa7839acffad4e9bb6fa |
Close
Hashes for cloudcomponents.cdk_deletable_bucket-1.0.29-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2bf36d65715e0e799ad65e04f7362542c8a948c495c67d3710df7fda039af4a |
|
MD5 | cdd5c1dc323b5ed3259de71904cdbc1f |
|
BLAKE2b-256 | a39bf57f9a4602ff4be1490b1c992e14ae312ffc550bfd914dfa705817e1a651 |