Skip to main content

apply_to_s3_config_builder

Function apply_to_s3_config_builder 

Source
pub fn apply_to_s3_config_builder(
    flags: &CompatFlags,
    builder: Builder,
) -> CompatFlagApply
Expand description

Apply all v1 compat flags from flags onto builder and return the updated builder together with any warnings.

§Forward-compat contract

  • If flags.flags_schema != CURRENT_FLAGS_SCHEMA, a warning is added but the known fields are still applied — the function always returns Ok.
  • Each key in flags.unknown (written by a newer schema version) produces a single “ignored” warning rather than an error.

§Flags wiring summary

FlagWiring
endpoint_urlSDK loader (applied before S3ConfigBuilder) — caller must handle
region_overrideSDK loader — caller must handle
addressing_styleforce_path_style(true/false/unset)
signature_versionV4 always (V2 unsupported by aws-sdk-s3 v1; emits warning)
checksum_moderequest_checksum_calculation(WhenRequired) when Disabled
accept_invalid_tlsfeature-gated; caller injects a custom HTTP connector
expect_continuecaller injects a custom HTTP connector
chunked_uploadstored; not yet wired to SDK (open-ended, see comment)
bucket_name_validationLax noted in warning (no SDK-level hook in v1)