File tree 1 file changed +10
-0
lines changed
crates/stackable-operator/src/commons/s3
1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -56,6 +56,12 @@ pub struct S3ConnectionSpec {
56
56
#[ serde( default , skip_serializing_if = "Option::is_none" ) ]
57
57
pub port : Option < u16 > ,
58
58
59
+ /// Region to connect to when using AWS S3.
60
+ ///
61
+ /// This defaults to us-east-1, and can be ignored if not using AWS S3.
62
+ #[ serde( default = "s3_region_default" ) ]
63
+ region : String ,
64
+
59
65
/// Which access style to use.
60
66
/// Defaults to virtual hosted-style as most of the data products out there.
61
67
/// Have a look at the [AWS documentation](https://docs.aws.amazon.com/AmazonS3/latest/userguide/VirtualHosting.html).
@@ -85,3 +91,7 @@ pub enum S3AccessStyle {
85
91
#[ default]
86
92
VirtualHosted ,
87
93
}
94
+
95
+ fn s3_region_default ( ) -> String {
96
+ "us-east-1" . to_owned ( )
97
+ }
You can’t perform that action at this time.
0 commit comments