testS3ConnectionWithHttpInfo method
Test AWS S3 connection
Send a test to validate if can connect to AWS S3. Optionally provide a configuration in the request body to test. If no valid configuration is present in the request body the current server configuration will be tested. ##### Permissions Must have manage_system
permission. Minimum server version: 4.8
Note: This method returns the HTTP Response
.
Parameters:
- MmConfig mmConfig (required): Mattermost configuration
Implementation
Future<Response> testS3ConnectionWithHttpInfo(
MmConfig mmConfig,
) async {
// ignore: prefer_const_declarations
final path = r'/file/s3_test';
// ignore: prefer_final_locals
Object? postBody = mmConfig;
final queryParams = <MmQueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>['application/json'];
return apiClient.invokeAPI(
path,
'POST',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}