ConfigRule
¶
Used by
-
AsyncConfigServiceClient Operationsput_config_rule -
ConfigServiceClient Operationsput_config_rule
Source code in docs_src/capo_config_service/types/config_rule.py
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.