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
)
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.15.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 41934ad1a2391560010aac26f648212b322ed5d06c127d496a467902a44a3696 |
|
MD5 | c4e029b680a33b8e2b2cecd077c07db1 |
|
BLAKE2b-256 | a5c1e895f262a0789d589d8d380270d96d32a254578bb929851b31f63aa323c7 |
Close
Hashes for cloudcomponents.cdk_deletable_bucket-1.0.15-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36e389de850f1a1aec440b113f4ff5c137b7767f0ff53c58173917487cec2c94 |
|
MD5 | ca1e525af7b31019eba47c8100c45bdd |
|
BLAKE2b-256 | 51819d2eeb2c9cc84982c1464a5eb081b56c05d61c776b98e604c256df0fad31 |