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.26.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | abe71ce9a94b47238d4c6f0c96556f6f019ee16c31e4c9095c9f34a187346d08 |
|
MD5 | 6f937da81f8edb81a81687cb41462c86 |
|
BLAKE2b-256 | d3aa58ef9aed43c8c7403ae6c094351954205aad827e9a13fe2e058cbd528a66 |
Close
Hashes for cloudcomponents.cdk_deletable_bucket-1.26.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 868461d9187415c890795648152ea4d4f71d6c1d0d65edaec2ba683ad0a29737 |
|
MD5 | 251cdb05f02803b110852e7aba5a0b8c |
|
BLAKE2b-256 | ee09583d5976fe3d5d2ab355844ffb54ae911e9a3900cfc983a8f0dfec9ac2c0 |