Class ResultConfiguration
Location of query result along with S3 bucket configuration.
Inheritance
System.Object
ResultConfiguration
Implements
Namespace: Amazon.CDK.AWS.StepFunctions.Tasks
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class ResultConfiguration : Object, IResultConfiguration
Syntax (vb)
Public Class ResultConfiguration
Inherits Object
Implements IResultConfiguration
Remarks
See: https://docs.aws.amazon.com/athena/latest/APIReference/API_ResultConfiguration.html
ExampleMetadata: infused
Examples
var startQueryExecutionJob = new AthenaStartQueryExecution(this, "Start Athena Query", new AthenaStartQueryExecutionProps {
QueryString = JsonPath.StringAt("$.queryString"),
QueryExecutionContext = new QueryExecutionContext {
DatabaseName = "mydatabase"
},
ResultConfiguration = new ResultConfiguration {
EncryptionConfiguration = new EncryptionConfiguration {
EncryptionOption = EncryptionOption.S3_MANAGED
},
OutputLocation = new Location {
BucketName = "query-results-bucket",
ObjectKey = "folder"
}
},
ExecutionParameters = new [] { "param1", "param2" }
});
Synopsis
Constructors
ResultConfiguration() |
Properties
EncryptionConfiguration | Encryption option used if enabled in S3. |
OutputLocation | S3 path of query results. |
Constructors
ResultConfiguration()
public ResultConfiguration()
Properties
EncryptionConfiguration
Encryption option used if enabled in S3.
public IEncryptionConfiguration EncryptionConfiguration { get; set; }
Property Value
Remarks
Default: - SSE_S3 encrpytion is enabled with default encryption key
OutputLocation
S3 path of query results.
public ILocation OutputLocation { get; set; }
Property Value
Remarks
Example value: s3://query-results-bucket/folder/
Default: - Query Result Location set in Athena settings for this workgroup