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 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

      @Stability(Stable) public ManagedRule.Builder configRuleName(String 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

      @Stability(Stable) public ManagedRule.Builder description(String 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

      @Stability(Stable) public ManagedRule.Builder ruleScope(RuleScope 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

      @Stability(Stable) public ManagedRule.Builder identifier(String 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

      @Stability(Stable) public ManagedRule build()
      Specified by:
      build in interface software.amazon.jsii.Builder<ManagedRule>
      Returns:
      a newly built instance of ManagedRule.