Class CfnConfigRulePropsMixin.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnConfigRulePropsMixin>
- Enclosing class:
CfnConfigRulePropsMixin
CfnConfigRulePropsMixin.-
Method Summary
Modifier and TypeMethodDescriptionbuild()compliance(CfnConfigRulePropsMixin.ComplianceProperty compliance) Indicates whether an AWS resource or AWS Config rule is compliant and provides the number of contributors that affect the compliance.compliance(IResolvable compliance) Indicates whether an AWS resource or AWS Config rule is compliant and provides the number of contributors that affect the compliance.configRuleName(String configRuleName) A name for the AWS Config rule.create()create(CfnPropertyMixinOptions options) description(String description) The description that you provide for the AWS Config rule.evaluationModes(List<? extends Object> evaluationModes) The modes the AWS Config rule can be evaluated in.evaluationModes(IResolvable evaluationModes) The modes the AWS Config rule can be evaluated in.inputParameters(Object inputParameters) A string, in JSON format, that is passed to the AWS Config rule Lambda function.maximumExecutionFrequency(String maximumExecutionFrequency) The maximum frequency with which AWS Config runs evaluations for a rule.Defines which resources can trigger an evaluation for the rule.scope(IResolvable scope) Defines which resources can trigger an evaluation for the rule.Provides the rule owner (AWSfor managed rules,CUSTOM_POLICYfor Custom Policy rules, andCUSTOM_LAMBDAfor Custom Lambda rules), the rule identifier, and the notifications that cause the function to evaluate your AWS resources.source(IResolvable source) Provides the rule owner (AWSfor managed rules,CUSTOM_POLICYfor Custom Policy rules, andCUSTOM_LAMBDAfor Custom Lambda rules), the rule identifier, and the notifications that cause the function to evaluate your AWS resources.
-
Method Details
-
create
@Stability(Stable) public static CfnConfigRulePropsMixin.Builder create(CfnPropertyMixinOptions options) - Parameters:
options- Mixin options.- Returns:
- a new instance of
CfnConfigRulePropsMixin.Builder.
-
create
- Returns:
- a new instance of
CfnConfigRulePropsMixin.Builder.
-
compliance
Indicates whether an AWS resource or AWS Config rule is compliant and provides the number of contributors that affect the compliance.- Parameters:
compliance- Indicates whether an AWS resource or AWS Config rule is compliant and provides the number of contributors that affect the compliance. This parameter is required.- Returns:
this- See Also:
-
compliance
@Stability(Stable) public CfnConfigRulePropsMixin.Builder compliance(CfnConfigRulePropsMixin.ComplianceProperty compliance) Indicates whether an AWS resource or AWS Config rule is compliant and provides the number of contributors that affect the compliance.- Parameters:
compliance- Indicates whether an AWS resource or AWS Config rule is compliant and provides the number of contributors that affect the compliance. This parameter is required.- Returns:
this- See Also:
-
configRuleName
A name for the AWS Config rule.If you don't specify a name, CloudFormation generates a unique physical ID and uses that ID for the rule name. For more information, see Name Type .
- Parameters:
configRuleName- A name for the AWS Config rule. This parameter is required.- Returns:
this- See Also:
-
description
The description that you provide for the AWS Config rule.- Parameters:
description- The description that you provide for the AWS Config rule. This parameter is required.- Returns:
this- See Also:
-
evaluationModes
@Stability(Stable) public CfnConfigRulePropsMixin.Builder evaluationModes(IResolvable evaluationModes) The modes the AWS Config rule can be evaluated in.The valid values are distinct objects. By default, the value is Detective evaluation mode only.
- Parameters:
evaluationModes- The modes the AWS Config rule can be evaluated in. This parameter is required.- Returns:
this- See Also:
-
evaluationModes
@Stability(Stable) public CfnConfigRulePropsMixin.Builder evaluationModes(List<? extends Object> evaluationModes) The modes the AWS Config rule can be evaluated in.The valid values are distinct objects. By default, the value is Detective evaluation mode only.
- Parameters:
evaluationModes- The modes the AWS Config rule can be evaluated in. This parameter is required.- Returns:
this- See Also:
-
inputParameters
A string, in JSON format, that is passed to the AWS Config rule Lambda function.- Parameters:
inputParameters- A string, in JSON format, that is passed to the AWS Config rule Lambda function. This parameter is required.- Returns:
this- See Also:
-
maximumExecutionFrequency
@Stability(Stable) public CfnConfigRulePropsMixin.Builder maximumExecutionFrequency(String maximumExecutionFrequency) The maximum frequency with which AWS Config runs evaluations for a rule.You can specify a value for
MaximumExecutionFrequencywhen:- You are using an AWS managed rule that is triggered at a periodic frequency.
- Your custom rule is triggered when AWS Config delivers the configuration snapshot. For more information, see ConfigSnapshotDeliveryProperties .
By default, rules with a periodic trigger are evaluated every 24 hours. To change the frequency, specify a valid value for the
MaximumExecutionFrequencyparameter.- Parameters:
maximumExecutionFrequency- The maximum frequency with which AWS Config runs evaluations for a rule. This parameter is required.- Returns:
this- See Also:
-
scope
Defines which resources can trigger an evaluation for the rule.The scope can include one or more resource types, a combination of one resource type and one resource ID, or a combination of a tag key and value. Specify a scope to constrain the resources that can trigger an evaluation for the rule. If you do not specify a scope, evaluations are triggered when any resource in the recording group changes.
- Parameters:
scope- Defines which resources can trigger an evaluation for the rule. This parameter is required.- Returns:
this- See Also:
-
scope
@Stability(Stable) public CfnConfigRulePropsMixin.Builder scope(CfnConfigRulePropsMixin.ScopeProperty scope) Defines which resources can trigger an evaluation for the rule.The scope can include one or more resource types, a combination of one resource type and one resource ID, or a combination of a tag key and value. Specify a scope to constrain the resources that can trigger an evaluation for the rule. If you do not specify a scope, evaluations are triggered when any resource in the recording group changes.
- Parameters:
scope- Defines which resources can trigger an evaluation for the rule. This parameter is required.- Returns:
this- See Also:
-
source
Provides the rule owner (AWSfor managed rules,CUSTOM_POLICYfor Custom Policy rules, andCUSTOM_LAMBDAfor Custom Lambda rules), the rule identifier, and the notifications that cause the function to evaluate your AWS resources.- Parameters:
source- Provides the rule owner (AWSfor managed rules,CUSTOM_POLICYfor Custom Policy rules, andCUSTOM_LAMBDAfor Custom Lambda rules), the rule identifier, and the notifications that cause the function to evaluate your AWS resources. This parameter is required.- Returns:
this- See Also:
-
source
@Stability(Stable) public CfnConfigRulePropsMixin.Builder source(CfnConfigRulePropsMixin.SourceProperty source) Provides the rule owner (AWSfor managed rules,CUSTOM_POLICYfor Custom Policy rules, andCUSTOM_LAMBDAfor Custom Lambda rules), the rule identifier, and the notifications that cause the function to evaluate your AWS resources.- Parameters:
source- Provides the rule owner (AWSfor managed rules,CUSTOM_POLICYfor Custom Policy rules, andCUSTOM_LAMBDAfor Custom Lambda rules), the rule identifier, and the notifications that cause the function to evaluate your AWS resources. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnConfigRulePropsMixin>- Returns:
- a newly built instance of
CfnConfigRulePropsMixin.
-