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
5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 | |