Exemple #1
0
        public void SnowballDescribeCluster()
        {
            #region to-describe-a-cluster-1482864218396

            var response = client.DescribeCluster(new DescribeClusterRequest
            {
                ClusterId = "CID123e4567-e89b-12d3-a456-426655440000"
            });

            ClusterMetadata clusterMetadata = response.ClusterMetadata;

            #endregion
        }
Exemple #2
0
 private Amazon.Snowball.Model.DescribeClusterResponse CallAWSServiceOperation(IAmazonSnowball client, Amazon.Snowball.Model.DescribeClusterRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "AWS Import/Export Snowball", "DescribeCluster");
     try
     {
         #if DESKTOP
         return(client.DescribeCluster(request));
         #elif CORECLR
         return(client.DescribeClusterAsync(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;
     }
 }