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

Description

Describes the progress of the AMI store tasks. You can describe the store tasks for specified AMIs. If you don't specify the AMIs, you get a paginated list of store tasks from the last 31 days.

For each AMI task, the response indicates if the task is InProgress, Completed, or Failed. For tasks InProgress, the response shows the estimated progress as a percentage.

Tasks are listed in reverse chronological order. Currently, only tasks from the past 31 days can be viewed.

To use this API, you must have the required permissions. For more information, see Permissions for storing and restoring AMIs using Amazon S3 in the Amazon EC2 User Guide.

For more information, see Store and restore an AMI using Amazon S3 in the Amazon EC2 User Guide.

This operation returns paginated results.

Synopsis

Creating a Request

data DescribeStoreImageTasks Source #

See: newDescribeStoreImageTasks smart constructor.

Constructors

DescribeStoreImageTasks' 

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.

    • task-state - Returns tasks in a certain state (InProgress | Completed | Failed)
    • bucket - Returns task information for tasks that targeted a specific bucket. For the filter value, specify the bucket name.
  • imageIds :: Maybe [Text]

    The AMI IDs for which to show progress. Up to 20 AMI IDs can be included in a request.

  • maxResults :: Maybe Natural

    The maximum number of results to return in a single call. To retrieve the remaining results, make another call with the returned NextToken value. This value can be between 1 and 200. You cannot specify this parameter and the ImageIDs parameter in the same call.

  • nextToken :: Maybe Text

    The token for the next page of results.

Instances

Instances details
ToHeaders DescribeStoreImageTasks Source # 
Instance details

Defined in Amazonka.EC2.DescribeStoreImageTasks

ToPath DescribeStoreImageTasks Source # 
Instance details

Defined in Amazonka.EC2.DescribeStoreImageTasks

ToQuery DescribeStoreImageTasks Source # 
Instance details

Defined in Amazonka.EC2.DescribeStoreImageTasks

AWSPager DescribeStoreImageTasks Source # 
Instance details

Defined in Amazonka.EC2.DescribeStoreImageTasks

AWSRequest DescribeStoreImageTasks Source # 
Instance details

Defined in Amazonka.EC2.DescribeStoreImageTasks

Generic DescribeStoreImageTasks Source # 
Instance details

Defined in Amazonka.EC2.DescribeStoreImageTasks

Associated Types

type Rep DescribeStoreImageTasks :: Type -> Type #

Read DescribeStoreImageTasks Source # 
Instance details

Defined in Amazonka.EC2.DescribeStoreImageTasks

Show DescribeStoreImageTasks Source # 
Instance details

Defined in Amazonka.EC2.DescribeStoreImageTasks

NFData DescribeStoreImageTasks Source # 
Instance details

Defined in Amazonka.EC2.DescribeStoreImageTasks

Methods

rnf :: DescribeStoreImageTasks -> () #

Eq DescribeStoreImageTasks Source # 
Instance details

Defined in Amazonka.EC2.DescribeStoreImageTasks

Hashable DescribeStoreImageTasks Source # 
Instance details

Defined in Amazonka.EC2.DescribeStoreImageTasks

type AWSResponse DescribeStoreImageTasks Source # 
Instance details

Defined in Amazonka.EC2.DescribeStoreImageTasks

type Rep DescribeStoreImageTasks Source # 
Instance details

Defined in Amazonka.EC2.DescribeStoreImageTasks

type Rep DescribeStoreImageTasks = D1 ('MetaData "DescribeStoreImageTasks" "Amazonka.EC2.DescribeStoreImageTasks" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "DescribeStoreImageTasks'" '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 "imageIds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: (S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))))

newDescribeStoreImageTasks :: DescribeStoreImageTasks Source #

Create a value of DescribeStoreImageTasks 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:DescribeStoreImageTasks', describeStoreImageTasks_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:DescribeStoreImageTasks', describeStoreImageTasks_filters - The filters.

  • task-state - Returns tasks in a certain state (InProgress | Completed | Failed)
  • bucket - Returns task information for tasks that targeted a specific bucket. For the filter value, specify the bucket name.

$sel:imageIds:DescribeStoreImageTasks', describeStoreImageTasks_imageIds - The AMI IDs for which to show progress. Up to 20 AMI IDs can be included in a request.

$sel:maxResults:DescribeStoreImageTasks', describeStoreImageTasks_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. This value can be between 1 and 200. You cannot specify this parameter and the ImageIDs parameter in the same call.

DescribeStoreImageTasks, describeStoreImageTasks_nextToken - The token for the next page of results.

Request Lenses

describeStoreImageTasks_dryRun :: Lens' DescribeStoreImageTasks (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.

describeStoreImageTasks_filters :: Lens' DescribeStoreImageTasks (Maybe [Filter]) Source #

The filters.

  • task-state - Returns tasks in a certain state (InProgress | Completed | Failed)
  • bucket - Returns task information for tasks that targeted a specific bucket. For the filter value, specify the bucket name.

describeStoreImageTasks_imageIds :: Lens' DescribeStoreImageTasks (Maybe [Text]) Source #

The AMI IDs for which to show progress. Up to 20 AMI IDs can be included in a request.

describeStoreImageTasks_maxResults :: Lens' DescribeStoreImageTasks (Maybe Natural) 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. This value can be between 1 and 200. You cannot specify this parameter and the ImageIDs parameter in the same call.

Destructuring the Response

data DescribeStoreImageTasksResponse Source #

See: newDescribeStoreImageTasksResponse smart constructor.

Constructors

DescribeStoreImageTasksResponse' 

Fields

Instances

Instances details
Generic DescribeStoreImageTasksResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeStoreImageTasks

Associated Types

type Rep DescribeStoreImageTasksResponse :: Type -> Type #

Read DescribeStoreImageTasksResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeStoreImageTasks

Show DescribeStoreImageTasksResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeStoreImageTasks

NFData DescribeStoreImageTasksResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeStoreImageTasks

Eq DescribeStoreImageTasksResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeStoreImageTasks

type Rep DescribeStoreImageTasksResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeStoreImageTasks

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

newDescribeStoreImageTasksResponse Source #

Create a value of DescribeStoreImageTasksResponse 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:

DescribeStoreImageTasks, describeStoreImageTasksResponse_nextToken - The token to use to retrieve the next page of results. This value is null when there are no more results to return.

$sel:storeImageTaskResults:DescribeStoreImageTasksResponse', describeStoreImageTasksResponse_storeImageTaskResults - The information about the AMI store tasks.

$sel:httpStatus:DescribeStoreImageTasksResponse', describeStoreImageTasksResponse_httpStatus - The response's http status code.

Response Lenses

describeStoreImageTasksResponse_nextToken :: Lens' DescribeStoreImageTasksResponse (Maybe Text) Source #

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