update_brand_profile_from_registration
async
¶
update_brand_profile_from_registration(
brand_profile_id: BrandProfileIdOrArn,
registration_id: RegistrationIdOrArn,
*,
config_overrides: Optional[AsyncEndUserMessagingClientConfig] = None,
smart_match: Optional[bool] = None,
on_attribute_conflict: Optional[OnAttributeConflict] = None,
client_token: Optional[ClientToken] = None,
) -> UpdateBrandProfileFromRegistrationOutput
Imports or refreshes the attributes of an existing brand profile from an existing registration. This operation runs asynchronously. Use the GetJob operation to track its progress.
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).
-
registration_id(RegistrationIdOrArn) –The identifier or Amazon Resource Name (ARN) of the registration to import attributes from.
-
smart_match(Optional[bool], default:None) –Specifies whether to use semantic field mapping between brand profile attributes and registration fields. The default is true. When false, the service maps fields using a fixed set of standard field types.
-
on_attribute_conflict(Optional[OnAttributeConflict], default:None) –Specifies how the service resolves an attribute that already exists. REPLACE overwrites the existing value with the incoming value. PRESERVE keeps the existing value.
-
client_token(Optional[ClientToken], default:None) –A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you do not specify a client token, the AWS SDK automatically generates one.
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 from a registration
>>> await client.update_brand_profile_from_registration(brand_profile_id='bp-abc12345678901234', registration_id='reg-abc12345678901234', smart_match=True, on_attribute_conflict='REPLACE')
Source code in docs_src/capo_endusermessaging/_services/async_end_user_messaging.py
1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 | |