GuardDuty Structures RuleDefinition¶ Structure Class¶ RuleDefinition dataclass ¶ Bases: _SerdeShape Contains the detection logic for a custom detection rule. Attributes¶ expression class-attribute instance-attribute ¶ expression: str | None = ... The detection logic expression for the rule.