get_finding_history
¶
get_finding_history(
*,
config_overrides: Optional[SecurityHubClientConfig] = None,
finding_identifier: Optional[AwsSecurityFindingIdentifier] = None,
start_time: Optional[Timestamp] = None,
end_time: Optional[Timestamp] = None,
next_token: Optional[NextToken] = None,
max_results: Optional[MaxResults] = None,
) -> GetFindingHistoryResponse
Returns the history of a Security Hub CSPM finding. The history includes changes made to any fields in the Amazon Web Services Security Finding Format (ASFF) except top-level timestamp fields, such as the CreatedAt and UpdatedAt fields.
This operation might return fewer results than the maximum number of results (MaxResults) specified in a request, even when more results are available. If this occurs, the response includes a NextToken value, which you should use to retrieve the next set of results in the response. The presence of a NextToken value in a response doesn't necessarily indicate that the results are incomplete. However, you should continue to specify a NextToken value until you receive a response that doesn't include this value.
Parameters:
-
start_time(Optional[Timestamp], default:None) –A timestamp that indicates the start time of the requested finding history.
If you provide values for both
StartTimeandEndTime, Security Hub CSPM returns finding history for the specified time period. If you provide a value forStartTimebut not forEndTime, Security Hub CSPM returns finding history from theStartTimeto the time at which the API is called. If you provide a value forEndTimebut not forStartTime, Security Hub CSPM returns finding history from the CreatedAt timestamp of the finding to theEndTime. If you provide neitherStartTimenorEndTime, Security Hub CSPM returns finding history from theCreatedAttimestamp of the finding to the time at which the API is called. In all of these scenarios, the response is limited to 100 results.For more information about the validation and formatting of timestamp fields in Security Hub CSPM, see Timestamps.
-
end_time(Optional[Timestamp], default:None) –An ISO 8601-formatted timestamp that indicates the end time of the requested finding history.
If you provide values for both
StartTimeandEndTime, Security Hub CSPM returns finding history for the specified time period. If you provide a value forStartTimebut not forEndTime, Security Hub CSPM returns finding history from theStartTimeto the time at which the API is called. If you provide a value forEndTimebut not forStartTime, Security Hub CSPM returns finding history from the CreatedAt timestamp of the finding to theEndTime. If you provide neitherStartTimenorEndTime, Security Hub CSPM returns finding history from theCreatedAttimestamp of the finding to the time at which the API is called. In all of these scenarios, the response is limited to 100 results.For more information about the validation and formatting of timestamp fields in Security Hub CSPM, see Timestamps.
-
next_token(Optional[NextToken], default:None) –A token for pagination purposes. Provide
NULLas the initial value. In subsequent requests, provide the token included in the response to get up to an additional 100 results of finding history. If you don’t provideNextToken, Security Hub CSPM returns up to 100 results of finding history for each request. -
max_results(Optional[MaxResults], default:None) –The maximum number of results to be returned. If you don’t provide it, Security Hub CSPM returns up to 100 results of finding history.
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.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_securityhub/_services/security_hub.py
4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 | |