Class QueryExecutionContext
Database and data catalog context in which the query execution occurs.
Inheritance
System.Object
QueryExecutionContext
Implements
Namespace: Amazon.CDK.AWS.StepFunctions.Tasks
Assembly: Amazon.CDK.AWS.StepFunctions.Tasks.dll
Syntax (csharp)
public class QueryExecutionContext : Object, IQueryExecutionContext
Syntax (vb)
Public Class QueryExecutionContext
Inherits Object
Implements IQueryExecutionContext
Remarks
See: https://docs.aws.amazon.com/athena/latest/APIReference/API_QueryExecutionContext.html
ExampleMetadata: infused
Examples
var startQueryExecutionJob = new AthenaStartQueryExecution(this, "Athena Start Query", new AthenaStartQueryExecutionProps {
QueryString = JsonPath.Format("select contacts where year={};", JsonPath.StringAt("$.year")),
QueryExecutionContext = new QueryExecutionContext {
DatabaseName = "interactions"
},
ResultConfiguration = new ResultConfiguration {
EncryptionConfiguration = new EncryptionConfiguration {
EncryptionOption = EncryptionOption.S3_MANAGED
},
OutputLocation = new Location {
BucketName = "mybucket",
ObjectKey = "myprefix"
}
},
IntegrationPattern = IntegrationPattern.RUN_JOB
});
Synopsis
Constructors
QueryExecutionContext() |
Properties
CatalogName | Name of catalog used in query execution. |
DatabaseName | Name of database used in query execution. |
Constructors
QueryExecutionContext()
public QueryExecutionContext()
Properties
CatalogName
Name of catalog used in query execution.
public string CatalogName { get; set; }
Property Value
System.String
Remarks
Default: - No catalog
DatabaseName
Name of database used in query execution.
public string DatabaseName { get; set; }
Property Value
System.String
Remarks
Default: - No database