start_audit_mitigation_actions_task
¶
start_audit_mitigation_actions_task(
task_id: MitigationActionsTaskId,
target: AuditMitigationActionsTaskTarget,
audit_check_to_actions_mapping: AuditCheckToActionsMapping,
client_request_token: ClientRequestToken,
*,
config_overrides: Optional[IoTClientConfig] = None,
) -> StartAuditMitigationActionsTaskResponse
Starts a task that applies a set of mitigation actions to the specified target.
Requires permission to access the StartAuditMitigationActionsTask action.
Parameters:
-
task_id(MitigationActionsTaskId) –A unique identifier for the task. You can use this identifier to check the status of the task or to cancel it.
-
target(AuditMitigationActionsTaskTarget) –Specifies the audit findings to which the mitigation actions are applied. You can apply them to a type of audit check, to all findings from an audit, or to a specific set of findings.
-
audit_check_to_actions_mapping(AuditCheckToActionsMapping) –For an audit check, specifies which mitigation actions to apply. Those actions must be defined in your Amazon Web Services accounts.
-
client_request_token(ClientRequestToken) –Each audit mitigation task must have a unique client request token. If you try to start a new task with the same token as a task that already exists, an exception occurs. If you omit this value, a unique client request token is generated automatically.
Raises:
-
InternalFailureException–An unexpected error has occurred.
-
InvalidRequestException–The request is not valid.
-
LimitExceededException–A limit has been exceeded.
-
TaskAlreadyExistsException–This exception occurs if you attempt to start a task with the same task-id as an existing task but with a different clientRequestToken.
-
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
16144 16145 16146 16147 16148 16149 16150 16151 16152 16153 16154 16155 16156 16157 16158 16159 16160 16161 16162 16163 16164 16165 16166 16167 16168 16169 16170 16171 16172 16173 16174 16175 16176 16177 16178 16179 16180 16181 16182 16183 16184 16185 16186 16187 16188 16189 16190 16191 16192 16193 16194 16195 16196 16197 16198 16199 16200 | |