get_resources_trends_v2
¶
get_resources_trends_v2(
*,
config_overrides: Optional[SecurityHubClientConfig] = None,
filters: Optional[ResourcesTrendsFilters] = None,
start_time: Optional[Timestamp] = None,
end_time: Optional[Timestamp] = None,
next_token: Optional[NextToken] = None,
max_results: Optional[MaxResults] = None,
) -> GetResourcesTrendsV2Response
Returns resource trend data based on the specified criteria. This operation helps you analyze patterns and changes in resource compliance over time.
Parameters:
-
filters(Optional[ResourcesTrendsFilters], default:None) –The filters to apply to the resources trend data.
-
start_time(Optional[Timestamp], default:None) –The starting timestamp for the time period to analyze resources trends, in ISO 8601 format.
-
end_time(Optional[Timestamp], default:None) –The ending timestamp for the time period to analyze resources trends, in ISO 8601 format.
-
next_token(Optional[NextToken], default:None) –The token to use for paginating results. This value is returned in the response if more results are available.
-
max_results(Optional[MaxResults], default:None) –The maximum number of trend data points to return in a single response.
Raises:
-
AccessDeniedException–You don't have permission to perform the action specified in the request.
-
InternalServerException–The request has failed due to an internal failure of the service.
-
ThrottlingException–The limit on the number of requests per second was exceeded.
-
ValidationException–The request has failed validation because it's missing required fields or has invalid inputs.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_securityhub/_services/security_hub.py
5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 | |