Interface AgentRegistryControlClient
- All Superinterfaces:
AutoCloseable,AwsClient,SdkAutoCloseable,SdkClient
builder() method.
Amazon Web Services Agent Registry is a managed catalog for publishing and discovering resources such as MCP servers, agents, and agent skills. Agent Registry Control is its control-plane API: use it to create and manage registries and the records they contain, configure discovery and authorization, govern record approval and curation workflows, and manage automatic detection of resources. Data-plane search and MCP invocation operations are provided by the companion Agent Registry API.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringValue for looking up the service's metadata from theServiceMetadataProvider.static final String -
Method Summary
Modifier and TypeMethodDescriptiondefault AssociatePublisherResponseassociatePublisher(Consumer<AssociatePublisherRequest.Builder> associatePublisherRequest) Associate a registry record with a publisher and assign the record a public identifier under the publisher's domain.default AssociatePublisherResponseassociatePublisher(AssociatePublisherRequest associatePublisherRequest) Associate a registry record with a publisher and assign the record a public identifier under the publisher's domain.builder()Create a builder that can be used to configure and create aAgentRegistryControlClient.static AgentRegistryControlClientcreate()Create aAgentRegistryControlClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.default CreatePublisherResponsecreatePublisher(Consumer<CreatePublisherRequest.Builder> createPublisherRequest) Create a publisher for a domain you control.default CreatePublisherResponsecreatePublisher(CreatePublisherRequest createPublisherRequest) Create a publisher for a domain you control.default CreateRegistryResponsecreateRegistry(Consumer<CreateRegistryRequest.Builder> createRegistryRequest) Creates a new registry, a catalog that organizes registry records and defines their discovery authorization and record approval behavior.default CreateRegistryResponsecreateRegistry(CreateRegistryRequest createRegistryRequest) Creates a new registry, a catalog that organizes registry records and defines their discovery authorization and record approval behavior.default CreateRegistryRecordResponsecreateRegistryRecord(Consumer<CreateRegistryRecordRequest.Builder> createRegistryRecordRequest) Creates a registry record within a registry.default CreateRegistryRecordResponsecreateRegistryRecord(CreateRegistryRecordRequest createRegistryRecordRequest) Creates a registry record within a registry.default DeletePublisherResponsedeletePublisher(Consumer<DeletePublisherRequest.Builder> deletePublisherRequest) Delete a publisher.default DeletePublisherResponsedeletePublisher(DeletePublisherRequest deletePublisherRequest) Delete a publisher.default DeleteRegistryResponsedeleteRegistry(Consumer<DeleteRegistryRequest.Builder> deleteRegistryRequest) Deletes a registry.default DeleteRegistryResponsedeleteRegistry(DeleteRegistryRequest deleteRegistryRequest) Deletes a registry.default DeleteRegistryRecordResponsedeleteRegistryRecord(Consumer<DeleteRegistryRecordRequest.Builder> deleteRegistryRecordRequest) Deletes a registry recorddefault DeleteRegistryRecordResponsedeleteRegistryRecord(DeleteRegistryRecordRequest deleteRegistryRecordRequest) Deletes a registry recorddefault DisassociatePublisherResponsedisassociatePublisher(Consumer<DisassociatePublisherRequest.Builder> disassociatePublisherRequest) Remove a registry record's publisher association and release its public identifier.default DisassociatePublisherResponsedisassociatePublisher(DisassociatePublisherRequest disassociatePublisherRequest) Remove a registry record's publisher association and release its public identifier.default GetPublisherResponsegetPublisher(Consumer<GetPublisherRequest.Builder> getPublisherRequest) Get a publisher, including its verification status and the DNS challenge for its domain.default GetPublisherResponsegetPublisher(GetPublisherRequest getPublisherRequest) Get a publisher, including its verification status and the DNS challenge for its domain.default GetRegistryResponsegetRegistry(Consumer<GetRegistryRequest.Builder> getRegistryRequest) Gets a registry by identifier (ARN or ID)default GetRegistryResponsegetRegistry(GetRegistryRequest getRegistryRequest) Gets a registry by identifier (ARN or ID)default GetRegistryRecordResponsegetRegistryRecord(Consumer<GetRegistryRecordRequest.Builder> getRegistryRecordRequest) Retrieves the details of a registry record.default GetRegistryRecordResponsegetRegistryRecord(GetRegistryRecordRequest getRegistryRecordRequest) Retrieves the details of a registry record.listPublisherAssociations(Consumer<ListPublisherAssociationsRequest.Builder> listPublisherAssociationsRequest) List the registry record associations your account created.listPublisherAssociations(ListPublisherAssociationsRequest listPublisherAssociationsRequest) List the registry record associations your account created.listPublisherAssociationsPaginator(Consumer<ListPublisherAssociationsRequest.Builder> listPublisherAssociationsRequest) This is a variant oflistPublisherAssociations(software.amazon.awssdk.services.agentregistrycontrol.model.ListPublisherAssociationsRequest)operation.listPublisherAssociationsPaginator(ListPublisherAssociationsRequest listPublisherAssociationsRequest) This is a variant oflistPublisherAssociations(software.amazon.awssdk.services.agentregistrycontrol.model.ListPublisherAssociationsRequest)operation.default ListPublishersResponselistPublishers(Consumer<ListPublishersRequest.Builder> listPublishersRequest) List the publishers your account owns, followed by the ACTIVE publishers shared with your account.default ListPublishersResponselistPublishers(ListPublishersRequest listPublishersRequest) List the publishers your account owns, followed by the ACTIVE publishers shared with your account.default ListPublishersIterablelistPublishersPaginator(Consumer<ListPublishersRequest.Builder> listPublishersRequest) This is a variant oflistPublishers(software.amazon.awssdk.services.agentregistrycontrol.model.ListPublishersRequest)operation.default ListPublishersIterablelistPublishersPaginator(ListPublishersRequest listPublishersRequest) This is a variant oflistPublishers(software.amazon.awssdk.services.agentregistrycontrol.model.ListPublishersRequest)operation.default ListRegistriesResponselistRegistries(Consumer<ListRegistriesRequest.Builder> listRegistriesRequest) Lists the registries in the caller's account and Region, with optional filtering by status and discovery authorizer typedefault ListRegistriesResponselistRegistries(ListRegistriesRequest listRegistriesRequest) Lists the registries in the caller's account and Region, with optional filtering by status and discovery authorizer typedefault ListRegistriesIterablelistRegistriesPaginator(Consumer<ListRegistriesRequest.Builder> listRegistriesRequest) This is a variant oflistRegistries(software.amazon.awssdk.services.agentregistrycontrol.model.ListRegistriesRequest)operation.default ListRegistriesIterablelistRegistriesPaginator(ListRegistriesRequest listRegistriesRequest) This is a variant oflistRegistries(software.amazon.awssdk.services.agentregistrycontrol.model.ListRegistriesRequest)operation.default ListRegistryRecordsResponselistRegistryRecords(Consumer<ListRegistryRecordsRequest.Builder> listRegistryRecordsRequest) Lists the registry records within a registry, with optional filtering by name, status, and record typedefault ListRegistryRecordsResponselistRegistryRecords(ListRegistryRecordsRequest listRegistryRecordsRequest) Lists the registry records within a registry, with optional filtering by name, status, and record typedefault ListRegistryRecordsIterablelistRegistryRecordsPaginator(Consumer<ListRegistryRecordsRequest.Builder> listRegistryRecordsRequest) This is a variant oflistRegistryRecords(software.amazon.awssdk.services.agentregistrycontrol.model.ListRegistryRecordsRequest)operation.default ListRegistryRecordsIterablelistRegistryRecordsPaginator(ListRegistryRecordsRequest listRegistryRecordsRequest) This is a variant oflistRegistryRecords(software.amazon.awssdk.services.agentregistrycontrol.model.ListRegistryRecordsRequest)operation.default ListTagsForResourceResponselistTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) Lists the tags associated with the specified Amazon Web Services Agent Registry resource.default ListTagsForResourceResponselistTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) Lists the tags associated with the specified Amazon Web Services Agent Registry resource.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationstatic ServiceMetadatasubmitRegistryRecordForApproval(Consumer<SubmitRegistryRecordForApprovalRequest.Builder> submitRegistryRecordForApprovalRequest) Submits a DRAFT registry record for approval, moving it into the registry's approval workflow.submitRegistryRecordForApproval(SubmitRegistryRecordForApprovalRequest submitRegistryRecordForApprovalRequest) Submits a DRAFT registry record for approval, moving it into the registry's approval workflow.default TagResourceResponsetagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) Adds or overwrites one or more tags for the specified Amazon Web Services Agent Registry resource.default TagResourceResponsetagResource(TagResourceRequest tagResourceRequest) Adds or overwrites one or more tags for the specified Amazon Web Services Agent Registry resource.default UntagResourceResponseuntagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) Removes one or more tags from the specified Amazon Web Services Agent Registry resource.default UntagResourceResponseuntagResource(UntagResourceRequest untagResourceRequest) Removes one or more tags from the specified Amazon Web Services Agent Registry resource.updatePublisherAssociationApprovalStatus(Consumer<UpdatePublisherAssociationApprovalStatusRequest.Builder> updatePublisherAssociationApprovalStatusRequest) Record the curator's decision (APPROVED or REJECTED) on a registry record's publisher association.updatePublisherAssociationApprovalStatus(UpdatePublisherAssociationApprovalStatusRequest updatePublisherAssociationApprovalStatusRequest) Record the curator's decision (APPROVED or REJECTED) on a registry record's publisher association.default UpdateRegistryResponseupdateRegistry(Consumer<UpdateRegistryRequest.Builder> updateRegistryRequest) Updates an existing registry.default UpdateRegistryResponseupdateRegistry(UpdateRegistryRequest updateRegistryRequest) Updates an existing registry.default UpdateRegistryRecordResponseupdateRegistryRecord(Consumer<UpdateRegistryRecordRequest.Builder> updateRegistryRecordRequest) Updates a registry record.default UpdateRegistryRecordResponseupdateRegistryRecord(UpdateRegistryRecordRequest updateRegistryRecordRequest) Updates a registry record.updateRegistryRecordStatus(Consumer<UpdateRegistryRecordStatusRequest.Builder> updateRegistryRecordStatusRequest) Updates the status of a registry record as part of the registry's curation workflow, for example to approve or reject a record that is pending approval, or to deprecate an approved record so that it is no longer discoverableupdateRegistryRecordStatus(UpdateRegistryRecordStatusRequest updateRegistryRecordStatusRequest) Updates the status of a registry record as part of the registry's curation workflow, for example to approve or reject a record that is pending approval, or to deprecate an approved record so that it is no longer discoverabledefault ValidatePublisherResponsevalidatePublisher(Consumer<ValidatePublisherRequest.Builder> validatePublisherRequest) Restart domain verification for a publisher in FAILED or SUSPENDED.default ValidatePublisherResponsevalidatePublisher(ValidatePublisherRequest validatePublisherRequest) Restart domain verification for a publisher in FAILED or SUSPENDED.default AgentRegistryControlWaiterwaiter()Create an instance ofAgentRegistryControlWaiterusing this client.Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
closeMethods inherited from interface software.amazon.awssdk.core.SdkClient
serviceName
-
Field Details
-
SERVICE_NAME
- See Also:
-
SERVICE_METADATA_ID
Value for looking up the service's metadata from theServiceMetadataProvider.- See Also:
-
-
Method Details
-
associatePublisher
default AssociatePublisherResponse associatePublisher(AssociatePublisherRequest associatePublisherRequest) throws InternalServerException, AccessDeniedException, ThrottlingException, DependencyException, ValidationException, ServiceQuotaExceededException, ConflictException, AwsServiceException, SdkClientException, AgentRegistryControlException Associate a registry record with a publisher and assign the record a public identifier under the publisher's domain. The registry record must be APPROVED and the publisher must be ACTIVE. A registry record can have only one publisher association. The new association starts in PENDING_APPROVAL until a curator approves or rejects it. A ConflictException (HTTP 409) means the publisher is not ACTIVE yet, the registry record already has an association, or another registry record already holds the public identifier. To retry safely, repeat the request with the same clientToken; a retry returns the original association. If the publisher has reached its association quota, the request fails with ServiceQuotaExceededException (HTTP 402). Remove an unused association or request a quota increase.
- Parameters:
associatePublisherRequest-- Returns:
- Result of the AssociatePublisher operation returned by the service.
- See Also:
-
associatePublisher
default AssociatePublisherResponse associatePublisher(Consumer<AssociatePublisherRequest.Builder> associatePublisherRequest) throws InternalServerException, AccessDeniedException, ThrottlingException, DependencyException, ValidationException, ServiceQuotaExceededException, ConflictException, AwsServiceException, SdkClientException, AgentRegistryControlException Associate a registry record with a publisher and assign the record a public identifier under the publisher's domain. The registry record must be APPROVED and the publisher must be ACTIVE. A registry record can have only one publisher association. The new association starts in PENDING_APPROVAL until a curator approves or rejects it. A ConflictException (HTTP 409) means the publisher is not ACTIVE yet, the registry record already has an association, or another registry record already holds the public identifier. To retry safely, repeat the request with the same clientToken; a retry returns the original association. If the publisher has reached its association quota, the request fails with ServiceQuotaExceededException (HTTP 402). Remove an unused association or request a quota increase.
This is a convenience which creates an instance of the
AssociatePublisherRequest.Builderavoiding the need to create one manually viaAssociatePublisherRequest.builder()- Parameters:
associatePublisherRequest- AConsumerthat will call methods onAssociatePublisherRequest.Builderto create a request.- Returns:
- Result of the AssociatePublisher operation returned by the service.
- See Also:
-
createPublisher
default CreatePublisherResponse createPublisher(CreatePublisherRequest createPublisherRequest) throws InternalServerException, AccessDeniedException, ThrottlingException, ValidationException, ServiceQuotaExceededException, ConflictException, AwsServiceException, SdkClientException, AgentRegistryControlException Create a publisher for a domain you control. The publisher starts in ACTION_REQUIRED, and the response includes a domainChallenge. To verify the domain, create a DNS TXT record with the challenge's recordName and recordValue. When the registry finds the record, the publisher becomes ACTIVE and you can associate registry records with it. Your account can have one publisher per domain. Creating a second publisher for the same domain fails with ConflictException unless the request repeats the original clientToken, which returns the existing publisher. The request also fails with ConflictException when another account has already verified the domain. If your account has reached its Publisher quota, the request fails with ServiceQuotaExceededException (HTTP 402). Delete an unused Publisher or request a quota increase.
- Parameters:
createPublisherRequest-- Returns:
- Result of the CreatePublisher operation returned by the service.
- See Also:
-
createPublisher
default CreatePublisherResponse createPublisher(Consumer<CreatePublisherRequest.Builder> createPublisherRequest) throws InternalServerException, AccessDeniedException, ThrottlingException, ValidationException, ServiceQuotaExceededException, ConflictException, AwsServiceException, SdkClientException, AgentRegistryControlException Create a publisher for a domain you control. The publisher starts in ACTION_REQUIRED, and the response includes a domainChallenge. To verify the domain, create a DNS TXT record with the challenge's recordName and recordValue. When the registry finds the record, the publisher becomes ACTIVE and you can associate registry records with it. Your account can have one publisher per domain. Creating a second publisher for the same domain fails with ConflictException unless the request repeats the original clientToken, which returns the existing publisher. The request also fails with ConflictException when another account has already verified the domain. If your account has reached its Publisher quota, the request fails with ServiceQuotaExceededException (HTTP 402). Delete an unused Publisher or request a quota increase.
This is a convenience which creates an instance of the
CreatePublisherRequest.Builderavoiding the need to create one manually viaCreatePublisherRequest.builder()- Parameters:
createPublisherRequest- AConsumerthat will call methods onCreatePublisherRequest.Builderto create a request.- Returns:
- Result of the CreatePublisher operation returned by the service.
- See Also:
-
createRegistry
default CreateRegistryResponse createRegistry(CreateRegistryRequest createRegistryRequest) throws InternalServerException, AccessDeniedException, ThrottlingException, ValidationException, ServiceQuotaExceededException, ConflictException, AwsServiceException, SdkClientException, AgentRegistryControlException Creates a new registry, a catalog that organizes registry records and defines their discovery authorization and record approval behavior. Creation is asynchronous: the registry begins in the CREATING status and becomes usable once it reaches READY.
- Parameters:
createRegistryRequest- Request structure for creating a registry- Returns:
- Result of the CreateRegistry operation returned by the service.
- See Also:
-
createRegistry
default CreateRegistryResponse createRegistry(Consumer<CreateRegistryRequest.Builder> createRegistryRequest) throws InternalServerException, AccessDeniedException, ThrottlingException, ValidationException, ServiceQuotaExceededException, ConflictException, AwsServiceException, SdkClientException, AgentRegistryControlException Creates a new registry, a catalog that organizes registry records and defines their discovery authorization and record approval behavior. Creation is asynchronous: the registry begins in the CREATING status and becomes usable once it reaches READY.
This is a convenience which creates an instance of the
CreateRegistryRequest.Builderavoiding the need to create one manually viaCreateRegistryRequest.builder()- Parameters:
createRegistryRequest- AConsumerthat will call methods onCreateRegistryRequest.Builderto create a request. Request structure for creating a registry- Returns:
- Result of the CreateRegistry operation returned by the service.
- See Also:
-
createRegistryRecord
default CreateRegistryRecordResponse createRegistryRecord(CreateRegistryRecordRequest createRegistryRecordRequest) throws InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, ValidationException, ServiceQuotaExceededException, ConflictException, AwsServiceException, SdkClientException, AgentRegistryControlException Creates a registry record within a registry. A registry record describes a discoverable resource, such as an MCP server, an agent, an agent skill, or a custom resource. For an agent skill, you can upload a skill package in
artifact, or synchronize the skill from an Amazon S3 or GitHub source. Creation is asynchronous: the operation returns the record with theCREATINGstatus while the registry processes it. If a GitHub user must first authorize access to the source, the operation returns the record with theCREATE_PENDING_AUTHstatus instead.- Parameters:
createRegistryRecordRequest-- Returns:
- Result of the CreateRegistryRecord operation returned by the service.
- See Also:
-
createRegistryRecord
default CreateRegistryRecordResponse createRegistryRecord(Consumer<CreateRegistryRecordRequest.Builder> createRegistryRecordRequest) throws InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, ValidationException, ServiceQuotaExceededException, ConflictException, AwsServiceException, SdkClientException, AgentRegistryControlException Creates a registry record within a registry. A registry record describes a discoverable resource, such as an MCP server, an agent, an agent skill, or a custom resource. For an agent skill, you can upload a skill package in
artifact, or synchronize the skill from an Amazon S3 or GitHub source. Creation is asynchronous: the operation returns the record with theCREATINGstatus while the registry processes it. If a GitHub user must first authorize access to the source, the operation returns the record with theCREATE_PENDING_AUTHstatus instead.
This is a convenience which creates an instance of the
CreateRegistryRecordRequest.Builderavoiding the need to create one manually viaCreateRegistryRecordRequest.builder()- Parameters:
createRegistryRecordRequest- AConsumerthat will call methods onCreateRegistryRecordRequest.Builderto create a request.- Returns:
- Result of the CreateRegistryRecord operation returned by the service.
- See Also:
-
deletePublisher
default DeletePublisherResponse deletePublisher(DeletePublisherRequest deletePublisherRequest) throws InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, ValidationException, ConflictException, AwsServiceException, SdkClientException, AgentRegistryControlException Delete a publisher. A successful call returns an empty response. You can't delete a publisher that has registry record associations; disassociate every registry record from it first. The request fails with ConflictException while the publisher has associations or another delete is in progress. Association removals can take a few seconds to be reflected, so a delete that follows a disassociation can briefly fail with ConflictException; retry after a short wait. If the publisher ARN names your account and the publisher doesn't exist, the request fails with ResourceNotFoundException.
- Parameters:
deletePublisherRequest-- Returns:
- Result of the DeletePublisher operation returned by the service.
- See Also:
-
deletePublisher
default DeletePublisherResponse deletePublisher(Consumer<DeletePublisherRequest.Builder> deletePublisherRequest) throws InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, ValidationException, ConflictException, AwsServiceException, SdkClientException, AgentRegistryControlException Delete a publisher. A successful call returns an empty response. You can't delete a publisher that has registry record associations; disassociate every registry record from it first. The request fails with ConflictException while the publisher has associations or another delete is in progress. Association removals can take a few seconds to be reflected, so a delete that follows a disassociation can briefly fail with ConflictException; retry after a short wait. If the publisher ARN names your account and the publisher doesn't exist, the request fails with ResourceNotFoundException.
This is a convenience which creates an instance of the
DeletePublisherRequest.Builderavoiding the need to create one manually viaDeletePublisherRequest.builder()- Parameters:
deletePublisherRequest- AConsumerthat will call methods onDeletePublisherRequest.Builderto create a request.- Returns:
- Result of the DeletePublisher operation returned by the service.
- See Also:
-
deleteRegistry
default DeleteRegistryResponse deleteRegistry(DeleteRegistryRequest deleteRegistryRequest) throws InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, ValidationException, ConflictException, AwsServiceException, SdkClientException, AgentRegistryControlException Deletes a registry. Deletion is asynchronous: the registry transitions to the DELETING status and is removed along with its registry records.
- Parameters:
deleteRegistryRequest- Request structure for deleting a registry- Returns:
- Result of the DeleteRegistry operation returned by the service.
- See Also:
-
deleteRegistry
default DeleteRegistryResponse deleteRegistry(Consumer<DeleteRegistryRequest.Builder> deleteRegistryRequest) throws InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, ValidationException, ConflictException, AwsServiceException, SdkClientException, AgentRegistryControlException Deletes a registry. Deletion is asynchronous: the registry transitions to the DELETING status and is removed along with its registry records.
This is a convenience which creates an instance of the
DeleteRegistryRequest.Builderavoiding the need to create one manually viaDeleteRegistryRequest.builder()- Parameters:
deleteRegistryRequest- AConsumerthat will call methods onDeleteRegistryRequest.Builderto create a request. Request structure for deleting a registry- Returns:
- Result of the DeleteRegistry operation returned by the service.
- See Also:
-
deleteRegistryRecord
default DeleteRegistryRecordResponse deleteRegistryRecord(DeleteRegistryRecordRequest deleteRegistryRecordRequest) throws InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, ValidationException, ConflictException, AwsServiceException, SdkClientException, AgentRegistryControlException Deletes a registry record
- Parameters:
deleteRegistryRecordRequest-- Returns:
- Result of the DeleteRegistryRecord operation returned by the service.
- See Also:
-
deleteRegistryRecord
default DeleteRegistryRecordResponse deleteRegistryRecord(Consumer<DeleteRegistryRecordRequest.Builder> deleteRegistryRecordRequest) throws InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, ValidationException, ConflictException, AwsServiceException, SdkClientException, AgentRegistryControlException Deletes a registry record
This is a convenience which creates an instance of the
DeleteRegistryRecordRequest.Builderavoiding the need to create one manually viaDeleteRegistryRecordRequest.builder()- Parameters:
deleteRegistryRecordRequest- AConsumerthat will call methods onDeleteRegistryRecordRequest.Builderto create a request.- Returns:
- Result of the DeleteRegistryRecord operation returned by the service.
- See Also:
-
disassociatePublisher
default DisassociatePublisherResponse disassociatePublisher(DisassociatePublisherRequest disassociatePublisherRequest) throws InternalServerException, AccessDeniedException, ThrottlingException, ValidationException, AwsServiceException, SdkClientException, AgentRegistryControlException Remove a registry record's publisher association and release its public identifier. A successful call returns an empty response. Disassociating a registry record that has no association succeeds. If another account created the association, the request fails with AccessDeniedException.
- Parameters:
disassociatePublisherRequest-- Returns:
- Result of the DisassociatePublisher operation returned by the service.
- See Also:
-
disassociatePublisher
default DisassociatePublisherResponse disassociatePublisher(Consumer<DisassociatePublisherRequest.Builder> disassociatePublisherRequest) throws InternalServerException, AccessDeniedException, ThrottlingException, ValidationException, AwsServiceException, SdkClientException, AgentRegistryControlException Remove a registry record's publisher association and release its public identifier. A successful call returns an empty response. Disassociating a registry record that has no association succeeds. If another account created the association, the request fails with AccessDeniedException.
This is a convenience which creates an instance of the
DisassociatePublisherRequest.Builderavoiding the need to create one manually viaDisassociatePublisherRequest.builder()- Parameters:
disassociatePublisherRequest- AConsumerthat will call methods onDisassociatePublisherRequest.Builderto create a request.- Returns:
- Result of the DisassociatePublisher operation returned by the service.
- See Also:
-
getPublisher
default GetPublisherResponse getPublisher(GetPublisherRequest getPublisherRequest) throws InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, ValidationException, AwsServiceException, SdkClientException, AgentRegistryControlException Get a publisher, including its verification status and the DNS challenge for its domain. If the publisher ARN names your account and the publisher doesn't exist, the request fails with ResourceNotFoundException.
- Parameters:
getPublisherRequest-- Returns:
- Result of the GetPublisher operation returned by the service.
- See Also:
-
getPublisher
default GetPublisherResponse getPublisher(Consumer<GetPublisherRequest.Builder> getPublisherRequest) throws InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, ValidationException, AwsServiceException, SdkClientException, AgentRegistryControlException Get a publisher, including its verification status and the DNS challenge for its domain. If the publisher ARN names your account and the publisher doesn't exist, the request fails with ResourceNotFoundException.
This is a convenience which creates an instance of the
GetPublisherRequest.Builderavoiding the need to create one manually viaGetPublisherRequest.builder()- Parameters:
getPublisherRequest- AConsumerthat will call methods onGetPublisherRequest.Builderto create a request.- Returns:
- Result of the GetPublisher operation returned by the service.
- See Also:
-
getRegistry
default GetRegistryResponse getRegistry(GetRegistryRequest getRegistryRequest) throws InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, ValidationException, AwsServiceException, SdkClientException, AgentRegistryControlException Gets a registry by identifier (ARN or ID)
- Parameters:
getRegistryRequest- Request structure for getting a registry- Returns:
- Result of the GetRegistry operation returned by the service.
- See Also:
-
getRegistry
default GetRegistryResponse getRegistry(Consumer<GetRegistryRequest.Builder> getRegistryRequest) throws InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, ValidationException, AwsServiceException, SdkClientException, AgentRegistryControlException Gets a registry by identifier (ARN or ID)
This is a convenience which creates an instance of the
GetRegistryRequest.Builderavoiding the need to create one manually viaGetRegistryRequest.builder()- Parameters:
getRegistryRequest- AConsumerthat will call methods onGetRegistryRequest.Builderto create a request. Request structure for getting a registry- Returns:
- Result of the GetRegistry operation returned by the service.
- See Also:
-
getRegistryRecord
default GetRegistryRecordResponse getRegistryRecord(GetRegistryRecordRequest getRegistryRecordRequest) throws InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, ValidationException, ConflictException, AwsServiceException, SdkClientException, AgentRegistryControlException Retrieves the details of a registry record. The response describes the record's latest revision, including a revision that isn't approved yet. For a skill record, the operation also returns the skill package in
artifactand the source that the registry last synchronized the skill from insynchronizedSource.- Parameters:
getRegistryRecordRequest-- Returns:
- Result of the GetRegistryRecord operation returned by the service.
- See Also:
-
getRegistryRecord
default GetRegistryRecordResponse getRegistryRecord(Consumer<GetRegistryRecordRequest.Builder> getRegistryRecordRequest) throws InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, ValidationException, ConflictException, AwsServiceException, SdkClientException, AgentRegistryControlException Retrieves the details of a registry record. The response describes the record's latest revision, including a revision that isn't approved yet. For a skill record, the operation also returns the skill package in
artifactand the source that the registry last synchronized the skill from insynchronizedSource.
This is a convenience which creates an instance of the
GetRegistryRecordRequest.Builderavoiding the need to create one manually viaGetRegistryRecordRequest.builder()- Parameters:
getRegistryRecordRequest- AConsumerthat will call methods onGetRegistryRecordRequest.Builderto create a request.- Returns:
- Result of the GetRegistryRecord operation returned by the service.
- See Also:
-
listPublisherAssociations
default ListPublisherAssociationsResponse listPublisherAssociations(ListPublisherAssociationsRequest listPublisherAssociationsRequest) throws InternalServerException, AccessDeniedException, ThrottlingException, ValidationException, AwsServiceException, SdkClientException, AgentRegistryControlException List the registry record associations your account created. Pass publisherArn to list only the associations for that publisher; omit it to list associations across all publishers. Results are eventually consistent, so an association you just created or removed can take a few seconds to appear in or disappear from the list.
- Parameters:
listPublisherAssociationsRequest-- Returns:
- Result of the ListPublisherAssociations operation returned by the service.
- See Also:
-
listPublisherAssociations
default ListPublisherAssociationsResponse listPublisherAssociations(Consumer<ListPublisherAssociationsRequest.Builder> listPublisherAssociationsRequest) throws InternalServerException, AccessDeniedException, ThrottlingException, ValidationException, AwsServiceException, SdkClientException, AgentRegistryControlException List the registry record associations your account created. Pass publisherArn to list only the associations for that publisher; omit it to list associations across all publishers. Results are eventually consistent, so an association you just created or removed can take a few seconds to appear in or disappear from the list.
This is a convenience which creates an instance of the
ListPublisherAssociationsRequest.Builderavoiding the need to create one manually viaListPublisherAssociationsRequest.builder()- Parameters:
listPublisherAssociationsRequest- AConsumerthat will call methods onListPublisherAssociationsRequest.Builderto create a request.- Returns:
- Result of the ListPublisherAssociations operation returned by the service.
- See Also:
-
listPublisherAssociationsPaginator
default ListPublisherAssociationsIterable listPublisherAssociationsPaginator(ListPublisherAssociationsRequest listPublisherAssociationsRequest) throws InternalServerException, AccessDeniedException, ThrottlingException, ValidationException, AwsServiceException, SdkClientException, AgentRegistryControlException This is a variant of
listPublisherAssociations(software.amazon.awssdk.services.agentregistrycontrol.model.ListPublisherAssociationsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.agentregistrycontrol.paginators.ListPublisherAssociationsIterable responses = client.listPublisherAssociationsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.agentregistrycontrol.paginators.ListPublisherAssociationsIterable responses = client .listPublisherAssociationsPaginator(request); for (software.amazon.awssdk.services.agentregistrycontrol.model.ListPublisherAssociationsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.agentregistrycontrol.paginators.ListPublisherAssociationsIterable responses = client.listPublisherAssociationsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listPublisherAssociations(software.amazon.awssdk.services.agentregistrycontrol.model.ListPublisherAssociationsRequest)operation.- Parameters:
listPublisherAssociationsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listPublisherAssociationsPaginator
default ListPublisherAssociationsIterable listPublisherAssociationsPaginator(Consumer<ListPublisherAssociationsRequest.Builder> listPublisherAssociationsRequest) throws InternalServerException, AccessDeniedException, ThrottlingException, ValidationException, AwsServiceException, SdkClientException, AgentRegistryControlException This is a variant of
listPublisherAssociations(software.amazon.awssdk.services.agentregistrycontrol.model.ListPublisherAssociationsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.agentregistrycontrol.paginators.ListPublisherAssociationsIterable responses = client.listPublisherAssociationsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.agentregistrycontrol.paginators.ListPublisherAssociationsIterable responses = client .listPublisherAssociationsPaginator(request); for (software.amazon.awssdk.services.agentregistrycontrol.model.ListPublisherAssociationsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.agentregistrycontrol.paginators.ListPublisherAssociationsIterable responses = client.listPublisherAssociationsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listPublisherAssociations(software.amazon.awssdk.services.agentregistrycontrol.model.ListPublisherAssociationsRequest)operation.
This is a convenience which creates an instance of the
ListPublisherAssociationsRequest.Builderavoiding the need to create one manually viaListPublisherAssociationsRequest.builder()- Parameters:
listPublisherAssociationsRequest- AConsumerthat will call methods onListPublisherAssociationsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listPublishers
default ListPublishersResponse listPublishers(ListPublishersRequest listPublishersRequest) throws InternalServerException, AccessDeniedException, ThrottlingException, ValidationException, AwsServiceException, SdkClientException, AgentRegistryControlException List the publishers your account owns, followed by the ACTIVE publishers shared with your account.
- Parameters:
listPublishersRequest-- Returns:
- Result of the ListPublishers operation returned by the service.
- See Also:
-
listPublishers
default ListPublishersResponse listPublishers(Consumer<ListPublishersRequest.Builder> listPublishersRequest) throws InternalServerException, AccessDeniedException, ThrottlingException, ValidationException, AwsServiceException, SdkClientException, AgentRegistryControlException List the publishers your account owns, followed by the ACTIVE publishers shared with your account.
This is a convenience which creates an instance of the
ListPublishersRequest.Builderavoiding the need to create one manually viaListPublishersRequest.builder()- Parameters:
listPublishersRequest- AConsumerthat will call methods onListPublishersRequest.Builderto create a request.- Returns:
- Result of the ListPublishers operation returned by the service.
- See Also:
-
listPublishersPaginator
default ListPublishersIterable listPublishersPaginator(ListPublishersRequest listPublishersRequest) throws InternalServerException, AccessDeniedException, ThrottlingException, ValidationException, AwsServiceException, SdkClientException, AgentRegistryControlException This is a variant of
listPublishers(software.amazon.awssdk.services.agentregistrycontrol.model.ListPublishersRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.agentregistrycontrol.paginators.ListPublishersIterable responses = client.listPublishersPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.agentregistrycontrol.paginators.ListPublishersIterable responses = client .listPublishersPaginator(request); for (software.amazon.awssdk.services.agentregistrycontrol.model.ListPublishersResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.agentregistrycontrol.paginators.ListPublishersIterable responses = client.listPublishersPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listPublishers(software.amazon.awssdk.services.agentregistrycontrol.model.ListPublishersRequest)operation.- Parameters:
listPublishersRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listPublishersPaginator
default ListPublishersIterable listPublishersPaginator(Consumer<ListPublishersRequest.Builder> listPublishersRequest) throws InternalServerException, AccessDeniedException, ThrottlingException, ValidationException, AwsServiceException, SdkClientException, AgentRegistryControlException This is a variant of
listPublishers(software.amazon.awssdk.services.agentregistrycontrol.model.ListPublishersRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.agentregistrycontrol.paginators.ListPublishersIterable responses = client.listPublishersPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.agentregistrycontrol.paginators.ListPublishersIterable responses = client .listPublishersPaginator(request); for (software.amazon.awssdk.services.agentregistrycontrol.model.ListPublishersResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.agentregistrycontrol.paginators.ListPublishersIterable responses = client.listPublishersPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listPublishers(software.amazon.awssdk.services.agentregistrycontrol.model.ListPublishersRequest)operation.
This is a convenience which creates an instance of the
ListPublishersRequest.Builderavoiding the need to create one manually viaListPublishersRequest.builder()- Parameters:
listPublishersRequest- AConsumerthat will call methods onListPublishersRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listRegistries
default ListRegistriesResponse listRegistries(ListRegistriesRequest listRegistriesRequest) throws InternalServerException, AccessDeniedException, ThrottlingException, ValidationException, AwsServiceException, SdkClientException, AgentRegistryControlException Lists the registries in the caller's account and Region, with optional filtering by status and discovery authorizer type
- Parameters:
listRegistriesRequest- Request structure for listing registries- Returns:
- Result of the ListRegistries operation returned by the service.
- See Also:
-
listRegistries
default ListRegistriesResponse listRegistries(Consumer<ListRegistriesRequest.Builder> listRegistriesRequest) throws InternalServerException, AccessDeniedException, ThrottlingException, ValidationException, AwsServiceException, SdkClientException, AgentRegistryControlException Lists the registries in the caller's account and Region, with optional filtering by status and discovery authorizer type
This is a convenience which creates an instance of the
ListRegistriesRequest.Builderavoiding the need to create one manually viaListRegistriesRequest.builder()- Parameters:
listRegistriesRequest- AConsumerthat will call methods onListRegistriesRequest.Builderto create a request. Request structure for listing registries- Returns:
- Result of the ListRegistries operation returned by the service.
- See Also:
-
listRegistriesPaginator
default ListRegistriesIterable listRegistriesPaginator(ListRegistriesRequest listRegistriesRequest) throws InternalServerException, AccessDeniedException, ThrottlingException, ValidationException, AwsServiceException, SdkClientException, AgentRegistryControlException This is a variant of
listRegistries(software.amazon.awssdk.services.agentregistrycontrol.model.ListRegistriesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.agentregistrycontrol.paginators.ListRegistriesIterable responses = client.listRegistriesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.agentregistrycontrol.paginators.ListRegistriesIterable responses = client .listRegistriesPaginator(request); for (software.amazon.awssdk.services.agentregistrycontrol.model.ListRegistriesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.agentregistrycontrol.paginators.ListRegistriesIterable responses = client.listRegistriesPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listRegistries(software.amazon.awssdk.services.agentregistrycontrol.model.ListRegistriesRequest)operation.- Parameters:
listRegistriesRequest- Request structure for listing registries- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listRegistriesPaginator
default ListRegistriesIterable listRegistriesPaginator(Consumer<ListRegistriesRequest.Builder> listRegistriesRequest) throws InternalServerException, AccessDeniedException, ThrottlingException, ValidationException, AwsServiceException, SdkClientException, AgentRegistryControlException This is a variant of
listRegistries(software.amazon.awssdk.services.agentregistrycontrol.model.ListRegistriesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.agentregistrycontrol.paginators.ListRegistriesIterable responses = client.listRegistriesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.agentregistrycontrol.paginators.ListRegistriesIterable responses = client .listRegistriesPaginator(request); for (software.amazon.awssdk.services.agentregistrycontrol.model.ListRegistriesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.agentregistrycontrol.paginators.ListRegistriesIterable responses = client.listRegistriesPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listRegistries(software.amazon.awssdk.services.agentregistrycontrol.model.ListRegistriesRequest)operation.
This is a convenience which creates an instance of the
ListRegistriesRequest.Builderavoiding the need to create one manually viaListRegistriesRequest.builder()- Parameters:
listRegistriesRequest- AConsumerthat will call methods onListRegistriesRequest.Builderto create a request. Request structure for listing registries- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listRegistryRecords
default ListRegistryRecordsResponse listRegistryRecords(ListRegistryRecordsRequest listRegistryRecordsRequest) throws InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, ValidationException, ConflictException, AwsServiceException, SdkClientException, AgentRegistryControlException Lists the registry records within a registry, with optional filtering by name, status, and record type
- Parameters:
listRegistryRecordsRequest-- Returns:
- Result of the ListRegistryRecords operation returned by the service.
- See Also:
-
listRegistryRecords
default ListRegistryRecordsResponse listRegistryRecords(Consumer<ListRegistryRecordsRequest.Builder> listRegistryRecordsRequest) throws InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, ValidationException, ConflictException, AwsServiceException, SdkClientException, AgentRegistryControlException Lists the registry records within a registry, with optional filtering by name, status, and record type
This is a convenience which creates an instance of the
ListRegistryRecordsRequest.Builderavoiding the need to create one manually viaListRegistryRecordsRequest.builder()- Parameters:
listRegistryRecordsRequest- AConsumerthat will call methods onListRegistryRecordsRequest.Builderto create a request.- Returns:
- Result of the ListRegistryRecords operation returned by the service.
- See Also:
-
listRegistryRecordsPaginator
default ListRegistryRecordsIterable listRegistryRecordsPaginator(ListRegistryRecordsRequest listRegistryRecordsRequest) throws InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, ValidationException, ConflictException, AwsServiceException, SdkClientException, AgentRegistryControlException This is a variant of
listRegistryRecords(software.amazon.awssdk.services.agentregistrycontrol.model.ListRegistryRecordsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.agentregistrycontrol.paginators.ListRegistryRecordsIterable responses = client.listRegistryRecordsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.agentregistrycontrol.paginators.ListRegistryRecordsIterable responses = client .listRegistryRecordsPaginator(request); for (software.amazon.awssdk.services.agentregistrycontrol.model.ListRegistryRecordsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.agentregistrycontrol.paginators.ListRegistryRecordsIterable responses = client.listRegistryRecordsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listRegistryRecords(software.amazon.awssdk.services.agentregistrycontrol.model.ListRegistryRecordsRequest)operation.- Parameters:
listRegistryRecordsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listRegistryRecordsPaginator
default ListRegistryRecordsIterable listRegistryRecordsPaginator(Consumer<ListRegistryRecordsRequest.Builder> listRegistryRecordsRequest) throws InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, ValidationException, ConflictException, AwsServiceException, SdkClientException, AgentRegistryControlException This is a variant of
listRegistryRecords(software.amazon.awssdk.services.agentregistrycontrol.model.ListRegistryRecordsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.agentregistrycontrol.paginators.ListRegistryRecordsIterable responses = client.listRegistryRecordsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.agentregistrycontrol.paginators.ListRegistryRecordsIterable responses = client .listRegistryRecordsPaginator(request); for (software.amazon.awssdk.services.agentregistrycontrol.model.ListRegistryRecordsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.agentregistrycontrol.paginators.ListRegistryRecordsIterable responses = client.listRegistryRecordsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listRegistryRecords(software.amazon.awssdk.services.agentregistrycontrol.model.ListRegistryRecordsRequest)operation.
This is a convenience which creates an instance of the
ListRegistryRecordsRequest.Builderavoiding the need to create one manually viaListRegistryRecordsRequest.builder()- Parameters:
listRegistryRecordsRequest- AConsumerthat will call methods onListRegistryRecordsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) throws InternalServerException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, ValidationException, AwsServiceException, SdkClientException, AgentRegistryControlException Lists the tags associated with the specified Amazon Web Services Agent Registry resource. Returns the current tag key-value pairs on the resource.
- Parameters:
listTagsForResourceRequest-- Returns:
- Result of the ListTagsForResource operation returned by the service.
- See Also:
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) throws InternalServerException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, ValidationException, AwsServiceException, SdkClientException, AgentRegistryControlException Lists the tags associated with the specified Amazon Web Services Agent Registry resource. Returns the current tag key-value pairs on the resource.
This is a convenience which creates an instance of the
ListTagsForResourceRequest.Builderavoiding the need to create one manually viaListTagsForResourceRequest.builder()- Parameters:
listTagsForResourceRequest- AConsumerthat will call methods onListTagsForResourceRequest.Builderto create a request.- Returns:
- Result of the ListTagsForResource operation returned by the service.
- See Also:
-
submitRegistryRecordForApproval
default SubmitRegistryRecordForApprovalResponse submitRegistryRecordForApproval(SubmitRegistryRecordForApprovalRequest submitRegistryRecordForApprovalRequest) throws InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, ValidationException, ConflictException, AwsServiceException, SdkClientException, AgentRegistryControlException Submits a DRAFT registry record for approval, moving it into the registry's approval workflow. Depending on the registry's approval configuration, the record is either auto-approved or set to PENDING_APPROVAL for a curator to approve or reject.
- Parameters:
submitRegistryRecordForApprovalRequest-- Returns:
- Result of the SubmitRegistryRecordForApproval operation returned by the service.
- See Also:
-
submitRegistryRecordForApproval
default SubmitRegistryRecordForApprovalResponse submitRegistryRecordForApproval(Consumer<SubmitRegistryRecordForApprovalRequest.Builder> submitRegistryRecordForApprovalRequest) throws InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, ValidationException, ConflictException, AwsServiceException, SdkClientException, AgentRegistryControlException Submits a DRAFT registry record for approval, moving it into the registry's approval workflow. Depending on the registry's approval configuration, the record is either auto-approved or set to PENDING_APPROVAL for a curator to approve or reject.
This is a convenience which creates an instance of the
SubmitRegistryRecordForApprovalRequest.Builderavoiding the need to create one manually viaSubmitRegistryRecordForApprovalRequest.builder()- Parameters:
submitRegistryRecordForApprovalRequest- AConsumerthat will call methods onSubmitRegistryRecordForApprovalRequest.Builderto create a request.- Returns:
- Result of the SubmitRegistryRecordForApproval operation returned by the service.
- See Also:
-
tagResource
default TagResourceResponse tagResource(TagResourceRequest tagResourceRequest) throws InternalServerException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, ValidationException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, AgentRegistryControlException Adds or overwrites one or more tags for the specified Amazon Web Services Agent Registry resource. Tags are key-value pairs that you can use to categorize and manage Amazon Web Services resources. If a tag with the same key already exists on the resource, the service replaces its value with the value you specify.
- Parameters:
tagResourceRequest-- Returns:
- Result of the TagResource operation returned by the service.
- See Also:
-
tagResource
default TagResourceResponse tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) throws InternalServerException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, ValidationException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, AgentRegistryControlException Adds or overwrites one or more tags for the specified Amazon Web Services Agent Registry resource. Tags are key-value pairs that you can use to categorize and manage Amazon Web Services resources. If a tag with the same key already exists on the resource, the service replaces its value with the value you specify.
This is a convenience which creates an instance of the
TagResourceRequest.Builderavoiding the need to create one manually viaTagResourceRequest.builder()- Parameters:
tagResourceRequest- AConsumerthat will call methods onTagResourceRequest.Builderto create a request.- Returns:
- Result of the TagResource operation returned by the service.
- See Also:
-
untagResource
default UntagResourceResponse untagResource(UntagResourceRequest untagResourceRequest) throws InternalServerException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, ValidationException, AwsServiceException, SdkClientException, AgentRegistryControlException Removes one or more tags from the specified Amazon Web Services Agent Registry resource. The operation removes only the tags whose keys you supply; other tags on the resource remain unchanged.
- Parameters:
untagResourceRequest-- Returns:
- Result of the UntagResource operation returned by the service.
- See Also:
-
untagResource
default UntagResourceResponse untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) throws InternalServerException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, ValidationException, AwsServiceException, SdkClientException, AgentRegistryControlException Removes one or more tags from the specified Amazon Web Services Agent Registry resource. The operation removes only the tags whose keys you supply; other tags on the resource remain unchanged.
This is a convenience which creates an instance of the
UntagResourceRequest.Builderavoiding the need to create one manually viaUntagResourceRequest.builder()- Parameters:
untagResourceRequest- AConsumerthat will call methods onUntagResourceRequest.Builderto create a request.- Returns:
- Result of the UntagResource operation returned by the service.
- See Also:
-
updatePublisherAssociationApprovalStatus
default UpdatePublisherAssociationApprovalStatusResponse updatePublisherAssociationApprovalStatus(UpdatePublisherAssociationApprovalStatusRequest updatePublisherAssociationApprovalStatusRequest) throws InternalServerException, AccessDeniedException, ThrottlingException, ValidationException, ConflictException, AwsServiceException, SdkClientException, AgentRegistryControlException Record the curator's decision (APPROVED or REJECTED) on a registry record's publisher association. A successful call returns an empty response. Repeating the decision the association already holds changes nothing; the same approvalStatus with a different approvalStatusReason updates the reason. If the caller has no publisher association for the registry record, the request fails with AccessDeniedException. A ConflictException (HTTP 409) means the association is not in a state that accepts the decision (e.g. not PENDING_APPROVAL/APPROVED/REJECTED) or it changed while the request was being applied; read it again before deciding whether to resubmit.
- Parameters:
updatePublisherAssociationApprovalStatusRequest-- Returns:
- Result of the UpdatePublisherAssociationApprovalStatus operation returned by the service.
- See Also:
-
updatePublisherAssociationApprovalStatus
default UpdatePublisherAssociationApprovalStatusResponse updatePublisherAssociationApprovalStatus(Consumer<UpdatePublisherAssociationApprovalStatusRequest.Builder> updatePublisherAssociationApprovalStatusRequest) throws InternalServerException, AccessDeniedException, ThrottlingException, ValidationException, ConflictException, AwsServiceException, SdkClientException, AgentRegistryControlException Record the curator's decision (APPROVED or REJECTED) on a registry record's publisher association. A successful call returns an empty response. Repeating the decision the association already holds changes nothing; the same approvalStatus with a different approvalStatusReason updates the reason. If the caller has no publisher association for the registry record, the request fails with AccessDeniedException. A ConflictException (HTTP 409) means the association is not in a state that accepts the decision (e.g. not PENDING_APPROVAL/APPROVED/REJECTED) or it changed while the request was being applied; read it again before deciding whether to resubmit.
This is a convenience which creates an instance of the
UpdatePublisherAssociationApprovalStatusRequest.Builderavoiding the need to create one manually viaUpdatePublisherAssociationApprovalStatusRequest.builder()- Parameters:
updatePublisherAssociationApprovalStatusRequest- AConsumerthat will call methods onUpdatePublisherAssociationApprovalStatusRequest.Builderto create a request.- Returns:
- Result of the UpdatePublisherAssociationApprovalStatus operation returned by the service.
- See Also:
-
updateRegistry
default UpdateRegistryResponse updateRegistry(UpdateRegistryRequest updateRegistryRequest) throws InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, ValidationException, ServiceQuotaExceededException, ConflictException, AwsServiceException, SdkClientException, AgentRegistryControlException Updates an existing registry. This operation uses PATCH semantics: specify only the fields you want to change, and omit the rest to leave them unchanged. Updates are applied asynchronously and the registry transitions to the UPDATING status while they are processed.
- Parameters:
updateRegistryRequest- Request structure for updating a registry- Returns:
- Result of the UpdateRegistry operation returned by the service.
- See Also:
-
updateRegistry
default UpdateRegistryResponse updateRegistry(Consumer<UpdateRegistryRequest.Builder> updateRegistryRequest) throws InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, ValidationException, ServiceQuotaExceededException, ConflictException, AwsServiceException, SdkClientException, AgentRegistryControlException Updates an existing registry. This operation uses PATCH semantics: specify only the fields you want to change, and omit the rest to leave them unchanged. Updates are applied asynchronously and the registry transitions to the UPDATING status while they are processed.
This is a convenience which creates an instance of the
UpdateRegistryRequest.Builderavoiding the need to create one manually viaUpdateRegistryRequest.builder()- Parameters:
updateRegistryRequest- AConsumerthat will call methods onUpdateRegistryRequest.Builderto create a request. Request structure for updating a registry- Returns:
- Result of the UpdateRegistry operation returned by the service.
- See Also:
-
updateRegistryRecord
default UpdateRegistryRecordResponse updateRegistryRecord(UpdateRegistryRecordRequest updateRegistryRecordRequest) throws InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, ValidationException, ConflictException, AwsServiceException, SdkClientException, AgentRegistryControlException Updates a registry record. The update is asynchronous: the operation returns the record with the
UPDATINGstatus while the registry processes it. If a GitHub user must first authorize access to the record's skill source, the operation returns the record with theUPDATE_PENDING_AUTHstatus instead. Fields that use update wrappers follow PATCH semantics: omit the field to leave it unchanged.- Parameters:
updateRegistryRecordRequest-- Returns:
- Result of the UpdateRegistryRecord operation returned by the service.
- See Also:
-
updateRegistryRecord
default UpdateRegistryRecordResponse updateRegistryRecord(Consumer<UpdateRegistryRecordRequest.Builder> updateRegistryRecordRequest) throws InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, ValidationException, ConflictException, AwsServiceException, SdkClientException, AgentRegistryControlException Updates a registry record. The update is asynchronous: the operation returns the record with the
UPDATINGstatus while the registry processes it. If a GitHub user must first authorize access to the record's skill source, the operation returns the record with theUPDATE_PENDING_AUTHstatus instead. Fields that use update wrappers follow PATCH semantics: omit the field to leave it unchanged.
This is a convenience which creates an instance of the
UpdateRegistryRecordRequest.Builderavoiding the need to create one manually viaUpdateRegistryRecordRequest.builder()- Parameters:
updateRegistryRecordRequest- AConsumerthat will call methods onUpdateRegistryRecordRequest.Builderto create a request.- Returns:
- Result of the UpdateRegistryRecord operation returned by the service.
- See Also:
-
updateRegistryRecordStatus
default UpdateRegistryRecordStatusResponse updateRegistryRecordStatus(UpdateRegistryRecordStatusRequest updateRegistryRecordStatusRequest) throws InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, ValidationException, ConflictException, AwsServiceException, SdkClientException, AgentRegistryControlException Updates the status of a registry record as part of the registry's curation workflow, for example to approve or reject a record that is pending approval, or to deprecate an approved record so that it is no longer discoverable
- Parameters:
updateRegistryRecordStatusRequest-- Returns:
- Result of the UpdateRegistryRecordStatus operation returned by the service.
- See Also:
-
updateRegistryRecordStatus
default UpdateRegistryRecordStatusResponse updateRegistryRecordStatus(Consumer<UpdateRegistryRecordStatusRequest.Builder> updateRegistryRecordStatusRequest) throws InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, ValidationException, ConflictException, AwsServiceException, SdkClientException, AgentRegistryControlException Updates the status of a registry record as part of the registry's curation workflow, for example to approve or reject a record that is pending approval, or to deprecate an approved record so that it is no longer discoverable
This is a convenience which creates an instance of the
UpdateRegistryRecordStatusRequest.Builderavoiding the need to create one manually viaUpdateRegistryRecordStatusRequest.builder()- Parameters:
updateRegistryRecordStatusRequest- AConsumerthat will call methods onUpdateRegistryRecordStatusRequest.Builderto create a request.- Returns:
- Result of the UpdateRegistryRecordStatus operation returned by the service.
- See Also:
-
validatePublisher
default ValidatePublisherResponse validatePublisher(ValidatePublisherRequest validatePublisherRequest) throws InternalServerException, AccessDeniedException, ThrottlingException, ValidationException, ConflictException, AwsServiceException, SdkClientException, AgentRegistryControlException Restart domain verification for a publisher in FAILED or SUSPENDED. The publisher returns to ACTION_REQUIRED with a new domainChallenge, which the response includes. Update the DNS TXT record with the new recordValue; the previous value no longer verifies the domain. The request fails with ConflictException when the publisher is ACTIVE, verification is already in progress (ACTION_REQUIRED), or the publisher is being deleted.
- Parameters:
validatePublisherRequest-- Returns:
- Result of the ValidatePublisher operation returned by the service.
- See Also:
-
validatePublisher
default ValidatePublisherResponse validatePublisher(Consumer<ValidatePublisherRequest.Builder> validatePublisherRequest) throws InternalServerException, AccessDeniedException, ThrottlingException, ValidationException, ConflictException, AwsServiceException, SdkClientException, AgentRegistryControlException Restart domain verification for a publisher in FAILED or SUSPENDED. The publisher returns to ACTION_REQUIRED with a new domainChallenge, which the response includes. Update the DNS TXT record with the new recordValue; the previous value no longer verifies the domain. The request fails with ConflictException when the publisher is ACTIVE, verification is already in progress (ACTION_REQUIRED), or the publisher is being deleted.
This is a convenience which creates an instance of the
ValidatePublisherRequest.Builderavoiding the need to create one manually viaValidatePublisherRequest.builder()- Parameters:
validatePublisherRequest- AConsumerthat will call methods onValidatePublisherRequest.Builderto create a request.- Returns:
- Result of the ValidatePublisher operation returned by the service.
- See Also:
-
waiter
Create an instance ofAgentRegistryControlWaiterusing this client.Waiters created via this method are managed by the SDK and resources will be released when the service client is closed.
- Returns:
- an instance of
AgentRegistryControlWaiter
-
create
Create aAgentRegistryControlClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider. -
builder
Create a builder that can be used to configure and create aAgentRegistryControlClient. -
serviceMetadata
-
serviceClientConfiguration
Description copied from interface:SdkClientThe SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration- Specified by:
serviceClientConfigurationin interfaceAwsClient- Specified by:
serviceClientConfigurationin interfaceSdkClient- Returns:
- SdkServiceClientConfiguration
-