Example #1
0
        public void SnowballDescribeJob()
        {
            #region to-describe-a-job-youve-created-for-aws-snowball-1482539500180

            var response = client.DescribeJob(new DescribeJobRequest
            {
                JobId = "JID123e4567-e89b-12d3-a456-426655440000"
            });

            JobMetadata jobMetadata = response.JobMetadata;

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