aws-cdk-lib.aws_stepfunctions_tasks.ResultConfiguration

interface ResultConfiguration

LanguageType name
.NETAmazon.CDK.AWS.StepFunctions.Tasks.ResultConfiguration
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsstepfunctionstasks#ResultConfiguration
Javasoftware.amazon.awscdk.services.stepfunctions.tasks.ResultConfiguration
Pythonaws_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: 'query-results-bucket',
      objectKey: 'folder',
    },
  },
});

Properties

NameTypeDescription
encryptionConfiguration?EncryptionConfigurationEncryption option used if enabled in S3.
outputLocation?LocationS3 path of query results.

encryptionConfiguration?

Type: EncryptionConfiguration (optional, default: SSE_S3 encrpytion 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/