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.20.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 04aec771b2716316f8fcd4116c17b8f3b846c086e5b2f731912bad45bfa860db |
|
MD5 | 7efcd8546474a6f5eba658b719ea207b |
|
BLAKE2b-256 | a89bd8f2fa3c262e94798e434b19d53c77bb7ff1635a89de3b04f1a2f787e21f |
Close
Hashes for cloudcomponents.cdk_deletable_bucket-1.0.20-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 066b78428b871c2da34054d37c3224cb2b34b976832d08a3824a0bcf5285ed9f |
|
MD5 | 4b7a626eeb0f42dd9628b7455d9977d5 |
|
BLAKE2b-256 | e5f68b7be04418af37488afbad4f156c8f2469a0ea9d777b0ff6cb7488af491f |