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.8.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3010db0819d8430135e7741057737fa5a1e914a23462e72c20fd23adb51bdb0f |
|
MD5 | 8bc8228332ef26790b08288874c03994 |
|
BLAKE2b-256 | f02d49a97550879bfce2a8ff9e4166df43abaaabc712f58f9f2faa850bf61811 |
Close
Hashes for cloudcomponents.cdk_deletable_bucket-1.8.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b22461ec04868f81993f08805232363865c6805cc45e43001ac4d4527afce4f |
|
MD5 | 06480b69f3d0eb6e44e733cec5e8c979 |
|
BLAKE2b-256 | d6ccce579307a9cdbb359a7a711b888ef71dd0eb846d48ce25fa22cebbbbeb73 |