Skip to content
v2.273.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= SSE_S3 encryption is enabled wit…#
Encryption option used if enabled in S3.
default

Default: SSE_S3 encryption is enabled with default encryption key

outputLocationLocationoutput_locationLocationoutputLocationLocationOutputLocationLocationOutputLocationLocation= Query Result Location set in Ath…#
S3 path of query results.

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

default

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