public StatusCode GetDownloadStatus(string id)
        {
            var job = Service.DescribeJob(
                new DescribeJobRequest()
            {
                VaultName = this.VaultName,
                JobId     = id
            }
                );

            return(job.StatusCode);
        }
        public void GlacierDescribeJob()
        {
            #region to-get-information-about-a-job-you-previously-initiated-1481840928592

            var response = client.DescribeJob(new DescribeJobRequest
            {
                AccountId = "-",
                JobId     = "zbxcm3Z_3z5UkoroF7SuZKrxgGoDc3RloGduS7Eg-RO47Yc6FxsdGBgf_Q2DK5Ejh18CnTS5XW4_XqlNHS61dsO4Cn",
                VaultName = "my-vault"
            });

            string action       = response.Action;
            bool   completed    = response.Completed;
            string creationDate = response.CreationDate;
            InventoryRetrievalJobDescription inventoryRetrievalParameters = response.InventoryRetrievalParameters;
            string jobId      = response.JobId;
            string statusCode = response.StatusCode;
            string vaultARN   = response.VaultARN;

            #endregion
        }
 private Amazon.Glacier.Model.DescribeJobResponse CallAWSServiceOperation(IAmazonGlacier client, Amazon.Glacier.Model.DescribeJobRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "Amazon Glacier", "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;
     }
 }