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.16.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c2d99fbd006a79095e124e893a3d9a802086cc3f3e1d045fb5a6fe576affc06 |
|
MD5 | 2bc44e9c98cc2400ee01ccbb40ed299c |
|
BLAKE2b-256 | 9fe7b77a5c46a9b336a662dfef0a9ab7ee3e3126778e866962770020fad658ef |
Close
Hashes for cloudcomponents.cdk_deletable_bucket-1.0.16-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 426b6e03e19d9010bc26ec2b859f766fb4557b5eae98a58c8a51c09d4abfc03d |
|
MD5 | 1ae045797e1de3cead0eacee4e144598 |
|
BLAKE2b-256 | e4e54a33c8fc39481c323a7dd0d1b1f98ab208a1d0ee0b6690ff46f6298e238e |