describeAuditMitigationActionsTask method
Future<DescribeAuditMitigationActionsTaskResponse>
describeAuditMitigationActionsTask({
- required String taskId,
Gets information about an audit mitigation task that is used to apply mitigation actions to a set of audit findings. Properties include the actions being applied, the audit checks to which they're being applied, the task status, and aggregated task statistics.
May throw InvalidRequestException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw InternalFailureException.
Parameter taskId
:
The unique identifier for the audit mitigation task.
Implementation
Future<DescribeAuditMitigationActionsTaskResponse>
describeAuditMitigationActionsTask({
required String taskId,
}) async {
ArgumentError.checkNotNull(taskId, 'taskId');
_s.validateStringLength(
'taskId',
taskId,
1,
128,
isRequired: true,
);
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri:
'/audit/mitigationactions/tasks/${Uri.encodeComponent(taskId)}',
exceptionFnMap: _exceptionFns,
);
return DescribeAuditMitigationActionsTaskResponse.fromJson(response);
}