Class AthenaStartQueryExecution
Start an Athena Query as a Task.
Inherited Members
Namespace: Amazon.CDK.AWS.StepFunctions.Tasks
Assembly: Amazon.CDK.AWS.StepFunctions.Tasks.dll
Syntax (csharp)
public class AthenaStartQueryExecution : TaskStateBase, IConstruct, IDependable, IChainable, INextable
Syntax (vb)
Public Class AthenaStartQueryExecution
Inherits TaskStateBase
Implements IConstruct, IDependable, IChainable, INextable
Remarks
See: https://docs.aws.amazon.com/step-functions/latest/dg/connect-athena.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
AthenaStartQueryExecution(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
AthenaStartQueryExecution(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
AthenaStartQueryExecution(Construct, String, IAthenaStartQueryExecutionProps) |
Properties
TaskMetrics | |
TaskPolicies |
Constructors
AthenaStartQueryExecution(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected AthenaStartQueryExecution(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
AthenaStartQueryExecution(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected AthenaStartQueryExecution(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
AthenaStartQueryExecution(Construct, String, IAthenaStartQueryExecutionProps)
public AthenaStartQueryExecution(Construct scope, string id, IAthenaStartQueryExecutionProps props)
Parameters
- scope Constructs.Construct
- id System.String
- props IAthenaStartQueryExecutionProps
Properties
TaskMetrics
protected override ITaskMetricsConfig TaskMetrics { get; }
Property Value
Overrides
TaskPolicies
protected override PolicyStatement[] TaskPolicies { get; }
Property Value
Overrides
Implements
Constructs.IConstruct