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
1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 | |