public void ElasticFileSystemCreateMountTarget() { #region to-create-a-new-mount-target-1481842289329 var response = client.CreateMountTarget(new CreateMountTargetRequest { FileSystemId = "fs-01234567", SubnetId = "subnet-1234abcd" }); string fileSystemId = response.FileSystemId; string ipAddress = response.IpAddress; string lifeCycleState = response.LifeCycleState; string mountTargetId = response.MountTargetId; string networkInterfaceId = response.NetworkInterfaceId; string ownerId = response.OwnerId; string subnetId = response.SubnetId; #endregion }
private Amazon.ElasticFileSystem.Model.CreateMountTargetResponse CallAWSServiceOperation(IAmazonElasticFileSystem client, Amazon.ElasticFileSystem.Model.CreateMountTargetRequest request) { Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "Amazon Elastic File System", "CreateMountTarget"); try { #if DESKTOP return(client.CreateMountTarget(request)); #elif CORECLR return(client.CreateMountTargetAsync(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; } }