update_brand_profile_attribute
async
¶
update_brand_profile_attribute(
brand_profile_id: BrandProfileIdOrArn,
attribute_name: BrandProfileAttributeName,
*,
config_overrides: Optional[AsyncEndUserMessagingClientConfig] = None,
attribute_value: Optional[BrandProfileAttributeValue] = None,
attachment_body: Optional[bytes] = None,
description: Optional[BrandProfileAttributeDescription] = None,
category: Optional[BrandProfileAttributeCategory] = None,
) -> UpdateBrandProfileAttributeOutput
Updates the value, description, or category of an existing brand profile attribute.
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).
-
attribute_name(BrandProfileAttributeName) –The name of the brand profile attribute. The name is unique within a brand profile.
-
attribute_value(Optional[BrandProfileAttributeValue], default:None) –The text value of the attribute. This value applies to attributes of type TEXT.
-
attachment_body(Optional[bytes], default:None) –The binary content for an attribute of type IMAGE or DOCUMENT. The content is base64-encoded when it is sent over the wire.
-
description(Optional[BrandProfileAttributeDescription], default:None) –A description of the attribute.
-
category(Optional[BrandProfileAttributeCategory], default:None) –The category of the attribute.
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 attribute value
>>> await client.update_brand_profile_attribute(brand_profile_id='bp-abc12345678901234', attribute_name='SupportEmail', attribute_value='[email protected]', category='CONTACT')
Source code in docs_src/capo_endusermessaging/_services/async_end_user_messaging.py
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 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 | |