updateInsight method
Updates the Security Hub CSPM insight identified by the specified insight ARN.
May throw InternalException.
May throw InvalidAccessException.
May throw InvalidInputException.
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 {
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,
);
}