amazonka-ec2-2.0: Amazon Elastic Compute Cloud SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.EC2.DescribeImportImageTasks

Description

Displays details about an import virtual machine or import snapshot tasks that are already created.

This operation returns paginated results.

Synopsis

Creating a Request

data DescribeImportImageTasks Source #

See: newDescribeImportImageTasks smart constructor.

Constructors

DescribeImportImageTasks' 

Fields

  • dryRun :: Maybe 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.

  • filters :: Maybe [Filter]

    Filter tasks using the task-state filter and one of the following values: active, completed, deleting, or deleted.

  • importTaskIds :: Maybe [Text]

    The IDs of the import image tasks.

  • maxResults :: Maybe Int

    The maximum number of results to return in a single call.

  • nextToken :: Maybe Text

    A token that indicates the next page of results.

Instances

Instances details
ToHeaders DescribeImportImageTasks Source # 
Instance details

Defined in Amazonka.EC2.DescribeImportImageTasks

ToPath DescribeImportImageTasks Source # 
Instance details

Defined in Amazonka.EC2.DescribeImportImageTasks

ToQuery DescribeImportImageTasks Source # 
Instance details

Defined in Amazonka.EC2.DescribeImportImageTasks

AWSPager DescribeImportImageTasks Source # 
Instance details

Defined in Amazonka.EC2.DescribeImportImageTasks

AWSRequest DescribeImportImageTasks Source # 
Instance details

Defined in Amazonka.EC2.DescribeImportImageTasks

Generic DescribeImportImageTasks Source # 
Instance details

Defined in Amazonka.EC2.DescribeImportImageTasks

Associated Types

type Rep DescribeImportImageTasks :: Type -> Type #

Read DescribeImportImageTasks Source # 
Instance details

Defined in Amazonka.EC2.DescribeImportImageTasks

Show DescribeImportImageTasks Source # 
Instance details

Defined in Amazonka.EC2.DescribeImportImageTasks

NFData DescribeImportImageTasks Source # 
Instance details

Defined in Amazonka.EC2.DescribeImportImageTasks

Eq DescribeImportImageTasks Source # 
Instance details

Defined in Amazonka.EC2.DescribeImportImageTasks

Hashable DescribeImportImageTasks Source # 
Instance details

Defined in Amazonka.EC2.DescribeImportImageTasks

type AWSResponse DescribeImportImageTasks Source # 
Instance details

Defined in Amazonka.EC2.DescribeImportImageTasks

type Rep DescribeImportImageTasks Source # 
Instance details

Defined in Amazonka.EC2.DescribeImportImageTasks

type Rep DescribeImportImageTasks = D1 ('MetaData "DescribeImportImageTasks" "Amazonka.EC2.DescribeImportImageTasks" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "DescribeImportImageTasks'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "dryRun") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "filters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Filter]))) :*: (S1 ('MetaSel ('Just "importTaskIds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: (S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))))

newDescribeImportImageTasks :: DescribeImportImageTasks Source #

Create a value of DescribeImportImageTasks with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:dryRun:DescribeImportImageTasks', describeImportImageTasks_dryRun - 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.

$sel:filters:DescribeImportImageTasks', describeImportImageTasks_filters - Filter tasks using the task-state filter and one of the following values: active, completed, deleting, or deleted.

$sel:importTaskIds:DescribeImportImageTasks', describeImportImageTasks_importTaskIds - The IDs of the import image tasks.

$sel:maxResults:DescribeImportImageTasks', describeImportImageTasks_maxResults - The maximum number of results to return in a single call.

DescribeImportImageTasks, describeImportImageTasks_nextToken - A token that indicates the next page of results.

Request Lenses

describeImportImageTasks_dryRun :: Lens' DescribeImportImageTasks (Maybe Bool) Source #

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.

describeImportImageTasks_filters :: Lens' DescribeImportImageTasks (Maybe [Filter]) Source #

Filter tasks using the task-state filter and one of the following values: active, completed, deleting, or deleted.

describeImportImageTasks_maxResults :: Lens' DescribeImportImageTasks (Maybe Int) Source #

The maximum number of results to return in a single call.

describeImportImageTasks_nextToken :: Lens' DescribeImportImageTasks (Maybe Text) Source #

A token that indicates the next page of results.

Destructuring the Response

data DescribeImportImageTasksResponse Source #

See: newDescribeImportImageTasksResponse smart constructor.

Constructors

DescribeImportImageTasksResponse' 

Fields

  • importImageTasks :: Maybe [ImportImageTask]

    A list of zero or more import image tasks that are currently active or were completed or canceled in the previous 7 days.

  • nextToken :: Maybe Text

    The token to use to get the next page of results. This value is null when there are no more results to return.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic DescribeImportImageTasksResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeImportImageTasks

Associated Types

type Rep DescribeImportImageTasksResponse :: Type -> Type #

Read DescribeImportImageTasksResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeImportImageTasks

Show DescribeImportImageTasksResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeImportImageTasks

NFData DescribeImportImageTasksResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeImportImageTasks

Eq DescribeImportImageTasksResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeImportImageTasks

type Rep DescribeImportImageTasksResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeImportImageTasks

type Rep DescribeImportImageTasksResponse = D1 ('MetaData "DescribeImportImageTasksResponse" "Amazonka.EC2.DescribeImportImageTasks" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "DescribeImportImageTasksResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "importImageTasks") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [ImportImageTask])) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newDescribeImportImageTasksResponse Source #

Create a value of DescribeImportImageTasksResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:importImageTasks:DescribeImportImageTasksResponse', describeImportImageTasksResponse_importImageTasks - A list of zero or more import image tasks that are currently active or were completed or canceled in the previous 7 days.

DescribeImportImageTasks, describeImportImageTasksResponse_nextToken - The token to use to get the next page of results. This value is null when there are no more results to return.

$sel:httpStatus:DescribeImportImageTasksResponse', describeImportImageTasksResponse_httpStatus - The response's http status code.

Response Lenses

describeImportImageTasksResponse_importImageTasks :: Lens' DescribeImportImageTasksResponse (Maybe [ImportImageTask]) Source #

A list of zero or more import image tasks that are currently active or were completed or canceled in the previous 7 days.

describeImportImageTasksResponse_nextToken :: Lens' DescribeImportImageTasksResponse (Maybe Text) Source #

The token to use to get the next page of results. This value is null when there are no more results to return.