describeAuditTask method
Gets information about a Device Defender audit.
May throw InvalidRequestException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw InternalFailureException.
Parameter taskId
:
The ID of the audit whose information you want to get.
Implementation
Future<DescribeAuditTaskResponse> describeAuditTask({
required String taskId,
}) async {
ArgumentError.checkNotNull(taskId, 'taskId');
_s.validateStringLength(
'taskId',
taskId,
1,
40,
isRequired: true,
);
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/audit/tasks/${Uri.encodeComponent(taskId)}',
exceptionFnMap: _exceptionFns,
);
return DescribeAuditTaskResponse.fromJson(response);
}