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.27.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a5bcafdcb5ff25328b3ac6883e5b70d66fb4e9d86a5777cefb31f60826d869d |
|
MD5 | 428621d8d264b702e3ce302d0b881ad9 |
|
BLAKE2b-256 | 3ba75dc3a24b9b7b78ac1e5d7103243ada1f0a56b7fe807dbc895fdc1f7a98c2 |
Close
Hashes for cloudcomponents.cdk_deletable_bucket-1.0.27-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 026f85e90b998f1754505a09c1f7eb8b7aea6f6766cdb487eebae9c59587e5ee |
|
MD5 | e3ca1403c84fbc89144d0ed5f056d957 |
|
BLAKE2b-256 | 3a9876e4202663930602bc44e2aca0a53b07549691570b7a3580fb7d9f9936f2 |