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.11.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f9421db1b639f37126c45bb7589269c510bf3081dbee7c6b1b25b7ead326b57 |
|
MD5 | 08220cfefdd55897e8c4b3479be12149 |
|
BLAKE2b-256 | ab25cc12407971d22b38b354287bb9a2ad392b41837d97d9ffae082dc2e1c4a0 |
Close
Hashes for cloudcomponents.cdk_deletable_bucket-1.11.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee780a92c2dd0f232969f5db7b633e8b04e12e4e15b72d88bb82b9666ecdeaec |
|
MD5 | 18ffca1f49be1c9a67b02f7544900c40 |
|
BLAKE2b-256 | ab7ec7ab000634c98ba86cc98ec317bd37c26f7cce0f25f89f90e80fc8c0c18c |