# CustomResourceRemovalPolicy

Manages removal policy for AWS-vended custom resources.

This feature is currently experimental.

Extends: CustomResourceRemovalPolicy
Implements: IAspect

- Source: [`custom-resources/lib/custom-resource-config/custom-resource-config.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/custom-resources/lib/custom-resource-config/custom-resource-config.ts#L119)
- Type last changed: v2.154.0 · 22 Aug 2024

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as cdk from 'aws-cdk-lib';
import { custom_resources } from 'aws-cdk-lib';
const customResourceRemovalPolicy = new custom_resources.CustomResourceRemovalPolicy(cdk.RemovalPolicy.DESTROY);
```

## Initializer

```ts
new CustomResourceRemovalPolicy(removalPolicy: RemovalPolicy)
```

## Methods

- `visit(node: IConstruct): void` — All aspects can visit an IConstruct.
