Class ManagedRule.Builder
java.lang.Object
software.amazon.awscdk.services.config.ManagedRule.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ManagedRule>
- Enclosing class:
ManagedRule
@Stability(Stable)
public static final class ManagedRule.Builder
extends Object
implements software.amazon.jsii.Builder<ManagedRule>
A fluent builder for
ManagedRule
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
configRuleName
(String configRuleName) A name for the AWS Config rule.static ManagedRule.Builder
description
(String description) A description about this AWS Config rule.identifier
(String identifier) The identifier of the AWS managed rule.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.Defines which resources trigger an evaluation for an AWS Config rule.
-
Method Details
-
create
@Stability(Stable) public static ManagedRule.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- This parameter is required.id
- This parameter is required.- Returns:
- a new instance of
ManagedRule.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
-
inputParameters
@Stability(Stable) public ManagedRule.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 ManagedRule.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
-
identifier
The identifier of the AWS managed rule.- Parameters:
identifier
- The identifier of the AWS managed rule. This parameter is required.- Returns:
this
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<ManagedRule>
- Returns:
- a newly built instance of
ManagedRule
.
-