list_resources_by_connector
¶
list_resources_by_connector(
connector_identifier: ConnectorIdentifier,
selector: ConnectorQuery,
*,
config_overrides: Optional[ObservabilityAdminClientConfig] = None,
max_results: Optional[ListResourcesByConnectorMaxResults] = None,
next_token: Optional[ConnectorNextToken] = None,
) -> ListResourcesByConnectorOutput
Lists resources in your cloud provider that the connector can access, such as management groups, subscriptions, resource types, Regions, resources, and Event Hubs. Use the results to build a telemetry manifest. This operation returns results in pages. To get the next page, pass the returned NextToken in the next call. We recommend that you use pagination to ensure that the operation returns quickly and successfully.
Parameters:
-
connector_identifier(ConnectorIdentifier) –The connector to use for the query. Specify one of the following:
-
The Amazon Resource Name (ARN) of the connector
-
The ID of the connector
-
-
selector(ConnectorQuery) –What to list: one cloud provider, and one type of resource in that provider.
-
max_results(Optional[ListResourcesByConnectorMaxResults], default:None) –The maximum number of results to return in one call. For an
EventHubsquery, a page can contain more results than this value. -
next_token(Optional[ConnectorNextToken], default:None) –The token for the next page of results, returned by a previous call.
Raises:
-
AccessDeniedException–Indicates 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 for Amazon Web Services resources in the IAM user guide.
-
InternalServerException–Indicates the request has failed to process because of an unknown server error, exception, or failure.
-
ResourceNotFoundException–The specified resource (such as a telemetry rule) could not be found.
-
TooManyRequestsException–The request throughput limit was exceeded.
-
ValidationException–Indicates input validation failed. Check your request parameters and retry the request.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_observabilityadmin/_services/observability_admin.py
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 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 | |