AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

StartQueryExecutionInput

import "github.com/aws/aws-sdk-go/service/athena"

type StartQueryExecutionInput struct { ClientRequestToken *string `min:"32" type:"string" idempotencyToken:"true"` QueryExecutionContext *QueryExecutionContext `type:"structure"` QueryString *string `min:"1" type:"string" required:"true"` ResultConfiguration *ResultConfiguration `type:"structure"` WorkGroup *string `type:"string"` }

ClientRequestToken

Type: *string

A unique case-sensitive string used to ensure the request to create the query is idempotent (executes only once). If another StartQueryExecution request is received, the same response is returned and another query is not created. If a parameter has changed, for example, the QueryString, an error is returned.

This token is listed as not required because AWS SDKs (for example the AWS SDK for Java) auto-generate the token for users. If you are not using the AWS SDK or the AWS CLI, you must provide this token or the action will fail.

QueryExecutionContext

The database in which the query execution occurs.

QueryString

Type: *string

The SQL query statements to be executed.

QueryString is a required field

ResultConfiguration

The location in Amazon S3 where query results are stored and the encryption option, if any, used for query results. These are known as "client-side settings". If workgroup settings override client-side settings, then the query uses the location for the query results and the encryption configuration that are specified for the workgroup.

WorkGroup

Type: *string

The name of the workgroup in which the query is being started.

Method

GoString

func (s StartQueryExecutionInput) GoString() string

GoString returns the string representation

SetClientRequestToken

func (s *StartQueryExecutionInput) SetClientRequestToken(v string) *StartQueryExecutionInput

SetClientRequestToken sets the ClientRequestToken field's value.

SetQueryExecutionContext

func (s *StartQueryExecutionInput) SetQueryExecutionContext(v *QueryExecutionContext) *StartQueryExecutionInput

SetQueryExecutionContext sets the QueryExecutionContext field's value.

SetQueryString

func (s *StartQueryExecutionInput) SetQueryString(v string) *StartQueryExecutionInput

SetQueryString sets the QueryString field's value.

SetResultConfiguration

func (s *StartQueryExecutionInput) SetResultConfiguration(v *ResultConfiguration) *StartQueryExecutionInput

SetResultConfiguration sets the ResultConfiguration field's value.

SetWorkGroup

func (s *StartQueryExecutionInput) SetWorkGroup(v string) *StartQueryExecutionInput

SetWorkGroup sets the WorkGroup field's value.

String

func (s StartQueryExecutionInput) String() string

String returns the string representation

Validate

func (s *StartQueryExecutionInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

On this page: