delete_trust
¶
delete_trust(
trust_id: TrustId,
*,
config_overrides: Optional[DirectoryServiceClientConfig] = None,
delete_associated_conditional_forwarder: Optional[
DeleteAssociatedConditionalForwarder
] = None,
) -> DeleteTrustResult
Deletes an existing trust relationship between your Managed Microsoft AD directory and an external domain.
Parameters:
-
trust_id(TrustId) –The Trust ID of the trust relationship to be deleted.
-
delete_associated_conditional_forwarder(Optional[DeleteAssociatedConditionalForwarder], default:None) –Delete a conditional forwarder as part of a DeleteTrustRequest.
Raises:
-
ClientException–A client exception has occurred.
-
EntityDoesNotExistException–The specified entity could not be found.
-
InvalidParameterException–One or more parameters are not valid.
-
ServiceException–An exception has occurred in Directory Service.
-
UnsupportedOperationException–The operation is not supported.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To delete a trust The following example deletes an existing trust between your Microsoft AD in the AWS cloud and an external domain.
Source code in docs_src/capo_directory_service/_services/directory_service.py
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 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 | |