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.18.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff0fb992bc096ac674020a2e8cbfdc0f1446ba8349b5b76fba76ddf7b8d7ef82 |
|
MD5 | 4142d114be5e593e8de424b24b8f8364 |
|
BLAKE2b-256 | 3d07cbee6ffb5ec01d3299c7cacbcb82a52446dfd7687e14b9f51b37c2c7864e |
Close
Hashes for cloudcomponents.cdk_deletable_bucket-1.0.18-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc6962f20af628bb10bbf27a3e0aa56297aa2cffff6582e7ae483f555fa3b551 |
|
MD5 | 129b64081e4fead0f12ee045e9e75e94 |
|
BLAKE2b-256 | b67bde02038ac6cc0c3f4eb0ba38e0a932631f85604bb4fcd12f6c5ee264db4f |