deleteAssessmentTemplate method

Future<void> deleteAssessmentTemplate({
  1. required String assessmentTemplateArn,
})

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

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

Parameter assessmentTemplateArn : The ARN that specifies the assessment template that you want to delete.

Implementation

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