update_registrations_from_brand_profile
async
¶
update_registrations_from_brand_profile(
brand_profile_id: BrandProfileIdOrArn,
registration_ids: RegistrationIdList,
*,
config_overrides: Optional[AsyncEndUserMessagingClientConfig] = None,
smart_match: Optional[bool] = None,
on_attribute_conflict: Optional[OnAttributeConflict] = None,
client_token: Optional[ClientToken] = None,
) -> UpdateRegistrationsFromBrandProfileOutput
Repushes the attributes of a brand profile into existing DRAFT registrations. 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_ids(RegistrationIdList) –The identifiers of the registrations.
-
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 registrations from a brand profile
>>> await client.update_registrations_from_brand_profile(brand_profile_id='bp-abc12345678901234', registration_ids=['reg-abc12345678901234'], smart_match=True, on_attribute_conflict='PRESERVE')
Source code in docs_src/capo_endusermessaging/_services/async_end_user_messaging.py
2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 | |