list_recommended_actions
async
¶
list_recommended_actions(
*,
config_overrides: Optional[AsyncComputeOptimizerAutomationClientConfig] = 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/async_compute_optimizer_automation.py
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 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 | |