update_scope
async
¶
update_scope(
scope_id: ScopeId,
*,
config_overrides: Optional[AsyncNetworkFlowMonitorClientConfig] = None,
resources_to_add: Optional[TargetResourceList] = None,
resources_to_delete: Optional[TargetResourceList] = None,
) -> UpdateScopeOutput
Update a scope to add or remove resources that you want to be available for Network Flow Monitor to generate metrics for, when you have active agents on those resources sending metrics reports to the Network Flow Monitor backend.
Parameters:
-
scope_id(ScopeId) –The identifier for the scope that includes the resources you want to get data results for. A scope ID is an internally-generated identifier that includes all the resources for a specific root account.
-
resources_to_add(Optional[TargetResourceList], default:None) –A list of resources to add to a scope.
-
resources_to_delete(Optional[TargetResourceList], default:None) –A list of resources to delete from a scope.
Raises:
-
AccessDeniedException–You don't have sufficient permission to perform this action.
-
ConflictException–The requested resource is in use.
-
InternalServerException–An internal error occurred.
-
ResourceNotFoundException–The request specifies a resource that doesn't exist.
-
ServiceQuotaExceededException–The request exceeded a service quota.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–Invalid request.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_networkflowmonitor/_services/async_network_flow_monitor.py
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 | |