Interface AgentRegistryClient
- All Superinterfaces:
AutoCloseable,AwsClient,SdkAutoCloseable,SdkClient
builder() method.
Agent Registry lets callers discover, list, and retrieve approved records published to a registry.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringValue for looking up the service's metadata from theServiceMetadataProvider.static final String -
Method Summary
Modifier and TypeMethodDescriptionbatchGetDiscoverableRegistryRecord(Consumer<BatchGetDiscoverableRegistryRecordRequest.Builder> batchGetDiscoverableRegistryRecordRequest) Retrieves multiple discoverable registry records by ID from a single registry.batchGetDiscoverableRegistryRecord(BatchGetDiscoverableRegistryRecordRequest batchGetDiscoverableRegistryRecordRequest) Retrieves multiple discoverable registry records by ID from a single registry.static AgentRegistryClientBuilderbuilder()Create a builder that can be used to configure and create aAgentRegistryClient.static AgentRegistryClientcreate()Create aAgentRegistryClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.listDiscoverableRegistryRecords(Consumer<ListDiscoverableRegistryRecordsRequest.Builder> listDiscoverableRegistryRecordsRequest) Lists the discoverable registry records in a registry.listDiscoverableRegistryRecords(ListDiscoverableRegistryRecordsRequest listDiscoverableRegistryRecordsRequest) Lists the discoverable registry records in a registry.listDiscoverableRegistryRecordsPaginator(Consumer<ListDiscoverableRegistryRecordsRequest.Builder> listDiscoverableRegistryRecordsRequest) This is a variant oflistDiscoverableRegistryRecords(software.amazon.awssdk.services.agentregistry.model.ListDiscoverableRegistryRecordsRequest)operation.listDiscoverableRegistryRecordsPaginator(ListDiscoverableRegistryRecordsRequest listDiscoverableRegistryRecordsRequest) This is a variant oflistDiscoverableRegistryRecords(software.amazon.awssdk.services.agentregistry.model.ListDiscoverableRegistryRecordsRequest)operation.searchDiscoverableRegistryRecords(Consumer<SearchDiscoverableRegistryRecordsRequest.Builder> searchDiscoverableRegistryRecordsRequest) Searches the discoverable registry records in a registry using a natural language query.searchDiscoverableRegistryRecords(SearchDiscoverableRegistryRecordsRequest searchDiscoverableRegistryRecordsRequest) Searches the discoverable registry records in a registry using a natural language query.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationstatic ServiceMetadataMethods 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
-
batchGetDiscoverableRegistryRecord
default BatchGetDiscoverableRegistryRecordResponse batchGetDiscoverableRegistryRecord(BatchGetDiscoverableRegistryRecordRequest batchGetDiscoverableRegistryRecordRequest) throws InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, UnauthorizedException, ValidationException, AwsServiceException, SdkClientException, AgentRegistryException Retrieves multiple discoverable registry records by ID from a single registry. Records that cannot be retrieved are reported individually in the
errorslist rather than failing the entire request.- Parameters:
batchGetDiscoverableRegistryRecordRequest-- Returns:
- Result of the BatchGetDiscoverableRegistryRecord operation returned by the service.
- See Also:
-
batchGetDiscoverableRegistryRecord
default BatchGetDiscoverableRegistryRecordResponse batchGetDiscoverableRegistryRecord(Consumer<BatchGetDiscoverableRegistryRecordRequest.Builder> batchGetDiscoverableRegistryRecordRequest) throws InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, UnauthorizedException, ValidationException, AwsServiceException, SdkClientException, AgentRegistryException Retrieves multiple discoverable registry records by ID from a single registry. Records that cannot be retrieved are reported individually in the
errorslist rather than failing the entire request.
This is a convenience which creates an instance of the
BatchGetDiscoverableRegistryRecordRequest.Builderavoiding the need to create one manually viaBatchGetDiscoverableRegistryRecordRequest.builder()- Parameters:
batchGetDiscoverableRegistryRecordRequest- AConsumerthat will call methods onBatchGetDiscoverableRegistryRecordRequest.Builderto create a request.- Returns:
- Result of the BatchGetDiscoverableRegistryRecord operation returned by the service.
- See Also:
-
listDiscoverableRegistryRecords
default ListDiscoverableRegistryRecordsResponse listDiscoverableRegistryRecords(ListDiscoverableRegistryRecordsRequest listDiscoverableRegistryRecordsRequest) throws InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, UnauthorizedException, ValidationException, AwsServiceException, SdkClientException, AgentRegistryException Lists the discoverable registry records in a registry. You can optionally filter and paginate the results.
- Parameters:
listDiscoverableRegistryRecordsRequest-- Returns:
- Result of the ListDiscoverableRegistryRecords operation returned by the service.
- See Also:
-
listDiscoverableRegistryRecords
default ListDiscoverableRegistryRecordsResponse listDiscoverableRegistryRecords(Consumer<ListDiscoverableRegistryRecordsRequest.Builder> listDiscoverableRegistryRecordsRequest) throws InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, UnauthorizedException, ValidationException, AwsServiceException, SdkClientException, AgentRegistryException Lists the discoverable registry records in a registry. You can optionally filter and paginate the results.
This is a convenience which creates an instance of the
ListDiscoverableRegistryRecordsRequest.Builderavoiding the need to create one manually viaListDiscoverableRegistryRecordsRequest.builder()- Parameters:
listDiscoverableRegistryRecordsRequest- AConsumerthat will call methods onListDiscoverableRegistryRecordsRequest.Builderto create a request.- Returns:
- Result of the ListDiscoverableRegistryRecords operation returned by the service.
- See Also:
-
listDiscoverableRegistryRecordsPaginator
default ListDiscoverableRegistryRecordsIterable listDiscoverableRegistryRecordsPaginator(ListDiscoverableRegistryRecordsRequest listDiscoverableRegistryRecordsRequest) throws InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, UnauthorizedException, ValidationException, AwsServiceException, SdkClientException, AgentRegistryException This is a variant of
listDiscoverableRegistryRecords(software.amazon.awssdk.services.agentregistry.model.ListDiscoverableRegistryRecordsRequest)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.agentregistry.paginators.ListDiscoverableRegistryRecordsIterable responses = client.listDiscoverableRegistryRecordsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.agentregistry.paginators.ListDiscoverableRegistryRecordsIterable responses = client .listDiscoverableRegistryRecordsPaginator(request); for (software.amazon.awssdk.services.agentregistry.model.ListDiscoverableRegistryRecordsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.agentregistry.paginators.ListDiscoverableRegistryRecordsIterable responses = client.listDiscoverableRegistryRecordsPaginator(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
listDiscoverableRegistryRecords(software.amazon.awssdk.services.agentregistry.model.ListDiscoverableRegistryRecordsRequest)operation.- Parameters:
listDiscoverableRegistryRecordsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listDiscoverableRegistryRecordsPaginator
default ListDiscoverableRegistryRecordsIterable listDiscoverableRegistryRecordsPaginator(Consumer<ListDiscoverableRegistryRecordsRequest.Builder> listDiscoverableRegistryRecordsRequest) throws InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, UnauthorizedException, ValidationException, AwsServiceException, SdkClientException, AgentRegistryException This is a variant of
listDiscoverableRegistryRecords(software.amazon.awssdk.services.agentregistry.model.ListDiscoverableRegistryRecordsRequest)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.agentregistry.paginators.ListDiscoverableRegistryRecordsIterable responses = client.listDiscoverableRegistryRecordsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.agentregistry.paginators.ListDiscoverableRegistryRecordsIterable responses = client .listDiscoverableRegistryRecordsPaginator(request); for (software.amazon.awssdk.services.agentregistry.model.ListDiscoverableRegistryRecordsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.agentregistry.paginators.ListDiscoverableRegistryRecordsIterable responses = client.listDiscoverableRegistryRecordsPaginator(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
listDiscoverableRegistryRecords(software.amazon.awssdk.services.agentregistry.model.ListDiscoverableRegistryRecordsRequest)operation.
This is a convenience which creates an instance of the
ListDiscoverableRegistryRecordsRequest.Builderavoiding the need to create one manually viaListDiscoverableRegistryRecordsRequest.builder()- Parameters:
listDiscoverableRegistryRecordsRequest- AConsumerthat will call methods onListDiscoverableRegistryRecordsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
searchDiscoverableRegistryRecords
default SearchDiscoverableRegistryRecordsResponse searchDiscoverableRegistryRecords(SearchDiscoverableRegistryRecordsRequest searchDiscoverableRegistryRecordsRequest) throws InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, UnauthorizedException, ValidationException, AwsServiceException, SdkClientException, AgentRegistryException Searches the discoverable registry records in a registry using a natural language query. Returns metadata for the matching records ordered by relevance.
- Parameters:
searchDiscoverableRegistryRecordsRequest-- Returns:
- Result of the SearchDiscoverableRegistryRecords operation returned by the service.
- See Also:
-
searchDiscoverableRegistryRecords
default SearchDiscoverableRegistryRecordsResponse searchDiscoverableRegistryRecords(Consumer<SearchDiscoverableRegistryRecordsRequest.Builder> searchDiscoverableRegistryRecordsRequest) throws InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, UnauthorizedException, ValidationException, AwsServiceException, SdkClientException, AgentRegistryException Searches the discoverable registry records in a registry using a natural language query. Returns metadata for the matching records ordered by relevance.
This is a convenience which creates an instance of the
SearchDiscoverableRegistryRecordsRequest.Builderavoiding the need to create one manually viaSearchDiscoverableRegistryRecordsRequest.builder()- Parameters:
searchDiscoverableRegistryRecordsRequest- AConsumerthat will call methods onSearchDiscoverableRegistryRecordsRequest.Builderto create a request.- Returns:
- Result of the SearchDiscoverableRegistryRecords operation returned by the service.
- See Also:
-
create
Create aAgentRegistryClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider. -
builder
Create a builder that can be used to configure and create aAgentRegistryClient. -
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
-