update_custom_detection_rule_org_configuration
async
¶
update_custom_detection_rule_org_configuration(
rule_id: RuleId,
*,
config_overrides: Optional[AsyncGuardDutyClientConfig] = 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/async_guard_duty.py
6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 | |