Exemple #1
0
        public void ElasticFileSystemDescribeFileSystems()
        {
            #region to-describe-an-efs-file-system-1481848448460

            var response = client.DescribeFileSystems(new DescribeFileSystemsRequest
            {
            });

            List <FileSystemDescription> fileSystems = response.FileSystems;

            #endregion
        }
        IEnumerable <DescribeFileSystemsResponse> IPaginator <DescribeFileSystemsResponse> .Paginate()
        {
            if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0)
            {
                throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance.");
            }
            var marker = _request.Marker;
            DescribeFileSystemsResponse response;

            do
            {
                _request.Marker = marker;
                response        = _client.DescribeFileSystems(_request);
                marker          = response.NextMarker;
                yield return(response);
            }while (marker != null);
        }
 private Amazon.ElasticFileSystem.Model.DescribeFileSystemsResponse CallAWSServiceOperation(IAmazonElasticFileSystem client, Amazon.ElasticFileSystem.Model.DescribeFileSystemsRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "Amazon Elastic File System", "DescribeFileSystems");
     try
     {
         #if DESKTOP
         return(client.DescribeFileSystems(request));
         #elif CORECLR
         return(client.DescribeFileSystemsAsync(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;
     }
 }