1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`StartQueryExecution`](crate::operation::start_query_execution::builders::StartQueryExecutionFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`query_string(impl Into<String>)`](crate::operation::start_query_execution::builders::StartQueryExecutionFluentBuilder::query_string) / [`set_query_string(Option<String>)`](crate::operation::start_query_execution::builders::StartQueryExecutionFluentBuilder::set_query_string):<br>required: **true**<br><p>The SQL query statements to be executed.</p><br>
    ///   - [`client_request_token(impl Into<String>)`](crate::operation::start_query_execution::builders::StartQueryExecutionFluentBuilder::client_request_token) / [`set_client_request_token(Option<String>)`](crate::operation::start_query_execution::builders::StartQueryExecutionFluentBuilder::set_client_request_token):<br>required: **false**<br><p>A unique case-sensitive string used to ensure the request to create the query is idempotent (executes only once). If another <code>StartQueryExecution</code> request is received, the same response is returned and another query is not created. An error is returned if a parameter, such as <code>QueryString</code>, has changed. A call to <code>StartQueryExecution</code> that uses a previous client request token returns the same <code>QueryExecutionId</code> even if the requester doesn't have permission on the tables specified in <code>QueryString</code>.</p><important>  <p>This token is listed as not required because Amazon Web Services SDKs (for example the Amazon Web Services SDK for Java) auto-generate the token for users. If you are not using the Amazon Web Services SDK or the Amazon Web Services CLI, you must provide this token or the action will fail.</p> </important><br>
    ///   - [`query_execution_context(QueryExecutionContext)`](crate::operation::start_query_execution::builders::StartQueryExecutionFluentBuilder::query_execution_context) / [`set_query_execution_context(Option<QueryExecutionContext>)`](crate::operation::start_query_execution::builders::StartQueryExecutionFluentBuilder::set_query_execution_context):<br>required: **false**<br><p>The database within which the query executes.</p><br>
    ///   - [`result_configuration(ResultConfiguration)`](crate::operation::start_query_execution::builders::StartQueryExecutionFluentBuilder::result_configuration) / [`set_result_configuration(Option<ResultConfiguration>)`](crate::operation::start_query_execution::builders::StartQueryExecutionFluentBuilder::set_result_configuration):<br>required: **false**<br><p>Specifies information about where and how to save the results of the query execution. If the query runs in a workgroup, then workgroup's settings may override query settings. This affects the query results location. The workgroup settings override is specified in EnforceWorkGroupConfiguration (true/false) in the WorkGroupConfiguration. See <code>WorkGroupConfiguration$EnforceWorkGroupConfiguration</code>.</p><br>
    ///   - [`work_group(impl Into<String>)`](crate::operation::start_query_execution::builders::StartQueryExecutionFluentBuilder::work_group) / [`set_work_group(Option<String>)`](crate::operation::start_query_execution::builders::StartQueryExecutionFluentBuilder::set_work_group):<br>required: **false**<br><p>The name of the workgroup in which the query is being started.</p><br>
    ///   - [`execution_parameters(impl Into<String>)`](crate::operation::start_query_execution::builders::StartQueryExecutionFluentBuilder::execution_parameters) / [`set_execution_parameters(Option<Vec::<String>>)`](crate::operation::start_query_execution::builders::StartQueryExecutionFluentBuilder::set_execution_parameters):<br>required: **false**<br><p>A list of values for the parameters in a query. The values are applied sequentially to the parameters in the query in the order in which the parameters occur.</p><br>
    ///   - [`result_reuse_configuration(ResultReuseConfiguration)`](crate::operation::start_query_execution::builders::StartQueryExecutionFluentBuilder::result_reuse_configuration) / [`set_result_reuse_configuration(Option<ResultReuseConfiguration>)`](crate::operation::start_query_execution::builders::StartQueryExecutionFluentBuilder::set_result_reuse_configuration):<br>required: **false**<br><p>Specifies the query result reuse behavior for the query.</p><br>
    /// - On success, responds with [`StartQueryExecutionOutput`](crate::operation::start_query_execution::StartQueryExecutionOutput) with field(s):
    ///   - [`query_execution_id(Option<String>)`](crate::operation::start_query_execution::StartQueryExecutionOutput::query_execution_id): <p>The unique ID of the query that ran as a result of this request.</p>
    /// - On failure, responds with [`SdkError<StartQueryExecutionError>`](crate::operation::start_query_execution::StartQueryExecutionError)
    pub fn start_query_execution(&self) -> crate::operation::start_query_execution::builders::StartQueryExecutionFluentBuilder {
        crate::operation::start_query_execution::builders::StartQueryExecutionFluentBuilder::new(self.handle.clone())
    }
}