deleteInsight method
Deletes the insight specified by the InsightArn.
May throw InternalException.
May throw InvalidAccessException.
May throw InvalidInputException.
May throw LimitExceededException.
May throw ResourceNotFoundException.
Parameter insightArn :
The ARN of the insight to delete.
Implementation
Future<DeleteInsightResponse> deleteInsight({
required String insightArn,
}) async {
final response = await _protocol.send(
payload: null,
method: 'DELETE',
requestUri:
'/insights/${insightArn.split('/').map(Uri.encodeComponent).join('/')}',
exceptionFnMap: _exceptionFns,
);
return DeleteInsightResponse.fromJson(response);
}