Allow SdkPlugins on S3Clients to Force Path Style.
- Lingua principale
- Java
- Stelle
- 2.6k
- Fork
- 1k
- Merge medio
- 2g 9h
- PR unite (30g)
- 51
Descrizione
### Describe the feature
It would be nice if SdkPlugins that are targeting S3Clients could force path style access.
Most configuration that can be set when using S3Client.builder() can be accessed in SdkPlugins by using `((S3ServiceClientConfiguration.Builder) config)`, but path style access is not one of them.
### Use Case
I'm am trying to figure out how I can apply configurations to S3Clients at the company I am working at. We noticed that #2247 is affecting us, and wanted to force path style access as part of a plugin we are developing to standardize configuration. This is also helpful when the issue mentioned gets resolved and we want our users to swap back to using virtual host style domains, as my team could publish the change in our plugin and have it be consumed across the org without having to ask every team that uses this sdk to change their code.
### Proposed Solution
The workaround I was able to find involved making an ExecutionInterceptor that modifies `SdkInternalExecutionAttribute`'s CLIENT_CONTEXT_PARAM. However, the [docs](https://docs.aws.amazon.com/java/api/latest/software/amazon/awssdk/core/interceptor/SdkInternalExecutionAttribute.html) specifically mention "Only generated code from the SDK clients should set these values."
The customization.config in S3's codegen resources would probably need to be modified to add path style access to the `customClientContextParams` array, which I think gets read by `ServiceClientConfigurationUtils` when it adds fields.
### Other Information
_No response_
### Acknowledgements
- [x] I may be able to implement this feature request
- [ ] This feature might incur a breaking change
### AWS Java SDK version used
software.amazon.awssdk:s3:2.47.4
### JDK version used
openjdk 26.0.1 2026-04-21 OpenJDK Runtime Environment Temurin-26.0.1+8 (build 26.0.1+8) OpenJDK 64-Bit Server VM Temurin-26.0.1+8 (build 26.0.1+8, mixed mode, sharing)
### Operating System and version
Microsoft Windows 11 Enterprise 10.0.26100 Build 26100
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia con il customization.config del codegen S3 e segui il modo in cui ServiceClientConfigurationUtils legge i relativi customClientContextParams. Segui la configurazione di S3Client.builder e il percorso di SdkPlugin per determinare l'impostazione esposta necessaria; il lavoro è completato quando un SdkPlugin può forzare l'accesso in stile path senza modificare direttamente SdkInternalExecutionAttribute.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- aws, java
- Ambito
- api
- Tipo di issue
- Funzionalità
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Tranquilla
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 63/100