interface ResultConfiguration
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.StepFunctions.Tasks.ResultConfiguration |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsstepfunctionstasks#ResultConfiguration |
Java | software.amazon.awscdk.services.stepfunctions.tasks.ResultConfiguration |
Python | aws_cdk.aws_stepfunctions_tasks.ResultConfiguration |
TypeScript (source) | aws-cdk-lib » aws_stepfunctions_tasks » ResultConfiguration |
Location of query result along with S3 bucket configuration.
See also: https://docs.aws.amazon.com/athena/latest/APIReference/API_ResultConfiguration.html
Example
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
Name | Type | Description |
---|---|---|
encryption | Encryption | Encryption option used if enabled in S3. |
output | Location | S3 path of query results. |
encryptionConfiguration?
Type:
Encryption
(optional, default: SSE_S3 encryption is enabled with default encryption key)
Encryption option used if enabled in S3.
outputLocation?
Type:
Location
(optional, default: Query Result Location set in Athena settings for this workgroup)
S3 path of query results.
Example value: s3://query-results-bucket/folder/