Skip to main content

Bucket with content cleanup to allow bucket deletion when the stack will be destroyed

Project description

cloudcomponents Logo

@cloudcomponents/cdk-deletable-bucket

Build Status cdkdx typescript python

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

import { DeletableBucket } from '@cloudcomponents/cdk-deletable-bucket';
import { Stack, StackProps } from 'aws-cdk-lib';
import { Construct } from 'constructs';

export class DeletableBucketStack extends Stack {
  constructor(scope: Construct, id: string, props?: StackProps) {
    super(scope, id, props);

    new DeletableBucket(this, 'DeletableBucket', {
      bucketName: 'bucket2delete',
      forceDelete: true,
    });
  }
}

API Reference

See API.md.

Example

See more complete examples.

License

MIT

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

cloudcomponents.cdk-deletable-bucket-2.1.0.tar.gz (120.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file cloudcomponents.cdk-deletable-bucket-2.1.0.tar.gz.

File metadata

  • Download URL: cloudcomponents.cdk-deletable-bucket-2.1.0.tar.gz
  • Upload date:
  • Size: 120.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.1 readme-renderer/30.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.8.2 keyring/23.2.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for cloudcomponents.cdk-deletable-bucket-2.1.0.tar.gz
Algorithm Hash digest
SHA256 010b157501d4d4d14cb8c881423fd5232c31d7cd9106b9bce55ba6877cecd052
MD5 b3e33fb011a9d88d4968883e5869543c
BLAKE2b-256 736c46fb0bd71623d53d2a383ef147526fd7d11694e9d98ce7ffbc209b9695e1

See more details on using hashes here.

File details

Details for the file cloudcomponents.cdk_deletable_bucket-2.1.0-py3-none-any.whl.

File metadata

  • Download URL: cloudcomponents.cdk_deletable_bucket-2.1.0-py3-none-any.whl
  • Upload date:
  • Size: 119.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.1 readme-renderer/30.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.8.2 keyring/23.2.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for cloudcomponents.cdk_deletable_bucket-2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7677df78be60391249b8abb79ad412f403d1a01a54493e12340efd51fcd060a9
MD5 1a918ebb4ba4ac498075364f965bf268
BLAKE2b-256 2bdaa2b2eba870d23cb90237a6912b41c615fa61df187f1aca3725d21b7e8c96

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page