start_audit_mitigation_actions_task
async
¶
start_audit_mitigation_actions_task(
task_id: MitigationActionsTaskId,
target: AuditMitigationActionsTaskTarget,
audit_check_to_actions_mapping: AuditCheckToActionsMapping,
client_request_token: ClientRequestToken,
*,
config_overrides: Optional[AsyncIoTClientConfig] = 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/async_io_t.py
16386 16387 16388 16389 16390 16391 16392 16393 16394 16395 16396 16397 16398 16399 16400 16401 16402 16403 16404 16405 16406 16407 16408 16409 16410 16411 16412 16413 16414 16415 16416 16417 16418 16419 16420 16421 16422 16423 16424 16425 16426 16427 16428 16429 16430 16431 16432 16433 16434 16435 16436 16437 16438 16439 16440 16441 16442 16443 | |