update_procurement_portal_preference_status
¶
update_procurement_portal_preference_status(
procurement_portal_preference_arn: ProcurementPortalPreferenceArnString,
*,
config_overrides: Optional[InvoicingClientConfig] = 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
>>> 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/invoicing.py
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 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 | |