A new custom rule.
import { CustomRule } from 'aws-cdk-lib/aws-config';Or use the module namespace:
import * as config from 'aws-cdk-lib/aws-config';
// config.CustomRuleConfiguration passed to the constructor as CustomRuleProps.
lambdaFunctionRequiredIFunctionThe Lambda function to run.
configurationChangesOptionalbooleanWhether to run the rule on configuration changes.
Default: false
periodicOptionalbooleanWhether to run the rule on a fixed frequency.
Default: false
RulePropsconfigRuleNameOptionalinherited from RulePropsstringA name for the AWS Config rule.
Default: - CloudFormation generated name
descriptionOptionalinherited from RulePropsstringA description about this AWS Config rule.
Default: - No description
evaluationModesOptionalinherited from RulePropsEvaluationModeThe modes the AWS Config rule can be evaluated in. The valid values are distinct objects.
Default: - Detective evaluation mode only
inputParametersOptionalinherited from RuleProps{ [key: string]: any }Input parameter values that are passed to the AWS Config rule.
Default: - No input parameters
maximumExecutionFrequencyOptionalinherited from RulePropsMaximumExecutionFrequencyThe maximum frequency at which the AWS Config rule runs evaluations.
Default: MaximumExecutionFrequency.TWENTY_FOUR_HOURS
ruleScopeOptionalinherited from RulePropsRuleScopeDefines which resources trigger an evaluation for an AWS Config rule.
Default: - evaluations for the rule are triggered when any resource in the recording group changes.
Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to Newsletteraws-config