create_brand_profile_attributes
async
¶
create_brand_profile_attributes(
brand_profile_id: BrandProfileIdOrArn,
attributes: BrandProfileAttributeInputList,
*,
config_overrides: Optional[AsyncEndUserMessagingClientConfig] = None,
client_token: Optional[ClientToken] = None,
) -> CreateBrandProfileAttributesOutput
Creates up to 10 attributes for a brand profile in a single request. For attributes of type IMAGE or DOCUMENT, the response includes a presigned Amazon S3 URL that you use to upload the media. This operation is atomic: either all of the attributes are created, or none of them are.
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).
-
attributes(BrandProfileAttributeInputList) –The brand profile attributes.
-
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.
-
ServiceQuotaExceededException–The request would exceed a service quota for your account.
-
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:
Create a text attribute on a brand profile
>>> await client.create_brand_profile_attributes(brand_profile_id='bp-abc12345678901234', attributes=[{'attributeName': 'SupportEmail', 'attributeType': 'TEXT', 'attributeValue': '[email protected]', 'category': 'CONTACT'}])
Source code in docs_src/capo_endusermessaging/_services/async_end_user_messaging.py
314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 | |