Skip to main content

aws_sdk_agentdiscovery/client/
search_public_records.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`SearchPublicRecords`](crate::operation::search_public_records::builders::SearchPublicRecordsFluentBuilder) operation.
4    /// This operation supports pagination; See [`into_paginator()`](crate::operation::search_public_records::builders::SearchPublicRecordsFluentBuilder::into_paginator).
5    ///
6    /// - The fluent builder is configurable:
7    ///   - [`search_query(impl Into<String>)`](crate::operation::search_public_records::builders::SearchPublicRecordsFluentBuilder::search_query) / [`set_search_query(Option<String>)`](crate::operation::search_public_records::builders::SearchPublicRecordsFluentBuilder::set_search_query):<br>required: **false**<br>Free-text natural-language query (ARD `text`). Drives semantic + lexical ranking.<br>
8    ///   - [`filters(Document)`](crate::operation::search_public_records::builders::SearchPublicRecordsFluentBuilder::filters) / [`set_filters(Option<Document>)`](crate::operation::search_public_records::builders::SearchPublicRecordsFluentBuilder::set_filters):<br>required: **false**<br>Structured filter narrowing the results, in the grammar of Agent Registry's SearchDiscoverableRegistryRecords `filters`: `$eq`, `$ne` and `$in` on a field, with `$and` or `$or` over single-condition objects, never nested. Fields are `identifier`, `domain`, `recordType`, `descriptorType`, `provenance` and `recordVersion`, and `identifier` also takes `$prefix`. For example `{"recordType": {"$eq": "AGENT"}}` or `{"$or": \[{"recordType": {"$eq": "MCP"}}, {"domain": {"$eq": "acme.com"}}\]}`. Limits, the same ones Agent Registry applies: at most 10 conditions, `$in` takes 1-25 values, values are strings of 1-512 characters, and `{}` is invalid. A `document` can't carry `@length`, so the service enforces these and answers a filter past them with a ValidationException, as Agent Registry does.<br>
9    ///   - [`max_results(i32)`](crate::operation::search_public_records::builders::SearchPublicRecordsFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::search_public_records::builders::SearchPublicRecordsFluentBuilder::set_max_results):<br>required: **false**<br>Max records per page. Default 20, max 100.<br>
10    ///   - [`next_token(impl Into<String>)`](crate::operation::search_public_records::builders::SearchPublicRecordsFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::search_public_records::builders::SearchPublicRecordsFluentBuilder::set_next_token):<br>required: **false**<br>Opaque composite-cursor pagination token (O-DM12).<br>
11    /// - On success, responds with [`SearchPublicRecordsOutput`](crate::operation::search_public_records::SearchPublicRecordsOutput) with field(s):
12    ///   - [`records(Vec::<PublicRecord>)`](crate::operation::search_public_records::SearchPublicRecordsOutput::records): The records that match the search, most relevant first.
13    ///   - [`next_token(Option<String>)`](crate::operation::search_public_records::SearchPublicRecordsOutput::next_token): The token to pass in a later request to get the next page of results. Absent when there are no more results.
14    /// - On failure, responds with [`SdkError<SearchPublicRecordsError>`](crate::operation::search_public_records::SearchPublicRecordsError)
15    pub fn search_public_records(&self) -> crate::operation::search_public_records::builders::SearchPublicRecordsFluentBuilder {
16        crate::operation::search_public_records::builders::SearchPublicRecordsFluentBuilder::new(self.handle.clone())
17    }
18}