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.42.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a96cebb2d616ba9b4f74c368d9d6ef808752dc017030be299f84fe0338029004 |
|
MD5 | e40b712fa898625d74366071c4079ecb |
|
BLAKE2b-256 | 6106759d3300e4b696c0b855da953dd187265bc8f1a5f839510defa984adb9a9 |
Close
Hashes for cloudcomponents.cdk_deletable_bucket-1.42.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a5b3c53f5a419d20406e9b6ef4cfe947876748c06613a3250a7cf128e0b0caf |
|
MD5 | d41e6587dd6e1219d78683d733455e80 |
|
BLAKE2b-256 | 282a3e17b2ce2fddf33a237d76d3671395fbce94c7f6da9ebafc9418d72e280f |