update_custom_detection_rule_org_configuration
¶
update_custom_detection_rule_org_configuration(
rule_id: RuleId,
*,
config_overrides: Optional[GuardDutyClientConfig] = None,
mode: Optional[AssociationMode] = None,
include_account_ids: Optional[DetectionRuleAccountIds] = None,
exclude_account_ids: Optional[DetectionRuleAccountIds] = None,
) -> UpdateCustomDetectionRuleOrgConfigurationResponse
Updates the organization-level configuration for a custom detection rule, including the mode and include/exclude account lists.
Parameters:
-
rule_id(RuleId) –The unique identifier for the custom detection rule.
-
mode(Optional[AssociationMode], default:None) –The execution mode of the organization configuration. Valid values:
LIVE|DRY_RUN. -
include_account_ids(Optional[DetectionRuleAccountIds], default:None) –The account IDs to include in the organization configuration. Mutually exclusive with
ExcludeAccountIds. -
exclude_account_ids(Optional[DetectionRuleAccountIds], default:None) –The account IDs to exclude from the organization configuration. Mutually exclusive with
IncludeAccountIds.
Raises:
-
AccessDeniedException–An access denied exception object.
-
BadRequestException–A bad request exception object.
-
ConflictException–A request conflict exception object.
-
InternalServerErrorException–An internal server error exception object.
-
ResourceNotFoundException–The requested resource can't be found.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_guardduty/_services/guard_duty.py
5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 | |