public void FSxDeleteFileSystem() { #region to-delete-a-file-system-1481847318348 var response = client.DeleteFileSystem(new DeleteFileSystemRequest { FileSystemId = "fs-0498eed5fe91001ec" }); string fileSystemId = response.FileSystemId; string lifecycle = response.Lifecycle; #endregion }
private Amazon.FSx.Model.DeleteFileSystemResponse CallAWSServiceOperation(IAmazonFSx client, Amazon.FSx.Model.DeleteFileSystemRequest request) { Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "Amazon FSx", "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; } }