deleteInsight method

Future<DeleteInsightResponse> deleteInsight({
  1. required String insightArn,
})

Deletes the insight specified by the InsightArn.

May throw InternalException. May throw InvalidInputException. May throw InvalidAccessException. May throw LimitExceededException. May throw ResourceNotFoundException.

Parameter insightArn : The ARN of the insight to delete.

Implementation

Future<DeleteInsightResponse> deleteInsight({
  required String insightArn,
}) async {
  ArgumentError.checkNotNull(insightArn, 'insightArn');
  final response = await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri:
        '/insights/${insightArn.split('/').map(Uri.encodeComponent).join('/')}',
    exceptionFnMap: _exceptionFns,
  );
  return DeleteInsightResponse.fromJson(response);
}