update_profile
async
¶
update_profile(
profile_id: ProfileId,
*,
config_overrides: Optional[Asyncb2biClientConfig] = None,
name: Optional[ProfileName] = None,
email: Optional[Email] = None,
phone: Optional[Phone] = None,
business_name: Optional[BusinessName] = None,
) -> UpdateProfileResponse
Updates the specified parameters for a profile. A profile is the mechanism used to create the concept of a private network.
Parameters:
-
profile_id(ProfileId) –Specifies the unique, system-generated identifier for the profile.
-
name(Optional[ProfileName], default:None) –The name of the profile, used to identify it.
-
email(Optional[Email], default:None) –Specifies the email address associated with this customer profile.
-
phone(Optional[Phone], default:None) –Specifies the phone number associated with the profile.
-
business_name(Optional[BusinessName], default:None) –Specifies the name for the business associated with this profile.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
ConflictException–A conflict exception is thrown when you attempt to delete a resource (such as a profile or a capability) that is being used by other resources.
-
InternalServerException–This exception is thrown when an error occurs in the Amazon Web Services B2B Data Interchange service.
-
ResourceNotFoundException–Occurs when the requested resource does not exist, or cannot be found. In some cases, the resource exists in a region other than the region specified in the API call.
-
ServiceQuotaExceededException–Occurs when the calling command attempts to exceed one of the service quotas, for example trying to create a capability when you already have the maximum number of capabilities allowed.
-
ThrottlingException–The request was denied due to throttling: the data speed and rendering may be limited depending on various parameters and conditions.
-
ValidationException–Occurs when a B2BI object cannot be validated against a request from another object. This exception can be thrown during standard EDI validation or when custom validation rules fail, such as when element length constraints are violated, invalid codes are used in code list validations, or required elements are missing based on configured element requirement rules.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
Sample UpdateProfile call
>>> await client.update_profile(business_name="John's Shipping", email='[email protected]', name='Shipping Profile', phone='5555555555', profile_id='p-60fbc37c87f04fce9')
Source code in docs_src/capo_b2bi/_services/async_b2bi.py
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 | |