list_indexes
async
¶
list_indexes(
*,
config_overrides: Optional[AsyncResourceExplorer2ClientConfig] = 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/async_resource_explorer2.py
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 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 | |