public void ECRBatchGetImage() { #region batchgetimage-example-1470862771437 var response = client.BatchGetImage(new BatchGetImageRequest { ImageIds = new List <ImageIdentifier> { new ImageIdentifier { ImageTag = "precise" } }, RepositoryName = "ubuntu" }); List <ImageFailure> failures = response.Failures; List <Image> images = response.Images; #endregion }
private Amazon.ECR.Model.BatchGetImageResponse CallAWSServiceOperation(IAmazonECR client, Amazon.ECR.Model.BatchGetImageRequest request) { Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "Amazon EC2 Container Registry", "BatchGetImage"); try { #if DESKTOP return(client.BatchGetImage(request)); #elif CORECLR return(client.BatchGetImageAsync(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; } }