class CustomResourceConfig
| Language | Type name |
|---|---|
.NET | Amazon.CDK.CustomResources.CustomResourceConfig |
Go | github.com/aws/aws-cdk-go/awscdk/v2/customresources#CustomResourceConfig |
Java | software.amazon.awscdk.customresources.CustomResourceConfig |
Python | aws_cdk.custom_resources.CustomResourceConfig |
TypeScript (source) | aws-cdk-lib » custom_resources » CustomResourceConfig |
Manages AWS-vended Custom Resources.
This feature is currently experimental.
Example
// 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
| Name | Description |
|---|---|
| add | Set the runtime version on AWS-vended custom resources lambdas. |
| add | Set the log retention of AWS-vended custom resource lambdas. |
| add | Set the removal policy of AWS-vended custom resource logGroup. |
| static of(scope) | Returns the CustomResourceConfig for this scope. |
addLambdaRuntime(lambdaRuntime)
public addLambdaRuntime(lambdaRuntime: Runtime): void
Parameters
- lambdaRuntime
Runtime
Set the runtime version on AWS-vended custom resources lambdas.
This feature is currently experimental.
addLogRetentionLifetime(retention)
public addLogRetentionLifetime(retention: RetentionDays): void
Parameters
- retention
RetentionDays
Set the log retention of AWS-vended custom resource lambdas.
This feature is currently experimental.
addRemovalPolicy(removalPolicy)
public addRemovalPolicy(removalPolicy: RemovalPolicy): void
Parameters
- removalPolicy
RemovalPolicy
Set the removal policy of AWS-vended custom resource logGroup.
This feature is currently experimental.
static of(scope)
public static of(scope: IConstruct): CustomResourceConfig
Parameters
- scope
IConstruct
Returns
Returns the CustomResourceConfig for this scope.

.NET
Go
Java
Python
TypeScript (