update_mitigation_action
¶
update_mitigation_action(
action_name: MitigationActionName,
*,
config_overrides: Optional[IoTClientConfig] = 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/io_t.py
17870 17871 17872 17873 17874 17875 17876 17877 17878 17879 17880 17881 17882 17883 17884 17885 17886 17887 17888 17889 17890 17891 17892 17893 17894 17895 17896 17897 17898 17899 17900 17901 17902 17903 17904 17905 17906 17907 17908 17909 17910 17911 17912 17913 17914 17915 17916 17917 17918 17919 17920 17921 17922 17923 17924 17925 17926 | |