Skip to content
v2.274.0

CustomResourceConfig Class ​

Manages AWS-vended Custom Resources.

This feature is currently experimental.

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): voiddef add_lambda_runtime(self, lambda_runtime: Runtime) -> Nonepublic void addLambdaRuntime(Runtime lambdaRuntime)public void AddLambdaRuntime(Runtime lambdaRuntime)func AddLambdaRuntime(LambdaRuntime Runtime)#
Set the runtime version on AWS-vended custom resources lambdas.

This feature is currently experimental.

addLogRetentionLifetime(retention: RetentionDays): voiddef add_log_retention_lifetime(self, retention: RetentionDays) -> Nonepublic void addLogRetentionLifetime(RetentionDays retention)public void AddLogRetentionLifetime(RetentionDays retention)func AddLogRetentionLifetime(Retention RetentionDays)#
Set the log retention of AWS-vended custom resource lambdas.

This feature is currently experimental.

addRemovalPolicy(removalPolicy: RemovalPolicy): voiddef add_removal_policy(self, removal_policy: RemovalPolicy) -> Nonepublic void addRemovalPolicy(RemovalPolicy removalPolicy)public void AddRemovalPolicy(RemovalPolicy removalPolicy)func AddRemovalPolicy(RemovalPolicy RemovalPolicy)#
Set the removal policy of AWS-vended custom resource logGroup.

This feature is currently experimental.

of(scope: IConstruct): CustomResourceConfig // chainable@staticmethod def of(scope: IConstruct) -> CustomResourceConfigpublic static CustomResourceConfig of(IConstruct scope)public static CustomResourceConfig Of(IConstruct scope)func Of(Scope IConstruct) CustomResourceConfigstatic#
Returns the CustomResourceConfig for this scope.