{-# 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.ListSnapshotsInRecycleBin
(
ListSnapshotsInRecycleBin (..),
newListSnapshotsInRecycleBin,
listSnapshotsInRecycleBin_dryRun,
listSnapshotsInRecycleBin_maxResults,
listSnapshotsInRecycleBin_nextToken,
listSnapshotsInRecycleBin_snapshotIds,
ListSnapshotsInRecycleBinResponse (..),
newListSnapshotsInRecycleBinResponse,
listSnapshotsInRecycleBinResponse_nextToken,
listSnapshotsInRecycleBinResponse_snapshots,
listSnapshotsInRecycleBinResponse_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 ListSnapshotsInRecycleBin = ListSnapshotsInRecycleBin'
{
ListSnapshotsInRecycleBin -> Maybe Bool
dryRun :: Prelude.Maybe Prelude.Bool,
ListSnapshotsInRecycleBin -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
ListSnapshotsInRecycleBin -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListSnapshotsInRecycleBin -> Maybe [Text]
snapshotIds :: Prelude.Maybe [Prelude.Text]
}
deriving (ListSnapshotsInRecycleBin -> ListSnapshotsInRecycleBin -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListSnapshotsInRecycleBin -> ListSnapshotsInRecycleBin -> Bool
$c/= :: ListSnapshotsInRecycleBin -> ListSnapshotsInRecycleBin -> Bool
== :: ListSnapshotsInRecycleBin -> ListSnapshotsInRecycleBin -> Bool
$c== :: ListSnapshotsInRecycleBin -> ListSnapshotsInRecycleBin -> Bool
Prelude.Eq, ReadPrec [ListSnapshotsInRecycleBin]
ReadPrec ListSnapshotsInRecycleBin
Int -> ReadS ListSnapshotsInRecycleBin
ReadS [ListSnapshotsInRecycleBin]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListSnapshotsInRecycleBin]
$creadListPrec :: ReadPrec [ListSnapshotsInRecycleBin]
readPrec :: ReadPrec ListSnapshotsInRecycleBin
$creadPrec :: ReadPrec ListSnapshotsInRecycleBin
readList :: ReadS [ListSnapshotsInRecycleBin]
$creadList :: ReadS [ListSnapshotsInRecycleBin]
readsPrec :: Int -> ReadS ListSnapshotsInRecycleBin
$creadsPrec :: Int -> ReadS ListSnapshotsInRecycleBin
Prelude.Read, Int -> ListSnapshotsInRecycleBin -> ShowS
[ListSnapshotsInRecycleBin] -> ShowS
ListSnapshotsInRecycleBin -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListSnapshotsInRecycleBin] -> ShowS
$cshowList :: [ListSnapshotsInRecycleBin] -> ShowS
show :: ListSnapshotsInRecycleBin -> String
$cshow :: ListSnapshotsInRecycleBin -> String
showsPrec :: Int -> ListSnapshotsInRecycleBin -> ShowS
$cshowsPrec :: Int -> ListSnapshotsInRecycleBin -> ShowS
Prelude.Show, forall x.
Rep ListSnapshotsInRecycleBin x -> ListSnapshotsInRecycleBin
forall x.
ListSnapshotsInRecycleBin -> Rep ListSnapshotsInRecycleBin x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListSnapshotsInRecycleBin x -> ListSnapshotsInRecycleBin
$cfrom :: forall x.
ListSnapshotsInRecycleBin -> Rep ListSnapshotsInRecycleBin x
Prelude.Generic)
newListSnapshotsInRecycleBin ::
ListSnapshotsInRecycleBin
newListSnapshotsInRecycleBin :: ListSnapshotsInRecycleBin
newListSnapshotsInRecycleBin =
ListSnapshotsInRecycleBin'
{ $sel:dryRun:ListSnapshotsInRecycleBin' :: Maybe Bool
dryRun =
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListSnapshotsInRecycleBin' :: Maybe Natural
maxResults = forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListSnapshotsInRecycleBin' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
$sel:snapshotIds:ListSnapshotsInRecycleBin' :: Maybe [Text]
snapshotIds = forall a. Maybe a
Prelude.Nothing
}
listSnapshotsInRecycleBin_dryRun :: Lens.Lens' ListSnapshotsInRecycleBin (Prelude.Maybe Prelude.Bool)
listSnapshotsInRecycleBin_dryRun :: Lens' ListSnapshotsInRecycleBin (Maybe Bool)
listSnapshotsInRecycleBin_dryRun = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSnapshotsInRecycleBin' {Maybe Bool
dryRun :: Maybe Bool
$sel:dryRun:ListSnapshotsInRecycleBin' :: ListSnapshotsInRecycleBin -> Maybe Bool
dryRun} -> Maybe Bool
dryRun) (\s :: ListSnapshotsInRecycleBin
s@ListSnapshotsInRecycleBin' {} Maybe Bool
a -> ListSnapshotsInRecycleBin
s {$sel:dryRun:ListSnapshotsInRecycleBin' :: Maybe Bool
dryRun = Maybe Bool
a} :: ListSnapshotsInRecycleBin)
listSnapshotsInRecycleBin_maxResults :: Lens.Lens' ListSnapshotsInRecycleBin (Prelude.Maybe Prelude.Natural)
listSnapshotsInRecycleBin_maxResults :: Lens' ListSnapshotsInRecycleBin (Maybe Natural)
listSnapshotsInRecycleBin_maxResults = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSnapshotsInRecycleBin' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListSnapshotsInRecycleBin' :: ListSnapshotsInRecycleBin -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListSnapshotsInRecycleBin
s@ListSnapshotsInRecycleBin' {} Maybe Natural
a -> ListSnapshotsInRecycleBin
s {$sel:maxResults:ListSnapshotsInRecycleBin' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListSnapshotsInRecycleBin)
listSnapshotsInRecycleBin_nextToken :: Lens.Lens' ListSnapshotsInRecycleBin (Prelude.Maybe Prelude.Text)
listSnapshotsInRecycleBin_nextToken :: Lens' ListSnapshotsInRecycleBin (Maybe Text)
listSnapshotsInRecycleBin_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSnapshotsInRecycleBin' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListSnapshotsInRecycleBin' :: ListSnapshotsInRecycleBin -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListSnapshotsInRecycleBin
s@ListSnapshotsInRecycleBin' {} Maybe Text
a -> ListSnapshotsInRecycleBin
s {$sel:nextToken:ListSnapshotsInRecycleBin' :: Maybe Text
nextToken = Maybe Text
a} :: ListSnapshotsInRecycleBin)
listSnapshotsInRecycleBin_snapshotIds :: Lens.Lens' ListSnapshotsInRecycleBin (Prelude.Maybe [Prelude.Text])
listSnapshotsInRecycleBin_snapshotIds :: Lens' ListSnapshotsInRecycleBin (Maybe [Text])
listSnapshotsInRecycleBin_snapshotIds = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSnapshotsInRecycleBin' {Maybe [Text]
snapshotIds :: Maybe [Text]
$sel:snapshotIds:ListSnapshotsInRecycleBin' :: ListSnapshotsInRecycleBin -> Maybe [Text]
snapshotIds} -> Maybe [Text]
snapshotIds) (\s :: ListSnapshotsInRecycleBin
s@ListSnapshotsInRecycleBin' {} Maybe [Text]
a -> ListSnapshotsInRecycleBin
s {$sel:snapshotIds:ListSnapshotsInRecycleBin' :: Maybe [Text]
snapshotIds = Maybe [Text]
a} :: ListSnapshotsInRecycleBin) 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
instance Core.AWSPager ListSnapshotsInRecycleBin where
page :: ListSnapshotsInRecycleBin
-> AWSResponse ListSnapshotsInRecycleBin
-> Maybe ListSnapshotsInRecycleBin
page ListSnapshotsInRecycleBin
rq AWSResponse ListSnapshotsInRecycleBin
rs
| forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListSnapshotsInRecycleBin
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListSnapshotsInRecycleBinResponse (Maybe Text)
listSnapshotsInRecycleBinResponse_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 ListSnapshotsInRecycleBin
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens'
ListSnapshotsInRecycleBinResponse (Maybe [SnapshotRecycleBinInfo])
listSnapshotsInRecycleBinResponse_snapshots
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.$ ListSnapshotsInRecycleBin
rq
forall a b. a -> (a -> b) -> b
Prelude.& Lens' ListSnapshotsInRecycleBin (Maybe Text)
listSnapshotsInRecycleBin_nextToken
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListSnapshotsInRecycleBin
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListSnapshotsInRecycleBinResponse (Maybe Text)
listSnapshotsInRecycleBinResponse_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 ListSnapshotsInRecycleBin where
type
AWSResponse ListSnapshotsInRecycleBin =
ListSnapshotsInRecycleBinResponse
request :: (Service -> Service)
-> ListSnapshotsInRecycleBin -> Request ListSnapshotsInRecycleBin
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 ListSnapshotsInRecycleBin
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListSnapshotsInRecycleBin)))
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 Text
-> Maybe [SnapshotRecycleBinInfo]
-> Int
-> ListSnapshotsInRecycleBinResponse
ListSnapshotsInRecycleBinResponse'
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
"nextToken")
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
"snapshotSet"
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.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance Prelude.Hashable ListSnapshotsInRecycleBin where
hashWithSalt :: Int -> ListSnapshotsInRecycleBin -> Int
hashWithSalt Int
_salt ListSnapshotsInRecycleBin' {Maybe Bool
Maybe Natural
Maybe [Text]
Maybe Text
snapshotIds :: Maybe [Text]
nextToken :: Maybe Text
maxResults :: Maybe Natural
dryRun :: Maybe Bool
$sel:snapshotIds:ListSnapshotsInRecycleBin' :: ListSnapshotsInRecycleBin -> Maybe [Text]
$sel:nextToken:ListSnapshotsInRecycleBin' :: ListSnapshotsInRecycleBin -> Maybe Text
$sel:maxResults:ListSnapshotsInRecycleBin' :: ListSnapshotsInRecycleBin -> Maybe Natural
$sel:dryRun:ListSnapshotsInRecycleBin' :: ListSnapshotsInRecycleBin -> 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 Natural
maxResults
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
nextToken
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Text]
snapshotIds
instance Prelude.NFData ListSnapshotsInRecycleBin where
rnf :: ListSnapshotsInRecycleBin -> ()
rnf ListSnapshotsInRecycleBin' {Maybe Bool
Maybe Natural
Maybe [Text]
Maybe Text
snapshotIds :: Maybe [Text]
nextToken :: Maybe Text
maxResults :: Maybe Natural
dryRun :: Maybe Bool
$sel:snapshotIds:ListSnapshotsInRecycleBin' :: ListSnapshotsInRecycleBin -> Maybe [Text]
$sel:nextToken:ListSnapshotsInRecycleBin' :: ListSnapshotsInRecycleBin -> Maybe Text
$sel:maxResults:ListSnapshotsInRecycleBin' :: ListSnapshotsInRecycleBin -> Maybe Natural
$sel:dryRun:ListSnapshotsInRecycleBin' :: ListSnapshotsInRecycleBin -> 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 Natural
maxResults
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 Maybe [Text]
snapshotIds
instance Data.ToHeaders ListSnapshotsInRecycleBin where
toHeaders :: ListSnapshotsInRecycleBin -> ResponseHeaders
toHeaders = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty
instance Data.ToPath ListSnapshotsInRecycleBin where
toPath :: ListSnapshotsInRecycleBin -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Data.ToQuery ListSnapshotsInRecycleBin where
toQuery :: ListSnapshotsInRecycleBin -> QueryString
toQuery ListSnapshotsInRecycleBin' {Maybe Bool
Maybe Natural
Maybe [Text]
Maybe Text
snapshotIds :: Maybe [Text]
nextToken :: Maybe Text
maxResults :: Maybe Natural
dryRun :: Maybe Bool
$sel:snapshotIds:ListSnapshotsInRecycleBin' :: ListSnapshotsInRecycleBin -> Maybe [Text]
$sel:nextToken:ListSnapshotsInRecycleBin' :: ListSnapshotsInRecycleBin -> Maybe Text
$sel:maxResults:ListSnapshotsInRecycleBin' :: ListSnapshotsInRecycleBin -> Maybe Natural
$sel:dryRun:ListSnapshotsInRecycleBin' :: ListSnapshotsInRecycleBin -> Maybe Bool
..} =
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"Action"
forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: (ByteString
"ListSnapshotsInRecycleBin" :: 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,
ByteString
"MaxResults" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Natural
maxResults,
ByteString
"NextToken" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
nextToken,
forall a. ToQuery a => a -> QueryString
Data.toQuery
( forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Data.toQueryList ByteString
"SnapshotId"
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Text]
snapshotIds
)
]
data ListSnapshotsInRecycleBinResponse = ListSnapshotsInRecycleBinResponse'
{
ListSnapshotsInRecycleBinResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListSnapshotsInRecycleBinResponse -> Maybe [SnapshotRecycleBinInfo]
snapshots :: Prelude.Maybe [SnapshotRecycleBinInfo],
ListSnapshotsInRecycleBinResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListSnapshotsInRecycleBinResponse
-> ListSnapshotsInRecycleBinResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListSnapshotsInRecycleBinResponse
-> ListSnapshotsInRecycleBinResponse -> Bool
$c/= :: ListSnapshotsInRecycleBinResponse
-> ListSnapshotsInRecycleBinResponse -> Bool
== :: ListSnapshotsInRecycleBinResponse
-> ListSnapshotsInRecycleBinResponse -> Bool
$c== :: ListSnapshotsInRecycleBinResponse
-> ListSnapshotsInRecycleBinResponse -> Bool
Prelude.Eq, ReadPrec [ListSnapshotsInRecycleBinResponse]
ReadPrec ListSnapshotsInRecycleBinResponse
Int -> ReadS ListSnapshotsInRecycleBinResponse
ReadS [ListSnapshotsInRecycleBinResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListSnapshotsInRecycleBinResponse]
$creadListPrec :: ReadPrec [ListSnapshotsInRecycleBinResponse]
readPrec :: ReadPrec ListSnapshotsInRecycleBinResponse
$creadPrec :: ReadPrec ListSnapshotsInRecycleBinResponse
readList :: ReadS [ListSnapshotsInRecycleBinResponse]
$creadList :: ReadS [ListSnapshotsInRecycleBinResponse]
readsPrec :: Int -> ReadS ListSnapshotsInRecycleBinResponse
$creadsPrec :: Int -> ReadS ListSnapshotsInRecycleBinResponse
Prelude.Read, Int -> ListSnapshotsInRecycleBinResponse -> ShowS
[ListSnapshotsInRecycleBinResponse] -> ShowS
ListSnapshotsInRecycleBinResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListSnapshotsInRecycleBinResponse] -> ShowS
$cshowList :: [ListSnapshotsInRecycleBinResponse] -> ShowS
show :: ListSnapshotsInRecycleBinResponse -> String
$cshow :: ListSnapshotsInRecycleBinResponse -> String
showsPrec :: Int -> ListSnapshotsInRecycleBinResponse -> ShowS
$cshowsPrec :: Int -> ListSnapshotsInRecycleBinResponse -> ShowS
Prelude.Show, forall x.
Rep ListSnapshotsInRecycleBinResponse x
-> ListSnapshotsInRecycleBinResponse
forall x.
ListSnapshotsInRecycleBinResponse
-> Rep ListSnapshotsInRecycleBinResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListSnapshotsInRecycleBinResponse x
-> ListSnapshotsInRecycleBinResponse
$cfrom :: forall x.
ListSnapshotsInRecycleBinResponse
-> Rep ListSnapshotsInRecycleBinResponse x
Prelude.Generic)
newListSnapshotsInRecycleBinResponse ::
Prelude.Int ->
ListSnapshotsInRecycleBinResponse
newListSnapshotsInRecycleBinResponse :: Int -> ListSnapshotsInRecycleBinResponse
newListSnapshotsInRecycleBinResponse Int
pHttpStatus_ =
ListSnapshotsInRecycleBinResponse'
{ $sel:nextToken:ListSnapshotsInRecycleBinResponse' :: Maybe Text
nextToken =
forall a. Maybe a
Prelude.Nothing,
$sel:snapshots:ListSnapshotsInRecycleBinResponse' :: Maybe [SnapshotRecycleBinInfo]
snapshots = forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListSnapshotsInRecycleBinResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listSnapshotsInRecycleBinResponse_nextToken :: Lens.Lens' ListSnapshotsInRecycleBinResponse (Prelude.Maybe Prelude.Text)
listSnapshotsInRecycleBinResponse_nextToken :: Lens' ListSnapshotsInRecycleBinResponse (Maybe Text)
listSnapshotsInRecycleBinResponse_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSnapshotsInRecycleBinResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListSnapshotsInRecycleBinResponse' :: ListSnapshotsInRecycleBinResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListSnapshotsInRecycleBinResponse
s@ListSnapshotsInRecycleBinResponse' {} Maybe Text
a -> ListSnapshotsInRecycleBinResponse
s {$sel:nextToken:ListSnapshotsInRecycleBinResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListSnapshotsInRecycleBinResponse)
listSnapshotsInRecycleBinResponse_snapshots :: Lens.Lens' ListSnapshotsInRecycleBinResponse (Prelude.Maybe [SnapshotRecycleBinInfo])
listSnapshotsInRecycleBinResponse_snapshots :: Lens'
ListSnapshotsInRecycleBinResponse (Maybe [SnapshotRecycleBinInfo])
listSnapshotsInRecycleBinResponse_snapshots = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSnapshotsInRecycleBinResponse' {Maybe [SnapshotRecycleBinInfo]
snapshots :: Maybe [SnapshotRecycleBinInfo]
$sel:snapshots:ListSnapshotsInRecycleBinResponse' :: ListSnapshotsInRecycleBinResponse -> Maybe [SnapshotRecycleBinInfo]
snapshots} -> Maybe [SnapshotRecycleBinInfo]
snapshots) (\s :: ListSnapshotsInRecycleBinResponse
s@ListSnapshotsInRecycleBinResponse' {} Maybe [SnapshotRecycleBinInfo]
a -> ListSnapshotsInRecycleBinResponse
s {$sel:snapshots:ListSnapshotsInRecycleBinResponse' :: Maybe [SnapshotRecycleBinInfo]
snapshots = Maybe [SnapshotRecycleBinInfo]
a} :: ListSnapshotsInRecycleBinResponse) 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
listSnapshotsInRecycleBinResponse_httpStatus :: Lens.Lens' ListSnapshotsInRecycleBinResponse Prelude.Int
listSnapshotsInRecycleBinResponse_httpStatus :: Lens' ListSnapshotsInRecycleBinResponse Int
listSnapshotsInRecycleBinResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSnapshotsInRecycleBinResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListSnapshotsInRecycleBinResponse' :: ListSnapshotsInRecycleBinResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListSnapshotsInRecycleBinResponse
s@ListSnapshotsInRecycleBinResponse' {} Int
a -> ListSnapshotsInRecycleBinResponse
s {$sel:httpStatus:ListSnapshotsInRecycleBinResponse' :: Int
httpStatus = Int
a} :: ListSnapshotsInRecycleBinResponse)
instance
Prelude.NFData
ListSnapshotsInRecycleBinResponse
where
rnf :: ListSnapshotsInRecycleBinResponse -> ()
rnf ListSnapshotsInRecycleBinResponse' {Int
Maybe [SnapshotRecycleBinInfo]
Maybe Text
httpStatus :: Int
snapshots :: Maybe [SnapshotRecycleBinInfo]
nextToken :: Maybe Text
$sel:httpStatus:ListSnapshotsInRecycleBinResponse' :: ListSnapshotsInRecycleBinResponse -> Int
$sel:snapshots:ListSnapshotsInRecycleBinResponse' :: ListSnapshotsInRecycleBinResponse -> Maybe [SnapshotRecycleBinInfo]
$sel:nextToken:ListSnapshotsInRecycleBinResponse' :: ListSnapshotsInRecycleBinResponse -> Maybe Text
..} =
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 Maybe [SnapshotRecycleBinInfo]
snapshots
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus