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.24.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 295dd9e0b9211ed99cc575976877c520936dfe45480fb3fe22a5e9bb554d40b1 |
|
MD5 | 9ba4296b28fc516a1b7efbd37926a6df |
|
BLAKE2b-256 | 7cd0b7c6192bd809ad3c4eec0ea8cbfb39311ac440fc7910915ef19eb8ac55de |
Close
Hashes for cloudcomponents.cdk_deletable_bucket-1.0.24-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 63a8f3e5bc02b857def5abae66c63d478d3141f2e6a59600460829a72bc5beef |
|
MD5 | 50f1ca005546ab1f6aa32d729e2ae8fc |
|
BLAKE2b-256 | 81973b173ccc21314d5ca6cf501a15a5ddf32257b2a5b81d248a9c3bc36cf922 |