associate_publisher
async
¶
associate_publisher(
record_arn: RegistryRecordArn,
publisher_arn: PublisherIdentifierArn,
*,
config_overrides: Optional[AsyncAgentRegistryControlClientConfig] = None,
subdomain: Optional[Subdomain] = None,
categories: Optional[CategoryList] = None,
client_token: Optional[ClientToken] = None,
) -> AssociatePublisherResponse
Associates a registry record in Amazon Web Services Agent Registry with a publisher and assigns the record a public identifier under the publisher's verified domain. The registry record must be APPROVED, and the publisher must be ACTIVE. A registry record supports only one publisher association. The new association starts in PENDING_APPROVAL. A curator approves or rejects it by calling UpdatePublisherAssociationApprovalStatus.
The request fails with ConflictException in these cases:
-
The publisher isn't
ACTIVE. CallGetPublisherto check its status. -
The registry record already has an association. To change it, call
DisassociatePublisherfirst. -
Another registry record already uses the same public identifier. Specify a different
subdomainor differentcategories.
To retry safely, repeat the request with the same clientToken. A retry returns the original association instead of failing.
If the publisher has reached its association quota, the request fails with ServiceQuotaExceededException. You can remove an unused association or request a quota increase.
If your account doesn't own the registry record, the request fails with AccessDeniedException. Call the operation from the account that owns the registry record.
If a service that the request depends on is temporarily unavailable, the request fails with DependencyException. Retry the request.
Parameters:
-
record_arn(RegistryRecordArn) –The Amazon Resource Name (ARN) of the registry record to associate with the publisher. The registry record must be
APPROVED. -
publisher_arn(PublisherIdentifierArn) –The Amazon Resource Name (ARN) of the publisher to associate the registry record with. The publisher must be
ACTIVE. -
subdomain(Optional[Subdomain], default:None) –An optional Domain Name System (DNS) label to place in front of the publisher's domain in the public identifier. For example,
agentswith the domainexample.comproduces the authorityagents.example.com. If you omit it, the public identifier uses the publisher's domain. The label can contain letters, digits, and hyphens, can't start or end with a hyphen, and can be up to 63 characters long. -
categories(Optional[CategoryList], default:None) –An optional ordered list of categories to include in the public identifier, after the domain. You can specify up to 8 categories. Each category can be up to 64 characters long and can contain lowercase letters, digits, periods (.), underscores (_), and hyphens (-).
-
client_token(Optional[ClientToken], default:None) –A unique, case-sensitive identifier that you provide to ensure that the operation completes no more than one time. If you retry a request with the same client token, the service returns the original association instead of creating a new one.
Raises:
-
AccessDeniedException–The caller is not authorized to perform the requested action.
-
ConflictException–The request conflicts with the current state of the resource.
-
DependencyException–A service that the request depends on returned an error or was unavailable. Retry the request.
-
InternalServerException–The request failed due to an unexpected internal error; the caller may retry.
-
ServiceQuotaExceededException–The request would exceed a service quota.
-
ThrottlingException–The request was denied due to request throttling; the caller may retry after a delay.
-
ValidationException–The request failed validation of one or more input fields.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_agent_registry_control/_services/async_agent_registry_control.py
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 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 | |