public void ECRBatchDeleteImage() { #region batchdeleteimages-example-1470860541707 var response = client.BatchDeleteImage(new BatchDeleteImageRequest { ImageIds = new List <ImageIdentifier> { new ImageIdentifier { ImageTag = "precise" } }, RepositoryName = "ubuntu" }); List <ImageFailure> failures = response.Failures; List <ImageIdentifier> imageIds = response.ImageIds; #endregion }
private Amazon.ECR.Model.BatchDeleteImageResponse CallAWSServiceOperation(IAmazonECR client, Amazon.ECR.Model.BatchDeleteImageRequest request) { Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "Amazon EC2 Container Registry", "BatchDeleteImage"); try { #if DESKTOP return(client.BatchDeleteImage(request)); #elif CORECLR return(client.BatchDeleteImageAsync(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; } }