Exemple #1
0
        public void SnowballListClusters()
        {
            #region to-get-a-list-of-clusters-that-youve-created-for-aws-snowball-1482862223003

            var response = client.ListClusters(new ListClustersRequest
            {
            });

            List <ClusterListEntry> clusterListEntries = response.ClusterListEntries;

            #endregion
        }
 private Amazon.Snowball.Model.ListClustersResponse CallAWSServiceOperation(IAmazonSnowball client, Amazon.Snowball.Model.ListClustersRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "AWS Import/Export Snowball", "ListClusters");
     try
     {
         #if DESKTOP
         return(client.ListClusters(request));
         #elif CORECLR
         return(client.ListClustersAsync(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;
     }
 }