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.38.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1dd32c691a0798f8782be8a3e05a6c4478f031ba55eb79b3b53188be678d4fab |
|
MD5 | 8759e7cf80ca928b7135d287eea57ba9 |
|
BLAKE2b-256 | 41b0c8d06b74eec763c29b362262ad78e9964d41aeb44e6a756e1602d9ddf5da |
Close
Hashes for cloudcomponents.cdk_deletable_bucket-1.38.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f14c501d69f49a7bcf33e85175a370685739ef910a770809e8666c09bc13eff |
|
MD5 | 9ac3f8b6d8841f3e54c4ee48f632562e |
|
BLAKE2b-256 | 6026f9b1c3fb07e04d084e4a3bfa480ed3090a9e782ac24744163105819d335d |