detach_rls_policy
¶
detach_rls_policy(
name: NameString,
resource: Resource,
*,
config_overrides: Optional[LakeFormationClientConfig] = 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/lake_formation.py
1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 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 | |