update_automation_rule_v2
async
¶
update_automation_rule_v2(
identifier: NonEmptyString,
*,
config_overrides: Optional[AsyncSecurityHubClientConfig] = None,
rule_status: Optional[RuleStatusV2] = None,
rule_order: Optional[RuleOrderValueV2] = None,
description: Optional[NonEmptyString] = None,
rule_name: Optional[NonEmptyString] = None,
criteria: Optional[Criteria] = None,
actions: Optional[AutomationRulesActionListV2] = None,
) -> UpdateAutomationRuleV2Response
Updates a V2 automation rule.
Parameters:
-
identifier(NonEmptyString) –The ARN of the automation rule.
-
rule_status(Optional[RuleStatusV2], default:None) –The status of the automation rule.
-
rule_order(Optional[RuleOrderValueV2], default:None) –Represents a value for the rule priority.
-
description(Optional[NonEmptyString], default:None) –A description of the automation rule.
-
rule_name(Optional[NonEmptyString], default:None) –The name of the automation rule.
-
criteria(Optional[Criteria], default:None) –The filtering type and configuration of the automation rule.
-
actions(Optional[AutomationRulesActionListV2], default:None) –A list of actions to be performed when the rule criteria is met.
Raises:
-
AccessDeniedException–You don't have permission to perform the action specified in the request.
-
ConflictException–The request causes conflict with the current state of the service resource.
-
InternalServerException–The request has failed due to an internal failure of the service.
-
ResourceNotFoundException–The request was rejected because we can't find the specified resource.
-
ThrottlingException–The limit on the number of requests per second was exceeded.
-
ValidationException–The request has failed validation because it's missing required fields or has invalid inputs.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_securityhub/_services/async_security_hub.py
8458 8459 8460 8461 8462 8463 8464 8465 8466 8467 8468 8469 8470 8471 8472 8473 8474 8475 8476 8477 8478 8479 8480 8481 8482 8483 8484 8485 8486 8487 8488 8489 8490 8491 8492 8493 8494 8495 8496 8497 8498 8499 8500 8501 8502 8503 8504 8505 8506 8507 8508 8509 8510 8511 8512 8513 8514 8515 8516 8517 8518 8519 8520 8521 8522 8523 8524 8525 8526 8527 8528 8529 8530 8531 8532 8533 8534 8535 8536 8537 8538 8539 8540 8541 | |