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.12.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0994c6b51335e4e3bc2ebb79cd9ba10c58fc140b521aae122054fd90d2683631 |
|
MD5 | cb65060463987c46805bc4d2eb05efe4 |
|
BLAKE2b-256 | 8711f90c806459cfc0fc8a9208d0d7105e4abbc68b1b946ab062b3084f168d20 |
Close
Hashes for cloudcomponents.cdk_deletable_bucket-1.12.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e5244397793c9270cd7c6534828a5b9bcf6e1d0e6bc43b7c7e1c70fa74ebe396 |
|
MD5 | 5e707427a09d121571f8b1c160282a28 |
|
BLAKE2b-256 | f2d4eb2850dca2fc387c3d9d4dc85ecf57d4bd2df859a223b311c9db8039447a |