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.30.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ad01b3994128bf67da08ede3936748e772480d204c3bd5fa4fb85941a303a44 |
|
MD5 | 71187fe0e7b0c7d387760dad9310b9b8 |
|
BLAKE2b-256 | 313d0b120252fbd267bcf21605bfbba94dcfc00676f6cb0c51a2ee5453f549f5 |
Close
Hashes for cloudcomponents.cdk_deletable_bucket-1.30.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 170244d1386958141cd01c282cde847487b865b0d0a0997433da58358748154a |
|
MD5 | d9e99beb00dc4bb4c500e17c81172233 |
|
BLAKE2b-256 | d9048c2dd7513589df0dbf19ef08557019d316cdb34499b9bd6c49f9c9dfb3c1 |