Interface AthenaStartQueryExecutionProps

All Superinterfaces:
software.amazon.jsii.JsiiSerializable, TaskStateBaseProps
All Known Implementing Classes:
AthenaStartQueryExecutionProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:47.872Z") @Stability(Stable) public interface AthenaStartQueryExecutionProps extends software.amazon.jsii.JsiiSerializable, TaskStateBaseProps
Properties for starting a Query Execution.

Example:

 AthenaStartQueryExecution startQueryExecutionJob = AthenaStartQueryExecution.Builder.create(this, "Athena Start Query")
         .queryString(JsonPath.format("select contacts where year={};", JsonPath.stringAt("$.year")))
         .queryExecutionContext(QueryExecutionContext.builder()
                 .databaseName("interactions")
                 .build())
         .resultConfiguration(ResultConfiguration.builder()
                 .encryptionConfiguration(EncryptionConfiguration.builder()
                         .encryptionOption(EncryptionOption.S3_MANAGED)
                         .build())
                 .outputLocation(Location.builder()
                         .bucketName("mybucket")
                         .objectKey("myprefix")
                         .build())
                 .build())
         .integrationPattern(IntegrationPattern.RUN_JOB)
         .build();
 
  • Method Details

    • getQueryString

      @Stability(Stable) @NotNull String getQueryString()
      Query that will be started.
    • getClientRequestToken

      @Stability(Stable) @Nullable default String getClientRequestToken()
      Unique string string to ensure idempotence.

      Default: - No client request token

    • getQueryExecutionContext

      @Stability(Stable) @Nullable default QueryExecutionContext getQueryExecutionContext()
      Database within which query executes.

      Default: - No query execution context

    • getResultConfiguration

      @Stability(Stable) @Nullable default ResultConfiguration getResultConfiguration()
      Configuration on how and where to save query.

      Default: - No result configuration

    • getWorkGroup

      @Stability(Stable) @Nullable default String getWorkGroup()
      Configuration on how and where to save query.

      Default: - No work group

    • builder

      @Stability(Stable) static AthenaStartQueryExecutionProps.Builder builder()
      Returns:
      a AthenaStartQueryExecutionProps.Builder of AthenaStartQueryExecutionProps