updateFindings method
Future<void>
updateFindings({
- required AwsSecurityFindingFilters filters,
- NoteUpdate? note,
- RecordState? recordState,
UpdateFindings
is deprecated. Instead of
UpdateFindings
, use BatchUpdateFindings
.
Updates the Note
and RecordState
of the Security
Hub-aggregated findings that the filter attributes specify. Any member
account that can view the finding also sees the update to the finding.
May throw InternalException. May throw InvalidInputException. May throw LimitExceededException. May throw InvalidAccessException. May throw ResourceNotFoundException.
Parameter filters
:
A collection of attributes that specify which findings you want to update.
Parameter note
:
The updated note for the finding.
Parameter recordState
:
The updated record state for the finding.
Implementation
Future<void> updateFindings({
required AwsSecurityFindingFilters filters,
NoteUpdate? note,
RecordState? recordState,
}) async {
ArgumentError.checkNotNull(filters, 'filters');
final $payload = <String, dynamic>{
'Filters': filters,
if (note != null) 'Note': note,
if (recordState != null) 'RecordState': recordState.toValue(),
};
final response = await _protocol.send(
payload: $payload,
method: 'PATCH',
requestUri: '/findings',
exceptionFnMap: _exceptionFns,
);
}