// Streams the results of a single query execution specified by QueryExecutionId
// from the Athena query results location in Amazon S3. For more information, see
// Query Results (https://docs.aws.amazon.com/athena/latest/ug/querying.html) in
// the Amazon Athena User Guide. This request does not execute the query but
// returns results. Use StartQueryExecution to run a query. To stream query results
// successfully, the IAM principal with permission to call GetQueryResults also
// must have permissions to the Amazon S3 GetObject action for the Athena query
// results location. IAM principals with permission to the Amazon S3 GetObject
// action for the query results location are able to retrieve query results from
// Amazon S3 even if permission to the GetQueryResults action is denied. To
// restrict user or role access, ensure that Amazon S3 permissions to the Athena
// query location are denied.
Streams the results of a single query execution specified by QueryExecutionId
from the Athena query results location in Amazon S3. For more information, see
Query Results  in
the Amazon Athena User Guide. This request does not execute the query but
returns results. Use StartQueryExecution to run a query. To stream query results
successfully, the IAM principal with permission to call GetQueryResults also
must have permissions to the Amazon S3 GetObject action for the Athena query
results location. IAM principals with permission to the Amazon S3 GetObject
action for the query results location are able to retrieve query results from
Amazon S3 even if permission to the GetQueryResults action is denied. To
restrict user or role access, ensure that Amazon S3 permissions to the Athena
query location are denied.
// Streams the results of a single query execution specified by QueryExecutionId // from the Athena query results location in Amazon S3 . For more information see // Query Results ( https : // docs . aws . amazon . com / athena / latest / ug / querying . html ) in // the Amazon Athena User Guide . This request does not execute the query but // returns results . Use StartQueryExecution to run a query . To stream query results // successfully the IAM principal with permission to call GetQueryResults also // must have permissions to the Amazon S3 GetObject action for the Athena query // results location . IAM principals with permission to the Amazon S3 GetObject // action for the query results location are able to retrieve query results from // Amazon S3 even if permission to the GetQueryResults action is denied . To // restrict user or role access ensure that Amazon S3 permissions to the Athena // query location are denied .
func (c *Client) GetQueryResults(ctx context.Context, params *GetQueryResultsInput, optFns ...func(*Options)) (*GetQueryResultsOutput, error) {
	if params == nil {
		params = &GetQueryResultsInput{}
	}
	result, metadata, err := c.invokeOperation(ctx, "GetQueryResults", params, optFns, addOperationGetQueryResultsMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*GetQueryResultsOutput)
	out.ResultMetadata = metadata
	return out, nil
}
func ( c * Client ) GetQueryResults ( ctx context . Context , params * GetQueryResultsInput , optFns ... func ( * Options ) ) ( * GetQueryResultsOutput , error ) { if params == nil { params = & GetQueryResultsInput { } } result , metadata , err := c . invokeOperation ( ctx , " " , params , optFns , addOperationGetQueryResultsMiddlewares ) if err != nil { return nil , err } out := result . ( * GetQueryResultsOutput ) out . ResultMetadata = metadata return out , nil }
Streams the results of a single query execution specified by QueryExecutionId
from the Athena query results location in Amazon S3.
Streams the results of a single query execution specified by QueryExecutionId from the Athena query results location in Amazon S3 .