-
Notifications
You must be signed in to change notification settings - Fork 17
/
awsstepfunctionstasks_QueryExecutionContext.go
35 lines (32 loc) · 1.3 KB
/
awsstepfunctionstasks_QueryExecutionContext.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package awsstepfunctionstasks
// Database and data catalog context in which the query execution occurs.
//
// Example:
// startQueryExecutionJob := tasks.NewAthenaStartQueryExecution(this, jsii.String("Athena Start Query"), &athenaStartQueryExecutionProps{
// queryString: sfn.jsonPath.format(jsii.String("select contacts where year={};"), sfn.*jsonPath.stringAt(jsii.String("$.year"))),
// queryExecutionContext: &queryExecutionContext{
// databaseName: jsii.String("interactions"),
// },
// resultConfiguration: &resultConfiguration{
// encryptionConfiguration: &encryptionConfiguration{
// encryptionOption: tasks.encryptionOption_S3_MANAGED,
// },
// outputLocation: &location{
// bucketName: jsii.String("mybucket"),
// objectKey: jsii.String("myprefix"),
// },
// },
// integrationPattern: sfn.integrationPattern_RUN_JOB,
// })
//
// See: https://docs.aws.amazon.com/athena/latest/APIReference/API_QueryExecutionContext.html
//
// Experimental.
type QueryExecutionContext struct {
// Name of catalog used in query execution.
// Experimental.
CatalogName *string `field:"optional" json:"catalogName" yaml:"catalogName"`
// Name of database used in query execution.
// Experimental.
DatabaseName *string `field:"optional" json:"databaseName" yaml:"databaseName"`
}