update_findings
¶
update_findings(
*,
config_overrides: Optional[SecurityHubClientConfig] = None,
filters: Optional[AwsSecurityFindingFilters] = None,
note: Optional[NoteUpdate] = None,
record_state: Optional[RecordState] = None,
) -> UpdateFindingsResponse
UpdateFindings is a deprecated operation. Instead of UpdateFindings, use the BatchUpdateFindings operation.
The UpdateFindings operation updates the Note and RecordState of the Security Hub CSPM aggregated findings that the filter attributes specify. Any member account that can view the finding can also see the update to the finding.
Finding updates made with UpdateFindings aren't persisted if the same finding is later updated by the finding provider through the BatchImportFindings operation. In addition, Security Hub CSPM doesn't record updates made with UpdateFindings in the finding history.
Parameters:
-
filters(Optional[AwsSecurityFindingFilters], default:None) –A collection of attributes that specify which findings you want to update.
-
note(Optional[NoteUpdate], default:None) –The updated note for the finding.
-
record_state(Optional[RecordState], default:None) –The updated record state for the finding.
Raises:
-
InternalException–Internal server error.
-
InvalidAccessException–The account doesn't have permission to perform this action.
-
InvalidInputException–The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
-
LimitExceededException–The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
-
ResourceNotFoundException–The request was rejected because we can't find the specified resource.
-
UnknownServiceError–The service returned an error code this client does not model.