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.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1edc7cd84e9a560ad5e89f8f3e745a7263f27cbd7ed18bd6849333b04465974 |
|
MD5 | ae821c17da0dde262407d980990ca12e |
|
BLAKE2b-256 | fba8b15f622ef1169317e3a893b82b42b9654cc27c1deb0afac745d2724bd9c8 |
Close
Hashes for cloudcomponents.cdk_deletable_bucket-1.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f80907f6c8b606e8c62f592a81e3a9e7cc7458715da47883eff063d1781406a |
|
MD5 | a4e61816241510a5296bd612eec4e45e |
|
BLAKE2b-256 | e9a65620181a650b361e1c19b06c3b6ae8817f27e3501f98a4254b273a2d71a2 |