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.DescribeImportSnapshotTasks

Description

Describes your import snapshot tasks.

This operation returns paginated results.

Synopsis

Creating a Request

data DescribeImportSnapshotTasks Source #

See: newDescribeImportSnapshotTasks smart constructor.

Constructors

DescribeImportSnapshotTasks' 

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]

    The filters.

  • importTaskIds :: Maybe [Text]

    A list of import snapshot task IDs.

  • maxResults :: Maybe Int

    The maximum number of results to return in a single call. To retrieve the remaining results, make another call with the returned NextToken value.

  • nextToken :: Maybe Text

    A token that indicates the next page of results.

Instances

Instances details
ToHeaders DescribeImportSnapshotTasks Source # 
Instance details

Defined in Amazonka.EC2.DescribeImportSnapshotTasks

ToPath DescribeImportSnapshotTasks Source # 
Instance details

Defined in Amazonka.EC2.DescribeImportSnapshotTasks

ToQuery DescribeImportSnapshotTasks Source # 
Instance details

Defined in Amazonka.EC2.DescribeImportSnapshotTasks

AWSPager DescribeImportSnapshotTasks Source # 
Instance details

Defined in Amazonka.EC2.DescribeImportSnapshotTasks

AWSRequest DescribeImportSnapshotTasks Source # 
Instance details

Defined in Amazonka.EC2.DescribeImportSnapshotTasks

Generic DescribeImportSnapshotTasks Source # 
Instance details

Defined in Amazonka.EC2.DescribeImportSnapshotTasks

Associated Types

type Rep DescribeImportSnapshotTasks :: Type -> Type #

Read DescribeImportSnapshotTasks Source # 
Instance details

Defined in Amazonka.EC2.DescribeImportSnapshotTasks

Show DescribeImportSnapshotTasks Source # 
Instance details

Defined in Amazonka.EC2.DescribeImportSnapshotTasks

NFData DescribeImportSnapshotTasks Source # 
Instance details

Defined in Amazonka.EC2.DescribeImportSnapshotTasks

Eq DescribeImportSnapshotTasks Source # 
Instance details

Defined in Amazonka.EC2.DescribeImportSnapshotTasks

Hashable DescribeImportSnapshotTasks Source # 
Instance details

Defined in Amazonka.EC2.DescribeImportSnapshotTasks

type AWSResponse DescribeImportSnapshotTasks Source # 
Instance details

Defined in Amazonka.EC2.DescribeImportSnapshotTasks

type Rep DescribeImportSnapshotTasks Source # 
Instance details

Defined in Amazonka.EC2.DescribeImportSnapshotTasks

type Rep DescribeImportSnapshotTasks = D1 ('MetaData "DescribeImportSnapshotTasks" "Amazonka.EC2.DescribeImportSnapshotTasks" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "DescribeImportSnapshotTasks'" '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))))))

newDescribeImportSnapshotTasks :: DescribeImportSnapshotTasks Source #

Create a value of DescribeImportSnapshotTasks 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:DescribeImportSnapshotTasks', describeImportSnapshotTasks_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:DescribeImportSnapshotTasks', describeImportSnapshotTasks_filters - The filters.

$sel:importTaskIds:DescribeImportSnapshotTasks', describeImportSnapshotTasks_importTaskIds - A list of import snapshot task IDs.

$sel:maxResults:DescribeImportSnapshotTasks', describeImportSnapshotTasks_maxResults - The maximum number of results to return in a single call. To retrieve the remaining results, make another call with the returned NextToken value.

DescribeImportSnapshotTasks, describeImportSnapshotTasks_nextToken - A token that indicates the next page of results.

Request Lenses

describeImportSnapshotTasks_dryRun :: Lens' DescribeImportSnapshotTasks (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.

describeImportSnapshotTasks_maxResults :: Lens' DescribeImportSnapshotTasks (Maybe Int) Source #

The maximum number of results to return in a single call. To retrieve the remaining results, make another call with the returned NextToken value.

describeImportSnapshotTasks_nextToken :: Lens' DescribeImportSnapshotTasks (Maybe Text) Source #

A token that indicates the next page of results.

Destructuring the Response

data DescribeImportSnapshotTasksResponse Source #

Constructors

DescribeImportSnapshotTasksResponse' 

Fields

Instances

Instances details
Generic DescribeImportSnapshotTasksResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeImportSnapshotTasks

Read DescribeImportSnapshotTasksResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeImportSnapshotTasks

Show DescribeImportSnapshotTasksResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeImportSnapshotTasks

NFData DescribeImportSnapshotTasksResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeImportSnapshotTasks

Eq DescribeImportSnapshotTasksResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeImportSnapshotTasks

type Rep DescribeImportSnapshotTasksResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeImportSnapshotTasks

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

newDescribeImportSnapshotTasksResponse Source #

Create a value of DescribeImportSnapshotTasksResponse 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:importSnapshotTasks:DescribeImportSnapshotTasksResponse', describeImportSnapshotTasksResponse_importSnapshotTasks - A list of zero or more import snapshot tasks that are currently active or were completed or canceled in the previous 7 days.

DescribeImportSnapshotTasks, describeImportSnapshotTasksResponse_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:DescribeImportSnapshotTasksResponse', describeImportSnapshotTasksResponse_httpStatus - The response's http status code.

Response Lenses

describeImportSnapshotTasksResponse_importSnapshotTasks :: Lens' DescribeImportSnapshotTasksResponse (Maybe [ImportSnapshotTask]) Source #

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

describeImportSnapshotTasksResponse_nextToken :: Lens' DescribeImportSnapshotTasksResponse (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.