{-# 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.EBS.ListSnapshotBlocks
(
ListSnapshotBlocks (..),
newListSnapshotBlocks,
listSnapshotBlocks_nextToken,
listSnapshotBlocks_startingBlockIndex,
listSnapshotBlocks_maxResults,
listSnapshotBlocks_snapshotId,
ListSnapshotBlocksResponse (..),
newListSnapshotBlocksResponse,
listSnapshotBlocksResponse_blockSize,
listSnapshotBlocksResponse_blocks,
listSnapshotBlocksResponse_expiryTime,
listSnapshotBlocksResponse_volumeSize,
listSnapshotBlocksResponse_nextToken,
listSnapshotBlocksResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.EBS.Types
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data ListSnapshotBlocks = ListSnapshotBlocks'
{
ListSnapshotBlocks -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListSnapshotBlocks -> Maybe Natural
startingBlockIndex :: Prelude.Maybe Prelude.Natural,
ListSnapshotBlocks -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
ListSnapshotBlocks -> Text
snapshotId :: Prelude.Text
}
deriving (ListSnapshotBlocks -> ListSnapshotBlocks -> Bool
(ListSnapshotBlocks -> ListSnapshotBlocks -> Bool)
-> (ListSnapshotBlocks -> ListSnapshotBlocks -> Bool)
-> Eq ListSnapshotBlocks
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListSnapshotBlocks -> ListSnapshotBlocks -> Bool
$c/= :: ListSnapshotBlocks -> ListSnapshotBlocks -> Bool
== :: ListSnapshotBlocks -> ListSnapshotBlocks -> Bool
$c== :: ListSnapshotBlocks -> ListSnapshotBlocks -> Bool
Prelude.Eq, ReadPrec [ListSnapshotBlocks]
ReadPrec ListSnapshotBlocks
Int -> ReadS ListSnapshotBlocks
ReadS [ListSnapshotBlocks]
(Int -> ReadS ListSnapshotBlocks)
-> ReadS [ListSnapshotBlocks]
-> ReadPrec ListSnapshotBlocks
-> ReadPrec [ListSnapshotBlocks]
-> Read ListSnapshotBlocks
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListSnapshotBlocks]
$creadListPrec :: ReadPrec [ListSnapshotBlocks]
readPrec :: ReadPrec ListSnapshotBlocks
$creadPrec :: ReadPrec ListSnapshotBlocks
readList :: ReadS [ListSnapshotBlocks]
$creadList :: ReadS [ListSnapshotBlocks]
readsPrec :: Int -> ReadS ListSnapshotBlocks
$creadsPrec :: Int -> ReadS ListSnapshotBlocks
Prelude.Read, Int -> ListSnapshotBlocks -> ShowS
[ListSnapshotBlocks] -> ShowS
ListSnapshotBlocks -> String
(Int -> ListSnapshotBlocks -> ShowS)
-> (ListSnapshotBlocks -> String)
-> ([ListSnapshotBlocks] -> ShowS)
-> Show ListSnapshotBlocks
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListSnapshotBlocks] -> ShowS
$cshowList :: [ListSnapshotBlocks] -> ShowS
show :: ListSnapshotBlocks -> String
$cshow :: ListSnapshotBlocks -> String
showsPrec :: Int -> ListSnapshotBlocks -> ShowS
$cshowsPrec :: Int -> ListSnapshotBlocks -> ShowS
Prelude.Show, (forall x. ListSnapshotBlocks -> Rep ListSnapshotBlocks x)
-> (forall x. Rep ListSnapshotBlocks x -> ListSnapshotBlocks)
-> Generic ListSnapshotBlocks
forall x. Rep ListSnapshotBlocks x -> ListSnapshotBlocks
forall x. ListSnapshotBlocks -> Rep ListSnapshotBlocks x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListSnapshotBlocks x -> ListSnapshotBlocks
$cfrom :: forall x. ListSnapshotBlocks -> Rep ListSnapshotBlocks x
Prelude.Generic)
newListSnapshotBlocks ::
Prelude.Text ->
ListSnapshotBlocks
newListSnapshotBlocks :: Text -> ListSnapshotBlocks
newListSnapshotBlocks Text
pSnapshotId_ =
ListSnapshotBlocks' :: Maybe Text
-> Maybe Natural -> Maybe Natural -> Text -> ListSnapshotBlocks
ListSnapshotBlocks'
{ $sel:nextToken:ListSnapshotBlocks' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:startingBlockIndex:ListSnapshotBlocks' :: Maybe Natural
startingBlockIndex = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListSnapshotBlocks' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:snapshotId:ListSnapshotBlocks' :: Text
snapshotId = Text
pSnapshotId_
}
listSnapshotBlocks_nextToken :: Lens.Lens' ListSnapshotBlocks (Prelude.Maybe Prelude.Text)
listSnapshotBlocks_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListSnapshotBlocks -> f ListSnapshotBlocks
listSnapshotBlocks_nextToken = (ListSnapshotBlocks -> Maybe Text)
-> (ListSnapshotBlocks -> Maybe Text -> ListSnapshotBlocks)
-> Lens
ListSnapshotBlocks ListSnapshotBlocks (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSnapshotBlocks' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListSnapshotBlocks' :: ListSnapshotBlocks -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListSnapshotBlocks
s@ListSnapshotBlocks' {} Maybe Text
a -> ListSnapshotBlocks
s {$sel:nextToken:ListSnapshotBlocks' :: Maybe Text
nextToken = Maybe Text
a} :: ListSnapshotBlocks)
listSnapshotBlocks_startingBlockIndex :: Lens.Lens' ListSnapshotBlocks (Prelude.Maybe Prelude.Natural)
listSnapshotBlocks_startingBlockIndex :: (Maybe Natural -> f (Maybe Natural))
-> ListSnapshotBlocks -> f ListSnapshotBlocks
listSnapshotBlocks_startingBlockIndex = (ListSnapshotBlocks -> Maybe Natural)
-> (ListSnapshotBlocks -> Maybe Natural -> ListSnapshotBlocks)
-> Lens
ListSnapshotBlocks
ListSnapshotBlocks
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSnapshotBlocks' {Maybe Natural
startingBlockIndex :: Maybe Natural
$sel:startingBlockIndex:ListSnapshotBlocks' :: ListSnapshotBlocks -> Maybe Natural
startingBlockIndex} -> Maybe Natural
startingBlockIndex) (\s :: ListSnapshotBlocks
s@ListSnapshotBlocks' {} Maybe Natural
a -> ListSnapshotBlocks
s {$sel:startingBlockIndex:ListSnapshotBlocks' :: Maybe Natural
startingBlockIndex = Maybe Natural
a} :: ListSnapshotBlocks)
listSnapshotBlocks_maxResults :: Lens.Lens' ListSnapshotBlocks (Prelude.Maybe Prelude.Natural)
listSnapshotBlocks_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListSnapshotBlocks -> f ListSnapshotBlocks
listSnapshotBlocks_maxResults = (ListSnapshotBlocks -> Maybe Natural)
-> (ListSnapshotBlocks -> Maybe Natural -> ListSnapshotBlocks)
-> Lens
ListSnapshotBlocks
ListSnapshotBlocks
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSnapshotBlocks' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListSnapshotBlocks' :: ListSnapshotBlocks -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListSnapshotBlocks
s@ListSnapshotBlocks' {} Maybe Natural
a -> ListSnapshotBlocks
s {$sel:maxResults:ListSnapshotBlocks' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListSnapshotBlocks)
listSnapshotBlocks_snapshotId :: Lens.Lens' ListSnapshotBlocks Prelude.Text
listSnapshotBlocks_snapshotId :: (Text -> f Text) -> ListSnapshotBlocks -> f ListSnapshotBlocks
listSnapshotBlocks_snapshotId = (ListSnapshotBlocks -> Text)
-> (ListSnapshotBlocks -> Text -> ListSnapshotBlocks)
-> Lens ListSnapshotBlocks ListSnapshotBlocks Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSnapshotBlocks' {Text
snapshotId :: Text
$sel:snapshotId:ListSnapshotBlocks' :: ListSnapshotBlocks -> Text
snapshotId} -> Text
snapshotId) (\s :: ListSnapshotBlocks
s@ListSnapshotBlocks' {} Text
a -> ListSnapshotBlocks
s {$sel:snapshotId:ListSnapshotBlocks' :: Text
snapshotId = Text
a} :: ListSnapshotBlocks)
instance Core.AWSRequest ListSnapshotBlocks where
type
AWSResponse ListSnapshotBlocks =
ListSnapshotBlocksResponse
request :: ListSnapshotBlocks -> Request ListSnapshotBlocks
request = Service -> ListSnapshotBlocks -> Request ListSnapshotBlocks
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy ListSnapshotBlocks
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListSnapshotBlocks)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListSnapshotBlocks))
-> Logger
-> Service
-> Proxy ListSnapshotBlocks
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListSnapshotBlocks)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe Int
-> Maybe (Sensitive [Block])
-> Maybe POSIX
-> Maybe Natural
-> Maybe Text
-> Int
-> ListSnapshotBlocksResponse
ListSnapshotBlocksResponse'
(Maybe Int
-> Maybe (Sensitive [Block])
-> Maybe POSIX
-> Maybe Natural
-> Maybe Text
-> Int
-> ListSnapshotBlocksResponse)
-> Either String (Maybe Int)
-> Either
String
(Maybe (Sensitive [Block])
-> Maybe POSIX
-> Maybe Natural
-> Maybe Text
-> Int
-> ListSnapshotBlocksResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe Int)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"BlockSize")
Either
String
(Maybe (Sensitive [Block])
-> Maybe POSIX
-> Maybe Natural
-> Maybe Text
-> Int
-> ListSnapshotBlocksResponse)
-> Either String (Maybe (Sensitive [Block]))
-> Either
String
(Maybe POSIX
-> Maybe Natural
-> Maybe Text
-> Int
-> ListSnapshotBlocksResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe (Sensitive [Block])))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Blocks" Either String (Maybe (Maybe (Sensitive [Block])))
-> Maybe (Sensitive [Block])
-> Either String (Maybe (Sensitive [Block]))
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe (Sensitive [Block])
forall a. Monoid a => a
Prelude.mempty)
Either
String
(Maybe POSIX
-> Maybe Natural
-> Maybe Text
-> Int
-> ListSnapshotBlocksResponse)
-> Either String (Maybe POSIX)
-> Either
String
(Maybe Natural -> Maybe Text -> Int -> ListSnapshotBlocksResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"ExpiryTime")
Either
String
(Maybe Natural -> Maybe Text -> Int -> ListSnapshotBlocksResponse)
-> Either String (Maybe Natural)
-> Either String (Maybe Text -> Int -> ListSnapshotBlocksResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Natural)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"VolumeSize")
Either String (Maybe Text -> Int -> ListSnapshotBlocksResponse)
-> Either String (Maybe Text)
-> Either String (Int -> ListSnapshotBlocksResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"NextToken")
Either String (Int -> ListSnapshotBlocksResponse)
-> Either String Int -> Either String ListSnapshotBlocksResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance Prelude.Hashable ListSnapshotBlocks
instance Prelude.NFData ListSnapshotBlocks
instance Core.ToHeaders ListSnapshotBlocks where
toHeaders :: ListSnapshotBlocks -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListSnapshotBlocks -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"Content-Type"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Core.ToPath ListSnapshotBlocks where
toPath :: ListSnapshotBlocks -> ByteString
toPath ListSnapshotBlocks' {Maybe Natural
Maybe Text
Text
snapshotId :: Text
maxResults :: Maybe Natural
startingBlockIndex :: Maybe Natural
nextToken :: Maybe Text
$sel:snapshotId:ListSnapshotBlocks' :: ListSnapshotBlocks -> Text
$sel:maxResults:ListSnapshotBlocks' :: ListSnapshotBlocks -> Maybe Natural
$sel:startingBlockIndex:ListSnapshotBlocks' :: ListSnapshotBlocks -> Maybe Natural
$sel:nextToken:ListSnapshotBlocks' :: ListSnapshotBlocks -> Maybe Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ByteString
"/snapshots/", Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
snapshotId, ByteString
"/blocks"]
instance Core.ToQuery ListSnapshotBlocks where
toQuery :: ListSnapshotBlocks -> QueryString
toQuery ListSnapshotBlocks' {Maybe Natural
Maybe Text
Text
snapshotId :: Text
maxResults :: Maybe Natural
startingBlockIndex :: Maybe Natural
nextToken :: Maybe Text
$sel:snapshotId:ListSnapshotBlocks' :: ListSnapshotBlocks -> Text
$sel:maxResults:ListSnapshotBlocks' :: ListSnapshotBlocks -> Maybe Natural
$sel:startingBlockIndex:ListSnapshotBlocks' :: ListSnapshotBlocks -> Maybe Natural
$sel:nextToken:ListSnapshotBlocks' :: ListSnapshotBlocks -> Maybe Text
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"pageToken" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
nextToken,
ByteString
"startingBlockIndex" ByteString -> Maybe Natural -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Natural
startingBlockIndex,
ByteString
"maxResults" ByteString -> Maybe Natural -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Natural
maxResults
]
data ListSnapshotBlocksResponse = ListSnapshotBlocksResponse'
{
ListSnapshotBlocksResponse -> Maybe Int
blockSize :: Prelude.Maybe Prelude.Int,
ListSnapshotBlocksResponse -> Maybe (Sensitive [Block])
blocks :: Prelude.Maybe (Core.Sensitive [Block]),
ListSnapshotBlocksResponse -> Maybe POSIX
expiryTime :: Prelude.Maybe Core.POSIX,
ListSnapshotBlocksResponse -> Maybe Natural
volumeSize :: Prelude.Maybe Prelude.Natural,
ListSnapshotBlocksResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListSnapshotBlocksResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListSnapshotBlocksResponse -> ListSnapshotBlocksResponse -> Bool
(ListSnapshotBlocksResponse -> ListSnapshotBlocksResponse -> Bool)
-> (ListSnapshotBlocksResponse
-> ListSnapshotBlocksResponse -> Bool)
-> Eq ListSnapshotBlocksResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListSnapshotBlocksResponse -> ListSnapshotBlocksResponse -> Bool
$c/= :: ListSnapshotBlocksResponse -> ListSnapshotBlocksResponse -> Bool
== :: ListSnapshotBlocksResponse -> ListSnapshotBlocksResponse -> Bool
$c== :: ListSnapshotBlocksResponse -> ListSnapshotBlocksResponse -> Bool
Prelude.Eq, Int -> ListSnapshotBlocksResponse -> ShowS
[ListSnapshotBlocksResponse] -> ShowS
ListSnapshotBlocksResponse -> String
(Int -> ListSnapshotBlocksResponse -> ShowS)
-> (ListSnapshotBlocksResponse -> String)
-> ([ListSnapshotBlocksResponse] -> ShowS)
-> Show ListSnapshotBlocksResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListSnapshotBlocksResponse] -> ShowS
$cshowList :: [ListSnapshotBlocksResponse] -> ShowS
show :: ListSnapshotBlocksResponse -> String
$cshow :: ListSnapshotBlocksResponse -> String
showsPrec :: Int -> ListSnapshotBlocksResponse -> ShowS
$cshowsPrec :: Int -> ListSnapshotBlocksResponse -> ShowS
Prelude.Show, (forall x.
ListSnapshotBlocksResponse -> Rep ListSnapshotBlocksResponse x)
-> (forall x.
Rep ListSnapshotBlocksResponse x -> ListSnapshotBlocksResponse)
-> Generic ListSnapshotBlocksResponse
forall x.
Rep ListSnapshotBlocksResponse x -> ListSnapshotBlocksResponse
forall x.
ListSnapshotBlocksResponse -> Rep ListSnapshotBlocksResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListSnapshotBlocksResponse x -> ListSnapshotBlocksResponse
$cfrom :: forall x.
ListSnapshotBlocksResponse -> Rep ListSnapshotBlocksResponse x
Prelude.Generic)
newListSnapshotBlocksResponse ::
Prelude.Int ->
ListSnapshotBlocksResponse
newListSnapshotBlocksResponse :: Int -> ListSnapshotBlocksResponse
newListSnapshotBlocksResponse Int
pHttpStatus_ =
ListSnapshotBlocksResponse' :: Maybe Int
-> Maybe (Sensitive [Block])
-> Maybe POSIX
-> Maybe Natural
-> Maybe Text
-> Int
-> ListSnapshotBlocksResponse
ListSnapshotBlocksResponse'
{ $sel:blockSize:ListSnapshotBlocksResponse' :: Maybe Int
blockSize =
Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:blocks:ListSnapshotBlocksResponse' :: Maybe (Sensitive [Block])
blocks = Maybe (Sensitive [Block])
forall a. Maybe a
Prelude.Nothing,
$sel:expiryTime:ListSnapshotBlocksResponse' :: Maybe POSIX
expiryTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:volumeSize:ListSnapshotBlocksResponse' :: Maybe Natural
volumeSize = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListSnapshotBlocksResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListSnapshotBlocksResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listSnapshotBlocksResponse_blockSize :: Lens.Lens' ListSnapshotBlocksResponse (Prelude.Maybe Prelude.Int)
listSnapshotBlocksResponse_blockSize :: (Maybe Int -> f (Maybe Int))
-> ListSnapshotBlocksResponse -> f ListSnapshotBlocksResponse
listSnapshotBlocksResponse_blockSize = (ListSnapshotBlocksResponse -> Maybe Int)
-> (ListSnapshotBlocksResponse
-> Maybe Int -> ListSnapshotBlocksResponse)
-> Lens
ListSnapshotBlocksResponse
ListSnapshotBlocksResponse
(Maybe Int)
(Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSnapshotBlocksResponse' {Maybe Int
blockSize :: Maybe Int
$sel:blockSize:ListSnapshotBlocksResponse' :: ListSnapshotBlocksResponse -> Maybe Int
blockSize} -> Maybe Int
blockSize) (\s :: ListSnapshotBlocksResponse
s@ListSnapshotBlocksResponse' {} Maybe Int
a -> ListSnapshotBlocksResponse
s {$sel:blockSize:ListSnapshotBlocksResponse' :: Maybe Int
blockSize = Maybe Int
a} :: ListSnapshotBlocksResponse)
listSnapshotBlocksResponse_blocks :: Lens.Lens' ListSnapshotBlocksResponse (Prelude.Maybe [Block])
listSnapshotBlocksResponse_blocks :: (Maybe [Block] -> f (Maybe [Block]))
-> ListSnapshotBlocksResponse -> f ListSnapshotBlocksResponse
listSnapshotBlocksResponse_blocks = (ListSnapshotBlocksResponse -> Maybe (Sensitive [Block]))
-> (ListSnapshotBlocksResponse
-> Maybe (Sensitive [Block]) -> ListSnapshotBlocksResponse)
-> Lens
ListSnapshotBlocksResponse
ListSnapshotBlocksResponse
(Maybe (Sensitive [Block]))
(Maybe (Sensitive [Block]))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSnapshotBlocksResponse' {Maybe (Sensitive [Block])
blocks :: Maybe (Sensitive [Block])
$sel:blocks:ListSnapshotBlocksResponse' :: ListSnapshotBlocksResponse -> Maybe (Sensitive [Block])
blocks} -> Maybe (Sensitive [Block])
blocks) (\s :: ListSnapshotBlocksResponse
s@ListSnapshotBlocksResponse' {} Maybe (Sensitive [Block])
a -> ListSnapshotBlocksResponse
s {$sel:blocks:ListSnapshotBlocksResponse' :: Maybe (Sensitive [Block])
blocks = Maybe (Sensitive [Block])
a} :: ListSnapshotBlocksResponse) ((Maybe (Sensitive [Block]) -> f (Maybe (Sensitive [Block])))
-> ListSnapshotBlocksResponse -> f ListSnapshotBlocksResponse)
-> ((Maybe [Block] -> f (Maybe [Block]))
-> Maybe (Sensitive [Block]) -> f (Maybe (Sensitive [Block])))
-> (Maybe [Block] -> f (Maybe [Block]))
-> ListSnapshotBlocksResponse
-> f ListSnapshotBlocksResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso (Sensitive [Block]) (Sensitive [Block]) [Block] [Block]
-> Iso
(Maybe (Sensitive [Block]))
(Maybe (Sensitive [Block]))
(Maybe [Block])
(Maybe [Block])
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 (AnIso (Sensitive [Block]) (Sensitive [Block]) [Block] [Block]
forall a. Iso' (Sensitive a) a
Core._Sensitive AnIso (Sensitive [Block]) (Sensitive [Block]) [Block] [Block]
-> (Exchange [Block] [Block] [Block] (Identity [Block])
-> Exchange [Block] [Block] [Block] (Identity [Block]))
-> AnIso (Sensitive [Block]) (Sensitive [Block]) [Block] [Block]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. Exchange [Block] [Block] [Block] (Identity [Block])
-> Exchange [Block] [Block] [Block] (Identity [Block])
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced)
listSnapshotBlocksResponse_expiryTime :: Lens.Lens' ListSnapshotBlocksResponse (Prelude.Maybe Prelude.UTCTime)
listSnapshotBlocksResponse_expiryTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> ListSnapshotBlocksResponse -> f ListSnapshotBlocksResponse
listSnapshotBlocksResponse_expiryTime = (ListSnapshotBlocksResponse -> Maybe POSIX)
-> (ListSnapshotBlocksResponse
-> Maybe POSIX -> ListSnapshotBlocksResponse)
-> Lens
ListSnapshotBlocksResponse
ListSnapshotBlocksResponse
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSnapshotBlocksResponse' {Maybe POSIX
expiryTime :: Maybe POSIX
$sel:expiryTime:ListSnapshotBlocksResponse' :: ListSnapshotBlocksResponse -> Maybe POSIX
expiryTime} -> Maybe POSIX
expiryTime) (\s :: ListSnapshotBlocksResponse
s@ListSnapshotBlocksResponse' {} Maybe POSIX
a -> ListSnapshotBlocksResponse
s {$sel:expiryTime:ListSnapshotBlocksResponse' :: Maybe POSIX
expiryTime = Maybe POSIX
a} :: ListSnapshotBlocksResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> ListSnapshotBlocksResponse -> f ListSnapshotBlocksResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> ListSnapshotBlocksResponse
-> f ListSnapshotBlocksResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 AnIso POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
listSnapshotBlocksResponse_volumeSize :: Lens.Lens' ListSnapshotBlocksResponse (Prelude.Maybe Prelude.Natural)
listSnapshotBlocksResponse_volumeSize :: (Maybe Natural -> f (Maybe Natural))
-> ListSnapshotBlocksResponse -> f ListSnapshotBlocksResponse
listSnapshotBlocksResponse_volumeSize = (ListSnapshotBlocksResponse -> Maybe Natural)
-> (ListSnapshotBlocksResponse
-> Maybe Natural -> ListSnapshotBlocksResponse)
-> Lens
ListSnapshotBlocksResponse
ListSnapshotBlocksResponse
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSnapshotBlocksResponse' {Maybe Natural
volumeSize :: Maybe Natural
$sel:volumeSize:ListSnapshotBlocksResponse' :: ListSnapshotBlocksResponse -> Maybe Natural
volumeSize} -> Maybe Natural
volumeSize) (\s :: ListSnapshotBlocksResponse
s@ListSnapshotBlocksResponse' {} Maybe Natural
a -> ListSnapshotBlocksResponse
s {$sel:volumeSize:ListSnapshotBlocksResponse' :: Maybe Natural
volumeSize = Maybe Natural
a} :: ListSnapshotBlocksResponse)
listSnapshotBlocksResponse_nextToken :: Lens.Lens' ListSnapshotBlocksResponse (Prelude.Maybe Prelude.Text)
listSnapshotBlocksResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListSnapshotBlocksResponse -> f ListSnapshotBlocksResponse
listSnapshotBlocksResponse_nextToken = (ListSnapshotBlocksResponse -> Maybe Text)
-> (ListSnapshotBlocksResponse
-> Maybe Text -> ListSnapshotBlocksResponse)
-> Lens
ListSnapshotBlocksResponse
ListSnapshotBlocksResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSnapshotBlocksResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListSnapshotBlocksResponse' :: ListSnapshotBlocksResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListSnapshotBlocksResponse
s@ListSnapshotBlocksResponse' {} Maybe Text
a -> ListSnapshotBlocksResponse
s {$sel:nextToken:ListSnapshotBlocksResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListSnapshotBlocksResponse)
listSnapshotBlocksResponse_httpStatus :: Lens.Lens' ListSnapshotBlocksResponse Prelude.Int
listSnapshotBlocksResponse_httpStatus :: (Int -> f Int)
-> ListSnapshotBlocksResponse -> f ListSnapshotBlocksResponse
listSnapshotBlocksResponse_httpStatus = (ListSnapshotBlocksResponse -> Int)
-> (ListSnapshotBlocksResponse
-> Int -> ListSnapshotBlocksResponse)
-> Lens
ListSnapshotBlocksResponse ListSnapshotBlocksResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSnapshotBlocksResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListSnapshotBlocksResponse' :: ListSnapshotBlocksResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListSnapshotBlocksResponse
s@ListSnapshotBlocksResponse' {} Int
a -> ListSnapshotBlocksResponse
s {$sel:httpStatus:ListSnapshotBlocksResponse' :: Int
httpStatus = Int
a} :: ListSnapshotBlocksResponse)
instance Prelude.NFData ListSnapshotBlocksResponse