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.39.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e759968e6af80b6dc0df738467c5c16fa81aa27d8a7991c8b934c1561641457b |
|
MD5 | f1abd7072353e9ac7171aa1188a8d045 |
|
BLAKE2b-256 | eebbb90f6414b41962e123d52b3d5af7ca70ed325ec9b2a455b35fd69cbac7d1 |
Close
Hashes for cloudcomponents.cdk_deletable_bucket-1.39.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a99253e9096de447215de59bc7018c50f03889f08b563e4455acd0bd28875aa |
|
MD5 | 82e335e7cffa16eb2802e2f3e31cb165 |
|
BLAKE2b-256 | 850eacde4c63c5996c5651e9847848ee9b3220573fb793320f84dd168e1d6087 |