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

      @Stability(Stable) public CustomPolicy.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 CustomPolicy.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
    • evaluationModes

      @Stability(Stable) public CustomPolicy.Builder evaluationModes(EvaluationMode 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

      @Stability(Stable) public CustomPolicy.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
    • policyText

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

      @Stability(Stable) public CustomPolicy.Builder enableDebugLog(Boolean 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

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