Class ServiceConfig.ObsS3

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

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

    • accessKeyId

      public final String accessKeyId

      Huawei Cloud access key ID (AK).

    • bucket

      @NonNull public final @NonNull String bucket

      OBS bucket name as a single lowercase DNS label.

    • 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.

    • endpoint

      public final String endpoint

      HTTP(S) base endpoint override. OpenDAL prepends the bucket to the host.

    • region

      @NonNull public final @NonNull String region

      OBS bucket region. Also used to sign requests.

    • root

      public final String root

      Root within the bucket. The default is /.

    • secretAccessKey

      public final String secretAccessKey

      Huawei Cloud secret access key (SK).

    • sessionToken

      public final String sessionToken

      Session token for temporary Huawei Cloud credentials. Requires both keys.

  • Constructor Details

    • ObsS3

      public ObsS3()
  • 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