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.33.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e74ebb333971dd1854b5f2cb1141c8e4ff0dffd2ee7a1dcbbfc517709b71e92 |
|
MD5 | 6a9dbbfdf09d99875dbfd23a95efd0e6 |
|
BLAKE2b-256 | 6f03dc1b3be8709c68f90018216f91c4338fe574eb4e07cc9b1ce7e3544ecc2a |
Close
Hashes for cloudcomponents.cdk_deletable_bucket-1.33.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ead16f996b5f808a1dfc55f81cb2bc40abe001f7bcdab72ba5b18e6f307d089 |
|
MD5 | ce9b4b3a47e209cccad9bd34b81f4d2b |
|
BLAKE2b-256 | 3d77f1015d9a2b08272939f5aa6e1d347c29370b6c51822fb19c668809bc08f2 |