Interface CfnConfigRuleMixinProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnConfigRuleMixinProps.Jsii$Proxy
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cfnpropertymixins.services.config.*;
Object inputParameters;
CfnConfigRuleMixinProps cfnConfigRuleMixinProps = CfnConfigRuleMixinProps.builder()
.compliance(ComplianceProperty.builder()
.type("type")
.build())
.configRuleName("configRuleName")
.description("description")
.evaluationModes(List.of(EvaluationModeConfigurationProperty.builder()
.mode("mode")
.build()))
.inputParameters(inputParameters)
.maximumExecutionFrequency("maximumExecutionFrequency")
.scope(ScopeProperty.builder()
.complianceResourceId("complianceResourceId")
.complianceResourceTypes(List.of("complianceResourceTypes"))
.tagKey("tagKey")
.tagValue("tagValue")
.build())
.source(SourceProperty.builder()
.customPolicyDetails(CustomPolicyDetailsProperty.builder()
.enableDebugLogDelivery(false)
.policyRuntime("policyRuntime")
.policyText("policyText")
.build())
.owner("owner")
.sourceDetails(List.of(SourceDetailProperty.builder()
.eventSource("eventSource")
.maximumExecutionFrequency("maximumExecutionFrequency")
.messageType("messageType")
.build()))
.sourceIdentifier("sourceIdentifier")
.build())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnConfigRuleMixinPropsstatic final classAn implementation forCfnConfigRuleMixinProps -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default ObjectIndicates whether an AWS resource or AWS Config rule is compliant and provides the number of contributors that affect the compliance.default StringA name for the AWS Config rule.default StringThe description that you provide for the AWS Config rule.default ObjectThe modes the AWS Config rule can be evaluated in.default ObjectA string, in JSON format, that is passed to the AWS Config rule Lambda function.default StringThe maximum frequency with which AWS Config runs evaluations for a rule.default ObjectgetScope()Defines which resources can trigger an evaluation for the rule.default ObjectProvides 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.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getCompliance
Indicates whether an AWS resource or AWS Config rule is compliant and provides the number of contributors that affect the compliance.Returns union: either
IResolvableorCfnConfigRulePropsMixin.ComplianceProperty- See Also:
-
getConfigRuleName
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 .
- See Also:
-
getDescription
The description that you provide for the AWS Config rule.- See Also:
-
getEvaluationModes
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.
Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnConfigRulePropsMixin.EvaluationModeConfigurationProperty>- See Also:
-
getInputParameters
A string, in JSON format, that is passed to the AWS Config rule Lambda function.- See Also:
-
getMaximumExecutionFrequency
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.- See Also:
-
getScope
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.
Returns union: either
IResolvableorCfnConfigRulePropsMixin.ScopeProperty- See Also:
-
getSource
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.Returns union: either
IResolvableorCfnConfigRulePropsMixin.SourceProperty- See Also:
-
builder
- Returns:
- a
CfnConfigRuleMixinProps.BuilderofCfnConfigRuleMixinProps
-