{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.EC2.DescribeImportSnapshotTasks
(
DescribeImportSnapshotTasks (..),
newDescribeImportSnapshotTasks,
describeImportSnapshotTasks_dryRun,
describeImportSnapshotTasks_filters,
describeImportSnapshotTasks_importTaskIds,
describeImportSnapshotTasks_maxResults,
describeImportSnapshotTasks_nextToken,
DescribeImportSnapshotTasksResponse (..),
newDescribeImportSnapshotTasksResponse,
describeImportSnapshotTasksResponse_importSnapshotTasks,
describeImportSnapshotTasksResponse_nextToken,
describeImportSnapshotTasksResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.EC2.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data DescribeImportSnapshotTasks = DescribeImportSnapshotTasks'
{
DescribeImportSnapshotTasks -> Maybe Bool
dryRun :: Prelude.Maybe Prelude.Bool,
DescribeImportSnapshotTasks -> Maybe [Filter]
filters :: Prelude.Maybe [Filter],
DescribeImportSnapshotTasks -> Maybe [Text]
importTaskIds :: Prelude.Maybe [Prelude.Text],
DescribeImportSnapshotTasks -> Maybe Int
maxResults :: Prelude.Maybe Prelude.Int,
DescribeImportSnapshotTasks -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text
}
deriving (DescribeImportSnapshotTasks -> DescribeImportSnapshotTasks -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeImportSnapshotTasks -> DescribeImportSnapshotTasks -> Bool
$c/= :: DescribeImportSnapshotTasks -> DescribeImportSnapshotTasks -> Bool
== :: DescribeImportSnapshotTasks -> DescribeImportSnapshotTasks -> Bool
$c== :: DescribeImportSnapshotTasks -> DescribeImportSnapshotTasks -> Bool
Prelude.Eq, ReadPrec [DescribeImportSnapshotTasks]
ReadPrec DescribeImportSnapshotTasks
Int -> ReadS DescribeImportSnapshotTasks
ReadS [DescribeImportSnapshotTasks]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeImportSnapshotTasks]
$creadListPrec :: ReadPrec [DescribeImportSnapshotTasks]
readPrec :: ReadPrec DescribeImportSnapshotTasks
$creadPrec :: ReadPrec DescribeImportSnapshotTasks
readList :: ReadS [DescribeImportSnapshotTasks]
$creadList :: ReadS [DescribeImportSnapshotTasks]
readsPrec :: Int -> ReadS DescribeImportSnapshotTasks
$creadsPrec :: Int -> ReadS DescribeImportSnapshotTasks
Prelude.Read, Int -> DescribeImportSnapshotTasks -> ShowS
[DescribeImportSnapshotTasks] -> ShowS
DescribeImportSnapshotTasks -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeImportSnapshotTasks] -> ShowS
$cshowList :: [DescribeImportSnapshotTasks] -> ShowS
show :: DescribeImportSnapshotTasks -> String
$cshow :: DescribeImportSnapshotTasks -> String
showsPrec :: Int -> DescribeImportSnapshotTasks -> ShowS
$cshowsPrec :: Int -> DescribeImportSnapshotTasks -> ShowS
Prelude.Show, forall x.
Rep DescribeImportSnapshotTasks x -> DescribeImportSnapshotTasks
forall x.
DescribeImportSnapshotTasks -> Rep DescribeImportSnapshotTasks x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeImportSnapshotTasks x -> DescribeImportSnapshotTasks
$cfrom :: forall x.
DescribeImportSnapshotTasks -> Rep DescribeImportSnapshotTasks x
Prelude.Generic)
newDescribeImportSnapshotTasks ::
DescribeImportSnapshotTasks
newDescribeImportSnapshotTasks :: DescribeImportSnapshotTasks
newDescribeImportSnapshotTasks =
DescribeImportSnapshotTasks'
{ $sel:dryRun:DescribeImportSnapshotTasks' :: Maybe Bool
dryRun =
forall a. Maybe a
Prelude.Nothing,
$sel:filters:DescribeImportSnapshotTasks' :: Maybe [Filter]
filters = forall a. Maybe a
Prelude.Nothing,
$sel:importTaskIds:DescribeImportSnapshotTasks' :: Maybe [Text]
importTaskIds = forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:DescribeImportSnapshotTasks' :: Maybe Int
maxResults = forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:DescribeImportSnapshotTasks' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing
}
describeImportSnapshotTasks_dryRun :: Lens.Lens' DescribeImportSnapshotTasks (Prelude.Maybe Prelude.Bool)
describeImportSnapshotTasks_dryRun :: Lens' DescribeImportSnapshotTasks (Maybe Bool)
describeImportSnapshotTasks_dryRun = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeImportSnapshotTasks' {Maybe Bool
dryRun :: Maybe Bool
$sel:dryRun:DescribeImportSnapshotTasks' :: DescribeImportSnapshotTasks -> Maybe Bool
dryRun} -> Maybe Bool
dryRun) (\s :: DescribeImportSnapshotTasks
s@DescribeImportSnapshotTasks' {} Maybe Bool
a -> DescribeImportSnapshotTasks
s {$sel:dryRun:DescribeImportSnapshotTasks' :: Maybe Bool
dryRun = Maybe Bool
a} :: DescribeImportSnapshotTasks)
describeImportSnapshotTasks_filters :: Lens.Lens' DescribeImportSnapshotTasks (Prelude.Maybe [Filter])
describeImportSnapshotTasks_filters :: Lens' DescribeImportSnapshotTasks (Maybe [Filter])
describeImportSnapshotTasks_filters = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeImportSnapshotTasks' {Maybe [Filter]
filters :: Maybe [Filter]
$sel:filters:DescribeImportSnapshotTasks' :: DescribeImportSnapshotTasks -> Maybe [Filter]
filters} -> Maybe [Filter]
filters) (\s :: DescribeImportSnapshotTasks
s@DescribeImportSnapshotTasks' {} Maybe [Filter]
a -> DescribeImportSnapshotTasks
s {$sel:filters:DescribeImportSnapshotTasks' :: Maybe [Filter]
filters = Maybe [Filter]
a} :: DescribeImportSnapshotTasks) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeImportSnapshotTasks_importTaskIds :: Lens.Lens' DescribeImportSnapshotTasks (Prelude.Maybe [Prelude.Text])
describeImportSnapshotTasks_importTaskIds :: Lens' DescribeImportSnapshotTasks (Maybe [Text])
describeImportSnapshotTasks_importTaskIds = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeImportSnapshotTasks' {Maybe [Text]
importTaskIds :: Maybe [Text]
$sel:importTaskIds:DescribeImportSnapshotTasks' :: DescribeImportSnapshotTasks -> Maybe [Text]
importTaskIds} -> Maybe [Text]
importTaskIds) (\s :: DescribeImportSnapshotTasks
s@DescribeImportSnapshotTasks' {} Maybe [Text]
a -> DescribeImportSnapshotTasks
s {$sel:importTaskIds:DescribeImportSnapshotTasks' :: Maybe [Text]
importTaskIds = Maybe [Text]
a} :: DescribeImportSnapshotTasks) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeImportSnapshotTasks_maxResults :: Lens.Lens' DescribeImportSnapshotTasks (Prelude.Maybe Prelude.Int)
describeImportSnapshotTasks_maxResults :: Lens' DescribeImportSnapshotTasks (Maybe Int)
describeImportSnapshotTasks_maxResults = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeImportSnapshotTasks' {Maybe Int
maxResults :: Maybe Int
$sel:maxResults:DescribeImportSnapshotTasks' :: DescribeImportSnapshotTasks -> Maybe Int
maxResults} -> Maybe Int
maxResults) (\s :: DescribeImportSnapshotTasks
s@DescribeImportSnapshotTasks' {} Maybe Int
a -> DescribeImportSnapshotTasks
s {$sel:maxResults:DescribeImportSnapshotTasks' :: Maybe Int
maxResults = Maybe Int
a} :: DescribeImportSnapshotTasks)
describeImportSnapshotTasks_nextToken :: Lens.Lens' DescribeImportSnapshotTasks (Prelude.Maybe Prelude.Text)
describeImportSnapshotTasks_nextToken :: Lens' DescribeImportSnapshotTasks (Maybe Text)
describeImportSnapshotTasks_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeImportSnapshotTasks' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:DescribeImportSnapshotTasks' :: DescribeImportSnapshotTasks -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: DescribeImportSnapshotTasks
s@DescribeImportSnapshotTasks' {} Maybe Text
a -> DescribeImportSnapshotTasks
s {$sel:nextToken:DescribeImportSnapshotTasks' :: Maybe Text
nextToken = Maybe Text
a} :: DescribeImportSnapshotTasks)
instance Core.AWSPager DescribeImportSnapshotTasks where
page :: DescribeImportSnapshotTasks
-> AWSResponse DescribeImportSnapshotTasks
-> Maybe DescribeImportSnapshotTasks
page DescribeImportSnapshotTasks
rq AWSResponse DescribeImportSnapshotTasks
rs
| forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse DescribeImportSnapshotTasks
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' DescribeImportSnapshotTasksResponse (Maybe Text)
describeImportSnapshotTasksResponse_nextToken
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
forall a. Maybe a
Prelude.Nothing
| forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse DescribeImportSnapshotTasks
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens'
DescribeImportSnapshotTasksResponse (Maybe [ImportSnapshotTask])
describeImportSnapshotTasksResponse_importSnapshotTasks
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
forall a. a -> Maybe a
Prelude.Just
forall a b. (a -> b) -> a -> b
Prelude.$ DescribeImportSnapshotTasks
rq
forall a b. a -> (a -> b) -> b
Prelude.& Lens' DescribeImportSnapshotTasks (Maybe Text)
describeImportSnapshotTasks_nextToken
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse DescribeImportSnapshotTasks
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' DescribeImportSnapshotTasksResponse (Maybe Text)
describeImportSnapshotTasksResponse_nextToken
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
instance Core.AWSRequest DescribeImportSnapshotTasks where
type
AWSResponse DescribeImportSnapshotTasks =
DescribeImportSnapshotTasksResponse
request :: (Service -> Service)
-> DescribeImportSnapshotTasks
-> Request DescribeImportSnapshotTasks
request Service -> Service
overrides =
forall a. ToRequest a => Service -> a -> Request a
Request.postQuery (Service -> Service
overrides Service
defaultService)
response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy DescribeImportSnapshotTasks
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeImportSnapshotTasks)))
response =
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> [Node] -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveXML
( \Int
s ResponseHeaders
h [Node]
x ->
Maybe [ImportSnapshotTask]
-> Maybe Text -> Int -> DescribeImportSnapshotTasksResponse
DescribeImportSnapshotTasksResponse'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( [Node]
x
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"importSnapshotTaskSet"
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
Prelude.>>= forall (f :: * -> *) a b.
Applicative f =>
([a] -> f b) -> [a] -> f (Maybe b)
Core.may (forall a. FromXML a => Text -> [Node] -> Either String [a]
Data.parseXMLList Text
"item")
)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"nextToken")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance Prelude.Hashable DescribeImportSnapshotTasks where
hashWithSalt :: Int -> DescribeImportSnapshotTasks -> Int
hashWithSalt Int
_salt DescribeImportSnapshotTasks' {Maybe Bool
Maybe Int
Maybe [Text]
Maybe [Filter]
Maybe Text
nextToken :: Maybe Text
maxResults :: Maybe Int
importTaskIds :: Maybe [Text]
filters :: Maybe [Filter]
dryRun :: Maybe Bool
$sel:nextToken:DescribeImportSnapshotTasks' :: DescribeImportSnapshotTasks -> Maybe Text
$sel:maxResults:DescribeImportSnapshotTasks' :: DescribeImportSnapshotTasks -> Maybe Int
$sel:importTaskIds:DescribeImportSnapshotTasks' :: DescribeImportSnapshotTasks -> Maybe [Text]
$sel:filters:DescribeImportSnapshotTasks' :: DescribeImportSnapshotTasks -> Maybe [Filter]
$sel:dryRun:DescribeImportSnapshotTasks' :: DescribeImportSnapshotTasks -> Maybe Bool
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
dryRun
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Filter]
filters
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Text]
importTaskIds
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Int
maxResults
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
nextToken
instance Prelude.NFData DescribeImportSnapshotTasks where
rnf :: DescribeImportSnapshotTasks -> ()
rnf DescribeImportSnapshotTasks' {Maybe Bool
Maybe Int
Maybe [Text]
Maybe [Filter]
Maybe Text
nextToken :: Maybe Text
maxResults :: Maybe Int
importTaskIds :: Maybe [Text]
filters :: Maybe [Filter]
dryRun :: Maybe Bool
$sel:nextToken:DescribeImportSnapshotTasks' :: DescribeImportSnapshotTasks -> Maybe Text
$sel:maxResults:DescribeImportSnapshotTasks' :: DescribeImportSnapshotTasks -> Maybe Int
$sel:importTaskIds:DescribeImportSnapshotTasks' :: DescribeImportSnapshotTasks -> Maybe [Text]
$sel:filters:DescribeImportSnapshotTasks' :: DescribeImportSnapshotTasks -> Maybe [Filter]
$sel:dryRun:DescribeImportSnapshotTasks' :: DescribeImportSnapshotTasks -> Maybe Bool
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
dryRun
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Filter]
filters
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Text]
importTaskIds
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
maxResults
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextToken
instance Data.ToHeaders DescribeImportSnapshotTasks where
toHeaders :: DescribeImportSnapshotTasks -> ResponseHeaders
toHeaders = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty
instance Data.ToPath DescribeImportSnapshotTasks where
toPath :: DescribeImportSnapshotTasks -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Data.ToQuery DescribeImportSnapshotTasks where
toQuery :: DescribeImportSnapshotTasks -> QueryString
toQuery DescribeImportSnapshotTasks' {Maybe Bool
Maybe Int
Maybe [Text]
Maybe [Filter]
Maybe Text
nextToken :: Maybe Text
maxResults :: Maybe Int
importTaskIds :: Maybe [Text]
filters :: Maybe [Filter]
dryRun :: Maybe Bool
$sel:nextToken:DescribeImportSnapshotTasks' :: DescribeImportSnapshotTasks -> Maybe Text
$sel:maxResults:DescribeImportSnapshotTasks' :: DescribeImportSnapshotTasks -> Maybe Int
$sel:importTaskIds:DescribeImportSnapshotTasks' :: DescribeImportSnapshotTasks -> Maybe [Text]
$sel:filters:DescribeImportSnapshotTasks' :: DescribeImportSnapshotTasks -> Maybe [Filter]
$sel:dryRun:DescribeImportSnapshotTasks' :: DescribeImportSnapshotTasks -> Maybe Bool
..} =
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"Action"
forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: ( ByteString
"DescribeImportSnapshotTasks" ::
Prelude.ByteString
),
ByteString
"Version"
forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: (ByteString
"2016-11-15" :: Prelude.ByteString),
ByteString
"DryRun" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Bool
dryRun,
forall a. ToQuery a => a -> QueryString
Data.toQuery
(forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Data.toQueryList ByteString
"Filters" forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Filter]
filters),
forall a. ToQuery a => a -> QueryString
Data.toQuery
( forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Data.toQueryList ByteString
"ImportTaskId"
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Text]
importTaskIds
),
ByteString
"MaxResults" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Int
maxResults,
ByteString
"NextToken" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
nextToken
]
data DescribeImportSnapshotTasksResponse = DescribeImportSnapshotTasksResponse'
{
DescribeImportSnapshotTasksResponse -> Maybe [ImportSnapshotTask]
importSnapshotTasks :: Prelude.Maybe [ImportSnapshotTask],
DescribeImportSnapshotTasksResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
DescribeImportSnapshotTasksResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeImportSnapshotTasksResponse
-> DescribeImportSnapshotTasksResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeImportSnapshotTasksResponse
-> DescribeImportSnapshotTasksResponse -> Bool
$c/= :: DescribeImportSnapshotTasksResponse
-> DescribeImportSnapshotTasksResponse -> Bool
== :: DescribeImportSnapshotTasksResponse
-> DescribeImportSnapshotTasksResponse -> Bool
$c== :: DescribeImportSnapshotTasksResponse
-> DescribeImportSnapshotTasksResponse -> Bool
Prelude.Eq, ReadPrec [DescribeImportSnapshotTasksResponse]
ReadPrec DescribeImportSnapshotTasksResponse
Int -> ReadS DescribeImportSnapshotTasksResponse
ReadS [DescribeImportSnapshotTasksResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeImportSnapshotTasksResponse]
$creadListPrec :: ReadPrec [DescribeImportSnapshotTasksResponse]
readPrec :: ReadPrec DescribeImportSnapshotTasksResponse
$creadPrec :: ReadPrec DescribeImportSnapshotTasksResponse
readList :: ReadS [DescribeImportSnapshotTasksResponse]
$creadList :: ReadS [DescribeImportSnapshotTasksResponse]
readsPrec :: Int -> ReadS DescribeImportSnapshotTasksResponse
$creadsPrec :: Int -> ReadS DescribeImportSnapshotTasksResponse
Prelude.Read, Int -> DescribeImportSnapshotTasksResponse -> ShowS
[DescribeImportSnapshotTasksResponse] -> ShowS
DescribeImportSnapshotTasksResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeImportSnapshotTasksResponse] -> ShowS
$cshowList :: [DescribeImportSnapshotTasksResponse] -> ShowS
show :: DescribeImportSnapshotTasksResponse -> String
$cshow :: DescribeImportSnapshotTasksResponse -> String
showsPrec :: Int -> DescribeImportSnapshotTasksResponse -> ShowS
$cshowsPrec :: Int -> DescribeImportSnapshotTasksResponse -> ShowS
Prelude.Show, forall x.
Rep DescribeImportSnapshotTasksResponse x
-> DescribeImportSnapshotTasksResponse
forall x.
DescribeImportSnapshotTasksResponse
-> Rep DescribeImportSnapshotTasksResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeImportSnapshotTasksResponse x
-> DescribeImportSnapshotTasksResponse
$cfrom :: forall x.
DescribeImportSnapshotTasksResponse
-> Rep DescribeImportSnapshotTasksResponse x
Prelude.Generic)
newDescribeImportSnapshotTasksResponse ::
Prelude.Int ->
DescribeImportSnapshotTasksResponse
newDescribeImportSnapshotTasksResponse :: Int -> DescribeImportSnapshotTasksResponse
newDescribeImportSnapshotTasksResponse Int
pHttpStatus_ =
DescribeImportSnapshotTasksResponse'
{ $sel:importSnapshotTasks:DescribeImportSnapshotTasksResponse' :: Maybe [ImportSnapshotTask]
importSnapshotTasks =
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:DescribeImportSnapshotTasksResponse' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeImportSnapshotTasksResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describeImportSnapshotTasksResponse_importSnapshotTasks :: Lens.Lens' DescribeImportSnapshotTasksResponse (Prelude.Maybe [ImportSnapshotTask])
describeImportSnapshotTasksResponse_importSnapshotTasks :: Lens'
DescribeImportSnapshotTasksResponse (Maybe [ImportSnapshotTask])
describeImportSnapshotTasksResponse_importSnapshotTasks = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeImportSnapshotTasksResponse' {Maybe [ImportSnapshotTask]
importSnapshotTasks :: Maybe [ImportSnapshotTask]
$sel:importSnapshotTasks:DescribeImportSnapshotTasksResponse' :: DescribeImportSnapshotTasksResponse -> Maybe [ImportSnapshotTask]
importSnapshotTasks} -> Maybe [ImportSnapshotTask]
importSnapshotTasks) (\s :: DescribeImportSnapshotTasksResponse
s@DescribeImportSnapshotTasksResponse' {} Maybe [ImportSnapshotTask]
a -> DescribeImportSnapshotTasksResponse
s {$sel:importSnapshotTasks:DescribeImportSnapshotTasksResponse' :: Maybe [ImportSnapshotTask]
importSnapshotTasks = Maybe [ImportSnapshotTask]
a} :: DescribeImportSnapshotTasksResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeImportSnapshotTasksResponse_nextToken :: Lens.Lens' DescribeImportSnapshotTasksResponse (Prelude.Maybe Prelude.Text)
describeImportSnapshotTasksResponse_nextToken :: Lens' DescribeImportSnapshotTasksResponse (Maybe Text)
describeImportSnapshotTasksResponse_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeImportSnapshotTasksResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:DescribeImportSnapshotTasksResponse' :: DescribeImportSnapshotTasksResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: DescribeImportSnapshotTasksResponse
s@DescribeImportSnapshotTasksResponse' {} Maybe Text
a -> DescribeImportSnapshotTasksResponse
s {$sel:nextToken:DescribeImportSnapshotTasksResponse' :: Maybe Text
nextToken = Maybe Text
a} :: DescribeImportSnapshotTasksResponse)
describeImportSnapshotTasksResponse_httpStatus :: Lens.Lens' DescribeImportSnapshotTasksResponse Prelude.Int
describeImportSnapshotTasksResponse_httpStatus :: Lens' DescribeImportSnapshotTasksResponse Int
describeImportSnapshotTasksResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeImportSnapshotTasksResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeImportSnapshotTasksResponse' :: DescribeImportSnapshotTasksResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeImportSnapshotTasksResponse
s@DescribeImportSnapshotTasksResponse' {} Int
a -> DescribeImportSnapshotTasksResponse
s {$sel:httpStatus:DescribeImportSnapshotTasksResponse' :: Int
httpStatus = Int
a} :: DescribeImportSnapshotTasksResponse)
instance
Prelude.NFData
DescribeImportSnapshotTasksResponse
where
rnf :: DescribeImportSnapshotTasksResponse -> ()
rnf DescribeImportSnapshotTasksResponse' {Int
Maybe [ImportSnapshotTask]
Maybe Text
httpStatus :: Int
nextToken :: Maybe Text
importSnapshotTasks :: Maybe [ImportSnapshotTask]
$sel:httpStatus:DescribeImportSnapshotTasksResponse' :: DescribeImportSnapshotTasksResponse -> Int
$sel:nextToken:DescribeImportSnapshotTasksResponse' :: DescribeImportSnapshotTasksResponse -> Maybe Text
$sel:importSnapshotTasks:DescribeImportSnapshotTasksResponse' :: DescribeImportSnapshotTasksResponse -> Maybe [ImportSnapshotTask]
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe [ImportSnapshotTask]
importSnapshotTasks
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextToken
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus