list_recommended_actions
¶
list_recommended_actions(
*,
config_overrides: Optional[ComputeOptimizerAutomationClientConfig] = None,
filters: Optional[RecommendedActionFilterList] = None,
organizational_unit_ids: Optional[OrganizationalUnitIds] = None,
max_results: Optional[int] = None,
next_token: Optional[NextToken] = None,
) -> ListRecommendedActionsResponse
Lists the recommended actions that match the specified filters.
Management accounts and delegated administrators can retrieve recommended actions for member accounts that are associated using AssociateAccounts or have an applicable organization enrollment configuration with organizationRuleMode set to AnyAllowed.
Parameters:
-
filters(Optional[RecommendedActionFilterList], default:None) –The filters to apply to the list of recommended actions.
-
organizational_unit_ids(Optional[OrganizationalUnitIds], default:None) –The organizational unit (OU) or organization root IDs to use to filter the results. The response includes recommended actions for accounts in the specified OUs and their child OUs. Only the management account or a delegated administrator can specify this parameter.
-
max_results(Optional[int], default:None) –The maximum number of recommended actions to return in a single response. If you don't specify a value, the default is 100.
-
next_token(Optional[NextToken], default:None) –A token used for pagination to retrieve the next set of results when the response is truncated.
Raises:
-
AccessDeniedException–You do not have sufficient permissions to perform this action.
-
ForbiddenException–You are not authorized to perform this action.
-
InternalServerException–An internal error occurred while processing the request.
-
InvalidParameterValueException–One or more parameter values are not valid.
-
OptInRequiredException–The account must be opted in to Compute Optimizer Automation before performing this action.
-
ServiceUnavailableException–The service is temporarily unavailable.
-
ThrottlingException–The request was denied due to request throttling.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_compute_optimizer_automation/_services/compute_optimizer_automation.py
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 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 | |