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.17.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e3c984f48773664faed74887ccee25c2a83eff4ef9b7f684962e380b5919a9b |
|
MD5 | c554ac37c4556dd17b07235603267294 |
|
BLAKE2b-256 | 4f9a2e54b8ad88ed95517e29498dee010957725d32890f32d5d28da9c6202689 |
Close
Hashes for cloudcomponents.cdk_deletable_bucket-1.17.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 828585064c8e6aabc9314d7757c61f23ed3560a2d23e6df54a1f14b3d5a7ccc1 |
|
MD5 | 2a16521ce52d7d078a16e5b72b385c2c |
|
BLAKE2b-256 | eec33dac0e4e9eab125bfa09c92381ee6f44da1a6e71630021df93f68f2d0d43 |