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
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 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 | |