Class ServiceConfig.LakefsS3

java.lang.Object
org.apache.opendal.ServiceConfig.LakefsS3
All Implemented Interfaces:
ServiceConfig
Enclosing interface:
ServiceConfig

public static class ServiceConfig.LakefsS3 extends Object implements ServiceConfig
Configuration for service lakefs-s3.
  • Field Details

    • accessKeyId

      public final String accessKeyId

      lakeFS access key ID.

    • bucket

      @NonNull public final @NonNull String bucket

      lakeFS repository name as exposed by the S3 Gateway.

    • disableConfigLoad

      public final Boolean disableConfigLoad

      Disable loading credentials from AWS environment variables and shared profile files.

      Set both access_key_id and secret_access_key when enabled.

    • enableVirtualHostStyle

      public final Boolean enableVirtualHostStyle

      Use virtual-hosted-style addressing when the gateway is configured for it.

    • endpoint

      @NonNull public final @NonNull String endpoint

      HTTP(S) base URL of the lakeFS S3 Gateway.

    • region

      public final String region

      Signing region. Defaults to us-east-1.

    • root

      @NonNull public final @NonNull String root

      S3 key prefix starting with a branch or other lakeFS reference.

    • secretAccessKey

      public final String secretAccessKey

      lakeFS secret access key.

    • sessionToken

      public final String sessionToken

      Session token from issued lakeFS Enterprise temporary credentials. Requires both keys.

  • Constructor Details

    • LakefsS3

      public LakefsS3()
  • Method Details

    • scheme

      public String scheme()
      Description copied from interface: ServiceConfig
      The scheme of the service.
      Specified by:
      scheme in interface ServiceConfig
      Returns:
      the scheme
    • configMap

      public Map<String,String> configMap()
      Description copied from interface: ServiceConfig
      Convert the structured config to a type erased config map.

      A map-valued field becomes one entry, under the field's option name, whose value is a JSON object string, such as assume_role_session_tags = {"Team":"data"}. The map's entries are not flattened into top-level entries. Its keys are sorted, an empty map becomes {}, and an unset field has no entry.

      Specified by:
      configMap in interface ServiceConfig
      Returns:
      the config map