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.28.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c00c3b50ea5448b7ebfc3cc029a5a8de7e5c96bf0d6cad9d98589d3740ff6a2e |
|
MD5 | a182f47d49b17371b10db85fe15c4458 |
|
BLAKE2b-256 | 40b30966ba209f3018475b08d1a2b77a95d1cba8cafaf134c7f50eb9da9faa06 |
Close
Hashes for cloudcomponents.cdk_deletable_bucket-1.28.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f8545aae4292d0912391d358a60ba8e71dfabb68381d1643d442d437a3ebc771 |
|
MD5 | 56c0ba478b389fe8666894ebca4a3dd0 |
|
BLAKE2b-256 | 640bcd4a3667ca48195ff85a8ece155b26317c9980bd6c32bf55796492f56ccb |