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.40.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0384948141e5f88aba4c3d7bf15c61b2905d79ff0298c8631ae912307f813493 |
|
MD5 | 59452e3ed80dd8d8b19c4136e17fca88 |
|
BLAKE2b-256 | 00e2d7a070e179c6415e17fd535e7a54346935938f79b44ac17b2ac5838ffa20 |
Close
Hashes for cloudcomponents.cdk_deletable_bucket-1.40.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d00122a44340292505fe5e6e75da5e0be1301ecfdb028c0c21e372dd0382ea0b |
|
MD5 | 81eb9d2c6b7ee91b1e4d3079ab02341d |
|
BLAKE2b-256 | dd7423c9b9bcf1ace3721c74f5d23ee2525db48d45feaf769f7c852e76085385 |