CustomResourceConfig Class
Manages AWS-vended Custom Resources.
This feature is currently experimental.
| Source | custom-resources/lib/custom-resource-config/custom-resource-config.ts |
|---|---|
| Type last changed |
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);
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import custom_resources
custom_resource_config = custom_resources.CustomResourceConfig.of(self)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.customresources.*;
CustomResourceConfig customResourceConfig = CustomResourceConfig.of(this);
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.CustomResources;
var customResourceConfig = CustomResourceConfig.Of(this);
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
customResourceConfig := awscdk.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) CustomResourceConfig static #Returns the CustomResourceConfig for this scope.