Class ManagedRuleProps
Construction properties for a ManagedRule.
Inheritance
Namespace: Amazon.CDK.AWS.Config
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class ManagedRuleProps : Object, IManagedRuleProps, IRuleProps
Syntax (vb)
Public Class ManagedRuleProps
Inherits Object
Implements IManagedRuleProps, IRuleProps
Remarks
ExampleMetadata: infused
Examples
// https://docs.aws.amazon.com/config/latest/developerguide/access-keys-rotated.html
// https://docs.aws.amazon.com/config/latest/developerguide/access-keys-rotated.html
new ManagedRule(this, "AccessKeysRotated", new ManagedRuleProps {
Identifier = ManagedRuleIdentifiers.ACCESS_KEYS_ROTATED,
InputParameters = new Dictionary<string, object> {
{ "maxAccessKeyAge", 60 }
},
// default is 24 hours
MaximumExecutionFrequency = MaximumExecutionFrequency.TWELVE_HOURS
});
Synopsis
Constructors
ManagedRuleProps() |
Properties
ConfigRuleName | A name for the AWS Config rule. |
Description | A description about this AWS Config rule. |
Identifier | The identifier of the AWS managed rule. |
InputParameters | Input parameter values that are passed to the AWS Config rule. |
MaximumExecutionFrequency | The maximum frequency at which the AWS Config rule runs evaluations. |
RuleScope | Defines which resources trigger an evaluation for an AWS Config rule. |
Constructors
ManagedRuleProps()
public ManagedRuleProps()
Properties
ConfigRuleName
A name for the AWS Config rule.
public string ConfigRuleName { get; set; }
Property Value
System.String
Remarks
Default: - CloudFormation generated name
Description
A description about this AWS Config rule.
public string Description { get; set; }
Property Value
System.String
Remarks
Default: - No description
Identifier
The identifier of the AWS managed rule.
public string Identifier { get; set; }
Property Value
System.String
Remarks
InputParameters
Input parameter values that are passed to the AWS Config rule.
public IDictionary<string, object> InputParameters { get; set; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.Object>
Remarks
Default: - No input parameters
MaximumExecutionFrequency
The maximum frequency at which the AWS Config rule runs evaluations.
public Nullable<MaximumExecutionFrequency> MaximumExecutionFrequency { get; set; }
Property Value
System.Nullable<MaximumExecutionFrequency>
Remarks
Default: MaximumExecutionFrequency.TWENTY_FOUR_HOURS
RuleScope
Defines which resources trigger an evaluation for an AWS Config rule.
public RuleScope RuleScope { get; set; }
Property Value
Remarks
Default: - evaluations for the rule are triggered when any resource in the recording group changes.