interface CfnConfigRuleMixinProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.Config.Mixins.CfnConfigRuleMixinProps |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsconfig/mixins#CfnConfigRuleMixinProps |
Java | software.amazon.awscdk.mixins.preview.services.config.mixins.CfnConfigRuleMixinProps |
Python | aws_cdk.mixins_preview.aws_config.mixins.CfnConfigRuleMixinProps |
TypeScript | @aws-cdk/mixins-preview » aws_config » mixins » CfnConfigRuleMixinProps |
Properties for CfnConfigRulePropsMixin.
See also: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-config-configrule.html
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins as config_mixins } from '@aws-cdk/mixins-preview/aws-config';
declare const inputParameters: any;
const cfnConfigRuleMixinProps: config_mixins.CfnConfigRuleMixinProps = {
compliance: {
type: 'type',
},
configRuleName: 'configRuleName',
description: 'description',
evaluationModes: [{
mode: 'mode',
}],
inputParameters: inputParameters,
maximumExecutionFrequency: 'maximumExecutionFrequency',
scope: {
complianceResourceId: 'complianceResourceId',
complianceResourceTypes: ['complianceResourceTypes'],
tagKey: 'tagKey',
tagValue: 'tagValue',
},
source: {
customPolicyDetails: {
enableDebugLogDelivery: false,
policyRuntime: 'policyRuntime',
policyText: 'policyText',
},
owner: 'owner',
sourceDetails: [{
eventSource: 'eventSource',
maximumExecutionFrequency: 'maximumExecutionFrequency',
messageType: 'messageType',
}],
sourceIdentifier: 'sourceIdentifier',
},
};
Properties
| Name | Type | Description |
|---|---|---|
| compliance? | IResolvable | Compliance | Indicates whether an AWS resource or AWS Config rule is compliant and provides the number of contributors that affect the compliance. |
| config | string | A name for the AWS Config rule. |
| description? | string | The description that you provide for the AWS Config rule. |
| evaluation | IResolvable | (IResolvable | Evaluation)[] | The modes the AWS Config rule can be evaluated in. |
| input | any | A string, in JSON format, that is passed to the AWS Config rule Lambda function. |
| maximum | string | The maximum frequency with which AWS Config runs evaluations for a rule. |
| scope? | IResolvable | Scope | Defines which resources can trigger an evaluation for the rule. |
| source? | IResolvable | Source | 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. |
compliance?
Type:
IResolvable | Compliance
(optional)
Indicates whether an AWS resource or AWS Config rule is compliant and provides the number of contributors that affect the compliance.
configRuleName?
Type:
string
(optional)
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 .
description?
Type:
string
(optional)
The description that you provide for the AWS Config rule.
evaluationModes?
Type:
IResolvable | (IResolvable | Evaluation)[]
(optional)
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.
inputParameters?
Type:
any
(optional)
A string, in JSON format, that is passed to the AWS Config rule Lambda function.
maximumExecutionFrequency?
Type:
string
(optional)
The maximum frequency with which AWS Config runs evaluations for a rule.
You can specify a value for MaximumExecutionFrequency when:
- 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.
scope?
Type:
IResolvable | Scope
(optional)
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.
source?
Type:
IResolvable | Source
(optional)
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.

.NET
Go
Java
Python
TypeScript