public void SnowballListClusterJobs() { #region to-get-a-list-of-jobs-in-a-cluster-that-youve-created-for-aws-snowball-1482863105773 var response = client.ListClusterJobs(new ListClusterJobsRequest { ClusterId = "CID123e4567-e89b-12d3-a456-426655440000" }); List <JobListEntry> jobListEntries = response.JobListEntries; #endregion }
private Amazon.Snowball.Model.ListClusterJobsResponse CallAWSServiceOperation(IAmazonSnowball client, Amazon.Snowball.Model.ListClusterJobsRequest request) { Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "AWS Import/Export Snowball", "ListClusterJobs"); try { #if DESKTOP return(client.ListClusterJobs(request)); #elif CORECLR return(client.ListClusterJobsAsync(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; } }