# ResultConfiguration

Location of query result along with S3 bucket configuration.

- Source: [`aws-stepfunctions-tasks/lib/athena/start-query-execution.ts`](https://github.com/aws/aws-cdk/blob/v2.274.0/packages/aws-cdk-lib/aws-stepfunctions-tasks/lib/athena/start-query-execution.ts#L299)
- Type last changed: v2.142.0 · 16 May 2024

## Example

```ts
const startQueryExecutionJob = new tasks.AthenaStartQueryExecution(this, 'Start Athena Query', {
  queryString: sfn.JsonPath.stringAt('$.queryString'),
  queryExecutionContext: {
    databaseName: 'mydatabase',
  },
  resultConfiguration: {
    encryptionConfiguration: {
      encryptionOption: tasks.EncryptionOption.S3_MANAGED,
    },
    outputLocation: {
      bucketName: 'amzn-s3-demo-bucket',
      objectKey: 'folder',
    },
  },
  executionParameters: ['param1', 'param2'],
});
```

## Properties

- `encryptionConfiguration`: [EncryptionConfiguration](/cdk/api/v2/docs/aws-cdk-lib.aws_stepfunctions_tasks.EncryptionConfiguration.html) — Encryption option used if enabled in S3.

  **Default:** SSE_S3 encryption is enabled with default encryption key

- `outputLocation`: [Location](/cdk/api/v2/docs/aws-cdk-lib.aws_s3.Location.html) — S3 path of query results.

  **Default:** Query Result Location set in Athena settings for this workgroup

  Example value: `s3://query-results-bucket/folder/`
