aws_sdk_bedrockagentruntime/client/
generate_query.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`GenerateQuery`](crate::operation::generate_query::builders::GenerateQueryFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`query_generation_input(QueryGenerationInput)`](crate::operation::generate_query::builders::GenerateQueryFluentBuilder::query_generation_input) / [`set_query_generation_input(Option<QueryGenerationInput>)`](crate::operation::generate_query::builders::GenerateQueryFluentBuilder::set_query_generation_input):<br>required: **true**<br><p>Specifies information about a natural language query to transform into SQL.</p><br>
    ///   - [`transformation_configuration(TransformationConfiguration)`](crate::operation::generate_query::builders::GenerateQueryFluentBuilder::transformation_configuration) / [`set_transformation_configuration(Option<TransformationConfiguration>)`](crate::operation::generate_query::builders::GenerateQueryFluentBuilder::set_transformation_configuration):<br>required: **true**<br><p>Specifies configurations for transforming the natural language query into SQL.</p><br>
    /// - On success, responds with [`GenerateQueryOutput`](crate::operation::generate_query::GenerateQueryOutput) with field(s):
    ///   - [`queries(Option<Vec::<GeneratedQuery>>)`](crate::operation::generate_query::GenerateQueryOutput::queries): <p>A list of objects, each of which defines a generated query that can correspond to the natural language queries.</p>
    /// - On failure, responds with [`SdkError<GenerateQueryError>`](crate::operation::generate_query::GenerateQueryError)
    pub fn generate_query(&self) -> crate::operation::generate_query::builders::GenerateQueryFluentBuilder {
        crate::operation::generate_query::builders::GenerateQueryFluentBuilder::new(self.handle.clone())
    }
}