Class CfnConfigRule.CustomPolicyDetailsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.config.CfnConfigRule.CustomPolicyDetailsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnConfigRule.CustomPolicyDetailsProperty>
- Enclosing interface:
CfnConfigRule.CustomPolicyDetailsProperty
@Stability(Stable)
public static final class CfnConfigRule.CustomPolicyDetailsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnConfigRule.CustomPolicyDetailsProperty>
A builder for
CfnConfigRule.CustomPolicyDetailsProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.enableDebugLogDelivery
(Boolean enableDebugLogDelivery) Sets the value ofCfnConfigRule.CustomPolicyDetailsProperty.getEnableDebugLogDelivery()
enableDebugLogDelivery
(IResolvable enableDebugLogDelivery) Sets the value ofCfnConfigRule.CustomPolicyDetailsProperty.getEnableDebugLogDelivery()
policyRuntime
(String policyRuntime) Sets the value ofCfnConfigRule.CustomPolicyDetailsProperty.getPolicyRuntime()
policyText
(String policyText) Sets the value ofCfnConfigRule.CustomPolicyDetailsProperty.getPolicyText()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
enableDebugLogDelivery
@Stability(Stable) public CfnConfigRule.CustomPolicyDetailsProperty.Builder enableDebugLogDelivery(Boolean enableDebugLogDelivery) Sets the value ofCfnConfigRule.CustomPolicyDetailsProperty.getEnableDebugLogDelivery()
- Parameters:
enableDebugLogDelivery
- The boolean expression for enabling debug logging for your AWS Config Custom Policy rule. The default value isfalse
.- Returns:
this
-
enableDebugLogDelivery
@Stability(Stable) public CfnConfigRule.CustomPolicyDetailsProperty.Builder enableDebugLogDelivery(IResolvable enableDebugLogDelivery) Sets the value ofCfnConfigRule.CustomPolicyDetailsProperty.getEnableDebugLogDelivery()
- Parameters:
enableDebugLogDelivery
- The boolean expression for enabling debug logging for your AWS Config Custom Policy rule. The default value isfalse
.- Returns:
this
-
policyRuntime
@Stability(Stable) public CfnConfigRule.CustomPolicyDetailsProperty.Builder policyRuntime(String policyRuntime) Sets the value ofCfnConfigRule.CustomPolicyDetailsProperty.getPolicyRuntime()
- Parameters:
policyRuntime
- The runtime system for your AWS Config Custom Policy rule. Guard is a policy-as-code language that allows you to write policies that are enforced by AWS Config Custom Policy rules. For more information about Guard, see the Guard GitHub Repository .- Returns:
this
-
policyText
@Stability(Stable) public CfnConfigRule.CustomPolicyDetailsProperty.Builder policyText(String policyText) Sets the value ofCfnConfigRule.CustomPolicyDetailsProperty.getPolicyText()
- Parameters:
policyText
- The policy definition containing the logic for your AWS Config Custom Policy rule.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnConfigRule.CustomPolicyDetailsProperty>
- Returns:
- a new instance of
CfnConfigRule.CustomPolicyDetailsProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-