create_brand_profile_from_registration
¶
create_brand_profile_from_registration(
registration_id: RegistrationIdOrArn,
brand_profile_name: BrandProfileName,
*,
config_overrides: Optional[EndUserMessagingClientConfig] = None,
smart_match: Optional[bool] = None,
tags: Optional[TagList] = None,
client_token: Optional[ClientToken] = None,
) -> CreateBrandProfileFromRegistrationOutput
Creates a brand profile and populates its attributes from an existing registration. This operation runs asynchronously. Use the GetJob operation to track its progress.
Parameters:
-
registration_id(RegistrationIdOrArn) –The identifier or Amazon Resource Name (ARN) of the registration to populate the brand profile from.
-
brand_profile_name(BrandProfileName) –The name of the brand profile. The name can contain alphanumeric characters, underscores, hyphens, and spaces.
-
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.
-
tags(Optional[TagList], default:None) –An array of key and value pair tags that are associated with the resource.
-
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 brand profile from a registration
>>> client.create_brand_profile_from_registration(registration_id='reg-abc12345678901234', brand_profile_name='AcmeCorp', smart_match=True)
Source code in docs_src/capo_endusermessaging/_services/end_user_messaging.py
402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 | |