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
8111 8112 8113 8114 8115 8116 8117 8118 8119 8120 8121 8122 8123 8124 8125 8126 8127 8128 8129 8130 8131 8132 8133 8134 8135 8136 8137 8138 8139 8140 8141 8142 8143 8144 8145 8146 8147 8148 8149 8150 8151 8152 8153 8154 8155 8156 8157 8158 8159 8160 8161 8162 8163 8164 8165 8166 8167 8168 8169 8170 8171 8172 8173 8174 8175 8176 8177 8178 8179 8180 8181 8182 8183 8184 8185 8186 8187 8188 8189 8190 8191 8192 8193 8194 | |