(self)
| 280 | self.endpoint_url = settings.s3_endpoint_url |
| 281 | |
| 282 | def _client_config(self) -> Config: |
| 283 | config = {"signature_version": self.signature_version} |
| 284 | s3_config = {} |
| 285 | if self.addressing_style in {"path", "virtual", "auto"}: |
| 286 | s3_config["addressing_style"] = self.addressing_style |
| 287 | if s3_config: |
| 288 | config["s3"] = s3_config |
| 289 | return Config(**config) |
| 290 | |
| 291 | def _client(self): |
| 292 | return self.session.client( |
no outgoing calls