Interface Location

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
Location.Jsii$Proxy

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:37.708Z") @Stability(Stable) public interface Location extends software.amazon.jsii.JsiiSerializable
An interface that represents the location of a specific object in an S3 Bucket.

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

    • getBucketName

      @Stability(Stable) @NotNull String getBucketName()
      The name of the S3 Bucket the object is in.
    • getObjectKey

      @Stability(Stable) @NotNull String getObjectKey()
      The path inside the Bucket where the object is located at.
    • getObjectVersion

      @Stability(Stable) @Nullable default String getObjectVersion()
      The S3 object version.
    • builder

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