updateInsight method
      
Future<void> 
updateInsight({ 
    
- required String insightArn,
 - AwsSecurityFindingFilters? filters,
 - String? groupByAttribute,
 - String? name,
 
Updates the Security Hub insight identified by the specified insight ARN.
May throw InternalException. May throw InvalidInputException. May throw InvalidAccessException. May throw LimitExceededException. May throw ResourceNotFoundException.
Parameter insightArn :
The ARN of the insight that you want to update.
Parameter filters :
The updated filters that define this insight.
Parameter groupByAttribute :
The updated GroupBy attribute that defines this insight.
Parameter name :
The updated name for the insight.
Implementation
Future<void> updateInsight({
  required String insightArn,
  AwsSecurityFindingFilters? filters,
  String? groupByAttribute,
  String? name,
}) async {
  ArgumentError.checkNotNull(insightArn, 'insightArn');
  final $payload = <String, dynamic>{
    if (filters != null) 'Filters': filters,
    if (groupByAttribute != null) 'GroupByAttribute': groupByAttribute,
    if (name != null) 'Name': name,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'PATCH',
    requestUri:
        '/insights/${insightArn.split('/').map(Uri.encodeComponent).join('/')}',
    exceptionFnMap: _exceptionFns,
  );
}