{-# 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.Glacier.ListVaults
(
ListVaults (..),
newListVaults,
listVaults_marker,
listVaults_limit,
listVaults_accountId,
ListVaultsResponse (..),
newListVaultsResponse,
listVaultsResponse_marker,
listVaultsResponse_vaultList,
listVaultsResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.Glacier.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 ListVaults = ListVaults'
{
ListVaults -> Maybe Text
marker :: Prelude.Maybe Prelude.Text,
ListVaults -> Maybe Text
limit :: Prelude.Maybe Prelude.Text,
ListVaults -> Text
accountId :: Prelude.Text
}
deriving (ListVaults -> ListVaults -> Bool
(ListVaults -> ListVaults -> Bool)
-> (ListVaults -> ListVaults -> Bool) -> Eq ListVaults
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListVaults -> ListVaults -> Bool
$c/= :: ListVaults -> ListVaults -> Bool
== :: ListVaults -> ListVaults -> Bool
$c== :: ListVaults -> ListVaults -> Bool
Prelude.Eq, ReadPrec [ListVaults]
ReadPrec ListVaults
Int -> ReadS ListVaults
ReadS [ListVaults]
(Int -> ReadS ListVaults)
-> ReadS [ListVaults]
-> ReadPrec ListVaults
-> ReadPrec [ListVaults]
-> Read ListVaults
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListVaults]
$creadListPrec :: ReadPrec [ListVaults]
readPrec :: ReadPrec ListVaults
$creadPrec :: ReadPrec ListVaults
readList :: ReadS [ListVaults]
$creadList :: ReadS [ListVaults]
readsPrec :: Int -> ReadS ListVaults
$creadsPrec :: Int -> ReadS ListVaults
Prelude.Read, Int -> ListVaults -> ShowS
[ListVaults] -> ShowS
ListVaults -> String
(Int -> ListVaults -> ShowS)
-> (ListVaults -> String)
-> ([ListVaults] -> ShowS)
-> Show ListVaults
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListVaults] -> ShowS
$cshowList :: [ListVaults] -> ShowS
show :: ListVaults -> String
$cshow :: ListVaults -> String
showsPrec :: Int -> ListVaults -> ShowS
$cshowsPrec :: Int -> ListVaults -> ShowS
Prelude.Show, (forall x. ListVaults -> Rep ListVaults x)
-> (forall x. Rep ListVaults x -> ListVaults) -> Generic ListVaults
forall x. Rep ListVaults x -> ListVaults
forall x. ListVaults -> Rep ListVaults x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListVaults x -> ListVaults
$cfrom :: forall x. ListVaults -> Rep ListVaults x
Prelude.Generic)
newListVaults ::
Prelude.Text ->
ListVaults
newListVaults :: Text -> ListVaults
newListVaults Text
pAccountId_ =
ListVaults' :: Maybe Text -> Maybe Text -> Text -> ListVaults
ListVaults'
{ $sel:marker:ListVaults' :: Maybe Text
marker = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:limit:ListVaults' :: Maybe Text
limit = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:accountId:ListVaults' :: Text
accountId = Text
pAccountId_
}
listVaults_marker :: Lens.Lens' ListVaults (Prelude.Maybe Prelude.Text)
listVaults_marker :: (Maybe Text -> f (Maybe Text)) -> ListVaults -> f ListVaults
listVaults_marker = (ListVaults -> Maybe Text)
-> (ListVaults -> Maybe Text -> ListVaults)
-> Lens ListVaults ListVaults (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListVaults' {Maybe Text
marker :: Maybe Text
$sel:marker:ListVaults' :: ListVaults -> Maybe Text
marker} -> Maybe Text
marker) (\s :: ListVaults
s@ListVaults' {} Maybe Text
a -> ListVaults
s {$sel:marker:ListVaults' :: Maybe Text
marker = Maybe Text
a} :: ListVaults)
listVaults_limit :: Lens.Lens' ListVaults (Prelude.Maybe Prelude.Text)
listVaults_limit :: (Maybe Text -> f (Maybe Text)) -> ListVaults -> f ListVaults
listVaults_limit = (ListVaults -> Maybe Text)
-> (ListVaults -> Maybe Text -> ListVaults)
-> Lens ListVaults ListVaults (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListVaults' {Maybe Text
limit :: Maybe Text
$sel:limit:ListVaults' :: ListVaults -> Maybe Text
limit} -> Maybe Text
limit) (\s :: ListVaults
s@ListVaults' {} Maybe Text
a -> ListVaults
s {$sel:limit:ListVaults' :: Maybe Text
limit = Maybe Text
a} :: ListVaults)
listVaults_accountId :: Lens.Lens' ListVaults Prelude.Text
listVaults_accountId :: (Text -> f Text) -> ListVaults -> f ListVaults
listVaults_accountId = (ListVaults -> Text)
-> (ListVaults -> Text -> ListVaults)
-> Lens ListVaults ListVaults Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListVaults' {Text
accountId :: Text
$sel:accountId:ListVaults' :: ListVaults -> Text
accountId} -> Text
accountId) (\s :: ListVaults
s@ListVaults' {} Text
a -> ListVaults
s {$sel:accountId:ListVaults' :: Text
accountId = Text
a} :: ListVaults)
instance Core.AWSPager ListVaults where
page :: ListVaults -> AWSResponse ListVaults -> Maybe ListVaults
page ListVaults
rq AWSResponse ListVaults
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListVaults
ListVaultsResponse
rs
ListVaultsResponse
-> Getting (First Text) ListVaultsResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListVaultsResponse -> Const (First Text) ListVaultsResponse
Lens' ListVaultsResponse (Maybe Text)
listVaultsResponse_marker ((Maybe Text -> Const (First Text) (Maybe Text))
-> ListVaultsResponse -> Const (First Text) ListVaultsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListVaultsResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListVaults
forall a. Maybe a
Prelude.Nothing
| Maybe [DescribeVaultOutput] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListVaults
ListVaultsResponse
rs
ListVaultsResponse
-> Getting
(First [DescribeVaultOutput])
ListVaultsResponse
[DescribeVaultOutput]
-> Maybe [DescribeVaultOutput]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [DescribeVaultOutput]
-> Const
(First [DescribeVaultOutput]) (Maybe [DescribeVaultOutput]))
-> ListVaultsResponse
-> Const (First [DescribeVaultOutput]) ListVaultsResponse
Lens' ListVaultsResponse (Maybe [DescribeVaultOutput])
listVaultsResponse_vaultList ((Maybe [DescribeVaultOutput]
-> Const
(First [DescribeVaultOutput]) (Maybe [DescribeVaultOutput]))
-> ListVaultsResponse
-> Const (First [DescribeVaultOutput]) ListVaultsResponse)
-> (([DescribeVaultOutput]
-> Const (First [DescribeVaultOutput]) [DescribeVaultOutput])
-> Maybe [DescribeVaultOutput]
-> Const
(First [DescribeVaultOutput]) (Maybe [DescribeVaultOutput]))
-> Getting
(First [DescribeVaultOutput])
ListVaultsResponse
[DescribeVaultOutput]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([DescribeVaultOutput]
-> Const (First [DescribeVaultOutput]) [DescribeVaultOutput])
-> Maybe [DescribeVaultOutput]
-> Const
(First [DescribeVaultOutput]) (Maybe [DescribeVaultOutput])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListVaults
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListVaults -> Maybe ListVaults
forall a. a -> Maybe a
Prelude.Just (ListVaults -> Maybe ListVaults) -> ListVaults -> Maybe ListVaults
forall a b. (a -> b) -> a -> b
Prelude.$
ListVaults
rq
ListVaults -> (ListVaults -> ListVaults) -> ListVaults
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListVaults -> Identity ListVaults
Lens ListVaults ListVaults (Maybe Text) (Maybe Text)
listVaults_marker
((Maybe Text -> Identity (Maybe Text))
-> ListVaults -> Identity ListVaults)
-> Maybe Text -> ListVaults -> ListVaults
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListVaults
ListVaultsResponse
rs
ListVaultsResponse
-> Getting (First Text) ListVaultsResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListVaultsResponse -> Const (First Text) ListVaultsResponse
Lens' ListVaultsResponse (Maybe Text)
listVaultsResponse_marker ((Maybe Text -> Const (First Text) (Maybe Text))
-> ListVaultsResponse -> Const (First Text) ListVaultsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListVaultsResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
instance Core.AWSRequest ListVaults where
type AWSResponse ListVaults = ListVaultsResponse
request :: ListVaults -> Request ListVaults
request =
ByteString -> Request ListVaults -> Request ListVaults
forall a. ByteString -> Request a -> Request a
Request.glacierVersionHeader (Service -> ByteString
Core._serviceVersion Service
defaultService)
(Request ListVaults -> Request ListVaults)
-> (ListVaults -> Request ListVaults)
-> ListVaults
-> Request ListVaults
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. Service -> ListVaults -> Request ListVaults
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy ListVaults
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListVaults)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListVaults))
-> Logger
-> Service
-> Proxy ListVaults
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListVaults)))
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 Text
-> Maybe [DescribeVaultOutput] -> Int -> ListVaultsResponse
ListVaultsResponse'
(Maybe Text
-> Maybe [DescribeVaultOutput] -> Int -> ListVaultsResponse)
-> Either String (Maybe Text)
-> Either
String (Maybe [DescribeVaultOutput] -> Int -> ListVaultsResponse)
forall (f :: * -> *) a b. Functor 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
"Marker")
Either
String (Maybe [DescribeVaultOutput] -> Int -> ListVaultsResponse)
-> Either String (Maybe [DescribeVaultOutput])
-> Either String (Int -> ListVaultsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text -> Either String (Maybe (Maybe [DescribeVaultOutput]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"VaultList" Either String (Maybe (Maybe [DescribeVaultOutput]))
-> Maybe [DescribeVaultOutput]
-> Either String (Maybe [DescribeVaultOutput])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [DescribeVaultOutput]
forall a. Monoid a => a
Prelude.mempty)
Either String (Int -> ListVaultsResponse)
-> Either String Int -> Either String ListVaultsResponse
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 ListVaults
instance Prelude.NFData ListVaults
instance Core.ToHeaders ListVaults where
toHeaders :: ListVaults -> ResponseHeaders
toHeaders = ResponseHeaders -> ListVaults -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty
instance Core.ToPath ListVaults where
toPath :: ListVaults -> ByteString
toPath ListVaults' {Maybe Text
Text
accountId :: Text
limit :: Maybe Text
marker :: Maybe Text
$sel:accountId:ListVaults' :: ListVaults -> Text
$sel:limit:ListVaults' :: ListVaults -> Maybe Text
$sel:marker:ListVaults' :: ListVaults -> Maybe Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ByteString
"/", Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
accountId, ByteString
"/vaults"]
instance Core.ToQuery ListVaults where
toQuery :: ListVaults -> QueryString
toQuery ListVaults' {Maybe Text
Text
accountId :: Text
limit :: Maybe Text
marker :: Maybe Text
$sel:accountId:ListVaults' :: ListVaults -> Text
$sel:limit:ListVaults' :: ListVaults -> Maybe Text
$sel:marker:ListVaults' :: ListVaults -> Maybe Text
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ByteString
"marker" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
marker, ByteString
"limit" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
limit]
data ListVaultsResponse = ListVaultsResponse'
{
ListVaultsResponse -> Maybe Text
marker :: Prelude.Maybe Prelude.Text,
ListVaultsResponse -> Maybe [DescribeVaultOutput]
vaultList :: Prelude.Maybe [DescribeVaultOutput],
ListVaultsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListVaultsResponse -> ListVaultsResponse -> Bool
(ListVaultsResponse -> ListVaultsResponse -> Bool)
-> (ListVaultsResponse -> ListVaultsResponse -> Bool)
-> Eq ListVaultsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListVaultsResponse -> ListVaultsResponse -> Bool
$c/= :: ListVaultsResponse -> ListVaultsResponse -> Bool
== :: ListVaultsResponse -> ListVaultsResponse -> Bool
$c== :: ListVaultsResponse -> ListVaultsResponse -> Bool
Prelude.Eq, ReadPrec [ListVaultsResponse]
ReadPrec ListVaultsResponse
Int -> ReadS ListVaultsResponse
ReadS [ListVaultsResponse]
(Int -> ReadS ListVaultsResponse)
-> ReadS [ListVaultsResponse]
-> ReadPrec ListVaultsResponse
-> ReadPrec [ListVaultsResponse]
-> Read ListVaultsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListVaultsResponse]
$creadListPrec :: ReadPrec [ListVaultsResponse]
readPrec :: ReadPrec ListVaultsResponse
$creadPrec :: ReadPrec ListVaultsResponse
readList :: ReadS [ListVaultsResponse]
$creadList :: ReadS [ListVaultsResponse]
readsPrec :: Int -> ReadS ListVaultsResponse
$creadsPrec :: Int -> ReadS ListVaultsResponse
Prelude.Read, Int -> ListVaultsResponse -> ShowS
[ListVaultsResponse] -> ShowS
ListVaultsResponse -> String
(Int -> ListVaultsResponse -> ShowS)
-> (ListVaultsResponse -> String)
-> ([ListVaultsResponse] -> ShowS)
-> Show ListVaultsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListVaultsResponse] -> ShowS
$cshowList :: [ListVaultsResponse] -> ShowS
show :: ListVaultsResponse -> String
$cshow :: ListVaultsResponse -> String
showsPrec :: Int -> ListVaultsResponse -> ShowS
$cshowsPrec :: Int -> ListVaultsResponse -> ShowS
Prelude.Show, (forall x. ListVaultsResponse -> Rep ListVaultsResponse x)
-> (forall x. Rep ListVaultsResponse x -> ListVaultsResponse)
-> Generic ListVaultsResponse
forall x. Rep ListVaultsResponse x -> ListVaultsResponse
forall x. ListVaultsResponse -> Rep ListVaultsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListVaultsResponse x -> ListVaultsResponse
$cfrom :: forall x. ListVaultsResponse -> Rep ListVaultsResponse x
Prelude.Generic)
newListVaultsResponse ::
Prelude.Int ->
ListVaultsResponse
newListVaultsResponse :: Int -> ListVaultsResponse
newListVaultsResponse Int
pHttpStatus_ =
ListVaultsResponse' :: Maybe Text
-> Maybe [DescribeVaultOutput] -> Int -> ListVaultsResponse
ListVaultsResponse'
{ $sel:marker:ListVaultsResponse' :: Maybe Text
marker = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:vaultList:ListVaultsResponse' :: Maybe [DescribeVaultOutput]
vaultList = Maybe [DescribeVaultOutput]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListVaultsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listVaultsResponse_marker :: Lens.Lens' ListVaultsResponse (Prelude.Maybe Prelude.Text)
listVaultsResponse_marker :: (Maybe Text -> f (Maybe Text))
-> ListVaultsResponse -> f ListVaultsResponse
listVaultsResponse_marker = (ListVaultsResponse -> Maybe Text)
-> (ListVaultsResponse -> Maybe Text -> ListVaultsResponse)
-> Lens' ListVaultsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListVaultsResponse' {Maybe Text
marker :: Maybe Text
$sel:marker:ListVaultsResponse' :: ListVaultsResponse -> Maybe Text
marker} -> Maybe Text
marker) (\s :: ListVaultsResponse
s@ListVaultsResponse' {} Maybe Text
a -> ListVaultsResponse
s {$sel:marker:ListVaultsResponse' :: Maybe Text
marker = Maybe Text
a} :: ListVaultsResponse)
listVaultsResponse_vaultList :: Lens.Lens' ListVaultsResponse (Prelude.Maybe [DescribeVaultOutput])
listVaultsResponse_vaultList :: (Maybe [DescribeVaultOutput] -> f (Maybe [DescribeVaultOutput]))
-> ListVaultsResponse -> f ListVaultsResponse
listVaultsResponse_vaultList = (ListVaultsResponse -> Maybe [DescribeVaultOutput])
-> (ListVaultsResponse
-> Maybe [DescribeVaultOutput] -> ListVaultsResponse)
-> Lens' ListVaultsResponse (Maybe [DescribeVaultOutput])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListVaultsResponse' {Maybe [DescribeVaultOutput]
vaultList :: Maybe [DescribeVaultOutput]
$sel:vaultList:ListVaultsResponse' :: ListVaultsResponse -> Maybe [DescribeVaultOutput]
vaultList} -> Maybe [DescribeVaultOutput]
vaultList) (\s :: ListVaultsResponse
s@ListVaultsResponse' {} Maybe [DescribeVaultOutput]
a -> ListVaultsResponse
s {$sel:vaultList:ListVaultsResponse' :: Maybe [DescribeVaultOutput]
vaultList = Maybe [DescribeVaultOutput]
a} :: ListVaultsResponse) ((Maybe [DescribeVaultOutput] -> f (Maybe [DescribeVaultOutput]))
-> ListVaultsResponse -> f ListVaultsResponse)
-> ((Maybe [DescribeVaultOutput]
-> f (Maybe [DescribeVaultOutput]))
-> Maybe [DescribeVaultOutput] -> f (Maybe [DescribeVaultOutput]))
-> (Maybe [DescribeVaultOutput] -> f (Maybe [DescribeVaultOutput]))
-> ListVaultsResponse
-> f ListVaultsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[DescribeVaultOutput]
[DescribeVaultOutput]
[DescribeVaultOutput]
[DescribeVaultOutput]
-> Iso
(Maybe [DescribeVaultOutput])
(Maybe [DescribeVaultOutput])
(Maybe [DescribeVaultOutput])
(Maybe [DescribeVaultOutput])
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
[DescribeVaultOutput]
[DescribeVaultOutput]
[DescribeVaultOutput]
[DescribeVaultOutput]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listVaultsResponse_httpStatus :: Lens.Lens' ListVaultsResponse Prelude.Int
listVaultsResponse_httpStatus :: (Int -> f Int) -> ListVaultsResponse -> f ListVaultsResponse
listVaultsResponse_httpStatus = (ListVaultsResponse -> Int)
-> (ListVaultsResponse -> Int -> ListVaultsResponse)
-> Lens ListVaultsResponse ListVaultsResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListVaultsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListVaultsResponse' :: ListVaultsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListVaultsResponse
s@ListVaultsResponse' {} Int
a -> ListVaultsResponse
s {$sel:httpStatus:ListVaultsResponse' :: Int
httpStatus = Int
a} :: ListVaultsResponse)
instance Prelude.NFData ListVaultsResponse