class CustomResourceConfig
Language | Type name |
---|---|
![]() | Amazon.CDK.CustomResources.CustomResourceConfig |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/customresources#CustomResourceConfig |
![]() | software.amazon.awscdk.customresources.CustomResourceConfig |
![]() | aws_cdk.custom_resources.CustomResourceConfig |
![]() | 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(rentention)
public addLogRetentionLifetime(rentention: RetentionDays): void
Parameters
- rentention
Retention
Days
Set the log retention of AWS-vended custom resource lambdas.
This feature is currently experimental.
addRemovalPolicy(removalPolicy)
public addRemovalPolicy(removalPolicy: RemovalPolicy): void
Parameters
- removalPolicy
Removal
Policy
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.