amazonka-ec2-1.4.5: Amazon Elastic Compute Cloud SDK.

Copyright(c) 2013-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.EC2.DescribeImportSnapshotTasks

Contents

Description

Describes your import snapshot tasks.

Synopsis

Creating a Request

describeImportSnapshotTasks :: DescribeImportSnapshotTasks #

Creates a value of DescribeImportSnapshotTasks with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • distFilters - One or more filters.
  • distImportTaskIds - A list of import snapshot task IDs.
  • distNextToken - A token that indicates the next page of results.
  • distDryRun - 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 .
  • distMaxResults - The maximum number of results to return in a single call. To retrieve the remaining results, make another call with the returned NextToken value.

data DescribeImportSnapshotTasks #

Contains the parameters for DescribeImportSnapshotTasks.

See: describeImportSnapshotTasks smart constructor.

Instances

Eq DescribeImportSnapshotTasks # 
Data DescribeImportSnapshotTasks # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DescribeImportSnapshotTasks -> c DescribeImportSnapshotTasks #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DescribeImportSnapshotTasks #

toConstr :: DescribeImportSnapshotTasks -> Constr #

dataTypeOf :: DescribeImportSnapshotTasks -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c DescribeImportSnapshotTasks) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DescribeImportSnapshotTasks) #

gmapT :: (forall b. Data b => b -> b) -> DescribeImportSnapshotTasks -> DescribeImportSnapshotTasks #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DescribeImportSnapshotTasks -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DescribeImportSnapshotTasks -> r #

gmapQ :: (forall d. Data d => d -> u) -> DescribeImportSnapshotTasks -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> DescribeImportSnapshotTasks -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> DescribeImportSnapshotTasks -> m DescribeImportSnapshotTasks #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DescribeImportSnapshotTasks -> m DescribeImportSnapshotTasks #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DescribeImportSnapshotTasks -> m DescribeImportSnapshotTasks #

Read DescribeImportSnapshotTasks # 
Show DescribeImportSnapshotTasks # 
Generic DescribeImportSnapshotTasks # 
Hashable DescribeImportSnapshotTasks # 
NFData DescribeImportSnapshotTasks # 
AWSRequest DescribeImportSnapshotTasks # 
ToQuery DescribeImportSnapshotTasks # 
ToPath DescribeImportSnapshotTasks # 
ToHeaders DescribeImportSnapshotTasks # 
type Rep DescribeImportSnapshotTasks # 
type Rep DescribeImportSnapshotTasks = D1 (MetaData "DescribeImportSnapshotTasks" "Network.AWS.EC2.DescribeImportSnapshotTasks" "amazonka-ec2-1.4.5-C4CR35JggG2GhWFrIiKGhu" False) (C1 (MetaCons "DescribeImportSnapshotTasks'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_distFilters") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Filter]))) (S1 (MetaSel (Just Symbol "_distImportTaskIds") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text])))) ((:*:) (S1 (MetaSel (Just Symbol "_distNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_distDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) (S1 (MetaSel (Just Symbol "_distMaxResults") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Int)))))))
type Rs DescribeImportSnapshotTasks # 

Request Lenses

distImportTaskIds :: Lens' DescribeImportSnapshotTasks [Text] #

A list of import snapshot task IDs.

distNextToken :: Lens' DescribeImportSnapshotTasks (Maybe Text) #

A token that indicates the next page of results.

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

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

Destructuring the Response

describeImportSnapshotTasksResponse #

Creates a value of DescribeImportSnapshotTasksResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • distrsNextToken - The token to use to get the next page of results. This value is null when there are no more results to return.
  • distrsImportSnapshotTasks - A list of zero or more import snapshot tasks that are currently active or were completed or canceled in the previous 7 days.
  • distrsResponseStatus - -- | The response status code.

data DescribeImportSnapshotTasksResponse #

Contains the output for DescribeImportSnapshotTasks.

See: describeImportSnapshotTasksResponse smart constructor.

Instances

Eq DescribeImportSnapshotTasksResponse # 
Data DescribeImportSnapshotTasksResponse # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DescribeImportSnapshotTasksResponse -> c DescribeImportSnapshotTasksResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DescribeImportSnapshotTasksResponse #

toConstr :: DescribeImportSnapshotTasksResponse -> Constr #

dataTypeOf :: DescribeImportSnapshotTasksResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c DescribeImportSnapshotTasksResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DescribeImportSnapshotTasksResponse) #

gmapT :: (forall b. Data b => b -> b) -> DescribeImportSnapshotTasksResponse -> DescribeImportSnapshotTasksResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DescribeImportSnapshotTasksResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DescribeImportSnapshotTasksResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> DescribeImportSnapshotTasksResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> DescribeImportSnapshotTasksResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> DescribeImportSnapshotTasksResponse -> m DescribeImportSnapshotTasksResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DescribeImportSnapshotTasksResponse -> m DescribeImportSnapshotTasksResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DescribeImportSnapshotTasksResponse -> m DescribeImportSnapshotTasksResponse #

Read DescribeImportSnapshotTasksResponse # 
Show DescribeImportSnapshotTasksResponse # 
Generic DescribeImportSnapshotTasksResponse # 
NFData DescribeImportSnapshotTasksResponse # 
type Rep DescribeImportSnapshotTasksResponse # 
type Rep DescribeImportSnapshotTasksResponse = D1 (MetaData "DescribeImportSnapshotTasksResponse" "Network.AWS.EC2.DescribeImportSnapshotTasks" "amazonka-ec2-1.4.5-C4CR35JggG2GhWFrIiKGhu" False) (C1 (MetaCons "DescribeImportSnapshotTasksResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_distrsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_distrsImportSnapshotTasks") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [ImportSnapshotTask]))) (S1 (MetaSel (Just Symbol "_distrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int)))))

Response Lenses

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

distrsImportSnapshotTasks :: Lens' DescribeImportSnapshotTasksResponse [ImportSnapshotTask] #

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