public void ElasticFileSystemDeleteFileSystem() { #region to-delete-a-file-system-1481847318348 var response = client.DeleteFileSystem(new DeleteFileSystemRequest { FileSystemId = "fs-01234567" }); #endregion }
private Amazon.ElasticFileSystem.Model.DeleteFileSystemResponse CallAWSServiceOperation(IAmazonElasticFileSystem client, Amazon.ElasticFileSystem.Model.DeleteFileSystemRequest request) { Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "Amazon Elastic File System", "DeleteFileSystem"); try { #if DESKTOP return(client.DeleteFileSystem(request)); #elif CORECLR return(client.DeleteFileSystemAsync(request).GetAwaiter().GetResult()); #else #error "Unknown build edition" #endif } catch (AmazonServiceException exc) { var webException = exc.InnerException as System.Net.WebException; if (webException != null) { throw new Exception(Utils.Common.FormatNameResolutionFailureMessage(client.Config, webException.Message), webException); } throw; } }