get_finding_history
async
¶
get_finding_history(
*,
config_overrides: Optional[AsyncSecurityHubClientConfig] = 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/async_security_hub.py
4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 | |