update_brand_profile
async
¶
update_brand_profile(
brand_profile_id: BrandProfileIdOrArn,
*,
config_overrides: Optional[AsyncEndUserMessagingClientConfig] = None,
brand_profile_name: Optional[BrandProfileName] = None,
deletion_protection_enabled: Optional[bool] = None,
) -> UpdateBrandProfileOutput
Updates the name or the deletion protection setting of a brand profile. To change the information that is stored in the profile, use the brand profile attribute operations.
Parameters:
-
brand_profile_id(BrandProfileIdOrArn) –The unique identifier of the brand profile. You can specify either the bare ID or the full Amazon Resource Name (ARN).
-
brand_profile_name(Optional[BrandProfileName], default:None) –The name of the brand profile. The name can contain alphanumeric characters, underscores, hyphens, and spaces.
-
deletion_protection_enabled(Optional[bool], default:None) –Specifies whether deletion protection is enabled. When enabled, the resource cannot be deleted until deletion protection is turned off.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
ConflictException–The request conflicts with the current state of the resource.
-
InternalServerException–An unexpected error occurred during the processing of the request.
-
ResourceNotFoundException–The request references a resource that does not exist. Verify that the resource identifier is correct and try your request again.
-
ThrottlingException–The request was denied because it exceeded the allowed request rate.
-
ValidationException–A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
Update a brand profile name
>>> await client.update_brand_profile(brand_profile_id='bp-abc12345678901234', brand_profile_name='AcmeCorpUpdated', deletion_protection_enabled=False)
Source code in docs_src/capo_endusermessaging/_services/async_end_user_messaging.py
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 | |