@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)",
date="2023-03-22T19:35:50.727Z")
public interface CfnConfigRuleProps
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.config.*; Object inputParameters; CfnConfigRuleProps cfnConfigRuleProps = CfnConfigRuleProps.builder() .source(SourceProperty.builder() .owner("owner") // the properties below are optional .customPolicyDetails(CustomPolicyDetailsProperty.builder() .enableDebugLogDelivery(false) .policyRuntime("policyRuntime") .policyText("policyText") .build()) .sourceDetails(List.of(SourceDetailProperty.builder() .eventSource("eventSource") .messageType("messageType") // the properties below are optional .maximumExecutionFrequency("maximumExecutionFrequency") .build())) .sourceIdentifier("sourceIdentifier") .build()) // the properties below are optional .configRuleName("configRuleName") .description("description") .inputParameters(inputParameters) .maximumExecutionFrequency("maximumExecutionFrequency") .scope(ScopeProperty.builder() .complianceResourceId("complianceResourceId") .complianceResourceTypes(List.of("complianceResourceTypes")) .tagKey("tagKey") .tagValue("tagValue") .build()) .build();
Modifier and Type | Interface and Description |
---|---|
static class |
CfnConfigRuleProps.Builder
A builder for
CfnConfigRuleProps |
static class |
CfnConfigRuleProps.Jsii$Proxy
An implementation for
CfnConfigRuleProps |
Modifier and Type | Method and Description |
---|---|
static CfnConfigRuleProps.Builder |
builder() |
default java.lang.String |
getConfigRuleName()
A name for the AWS Config rule.
|
default java.lang.String |
getDescription()
The description that you provide for the AWS Config rule.
|
default java.lang.Object |
getInputParameters()
A string, in JSON format, that is passed to the AWS Config rule Lambda function.
|
default java.lang.String |
getMaximumExecutionFrequency()
The maximum frequency with which AWS Config runs evaluations for a rule.
|
default java.lang.Object |
getScope()
Defines which resources can trigger an evaluation for the rule.
|
java.lang.Object |
getSource()
Provides the rule owner ( `AWS` for managed rules, `CUSTOM_POLICY` for Custom Policy rules, and `CUSTOM_LAMBDA` for Custom Lambda rules), the rule identifier, and the notifications that cause the function to evaluate your AWS resources.
|
java.lang.Object getSource()
default java.lang.String getConfigRuleName()
If you don't specify a name, AWS CloudFormation generates a unique physical ID and uses that ID for the rule name. For more information, see Name Type .
default java.lang.String getDescription()
default java.lang.Object getInputParameters()
default java.lang.String getMaximumExecutionFrequency()
You can specify a value for MaximumExecutionFrequency
when:
By default, rules with a periodic trigger are evaluated every 24 hours. To change the frequency, specify a valid value for the
MaximumExecutionFrequency
parameter.
default java.lang.Object getScope()
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.
The scope can be empty.
static CfnConfigRuleProps.Builder builder()
CfnConfigRuleProps.Builder
of CfnConfigRuleProps