Esempio n. 1
0
        public void ElasticFileSystemDescribeMountTargets()
        {
            #region to-describe-the-mount-targets-for-a-file-system-1481849958584

            var response = client.DescribeMountTargets(new DescribeMountTargetsRequest
            {
                FileSystemId = "fs-01234567"
            });

            List <MountTargetDescription> mountTargets = response.MountTargets;

            #endregion
        }
 private Amazon.ElasticFileSystem.Model.DescribeMountTargetsResponse CallAWSServiceOperation(IAmazonElasticFileSystem client, Amazon.ElasticFileSystem.Model.DescribeMountTargetsRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "Amazon Elastic File System", "DescribeMountTargets");
     try
     {
         #if DESKTOP
         return(client.DescribeMountTargets(request));
         #elif CORECLR
         return(client.DescribeMountTargetsAsync(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;
     }
 }