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, analyticsReporting=None):
super().__init__(scope, id, description=description, env=env, stackName=stackName, tags=tags, synthesizer=synthesizer, terminationProtection=terminationProtection, analyticsReporting=analyticsReporting)
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.29.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 055bbd6433beaeea8b40c57024e3ad634ef434b027f17af3f797ebb066c7a04d |
|
MD5 | 8cd9275285ee663c1e3580db78180a1d |
|
BLAKE2b-256 | ee0e8aa51c1a6d9af4c9cf6d7522053057c58ca1b1d1afccae31d1653094f42c |
Close
Hashes for cloudcomponents.cdk_deletable_bucket-1.29.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 14cc79e060f07509dc5dc8d7765664783650b3ddbb461c6dd90439ae13e4cf36 |
|
MD5 | fac054580c90a82d22a25fe3aff2a931 |
|
BLAKE2b-256 | f5d21ac2cdd1c64709ecddf29093208d7010b03f2828d85226150542f0ccc02b |