public void ElasticFileSystemDeleteMountTarget() { #region to-delete-a-mount-target-1481847635607 var response = client.DeleteMountTarget(new DeleteMountTargetRequest { MountTargetId = "fsmt-12340abc" }); #endregion }
private Amazon.ElasticFileSystem.Model.DeleteMountTargetResponse CallAWSServiceOperation(IAmazonElasticFileSystem client, Amazon.ElasticFileSystem.Model.DeleteMountTargetRequest request) { Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "Amazon Elastic File System", "DeleteMountTarget"); try { #if DESKTOP return(client.DeleteMountTarget(request)); #elif CORECLR return(client.DeleteMountTargetAsync(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; } }