Class CustomRuleProps.Builder
java.lang.Object
software.amazon.awscdk.services.config.CustomRuleProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CustomRuleProps>
- Enclosing interface:
- CustomRuleProps
@Stability(Stable)
public static final class CustomRuleProps.Builder
extends Object
implements software.amazon.jsii.Builder<CustomRuleProps>
A builder for
CustomRuleProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.configRuleName(String configRuleName) Sets the value ofRuleProps.getConfigRuleName()configurationChanges(Boolean configurationChanges) Sets the value ofCustomRuleProps.getConfigurationChanges()description(String description) Sets the value ofRuleProps.getDescription()inputParameters(Map<String, ? extends Object> inputParameters) Sets the value ofRuleProps.getInputParameters()lambdaFunction(IFunction lambdaFunction) Sets the value ofCustomRuleProps.getLambdaFunction()maximumExecutionFrequency(MaximumExecutionFrequency maximumExecutionFrequency) Sets the value ofRuleProps.getMaximumExecutionFrequency()Sets the value ofCustomRuleProps.getPeriodic()Sets the value ofRuleProps.getRuleScope()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
lambdaFunction
Sets the value ofCustomRuleProps.getLambdaFunction()- Parameters:
lambdaFunction- The Lambda function to run. This parameter is required.- Returns:
this
-
configurationChanges
@Stability(Stable) public CustomRuleProps.Builder configurationChanges(Boolean configurationChanges) Sets the value ofCustomRuleProps.getConfigurationChanges()- Parameters:
configurationChanges- Whether to run the rule on configuration changes.- Returns:
this
-
periodic
Sets the value ofCustomRuleProps.getPeriodic()- Parameters:
periodic- Whether to run the rule on a fixed frequency.- Returns:
this
-
configRuleName
Sets the value ofRuleProps.getConfigRuleName()- Parameters:
configRuleName- A name for the AWS Config rule.- Returns:
this
-
description
Sets the value ofRuleProps.getDescription()- Parameters:
description- A description about this AWS Config rule.- Returns:
this
-
inputParameters
@Stability(Stable) public CustomRuleProps.Builder inputParameters(Map<String, ? extends Object> inputParameters) Sets the value ofRuleProps.getInputParameters()- Parameters:
inputParameters- Input parameter values that are passed to the AWS Config rule.- Returns:
this
-
maximumExecutionFrequency
@Stability(Stable) public CustomRuleProps.Builder maximumExecutionFrequency(MaximumExecutionFrequency maximumExecutionFrequency) Sets the value ofRuleProps.getMaximumExecutionFrequency()- Parameters:
maximumExecutionFrequency- The maximum frequency at which the AWS Config rule runs evaluations.- Returns:
this
-
ruleScope
Sets the value ofRuleProps.getRuleScope()- Parameters:
ruleScope- Defines which resources trigger an evaluation for an AWS Config rule.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CustomRuleProps>- Returns:
- a new instance of
CustomRuleProps - Throws:
NullPointerException- if any required attribute was not provided
-