list_indexes
¶
list_indexes(
*,
config_overrides: Optional[ResourceExplorer2ClientConfig] = None,
type: Optional[IndexType] = None,
regions: Optional[RegionList] = None,
max_results: Optional[int] = None,
next_token: Optional[str] = None,
) -> ListIndexesOutput
Retrieves a list of all of the indexes in Amazon Web Services Regions that are currently collecting resource information for Amazon Web Services Resource Explorer.
Parameters:
-
type(Optional[IndexType], default:None) –If specified, limits the output to only indexes of the specified Type, either
LOCALorAGGREGATOR.Use this option to discover the aggregator index for your account.
-
regions(Optional[RegionList], default:None) –If specified, limits the response to only information about the index in the specified list of Amazon Web Services Regions.
-
max_results(Optional[int], default:None) –The maximum number of results that you want included on each page of the response. If you do not include this parameter, it defaults to a value appropriate to the operation. If additional items exist beyond those included in the current response, the
NextTokenresponse element is present and has a value (is not null). Include that value as theNextTokenrequest parameter in the next call to the operation to get the next part of the results.An API operation can return fewer results than the maximum even when there are more results available. You should check
NextTokenafter every operation to ensure that you receive all of the results. -
next_token(Optional[str], default:None) –The parameter for receiving additional results if you receive a
NextTokenresponse in a previous request. ANextTokenresponse indicates that more output is available. Set this parameter to the value of the previous call'sNextTokenresponse to indicate where the output should continue from. The pagination tokens expire after 24 hours.
Raises:
-
AccessDeniedException–The credentials that you used to call this operation don't have the minimum required permissions.
-
InternalServerException–The request failed because of internal service error. Try your request again later.
-
ThrottlingException–The request failed because you exceeded a rate limit for this operation. For more information, see Quotas for Resource Explorer.
-
ValidationException–You provided an invalid value for one of the operation's parameters. Check the syntax for the operation, and try again.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_resource_explorer_2/_services/resource_explorer2.py
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 | |