CustomResourceConfig

class aws_cdk.custom_resources.CustomResourceConfig(*args: Any, **kwargs)

Bases: object

Manages AWS-vended Custom Resources.

This feature is currently experimental.

ExampleMetadata:

fixture=_generated

Example:

# 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)

Methods

add_lambda_runtime(lambda_runtime)

Set the runtime version on AWS-vended custom resources lambdas.

This feature is currently experimental.

Parameters:

lambda_runtime (Runtime) –

Return type:

None

add_log_retention_lifetime(rentention)

Set the log retention of AWS-vended custom resource lambdas.

This feature is currently experimental.

Parameters:

rentention (RetentionDays) –

Return type:

None

add_removal_policy(removal_policy)

Set the removal policy of AWS-vended custom resource logGroup.

This feature is currently experimental.

Parameters:

removal_policy (RemovalPolicy) –

Return type:

None

Static Methods

classmethod of(scope)

Returns the CustomResourceConfig for this scope.

Parameters:

scope (IConstruct) –

Return type:

CustomResourceConfig