aws_sdk_timestreamquery/client/prepare_query.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 [`PrepareQuery`](crate::operation::prepare_query::builders::PrepareQueryFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`query_string(impl Into<String>)`](crate::operation::prepare_query::builders::PrepareQueryFluentBuilder::query_string) / [`set_query_string(Option<String>)`](crate::operation::prepare_query::builders::PrepareQueryFluentBuilder::set_query_string):<br>required: **true**<br><p>The Timestream query string that you want to use as a prepared statement. Parameter names can be specified in the query string <code>@</code> character followed by an identifier.</p><br>
7 /// - [`validate_only(bool)`](crate::operation::prepare_query::builders::PrepareQueryFluentBuilder::validate_only) / [`set_validate_only(Option<bool>)`](crate::operation::prepare_query::builders::PrepareQueryFluentBuilder::set_validate_only):<br>required: **false**<br><p>By setting this value to <code>true</code>, Timestream will only validate that the query string is a valid Timestream query, and not store the prepared query for later use.</p><br>
8 /// - On success, responds with [`PrepareQueryOutput`](crate::operation::prepare_query::PrepareQueryOutput) with field(s):
9 /// - [`query_string(String)`](crate::operation::prepare_query::PrepareQueryOutput::query_string): <p>The query string that you want prepare.</p>
10 /// - [`columns(Vec::<SelectColumn>)`](crate::operation::prepare_query::PrepareQueryOutput::columns): <p>A list of SELECT clause columns of the submitted query string.</p>
11 /// - [`parameters(Vec::<ParameterMapping>)`](crate::operation::prepare_query::PrepareQueryOutput::parameters): <p>A list of parameters used in the submitted query string.</p>
12 /// - On failure, responds with [`SdkError<PrepareQueryError>`](crate::operation::prepare_query::PrepareQueryError)
13 pub fn prepare_query(&self) -> crate::operation::prepare_query::builders::PrepareQueryFluentBuilder {
14 crate::operation::prepare_query::builders::PrepareQueryFluentBuilder::new(self.handle.clone())
15 }
16}