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.21.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff155e103d9c42e212bcc26b3b0ebb3e71332b12654aeb33c75fd29060adfef8 |
|
MD5 | ee8b17c98977441941aa7d3b82244f36 |
|
BLAKE2b-256 | ff958c34f885731ac936be58fd8f25da81b3fd546029384ba174cb654e1eb4a1 |
Close
Hashes for cloudcomponents.cdk_deletable_bucket-1.21.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2cec9aa8a4ab8c983fd8ee1b222b0cf20a0c1be197b231a9dc685a73ca9a8a1a |
|
MD5 | ae2c4a12c9c29cd0e7855742a76c15b7 |
|
BLAKE2b-256 | e47ef1e486e229cd74084fe0f6f0988e660929767684b0b91212439a5b3d653f |