deleteAssessmentTarget method

Future<void> deleteAssessmentTarget({
  1. required String assessmentTargetArn,
})

Deletes the assessment target that is specified by the ARN of the assessment target.

May throw InternalException. May throw InvalidInputException. May throw AssessmentRunInProgressException. May throw AccessDeniedException. May throw NoSuchEntityException. May throw ServiceTemporarilyUnavailableException.

Parameter assessmentTargetArn : The ARN that specifies the assessment target that you want to delete.

Implementation

Future<void> deleteAssessmentTarget({
  required String assessmentTargetArn,
}) async {
  ArgumentError.checkNotNull(assessmentTargetArn, 'assessmentTargetArn');
  _s.validateStringLength(
    'assessmentTargetArn',
    assessmentTargetArn,
    1,
    300,
    isRequired: true,
  );
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'InspectorService.DeleteAssessmentTarget'
  };
  await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'assessmentTargetArn': assessmentTargetArn,
    },
  );
}