Class CustomPolicyProps.Builder
java.lang.Object
software.amazon.awscdk.services.config.CustomPolicyProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CustomPolicyProps>
- Enclosing interface:
CustomPolicyProps
@Stability(Stable)
public static final class CustomPolicyProps.Builder
extends Object
implements software.amazon.jsii.Builder<CustomPolicyProps>
A builder for
CustomPolicyProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.configRuleName(String configRuleName) Sets the value ofRuleProps.getConfigRuleName()description(String description) Sets the value ofRuleProps.getDescription()enableDebugLog(Boolean enableDebugLog) Sets the value ofCustomPolicyProps.getEnableDebugLog()evaluationModes(EvaluationMode evaluationModes) Sets the value ofRuleProps.getEvaluationModes()inputParameters(Map<String, ? extends Object> inputParameters) Sets the value ofRuleProps.getInputParameters()maximumExecutionFrequency(MaximumExecutionFrequency maximumExecutionFrequency) Sets the value ofRuleProps.getMaximumExecutionFrequency()policyText(String policyText) Sets the value ofCustomPolicyProps.getPolicyText()Sets the value ofRuleProps.getRuleScope()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
policyText
Sets the value ofCustomPolicyProps.getPolicyText()- Parameters:
policyText- The policy definition containing the logic for your AWS Config Custom Policy rule. This parameter is required.- Returns:
this
-
enableDebugLog
Sets the value ofCustomPolicyProps.getEnableDebugLog()- Parameters:
enableDebugLog- The boolean expression for enabling debug logging for your AWS Config Custom Policy rule.- 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
-
evaluationModes
Sets the value ofRuleProps.getEvaluationModes()- Parameters:
evaluationModes- The modes the AWS Config rule can be evaluated in. The valid values are distinct objects.- Returns:
this
-
inputParameters
@Stability(Stable) public CustomPolicyProps.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 CustomPolicyProps.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<CustomPolicyProps>- Returns:
- a new instance of
CustomPolicyProps - Throws:
NullPointerException- if any required attribute was not provided
-