create_custom_detection_rule_org_configuration
async
¶
create_custom_detection_rule_org_configuration(
*,
config_overrides: Optional[AsyncGuardDutyClientConfig] = None,
rule_id: Optional[RuleId] = None,
mode: Optional[AssociationMode] = None,
include_account_ids: Optional[DetectionRuleAccountIds] = None,
exclude_account_ids: Optional[DetectionRuleAccountIds] = None,
client_token: Optional[ClientToken] = None,
) -> CreateCustomDetectionRuleOrgConfigurationResponse
Creates an organization-level configuration that enables a custom detection rule across your organization. This operation is available only to the delegated administrator account.
Parameters:
-
rule_id(Optional[RuleId], default:None) –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. -
client_token(Optional[ClientToken], default:None) –A unique, case-sensitive identifier to ensure that the operation completes no more than one time.
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.