create_registrations_from_brand_profile
async
¶
create_registrations_from_brand_profile(
brand_profile_id: BrandProfileIdOrArn,
registration_types: RegistrationTypeList,
*,
config_overrides: Optional[AsyncEndUserMessagingClientConfig] = None,
smart_match: Optional[bool] = None,
client_token: Optional[ClientToken] = None,
) -> CreateRegistrationsFromBrandProfileOutput
Creates one or more registrations in the DRAFT state and prefills their fields from the attributes of a brand profile. 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_types(RegistrationTypeList) –The registration types to create, for example US_TOLL_FREE_REGISTRATION or SENDER_ID.
-
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.
-
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:
Create draft registrations from a brand profile
>>> await client.create_registrations_from_brand_profile(brand_profile_id='bp-abc12345678901234', registration_types=['US_TOLL_FREE_REGISTRATION'], smart_match=True)
Source code in docs_src/capo_endusermessaging/_services/async_end_user_messaging.py
597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 | |