AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

CancelImportTaskInput

import "github.com/aws/aws-sdk-go/service/ec2"

type CancelImportTaskInput struct { CancelReason *string `type:"string"` DryRun *bool `type:"boolean"` ImportTaskId *string `type:"string"` }

Contains the parameters for CancelImportTask.

CancelReason

Type: *string

The reason for canceling the task.

DryRun

Type: *bool

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.

ImportTaskId

Type: *string

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

Method

GoString

func (s CancelImportTaskInput) GoString() string

GoString returns the string representation

SetCancelReason

func (s *CancelImportTaskInput) SetCancelReason(v string) *CancelImportTaskInput

SetCancelReason sets the CancelReason field's value.

SetDryRun

func (s *CancelImportTaskInput) SetDryRun(v bool) *CancelImportTaskInput

SetDryRun sets the DryRun field's value.

SetImportTaskId

func (s *CancelImportTaskInput) SetImportTaskId(v string) *CancelImportTaskInput

SetImportTaskId sets the ImportTaskId field's value.

String

func (s CancelImportTaskInput) String() string

String returns the string representation

On this page: