Class CustomPolicy.Builder
java.lang.Object
software.amazon.awscdk.services.config.CustomPolicy.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CustomPolicy>
- Enclosing class:
CustomPolicy
@Stability(Stable)
public static final class CustomPolicy.Builder
extends Object
implements software.amazon.jsii.Builder<CustomPolicy>
A fluent builder for
CustomPolicy
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
configRuleName
(String configRuleName) A name for the AWS Config rule.static CustomPolicy.Builder
description
(String description) A description about this AWS Config rule.enableDebugLog
(Boolean enableDebugLog) The boolean expression for enabling debug logging for your AWS Config Custom Policy rule.evaluationModes
(EvaluationMode evaluationModes) The modes the AWS Config rule can be evaluated in.inputParameters
(Map<String, ? extends Object> inputParameters) Input parameter values that are passed to the AWS Config rule.maximumExecutionFrequency
(MaximumExecutionFrequency maximumExecutionFrequency) The maximum frequency at which the AWS Config rule runs evaluations.policyText
(String policyText) The policy definition containing the logic for your AWS Config Custom Policy rule.Defines which resources trigger an evaluation for an AWS Config rule.
-
Method Details
-
create
@Stability(Stable) public static CustomPolicy.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- This parameter is required.id
- This parameter is required.- Returns:
- a new instance of
CustomPolicy.Builder
.
-
configRuleName
A name for the AWS Config rule.Default: - CloudFormation generated name
- Parameters:
configRuleName
- A name for the AWS Config rule. This parameter is required.- Returns:
this
-
description
A description about this AWS Config rule.Default: - No description
- Parameters:
description
- A description about this AWS Config rule. This parameter is required.- Returns:
this
-
evaluationModes
The modes the AWS Config rule can be evaluated in.The valid values are distinct objects.
Default: - Detective evaluation mode only
- Parameters:
evaluationModes
- The modes the AWS Config rule can be evaluated in. This parameter is required.- Returns:
this
-
inputParameters
@Stability(Stable) public CustomPolicy.Builder inputParameters(Map<String, ? extends Object> inputParameters) Input parameter values that are passed to the AWS Config rule.Default: - No input parameters
- Parameters:
inputParameters
- Input parameter values that are passed to the AWS Config rule. This parameter is required.- Returns:
this
-
maximumExecutionFrequency
@Stability(Stable) public CustomPolicy.Builder maximumExecutionFrequency(MaximumExecutionFrequency maximumExecutionFrequency) The maximum frequency at which the AWS Config rule runs evaluations.Default: MaximumExecutionFrequency.TWENTY_FOUR_HOURS
- Parameters:
maximumExecutionFrequency
- The maximum frequency at which the AWS Config rule runs evaluations. This parameter is required.- Returns:
this
-
ruleScope
Defines 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.
- Parameters:
ruleScope
- Defines which resources trigger an evaluation for an AWS Config rule. This parameter is required.- Returns:
this
-
policyText
The policy definition containing the logic for your AWS Config Custom Policy rule.- Parameters:
policyText
- The policy definition containing the logic for your AWS Config Custom Policy rule. This parameter is required.- Returns:
this
-
enableDebugLog
The boolean expression for enabling debug logging for your AWS Config Custom Policy rule.Default: false
- Parameters:
enableDebugLog
- The boolean expression for enabling debug logging for your AWS Config Custom Policy rule. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CustomPolicy>
- Returns:
- a newly built instance of
CustomPolicy
.
-