JSPM

  • Created
  • Published
  • Downloads 4
  • Score
    100M100P100Q114480F
  • License MIT

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

Package Exports

  • @cloudcomponents/cdk-deletable-bucket
  • @cloudcomponents/cdk-deletable-bucket/lib/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@cloudcomponents/cdk-deletable-bucket) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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