Skip to content

CancelImportTaskRequest

Source code in docs_src/capo_ec2/types/cancel_import_task_request.py
class CancelImportTaskRequest(TypedDict, closed=True):
    cancel_reason: NotRequired["capo_ec2.types.string.String"]
    """<p>The reason for canceling the task.</p>"""
    dry_run: NotRequired["capo_ec2.types.boolean.Boolean"]
    """<p>Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p>"""
    import_task_id: NotRequired["capo_ec2.types.import_task_id.ImportTaskId"]
    """<p>The ID of the import image or import snapshot task to be canceled.</p>"""

cancel_reason instance-attribute

cancel_reason: NotRequired[String]

The reason for canceling the task.

dry_run instance-attribute

dry_run: NotRequired[Boolean]

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

import_task_id instance-attribute

import_task_id: NotRequired[ImportTaskId]

The ID of the import image or import snapshot task to be canceled.