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):
super().__init__(scope, id, description=description, env=env, stackName=stackName, tags=tags, synthesizer=synthesizer, terminationProtection=terminationProtection)
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.0.28.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0780e5ee3d50f593bfcfe9d4a0d4b648cbaf50ebe44a958ad8d4e90e9cde1f29 |
|
MD5 | a6c4bc3289ce5ff95423ced99c0f25dd |
|
BLAKE2b-256 | 9e5f4cad096e71cbc07bb4e23c92e85983d5441004e95b724744460c5c19c1c5 |
Close
Hashes for cloudcomponents.cdk_deletable_bucket-1.0.28-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9743bbb2858962920baef9af6cbabbeb57e668d4b02f536d3673982bdf857343 |
|
MD5 | 2363bf3a11c14ad4d35da9458bd235ae |
|
BLAKE2b-256 | ee841f17fb502a2808019245c0fec0c837683f169347b190027f32479a6a4a05 |