delete_trust
async
¶
delete_trust(
trust_id: TrustId,
*,
config_overrides: Optional[AsyncDirectoryServiceClientConfig] = 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.
>>> await client.delete_trust(trust_id='t-9267353743', delete_associated_conditional_forwarder=True)
Source code in docs_src/capo_directory_service/_services/async_directory_service.py
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 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 | |