Interface IResultConfiguration
Location of query result along with S3 bucket configuration.
Namespace: Amazon.CDK.AWS.StepFunctions.Tasks
Assembly: Amazon.CDK.AWS.StepFunctions.Tasks.dll
Syntax (csharp)
public interface IResultConfiguration
Syntax (vb)
Public Interface IResultConfiguration
Remarks
See: https://docs.aws.amazon.com/athena/latest/APIReference/API_ResultConfiguration.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
Properties
EncryptionConfiguration | Encryption option used if enabled in S3. |
OutputLocation | S3 path of query results. |
Properties
EncryptionConfiguration
Encryption option used if enabled in S3.
virtual IEncryptionConfiguration EncryptionConfiguration { get; }
Property Value
Remarks
Default: - SSE_S3 encrpytion is enabled with default encryption key
OutputLocation
S3 path of query results.
virtual ILocation OutputLocation { get; }
Property Value
Remarks
Example value: s3://query-results-bucket/folder/
Default: - Query Result Location set in Athena settings for this workgroup