Interface AgentRegistryControlClient
- All Superinterfaces:
AutoCloseable,AwsClient,SdkAutoCloseable,SdkClient
builder() method.
AWS 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 TypeMethodDescriptionbuilder()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 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 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 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 recorddefault GetRegistryRecordResponsegetRegistryRecord(GetRegistryRecordRequest getRegistryRecordRequest) Retrieves the details of a registry recorddefault 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) List the tags on a resourcedefault ListTagsForResourceResponselistTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) List the tags on a resourceThe 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) Tag a resource with key-value pairsdefault TagResourceResponsetagResource(TagResourceRequest tagResourceRequest) Tag a resource with key-value pairsdefault UntagResourceResponseuntagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) Remove tags from a resource by keydefault UntagResourceResponseuntagResource(UntagResourceRequest untagResourceRequest) Remove tags from a resource by keydefault 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 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
-
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. Creation is asynchronous: the record is returned with the CREATING status while it is processed.
- 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. Creation is asynchronous: the record is returned with the CREATING status while it is processed.
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:
-
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:
-
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
- 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
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:
-
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 List the tags on a 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 List the tags on a 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 Tag a resource with key-value pairs
- 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 Tag a resource with key-value pairs
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 Remove tags from a resource by key
- 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 Remove tags from a resource by key
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:
-
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 record is returned with the UPDATING status while it is processed. 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 record is returned with the UPDATING status while it is processed. 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:
-
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
-