File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -1108,7 +1108,12 @@ class EndpointProviderCache {
1108
1108
1109
1109
class ClientBuilder {
1110
1110
public:
1111
- explicit ClientBuilder (S3Options options) : options_(std::move(options)) {}
1111
+ explicit ClientBuilder (S3Options options)
1112
+ : options_(std::move(options)),
1113
+ // The ClientConfiguration constructor always does a current region lookup
1114
+ // via EC2 metadata, unless IMDS is disabled (GH-46214).
1115
+ client_config_(/* useSmartDefaults=*/ true , options_.smart_defaults,
1116
+ /* shouldDisableIMDS=*/ true ) {}
1112
1117
1113
1118
const Aws::Client::ClientConfiguration& config () const { return client_config_; }
1114
1119
Original file line number Diff line number Diff line change @@ -96,6 +96,12 @@ class ARROW_EXPORT S3RetryStrategy {
96
96
97
97
// / Options for the S3FileSystem implementation.
98
98
struct ARROW_EXPORT S3Options {
99
+ // / \brief Smart defaults for option values
100
+ // /
101
+ // / The possible values for this setting are explained in the AWS docs:
102
+ // / https://docs.aws.amazon.com/sdkref/latest/guide/feature-smart-config-defaults.html
103
+ const char * smart_defaults = " standard" ;
104
+
99
105
// / \brief AWS region to connect to.
100
106
// /
101
107
// / If unset, the AWS SDK will choose a default value. The exact algorithm
You can’t perform that action at this time.
0 commit comments