AWS SDK Version 2 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

.NET Framework 4.5
 
Deletes the image file artifacts associated with the specified conversion task. If the task is still active, ignoreActiveTask must be set true to enable artifact deletion, which will cause the task to fail. Use this option at your own risk.

Namespace: Amazon.EC2.Import
Assembly: AWSSDK.dll
Version: (assembly version)

Syntax

C#
public void DeleteImageArtifacts(
         IAmazonEC2 ec2Client,
         IAmazonS3 s3Client,
         String conversionTaskId,
         Boolean ignoreActiveTask,
         CleanupProgressCallback progressCallback
)

Parameters

ec2Client
Type: Amazon.EC2.IAmazonEC2

Amazon EC2 client to use in the process. This should have been instantiated with credentials that have access to the conversion task and the region in which the import was performed.

s3Client
Type: Amazon.S3.IAmazonS3

Amazon S3 client to use use in the process. This should have been instantiated with credentials that have access to the bucket containing the image file artifacts and the region in which the bucket exists.

conversionTaskId
Type: System.String

The ID of the conversion task that used the image file

ignoreActiveTask
Type: System.Boolean

If true the artifacts are deleted even if the conversion task is still in progress

progressCallback
Type: Amazon.EC2.Import.CleanupProgressCallback

Optional progress callback

Version Information

.NET Framework:
Supported in: 4.5, 4.0, 3.5