Skip to content

ConfigRule

Source code in docs_src/capo_config_service/types/config_rule.py
class ConfigRule(TypedDict, closed=True):
    config_rule_name: NotRequired[
        "capo_config_service.types.config_rule_name.ConfigRuleName"
    ]
    """<p>The name that you assign to the Config rule. The name is required if you are adding a new rule.</p>"""
    config_rule_arn: NotRequired[
        "capo_config_service.types.string_with_char_limit256.StringWithCharLimit256"
    ]
    """<p>The Amazon Resource Name (ARN) of the Config rule.</p>"""
    config_rule_id: NotRequired[
        "capo_config_service.types.string_with_char_limit64.StringWithCharLimit64"
    ]
    """<p>The ID of the Config rule.</p>"""
    description: NotRequired[
        "capo_config_service.types.emptiable_string_with_char_limit256.EmptiableStringWithCharLimit256"
    ]
    """<p>The description that you provide for the Config rule.</p>"""
    scope: NotRequired["capo_config_service.types.scope.Scope"]
    """<p>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.</p>"""
    source: "capo_config_service.types.source.Source"
    """<p>Provides the rule owner (<code>Amazon Web Services</code> for managed rules, <code>CUSTOM_POLICY</code> for Custom Policy rules, and <code>CUSTOM_LAMBDA</code> for Custom Lambda rules), the rule identifier, and the notifications that cause the function to evaluate your Amazon Web Services resources.</p>"""
    input_parameters: NotRequired[
        "capo_config_service.types.string_with_char_limit1024.StringWithCharLimit1024"
    ]
    """<p>A string, in JSON format, that is passed to the Config rule Lambda function.</p>"""
    maximum_execution_frequency: NotRequired[
        "capo_config_service.types.maximum_execution_frequency.MaximumExecutionFrequency"
    ]
    """<p>The maximum frequency with which Config runs evaluations for a rule. You can specify a value for <code>MaximumExecutionFrequency</code> when:</p> <ul> <li> <p>This is for an Config managed rule that is triggered at a periodic frequency.</p> </li> <li> <p>Your custom rule is triggered when Config delivers the configuration snapshot. For more information, see <a>ConfigSnapshotDeliveryProperties</a>.</p> </li> </ul> <note> <p>By default, rules with a periodic trigger are evaluated every 24 hours. To change the frequency, specify a valid value for the <code>MaximumExecutionFrequency</code> parameter.</p> </note>"""
    config_rule_state: NotRequired[
        "capo_config_service.types.config_rule_state.ConfigRuleState"
    ]
    """<p>Indicates whether the Config rule is active or is currently being deleted by Config. It can also indicate the evaluation status for the Config rule.</p> <p>Config sets the state of the rule to <code>EVALUATING</code> temporarily after you use the <code>StartConfigRulesEvaluation</code> request to evaluate your resources against the Config rule.</p> <p>Config sets the state of the rule to <code>DELETING_RESULTS</code> temporarily after you use the <code>DeleteEvaluationResults</code> request to delete the current evaluation results for the Config rule.</p> <p>Config temporarily sets the state of a rule to <code>DELETING</code> after you use the <code>DeleteConfigRule</code> request to delete the rule. After Config deletes the rule, the rule and all of its evaluations are erased and are no longer available.</p>"""
    created_by: NotRequired[
        "capo_config_service.types.string_with_char_limit256.StringWithCharLimit256"
    ]
    """<p>Service principal name of the service that created the rule.</p> <note> <p>The field is populated only if the service-linked rule is created by a service. The field is empty if you create your own rule.</p> </note>"""
    evaluation_modes: NotRequired[
        "capo_config_service.types.evaluation_modes.EvaluationModes"
    ]
    """<p>The modes the Config rule can be evaluated in. The valid values are distinct objects. By default, the value is Detective evaluation mode only.</p>"""
    rule_evaluation_visibility: NotRequired[
        "capo_config_service.types.rule_evaluation_visibility.RuleEvaluationVisibility"
    ]
    """<p>Indicates whether you can get <a>Evaluation</a>s for the Config rule. You can get <a>Evaluation</a>s for the Amazon Web Services Config rule if this value is <code>EXTERNAL</code>. You cannot get <a>Evaluation</a>s for the Amazon Web Services Config rule if this value is <code>INTERNAL</code>.</p>"""

config_rule_arn instance-attribute

config_rule_arn: NotRequired[StringWithCharLimit256]

The Amazon Resource Name (ARN) of the Config rule.

config_rule_id instance-attribute

config_rule_id: NotRequired[StringWithCharLimit64]

The ID of the Config rule.

config_rule_name instance-attribute

config_rule_name: NotRequired[ConfigRuleName]

The name that you assign to the Config rule. The name is required if you are adding a new rule.

config_rule_state instance-attribute

config_rule_state: NotRequired[ConfigRuleState]

Indicates whether the Config rule is active or is currently being deleted by Config. It can also indicate the evaluation status for the Config rule.

Config sets the state of the rule to EVALUATING temporarily after you use the StartConfigRulesEvaluation request to evaluate your resources against the Config rule.

Config sets the state of the rule to DELETING_RESULTS temporarily after you use the DeleteEvaluationResults request to delete the current evaluation results for the Config rule.

Config temporarily sets the state of a rule to DELETING after you use the DeleteConfigRule request to delete the rule. After Config deletes the rule, the rule and all of its evaluations are erased and are no longer available.

created_by instance-attribute

created_by: NotRequired[StringWithCharLimit256]

Service principal name of the service that created the rule.

The field is populated only if the service-linked rule is created by a service. The field is empty if you create your own rule.

description instance-attribute

description: NotRequired[EmptiableStringWithCharLimit256]

The description that you provide for the Config rule.

evaluation_modes instance-attribute

evaluation_modes: NotRequired[EvaluationModes]

The modes the Config rule can be evaluated in. The valid values are distinct objects. By default, the value is Detective evaluation mode only.

input_parameters instance-attribute

input_parameters: NotRequired[StringWithCharLimit1024]

A string, in JSON format, that is passed to the Config rule Lambda function.

maximum_execution_frequency instance-attribute

maximum_execution_frequency: NotRequired[MaximumExecutionFrequency]

The maximum frequency with which Config runs evaluations for a rule. You can specify a value for MaximumExecutionFrequency when:

  • This is for an Config managed rule that is triggered at a periodic frequency.

  • Your custom rule is triggered when 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 MaximumExecutionFrequency parameter.

rule_evaluation_visibility instance-attribute

rule_evaluation_visibility: NotRequired[RuleEvaluationVisibility]

Indicates whether you can get Evaluations for the Config rule. You can get Evaluations for the Amazon Web Services Config rule if this value is EXTERNAL. You cannot get Evaluations for the Amazon Web Services Config rule if this value is INTERNAL.

scope instance-attribute

scope: NotRequired[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.

source instance-attribute

source: Source

Provides the rule owner (Amazon Web Services 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 Amazon Web Services resources.