deleteAssessmentRun method
Deletes the assessment run that is specified by the ARN of the assessment run.
May throw InternalException. May throw InvalidInputException. May throw AssessmentRunInProgressException. May throw AccessDeniedException. May throw NoSuchEntityException. May throw ServiceTemporarilyUnavailableException.
Parameter assessmentRunArn
:
The ARN that specifies the assessment run that you want to delete.
Implementation
Future<void> deleteAssessmentRun({
required String assessmentRunArn,
}) async {
ArgumentError.checkNotNull(assessmentRunArn, 'assessmentRunArn');
_s.validateStringLength(
'assessmentRunArn',
assessmentRunArn,
1,
300,
isRequired: true,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'InspectorService.DeleteAssessmentRun'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'assessmentRunArn': assessmentRunArn,
},
);
}