detach_rls_policy
async
¶
detach_rls_policy(
name: NameString,
resource: Resource,
*,
config_overrides: Optional[AsyncLakeFormationClientConfig] = None,
principal: Optional[DataLakePrincipal] = None,
condition: Optional[Condition] = None,
remove_default: Optional[NullableBoolean] = None,
) -> DetachRLSPolicyResponse
Detaches a row-level security policy from a resource for a principal. After the policy is detached, its filter expression is no longer applied to the principal's queries on that resource.
Parameters:
-
name(NameString) –The name of the row-level security policy to detach.
-
resource(Resource) –The resource from which the row-level security policy is detached.
-
principal(Optional[DataLakePrincipal], default:None) –The principal for which the row-level security policy is detached.
-
condition(Optional[Condition], default:None) –A Lake Formation condition, which applies to the row-level security policy attachment and contains an expression.
-
remove_default(Optional[NullableBoolean], default:None) –Indicates whether to remove this policy as the default row-level security policy for the resource.
Raises:
-
AccessDeniedException–Access to a resource was denied.
-
ConcurrentModificationException–Two processes are trying to modify a resource simultaneously.
-
EntityNotFoundException–A specified entity does not exist.
-
InternalServiceException–An internal service error occurred.
-
InvalidInputException–The input provided was not valid.
-
OperationTimeoutException–The operation timed out.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_lakeformation/_services/async_lake_formation.py
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 | |