@@ -92,6 +92,14 @@ public interface IS3RepositorySettings : IRepositorySettings
92
92
/// </summary>
93
93
[ DataMember ( Name = "storage_class" ) ]
94
94
string StorageClass { get ; set ; }
95
+
96
+ /// <summary>
97
+ /// Whether to force the use of the path style access pattern. If `true`, the
98
+ // path style access pattern will be used. If `false`, the access pattern will
99
+ // be automatically determined by the AWS Java SDK used internally by Elasticsearch
100
+ /// </summary>
101
+ [ DataMember ( Name = "path_style_access" ) ]
102
+ bool ? PathStyleAccess { get ; set ; }
95
103
}
96
104
97
105
/// <inheritdoc />
@@ -127,6 +135,9 @@ internal S3RepositorySettings() { }
127
135
128
136
/// <inheritdoc />
129
137
public string StorageClass { get ; set ; }
138
+
139
+ /// <inheritdoc />
140
+ public bool ? PathStyleAccess { get ; set ; }
130
141
}
131
142
132
143
/// <inheritdoc cref="IS3RepositorySettings"/>
@@ -144,6 +155,7 @@ public class S3RepositorySettingsDescriptor
144
155
bool ? IS3RepositorySettings . Compress { get ; set ; }
145
156
bool ? IS3RepositorySettings . ServerSideEncryption { get ; set ; }
146
157
string IS3RepositorySettings . StorageClass { get ; set ; }
158
+ bool ? IS3RepositorySettings . PathStyleAccess { get ; set ; }
147
159
148
160
/// <inheritdoc cref="IS3RepositorySettings.Bucket" />
149
161
public S3RepositorySettingsDescriptor Bucket ( string bucket ) => Assign ( bucket , ( a , v ) => a . Bucket = v ) ;
@@ -172,6 +184,10 @@ public S3RepositorySettingsDescriptor ServerSideEncryption(bool? serverSideEncry
172
184
173
185
/// <inheritdoc cref="IS3RepositorySettings.StorageClass" />
174
186
public S3RepositorySettingsDescriptor StorageClass ( string storageClass ) => Assign ( storageClass , ( a , v ) => a . StorageClass = v ) ;
187
+
188
+ /// <inheritdoc cref="IS3RepositorySettings.PathStyleAccess" />
189
+ public S3RepositorySettingsDescriptor PathStyleAccess ( bool ? pathStyleAccess = true ) =>
190
+ Assign ( pathStyleAccess , ( a , v ) => a . PathStyleAccess = v ) ;
175
191
}
176
192
177
193
/// <inheritdoc cref="IS3Repository"/>
0 commit comments