update_procurement_portal_preference_status
async
¶
update_procurement_portal_preference_status(
procurement_portal_preference_arn: ProcurementPortalPreferenceArnString,
*,
config_overrides: Optional[AsyncInvoicingClientConfig] = None,
einvoice_delivery_preference_status: Optional[
ProcurementPortalPreferenceStatus
] = None,
einvoice_delivery_preference_status_reason: Optional[BasicString] = None,
purchase_order_retrieval_preference_status: Optional[
ProcurementPortalPreferenceStatus
] = None,
purchase_order_retrieval_preference_status_reason: Optional[BasicString] = None,
client_token: Optional[BasicStringWithoutSpace] = None,
) -> UpdateProcurementPortalPreferenceStatusResponse
This feature API is subject to changing at any time. For more information, see the Amazon Web Services Service Terms (Betas and Previews).
Updates the status of a procurement portal preference, including the activation state of e-invoice delivery and purchase order retrieval features.
Parameters:
-
procurement_portal_preference_arn(ProcurementPortalPreferenceArnString) –The Amazon Resource Name (ARN) of the procurement portal preference to update.
-
einvoice_delivery_preference_status(Optional[ProcurementPortalPreferenceStatus], default:None) –The updated status of the e-invoice delivery preference.
-
einvoice_delivery_preference_status_reason(Optional[BasicString], default:None) –The reason for the e-invoice delivery preference status update, providing context for the change.
-
purchase_order_retrieval_preference_status(Optional[ProcurementPortalPreferenceStatus], default:None) –The updated status of the purchase order retrieval preference.
-
purchase_order_retrieval_preference_status_reason(Optional[BasicString], default:None) –The reason for the purchase order retrieval preference status update, providing context for the change.
-
client_token(Optional[BasicStringWithoutSpace], default:None) –A unique, case-sensitive identifier that you provide to ensure idempotency of the request.
Raises:
-
AccessDeniedException–You don't have sufficient access to perform this action.
-
ConflictException–The request could not be completed due to a conflict with the current state of the resource. This exception occurs when a concurrent modification is detected during an update operation, or when attempting to create a resource that already exists.
-
InternalServerException–The processing request failed because of an unknown error, exception, or failure.
-
ResourceNotFoundException–The resource could not be found.
-
ServiceQuotaExceededException–The request was rejected because it attempted to create resources beyond the current Amazon Web Services account limits. The error message describes the limit exceeded.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–The input fails to satisfy the constraints specified by an Amazon Web Services service.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
UpdateProcurementPortalPreference for EinvoiceDeliveryPreferenceStatus and PurchaseOrderRetrievalPreferenceStatus
>>> await client.update_procurement_portal_preference_status(procurement_portal_preference_arn='arn:aws:invoicing::111111111111:procurement-portal-preference/f71dd02e-f855-4b13-b793-0fd25c0b3ecd', einvoice_delivery_preference_status='SUSPENDED', einvoice_delivery_preference_status_reason='suspended example reason', purchase_order_retrieval_preference_status='SUSPENDED', purchase_order_retrieval_preference_status_reason='suspended example reason', client_token='e362c68e-4e74-48d7-9228-0bc5aa447b46')
Source code in docs_src/capo_invoicing/_services/async_invoicing.py
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 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 | |