list_recommendations
async
¶
list_recommendations(
insight_id: InsightId,
*,
config_overrides: Optional[AsyncDevOpsGuruClientConfig] = None,
next_token: Optional[UuidNextToken] = None,
locale: Optional[Locale] = None,
account_id: Optional[AwsAccountId] = None,
) -> ListRecommendationsResponse
Returns a list of a specified insight's recommendations. Each recommendation includes a list of related metrics and a list of related events.
Parameters:
-
insight_id(InsightId) –The ID of the requested insight.
-
next_token(Optional[UuidNextToken], default:None) –The pagination token to use to retrieve the next page of results for this operation. If this value is null, it retrieves the first page.
-
locale(Optional[Locale], default:None) –A locale that specifies the language to use for recommendations.
-
account_id(Optional[AwsAccountId], default:None) –The ID of the Amazon Web Services account.
Raises:
-
AccessDeniedException–You don't have permissions to perform the requested operation. The user or role that is making the request must have at least one IAM permissions policy attached that grants the required permissions. For more information, see Access Management in the IAM User Guide.
-
InternalServerException–An internal failure in an Amazon service occurred.
-
ResourceNotFoundException–A requested resource could not be found
-
ThrottlingException–The request was denied due to a request throttling.
-
ValidationException–Contains information about data passed in to a field during a request that is not valid.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_devops_guru/_services/async_dev_ops_guru.py
1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 | |