update_mitigation_action
async
¶
update_mitigation_action(
action_name: MitigationActionName,
*,
config_overrides: Optional[AsyncIoTClientConfig] = None,
role_arn: Optional[RoleArn] = None,
action_params: Optional[MitigationActionParams] = None,
) -> UpdateMitigationActionResponse
Updates the definition for the specified mitigation action.
Requires permission to access the UpdateMitigationAction action.
Parameters:
-
action_name(MitigationActionName) –The friendly name for the mitigation action. You cannot change the name by using
UpdateMitigationAction. Instead, you must delete and recreate the mitigation action with the new name. -
role_arn(Optional[RoleArn], default:None) –The ARN of the IAM role that is used to apply the mitigation action.
-
action_params(Optional[MitigationActionParams], default:None) –Defines the type of action and the parameters for that action.
Raises:
-
InternalFailureException–An unexpected error has occurred.
-
InvalidRequestException–The request is not valid.
-
ResourceNotFoundException–The specified resource does not exist.
-
ThrottlingException–The rate exceeds the limit.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_iot/_services/async_io_t.py
18139 18140 18141 18142 18143 18144 18145 18146 18147 18148 18149 18150 18151 18152 18153 18154 18155 18156 18157 18158 18159 18160 18161 18162 18163 18164 18165 18166 18167 18168 18169 18170 18171 18172 18173 18174 18175 18176 18177 18178 18179 18180 18181 18182 18183 18184 18185 18186 18187 18188 18189 18190 18191 18192 18193 18194 18195 18196 | |