Skip to content
v2.274.0

ResultConfiguration Struct ​

Location of query result along with S3 bucket configuration.

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 ​

encryptionConfigurationEncryptionConfigurationencryption_configurationEncryptionConfigurationencryptionConfigurationEncryptionConfigurationEncryptionConfigurationEncryptionConfigurationEncryptionConfigurationEncryptionConfiguration#
Encryption option used if enabled in S3.

Default: SSE_S3 encryption is enabled with default encryption key

outputLocationLocationoutput_locationLocationoutputLocationLocationOutputLocationLocationOutputLocationLocation#
S3 path of query results.

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

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