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.32.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 62584b2d5e0882d105a1e24e9cccbfbfc9dc3d22e17ff7443f64a232a76b45ab |
|
MD5 | 3a020660e0d6437c2af8581d05544b4b |
|
BLAKE2b-256 | 6f6f380d3e627886a77fc586aae6c6277e0d5ab11cee0f29e2a79b2689587b48 |
Close
Hashes for cloudcomponents.cdk_deletable_bucket-1.32.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 945882fc3fd2f0f905f7f64e7826b2c398089de72fe33e684968ac849f6e810f |
|
MD5 | 2220ae1347eac71cbf6b9cfb202767c3 |
|
BLAKE2b-256 | d576c678b33d6407a153052bad0c5c430c846871543cb487a105181ce0ea483b |