# CustomResourceConfig

Manages AWS-vended Custom Resources.

This feature is currently experimental.

- 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#L21)
- Type last changed: v2.189.1 · 14 Apr 2025

## Example

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

## Methods

- `addLambdaRuntime(lambdaRuntime: Runtime): void` — Set the runtime version on AWS-vended custom resources lambdas.

  This feature is currently experimental.

- `addLogRetentionLifetime(retention: RetentionDays): void` — Set the log retention of AWS-vended custom resource lambdas.

  This feature is currently experimental.

- `addRemovalPolicy(removalPolicy: RemovalPolicy): void` — Set the removal policy of AWS-vended custom resource logGroup.

  This feature is currently experimental.

- `of(scope: IConstruct): CustomResourceConfig // chainable` (static) — Returns the CustomResourceConfig for this scope.
